strdup: Assume the function exists.
[gnulib.git] / ChangeLog
blob8b0f28706394283dd847a75c8c9825728903082f
1 2020-08-14  Bruno Haible  <bruno@clisp.org>
3         strdup: Assume the function exists.
4         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
5         whether strdup exists.
6         * modules/strdup (Files): Remove lib/strdup.c.
7         (configure.ac): Don't compile strdup.c.
8         * modules/strdup-posix (Depends-on, configure.ac): Don't test
9         ac_cv_func_strdup.
10         * doc/posix-functions/strdup.texi: Update.
11         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
12         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
13         (Depends-on): Remove unistr/u8-strlen.
15 2020-08-13  Bruno Haible  <bruno@clisp.org>
17         sys_random: Work around an uClibc bug.
18         Reported by akater <nuclearspace@gmail.com>
19         via Stefan Kangas <stefan@marxist.se>
20         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
21         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
22         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
23         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
24         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
26 2020-08-12  Bruno Haible  <bruno@clisp.org>
28         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
29         Reported by Florian Weimer in
30         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
31         * lib/gen-uni-tables.c (output_predicate): Change the element type of
32         the level3 array to 'unsigned int'.
33         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
34         * lib/unictype/categ_*.h: Regenerated.
35         * lib/unictype/ctype_*.h: Regenerated.
36         * lib/unictype/pr_*.h: Regenerated.
37         * lib/unictype/sy_*.h: Regenerated.
38         * lib/unicase/cased.h: Regenerated.
39         * lib/unicase/ignorable.h: Regenerated.
41 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43         stdint: port intptr_t to more-recent MinGW
44         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
45         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
46         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
47         Apparently those two macros were removed in mingwrt-3.22
48         dated 2016-07-14.
50 2020-08-12  Bruno Haible  <bruno@clisp.org>
52         thread-optim: Export function-like macros only.
53         Suggested by Paul Eggert.
54         * lib/thread-optim.h (gl_multithreaded): New macro.
55         (IF_MT_DECL, IF_MT): Remove macros.
56         * doc/multithread.texi (Multithreading Optimizations): Add a small
57         example.
58         * lib/fatal-signal.c: Update all uses.
59         * lib/clean-temp.c: Likewise.
60         * lib/localename.c: Likewise.
61         * modules/localename (Depends-on): Add stdbool.
63 2020-08-12  Bruno Haible  <bruno@clisp.org>
65         Revert autoupdate's revert.
66         * config/srclist.txt: Mark regex.h as needing sync with glibc.
68 2020-08-11  Bruno Haible  <bruno@clisp.org>
70         thread-optim: Fix a compiler warning.
71         * lib/thread-optim.h (IF_MT_DECL): Define differently.
73 2020-08-11  Bruno Haible  <bruno@clisp.org>
75         Use __restrict also on clang.
76         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
77         (__restrict_arr): On clang, define like on GCC.
78         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
79         (_Restrict_arr_): Use _Restrict_ also on clang.
80         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
81         (_Restrict_arr_): Use _Restrict_ also on clang.
83 2020-08-11  Bruno Haible  <bruno@clisp.org>
85         Use flexible array syntax also on clang.
86         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
87         define like for GCC 3.
89 2020-08-11  Bruno Haible  <bruno@clisp.org>
91         fcntl: On native Windows, use _setmode, not setmode.
92         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
93         * lib/binary-io.h: Update comment.
94         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
95         * tests/test-dup2.c: Likewise.
96         * tests/test-dup-safer.c: Likewise.
97         * tests/test-fcntl.c: Likewise.
99 2020-08-11  Bruno Haible  <bruno@clisp.org>
101         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
102         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
103         * lib/spawn-pipe.c (create_pipe): Likewise.
104         * tests/test-nonblocking-pipe-main.c (main): Likewise.
105         * tests/test-nonblocking-socket-main.c (main): Likewise.
106         * lib/wait-process.c: Update comment.
107         * doc/posix-functions/fork.texi: Update.
109 2020-08-11  Bruno Haible  <bruno@clisp.org>
111         asyncsafe-spin: Use GCC built-ins also on clang.
112         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
113         the newer GCC built-ins also on clang.
115 2020-08-11  Bruno Haible  <bruno@clisp.org>
117         Use expression statements also on clang.
118         * lib/cdefs.h (__extension__): Don't define to empty on clang.
119         * lib/obstack.h (__extension__): Likewise.
120         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
121         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
122         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
123         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
124         obstack_finish, obstack_free): Enable as optimized macros also on clang.
125         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
127 2020-08-10  Bruno Haible  <bruno@clisp.org>
129         Use many __attribute__s with clang.
130         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
131         on clang.
132         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
133         New macros.
134         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
135         on clang.
136         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
137         also on older clang versions.
138         (__attribute__): Don't define to empty on clang.
139         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
140         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
141         (__attribute_const__): Use __attribute__ __const__ also on clang.
142         (__attribute_used__): Use __attribute__ __used__ also on clang.
143         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
144         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
145         clang.
146         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
147         clang.
148         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
149         also on clang.
150         (__nonnull): Use __attribute__ __nonnull__ also on clang.
151         (__attribute_warn_unused_result__): Use __attribute__
152         __warn_unused_result__ also on clang.
153         (__always_inline): Use __attribute__ __always_inline__ also on clang.
154         (__attribute_artificial__): Use __attribute__ __artificial__ also on
155         clang >= 7.
156         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
157         clang versions.
158         (_Noreturn): Don't redefine on clang >= 3.5.
159         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
160         also on clang.
161         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
162         on clang.
163         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
164         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
165         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
166         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
167         also on clang.
168         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
169         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
170         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
171         also on clang.
172         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
173         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
174         __attribute__ __noreturn__ also on clang.
175         * lib/obstack.h (__attribute_noreturn__): Likewise.
176         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
177         clang.
178         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
179         always_inline also on clang.
180         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
181         clang.
183 2020-08-10  Bruno Haible  <bruno@clisp.org>
185         c-ldtoastr tests: Fix test failure.
186         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
187         is longer than 'double'.
189 2020-08-10  Bruno Haible  <bruno@clisp.org>
191         Revert autoupdate's revert.
192         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
194 2020-08-09  Bruno Haible  <bruno@clisp.org>
196         string: Fix build error in C++ mode with clang (regression from today).
197         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
198         parameters, one for GCC, one for clang.
199         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
200         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
201         as return type.
203 2020-08-09  Bruno Haible  <bruno@clisp.org>
205         ftruncate: Use _chsize, not chsize.
206         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
207         * lib/ftruncate.c: Test HAVE__CHSIZE.
208         (chsize_nothrow): Use _chsize, not chsize.
210 2020-08-09  Bruno Haible  <bruno@clisp.org>
212         Silence warnings from clang 10 with -Wimplicit-fallthrough.
213         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
214         clang >= 10.
215         * lib/fnmatch.c (FALLTHROUGH): Likewise.
216         * lib/fts.c (FALLTHROUGH): Likewise.
217         * tests/macros.h (FALLTHROUGH): Likewise.
218         * lib/regex_internal.h (FALLTHROUGH): Likewise.
219         * config/srclist.txt: Mark it as needing sync with glibc.
221 2020-08-09  Bruno Haible  <bruno@clisp.org>
223         stdbool tests: Enable the stricter tests also on clang.
224         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
225         (e): Enable the address-to-bool conversion test also on clang.
227 2020-08-09  Bruno Haible  <bruno@clisp.org>
229         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
230         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
232 2020-08-09  Bruno Haible  <bruno@clisp.org>
234         Use attribute __aligned__ with clang.
235         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
236         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
238 2020-08-09  Bruno Haible  <bruno@clisp.org>
240         Use __alignof__ with clang.
241         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
242         on clang.
243         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
244         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
245         clang.
246         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
247         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
248         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
249         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
251 2020-08-09  Bruno Haible  <bruno@clisp.org>
253         ignore-value: Simplify on clang.
254         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
255         workaround.
257 2020-08-09  Bruno Haible  <bruno@clisp.org>
259         Use __typeof__ with clang.
260         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
261         "clang -std=gnu99".
262         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
263         * tests/test-stdint.c (verify_same_types): Enable the check also on
264         clang.
266 2020-08-09  Bruno Haible  <bruno@clisp.org>
268         Add ability to emit user-defined warnings and errors with clang.
269         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
270         _GL_ATTRIBUTE_WARNING using an attribute for clang.
271         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
272         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
273         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
274         attribute for clang.
276 2020-08-09  Bruno Haible  <bruno@clisp.org>
278         intprops: Fix typo in comment.
279         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
281 2020-08-09  Bruno Haible  <bruno@clisp.org>
283         Use __builtin_signbit* with clang.
284         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
285         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
286         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
288         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
289         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
290         not REPLACE_SIGNBIT_USING_GCC.
292 2020-08-09  Bruno Haible  <bruno@clisp.org>
294         Use __builtin_isnan with clang.
295         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
296         not __builtin_isnanf. Also on clang.
297         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
298         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
299         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
300         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
301         built-in.
302         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
303         not __builtin_isnanl. Also on clang.
304         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
305         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
306         * lib/math.in.h (__has_builtin): Remove macro.
307         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
308         __builtin_isnanf. Also on clang.
309         (isnand, gl_isnan_d): With clang, use the GCC built-in.
310         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
311         __builtin_isnanl. Also on clang.
312         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
313         on clang.
315 2020-08-09  Bruno Haible  <bruno@clisp.org>
317         thread-optim: Fix logic error.
318         Reported by Paul Eggert.
319         * lib/thread-optim.h (IF_MT): Fix logic error.
321 2020-08-08  Bruno Haible  <bruno@clisp.org>
323         localename: Use module 'thread-optim'.
324         * lib/localename.c: Include thread-optim.h.
325         (struniq): Use IF_MT macro.
326         * modules/localename (Depends-on): Add thread-optim.
328         clean-temp: Use module 'thread-optim'.
329         * lib/clean-temp.c: Include thread-optim.h.
330         (register_temporary_file, unregister_temporary_file, create_temp_dir,
331         register_temp_file, unregister_temp_file, register_temp_subdir,
332         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
333         close_temp, fclose_variant_temp): Use IF_MT macro.
334         * modules/clean-temp (Depends-on): Add thread-optim.
336         fatal-signal: Use module 'thread-optim'.
337         * lib/fatal-signal.c: Include thread-optim.h.
338         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
339         macro.
340         * modules/fatal-signal (Depends-on): Add thread-optim.
342 2020-08-08  Bruno Haible  <bruno@clisp.org>
344         New module 'thread-optim'.
345         * lib/thread-optim.h: New file.
346         * modules/thread-optim: New file.
347         * doc/multithread.texi (Multithreading Optimizations): New section.
349 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
351         doc: more updates for glibc 2.32
352         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
353         * doc/posix-functions/fchmodat.texi: Update.
355 2020-08-07  Bruno Haible  <bruno@clisp.org>
357         doc: Update for glibc 2.32.
358         * doc/glibc-functions/__libc_single_threaded.texi: New file.
359         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
360         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
361         * doc/glibc-functions/sigabbrev_np.texi: New file.
362         * doc/glibc-functions/sigdescr_np.texi: New file.
363         * doc/glibc-functions/strerrordesc_np.texi: New file.
364         * doc/glibc-functions/strerrorname_np.texi: New file.
365         * doc/gnulib.texi: Include them.
366         (Glibc sys/single_threaded.h): New section.
367         * doc/pastposix-functions/h_errno.texi: Update.
368         * doc/posix-functions/*.texi: Likewise.
369         * doc/glibc-functions/*.texi: Likewise.
371 2020-08-07  Bruno Haible  <bruno@clisp.org>
373         alloca: No need to compile alloca.c with clang.
374         * lib/alloca.c: Skip all code with clang.
376         Use __builtin_alloca with clang.
377         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
379 2020-08-06  Bruno Haible  <bruno@clisp.org>
381         Use __builtin_assume with clang.
382         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
383         (assume): Use __builtin_assume when available.
385 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
387         libgmp: add <gmp/gmp.h> support
388         * m4/libgmp.m4 (gl_LIBGMP):
389         * modules/libgmp (configure.ac, Makefile.am):
390         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
391         ‘#include <gmp.h>’.
393 2020-08-06  Bruno Haible  <bruno@clisp.org>
395         Consider that clang defines __OPTIMIZE__ like GCC does.
396         * lib/streq.h: Define the inline functions also on clang.
397         * lib/c-strcaseeq.h: Likewise.
398         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
399         the GCC workaround to clang.
401 2020-08-06  Bruno Haible  <bruno@clisp.org>
403         safe-alloc: Remove unused code.
404         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
406 2020-08-06  Bruno Haible  <bruno@clisp.org>
408         Use __builtin_expect with clang everywhere.
409         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
410         also on clang.
412 2020-08-05  Bruno Haible  <bruno@clisp.org>
414         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
415         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
416         built-in also on clang.
417         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
418         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
420 2020-08-05  Bruno Haible  <bruno@clisp.org>
422         Use __builtin_clz{,l,ll} with clang, also on Windows.
423         * lib/integer_length.c: With clang, use the GCC built-in, not
424         <intrin.h>.
425         * lib/integer_length_l.c: Likewise.
426         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
427         also on clang.
428         * lib/vasnprintf.c (divide): Likewise.
430 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
432         Update srclist.txt as per recent glibc changes
433         * config/srclist.txt: Uncomment lines to reflect recent merges
434         from Gnulib to glibc.
436 2020-08-03  Bruno Haible  <bruno@clisp.org>
438         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
439         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
441 2020-08-03  Bruno Haible  <bruno@clisp.org>
443         integer_length_ll: Optimize for MSVC in 64-bit mode.
444         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
445         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
447 2020-08-03  Bruno Haible  <bruno@clisp.org>
449         integer_length_ll: Optimize for MSVC in 32-bit mode.
450         * lib/integer_length_l.c: Include <intrin.h>.
451         (integer_length): Define as inline function, like in
452         lib/integer_length.c.
454 2020-08-03  Bruno Haible  <bruno@clisp.org>
456         integer_length: Optimize for MSVC.
457         * lib/integer_length.c: Include <intrin.h>.
458         (integer_length): With MSVC, use the _BitScanReverse built-in.
460 2020-08-03  Bruno Haible  <bruno@clisp.org>
462         ffsll: Optimize for MSVC in 64-bit mode.
463         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
464         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
465         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
467 2020-08-03  Bruno Haible  <bruno@clisp.org>
469         ffsll: Optimize for MSVC in 32-bit mode.
470         * lib/ffsl.h: Include <intrin.h>.
471         (ffs): Define as inline function, like in lib/ffs.c.
473 2020-08-03  Bruno Haible  <bruno@clisp.org>
475         ffs: Optimize for MSVC.
476         * lib/ffs.c: Include <intrin.h>.
477         (ffs): With MSVC, use the _BitScanForward built-in.
479 2020-08-03  Bruno Haible  <bruno@clisp.org>
481         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
482         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
483         variable.
485 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
487         fopen: Avoid undesired interactions with glibc headers.
488         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
489         __need_FILE, as the latter does not work with glibc.
491 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
493         fcntl: document some F_SETLK errno variations
494         * doc/posix-functions/fcntl.texi (fcntl): Document
495         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
497 2020-08-02  Bruno Haible  <bruno@clisp.org>
499         oset: Add an 'iterator_atleast' operation.
500         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
501         extracted from gl_array_search_atleast.
502         (gl_array_search_atleast): Use it.
503         (gl_array_iterator_atleast): New function.
504         (gl_array_oset_implementation): Use it.
505         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
506         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
507         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
508         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
509         member.
510         (gl_oset_iterator_atleast): New function.
511         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
512         (gl_OSet::iterator): Add another auxiliary constructor.
513         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
514         New functions.
515         (main): Test also gl_oset_iterator_atleast.
516         * tests/test-avltree_oset.c (is_at_least): New function.
517         (main): Test also gl_oset_iterator_atleast.
518         * tests/test-rbtree_oset.c (is_at_least): New function.
519         (main): Test also gl_oset_iterator_atleast.
520         * tests/test-oset-c++.cc (is_at_most): New function.
521         (main): Test also gl_OSet::begin_atleast.
523 2020-08-02  Bruno Haible  <bruno@clisp.org>
525         oset-c++, omap-c++: Remove restriction for search_atleast method.
526         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
527         a different type than the element.
528         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
529         a different type than the key.
531 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
533         gnumakefile: say ‘$(MAKE)’ not ‘make’
534         * top/GNUmakefile (abort-due-to-no-makefile):
535         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
536         This change is backported from Autoconf.
538 2020-08-01  Bruno Haible  <bruno@clisp.org>
540         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
541         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
542         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
543         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
544         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
545         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
547 2020-08-01  Bruno Haible  <bruno@clisp.org>
549         libtextstyle-optional: Update tests.
550         * modules/libtextstyle-optional-tests (configure.ac): Invoke
551         gl_LIBTEXTSTYLE_OPTIONAL.
553 2020-08-01  Bruno Haible  <bruno@clisp.org>
555         parse-datetime: Fix wrong #line statements.
556         * modules/parse-datetime (Makefile.am): Correct #line statements also in
557         parse-datetime-gen.h.
559 2020-08-01  Bruno Haible  <bruno@clisp.org>
561         libtextstyle[-optional]: Allow requesting a minimum version.
562         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
563         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
564         gl_LIBTEXTSTYLE_SEARCH): New macros.
565         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
566         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
567         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
568         * modules/libtextstyle-optional (configure.ac): Don't invoke
569         gl_LIBTEXTSTYLE_OPTIONAL.
570         * NEWS: Mention the changes.
572 2020-07-31  Bruno Haible  <bruno@clisp.org>
574         _GL_CMP: Improve documentation.
575         Reported by Paul Eggert in
576         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
578         passed.
580 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
582         largefile: sync with Autoconf master
583         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
584         Avoid undefined behavior on platforms where off_t is 32 bits.
585         See: https://bugs.debian.org/742780
587         alloca: sync with Autoconf master
588         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
589         Do not define if Autoconf 2.70 or later, since Autoconf master
590         now matches us.
592 2020-07-30  Bruno Haible  <bruno@clisp.org>
594         unicodeio: Add comment.
595         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
596         different iconv behaviours.
598 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
600         Work around some Oracle Studio attribute bugs
601         These were discovered when building bleeding-edge Emacs with
602         Oracle Studio.
603         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
604         Port to Oracle Studio 12.6, which mishandles __attribute__
605         ((__cold__)) and __attribute__ ((__may_alias__)) even though
606         __has_attribute says they work.
608 2020-07-29  Bruno Haible  <bruno@clisp.org>
610         unicodeio: Fix wrong result on musl libc.
611         Reported by A. Wilcox <awilfox@adelielinux.org> in
612         <https://www.openwall.com/lists/musl/2020/07/29/2>.
613         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
614         on musl libc.
615         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
616         * modules/unicodeio (Files): Add m4/musl.m4.
618 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
620         fsusage, regex, stat-size: remove Cray support
621         As near as I can make out this is actually support for UNICOS/mp,
622         last released 2005, and Cray hasn’t supported that for years.
623         * config/srclist.txt: Comment out regex.h for now.
624         * lib/fsusage.c (get_fs_usage):
625         * lib/regex.h (re_comp, re_exec):
626         * lib/stat-size.h (ST_NBLOCKSIZE):
627         Don’t worry about _CRAY.
629 2020-07-29  Bruno Haible  <bruno@clisp.org>
631         parse-datetime: Fix compilation error with bison 3.7.
632         * modules/parse-datetime (Makefile.am): Create a generated header file
633         parse-datetime-gen.h in the source directory. Correct #include and
634         #line statements during preprocessing.
636 2020-07-28  Bruno Haible  <bruno@clisp.org>
638         fopen-gnu: Create files correctly (regression from 2020-05-24).
639         * lib/fopen.c (rpl_open): Pass a third argument to open().
641 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
643         xalloc-die: don’t depend on xalloc
644         This removes a circular dependency, as xalloc depends on xalloc-die.
645         * modules/xalloc-die (Files): Add lib/xalloc.h.
646         (Depends-on): Remove xalloc.
647         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
649         dfa-tests: port to MSVC
650         Problem reported by Gisle Vanem in:
651         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
652         Also, remove an unnecessary dependency on getprogname.
653         * modules/dfa-tests (Depends-on): Remove getprogname.
654         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
655         (exit_status): New static var.
656         (dfawarn): Set it instead of exiting.
657         Do not declare as _Noreturn, to pacify MSVC.
658         (main): Return exit_status.
660 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
662         argz: pacify MSVC
663         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
664         Problem reported by Gisle Vanem.
666         libgmp: remove dependency on havelib
667         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
668         use the more-traditional AC_SEARCH_LIBS approach.
669         This should work better with GNU Emacs configuration,
670         which uses pkg-config instead of a havelib-style approach.
671         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
672         * modules/libgmp (Depends-on): Remove havelib.
674         libgmp: remove HAVE_GMP, LIB_GMP
675         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
676         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
678 2020-07-26  Bruno Haible  <bruno@clisp.org>
680         inttypes: Remove support for AIX 4.
681         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
682         * m4/inttypes-pri.m4: Remove file.
683         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
684         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
685         * modules/inttypes-incomplete (Makefile.am): Don't substitute
686         PRI_MACROS_BROKEN.
687         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
689 2020-07-26  Bruno Haible  <bruno@clisp.org>
691         gettimeofday: Remove workaround for Mac OS X 10.0.
692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
693         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
694         * lib/gettimeofday.c: Don't include localtime-buffer.h.
695         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
696         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
697         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
698         * modules/localtime-buffer: Remove file.
699         * lib/localtime-buffer.h: Remove file.
700         * lib/localtime-buffer.c: Remove file.
701         * m4/localtime-buffer.m4: Remove file.
702         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
704 2020-07-26  Bruno Haible  <bruno@clisp.org>
706         tzset: Remove workaround for Solaris 2.6.
707         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
708         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
709         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
710         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
711         * lib/localtime-buffer.c: Likewise.
712         * lib/localtime.c: Likewise.
713         * lib/tzset.c: Don't include localtime-buffer.h.
714         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
715         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
716         is 1.
717         * modules/tzset (Depends-on): Remove localtime-buffer.
719 2020-07-26  Bruno Haible  <bruno@clisp.org>
721         expl: Simplify autoconf test.
722         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
723         with small values..." test into the "checking whether expl works..."
724         test.
726 2020-07-26  Bruno Haible  <bruno@clisp.org>
728         alloca: Remove Cray-2 and Cray Y-MP support.
729         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
730         Enable also on Autoconf >= 2.69.
731         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
732         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
733         i00afunc): Remove.
735 2020-07-25  Bruno Haible  <bruno@clisp.org>
737         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
738         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
740 2020-07-25  Bruno Haible  <bruno@clisp.org>
742         sigprocmask: Small autoconf macro improvement.
743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
744         user to override the value of gl_cv_func_sigprocmask.
745         * m4/gnulib-common.m4 (gl_SILENT): New macro.
747 2020-07-25  Bruno Haible  <bruno@clisp.org>
749         Small autoconf macro improvements.
750         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
751         override the value of gl_cv_func_working_mktime.
752         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
753         compiler produces multi-arch binaries..." in the configure output.
754         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
755         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
757 2020-07-25  Bruno Haible  <bruno@clisp.org>
759         doc: Update for NetBSD 7.1, 8.0, 9.0.
760         * doc/*/*.texi: Update.
761         * m4/exp2l.m4: Update comments.
762         * m4/expl.m4: Likewise.
763         * m4/ilogb.m4: Likewise.
764         * m4/ilogbf.m4: Likewise.
765         * m4/log10l.m4: Likewise.
766         * m4/logl.m4: Likewise.
767         * m4/printf.m4: Likewise.
768         * m4/rintl.m4: Likewise.
769         * m4/wcwidth.m4: Likewise.
771 2020-07-24  Bruno Haible  <bruno@clisp.org>
773         doc: Update for Mac OS X 10.13.
774         * doc/*/*.texi: Update.
775         * m4/expm1l.m4: Update comments.
776         * m4/getgroups.m4: Likewise.
777         * m4/getlogin_r.m4: Likewise.
778         * m4/linkat.m4: Likewise.
779         * m4/printf.m4: Likewise.
781 2020-07-24  Bruno Haible  <bruno@clisp.org>
783         doc: Update for Cygwin 2.9.0.
784         * doc/*/*.texi: Update.
786 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
788         parse-datetime: modernize doc
789         * doc/parse-datetime.texi: Use more-current examples.
790         Don’t lead with 32-bit time_t, as it’s on its way out.
791         Capitalize “Epoch” to be consistent with POSIX.
793         timespec: remove dependence on ‘verify’
794         * lib/timespec.h: Do not include verify.h; no longer needed.
795         * modules/timespec (Depends-on): Remove ‘verify’.
797         Optimize a few more three-valued comparisons
798         * lib/timespec.h (timespec_cmp, timespec_sign):
799         * lib/utimecmp.c (utimecmpat):
800         Avoid conditional branches by using _GL_CMP.
802         Fix _GL_CMP parenthesization typo
803         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
805 2020-07-24  Bruno Haible  <bruno@clisp.org>
807         dfa: Revert breaking gawk.
808         Reported by Arnold Robbins <arnold@skeeve.com>.
809         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
811 2020-07-23  Bruno Haible  <bruno@clisp.org>
813         Optimize three-valued comparison between integers.
814         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
815         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
816         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
817         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
818         * lib/dfa.c (compare): Likewise.
819         * lib/fts.c (fts_compare_ino): Likewise.
820         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
821         * lib/mbscasecmp.c (mbscasecmp): Likewise.
822         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
823         * lib/memcasecmp.c (memcasecmp): Likewise.
824         * lib/memcmp2.c (memcmp2): Likewise.
825         * lib/savedir.c (direntry_cmp_inode): Likewise.
826         * lib/strcasecmp.c (strcasecmp): Likewise.
827         * lib/strncasecmp.c (strncasecmp): Likewise.
828         * lib/unistr/u-cmp2.h (FUNC): Likewise.
830 2020-07-23  Bruno Haible  <bruno@clisp.org>
832         lchmod: Use /proc on Cygwin.
833         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
835 2020-07-23  Ken Brown  <kbrown@cornell.edu>
837         fchmodat: Use /proc on Cygwin
838         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
840 2020-07-21  Bruno Haible  <bruno@clisp.org>
842         aligned-malloc: Optionally use aligned_alloc.
843         * lib/aligned-malloc.h: Verify the alignment.
844         (aligned_malloc): Use aligned_alloc as an alternative.
845         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
846         * doc/posix-functions/aligned_alloc.texi: Mention the modules
847         'aligned-malloc' and 'pagealign_alloc'.
849 2020-07-21  Bruno Haible  <bruno@clisp.org>
851         aligned-malloc: Add tests.
852         * tests/test-aligned-malloc.c: New file.
853         * modules/aligned-malloc-tests: New file.
855         aligned-malloc: New module.
856         * lib/aligned-malloc.h: New file.
857         * m4/malloc-align.m4: New file.
858         * modules/aligned-malloc: New file.
859         * doc/posix-functions/posix_memalign.texi: Mention the new module.
860         * doc/glibc-functions/memalign.texi: Likewise.
862 2020-07-21  Bruno Haible  <bruno@clisp.org>
864         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
865         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
866         sure PRIPTR_PREFIX is defined to "ll", not "l".
868 2020-07-21  Bruno Haible  <bruno@clisp.org>
870         printf-posix: Make an autoconf test more future-proof.
871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
872         using uintptr_t.
874 2020-07-20  Bruno Haible  <bruno@clisp.org>
876         list, oset, omap: Relicense some of the container modules under LGPLv2+.
877         * modules/list (License): Change to LGPLv2+.
878         * modules/array-list (License): Likewise.
879         * modules/carray-list (License): Likewise.
880         * modules/linked-list (License): Likewise.
881         * modules/avltree-list (License): Likewise.
882         * modules/rbtree-list (License): Likewise.
883         * modules/oset (License): Likewise.
884         * modules/array-oset (License): Likewise.
885         * modules/avltree-oset (License): Likewise.
886         * modules/rbtree-oset (License): Likewise.
887         * modules/omap (License): Likewise.
888         * modules/array-omap (License): Likewise.
889         * modules/avltree-omap (License): Likewise.
890         * modules/rbtree-omap (License): Likewise.
892 2020-07-20  Bruno Haible  <bruno@clisp.org>
894         oset: Add an 'update' operation.
895         * lib/gl_array_oset.c (gl_array_update): New function.
896         (gl_array_oset_implementation): Use it.
897         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
898         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
899         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
900         extracted from gl_tree_nx_add_before.
901         (gl_tree_nx_add_before): Invoke it.
902         (gl_tree_add_node_after): New function, extracted from
903         gl_tree_nx_add_after.
904         (gl_tree_nx_add_after): Invoke it.
905         (gl_tree_remove_node_no_free): New function, extracted from
906         gl_tree_remove_node.
907         (gl_tree_remove_node): Invoke it.
908         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
909         extracted from gl_tree_nx_add_before.
910         (gl_tree_nx_add_before): Invoke it.
911         (gl_tree_add_node_after): New function, extracted from
912         gl_tree_nx_add_after.
913         (gl_tree_nx_add_after): Invoke it.
914         (gl_tree_remove_node_no_free): New function, extracted from
915         gl_tree_remove_node.
916         (gl_tree_remove_node): Invoke it.
917         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
918         from gl_tree_iterator_next.
919         (gl_tree_iterator_next): Invoke it.
920         (gl_tree_prev_node, gl_tree_update): New functions.
921         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
922         (gl_avltree_oset_implementation): Use gl_tree_update.
923         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
924         (gl_rbtree_oset_implementation): Use gl_tree_update.
925         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
926         (gl_oset_update): New function.
927         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
928         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
929         * modules/rbtree-oset (configure.ac): Likewise.
930         * tests/test-oset-update.h: New file.
931         * tests/test-array_oset.c: Include test-oset-update.h.
932         (main): Invoke test_update.
933         * tests/test-avltree_oset.c: Likewise.
934         * tests/test-rbtree_oset.c: Likewise.
935         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
936         * modules/avltree-oset-tests (Files): Likewise.
937         * modules/rbtree-oset-tests (Files): Likewise.
938         * tests/test-oset-c++.cc (action): New function.
939         (main): Test the 'update' member function.
941 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
943         md5, sha1, sha256, sha512: pacify Autoconf 2.70
944         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
945         shell if, so that the argument to AC_CHECK_HEADERS is
946         a simple string that does not require shell evaluation.
947         This fixes a warning generated by Autoconf 2.69b.
949 2020-07-12  Bruno Haible  <bruno@clisp.org>
951         libgmp: Avoid warning when --without-libgmp is used.
952         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
953         GCC >= 8, not for GCC >= 4.6.
955 2020-07-12  Bruno Haible  <bruno@clisp.org>
957         libgmp: Link to the correct shared library.
958         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
959         * modules/libgmp (Depends-on): Add havelib.
960         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
961         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
963 2020-07-12  Bruno Haible  <bruno@clisp.org>
965         libgmp tests: Add some safety checks.
966         * modules/libgmp-tests (Depends-on): Add verify.
967         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
968         (main): Verify that gmp.h and libgmp versions match.
970 2020-07-10  Bruno Haible  <bruno@clisp.org>
972         unicodeio: Fix wrong result on NetBSD.
973         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
974         characters also on NetBSD.
976 2020-07-09  Bruno Haible  <bruno@clisp.org>
978         unicodeio: Fix wrong result on Solaris 11.
979         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
980         via Akim Demaille <akim.demaille@gmail.com> in
981         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
982         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
983         characters on Solaris.
984         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
985         UTF-8 output or the specified fallback.
987 2020-07-08  Bruno Haible  <bruno@clisp.org>
989         unicodeio: Add tests.
990         * tests/test-unicodeio.c: New file.
991         * tests/test-unicodeio1.sh: New file.
992         * tests/test-unicodeio2.sh: New file.
993         * tests/test-unicodeio3.sh: New file.
994         * modules/unicodeio-tests: New file.
996 2020-07-08  Bruno Haible  <bruno@clisp.org>
998         unicodeio: Document link requirements.
999         * modules/unicodeio (Link): New section.
1001 2020-07-07  Bruno Haible  <bruno@clisp.org>
1003         doc: Remove support for some very old platforms.
1004         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1005         * doc/posix-functions/memcpy.texi: Likewise.
1006         * doc/posix-functions/memmove.texi: Likewise.
1007         * doc/posix-functions/memset.texi: Likewise.
1008         * doc/posix-functions/getcwd.texi: Likewise.
1010         memchr: Remove support for some very old platforms.
1011         * m4/memchr-obsolete.m4: Remove file.
1012         * modules/memchr-obsolete: Remove file.
1013         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1014         absent. Don't define HAVE_MEMCHR.
1015         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1016         * modules/memchr (Depends-on): Remove memchr-obsolete.
1017         (configure.ac): Assume HAVE_MEMCHR is 1.
1018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1019         HAVE_MEMCHR.
1020         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1021         * doc/posix-functions/memchr.texi: Don't mention module
1022         'memchr-obsolete'.
1023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1024         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1025         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1027         dup2: Remove support for some very old platforms.
1028         * m4/dup2-obsolete.m4: Remove file.
1029         * modules/dup2-obsolete: Remove file.
1030         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1031         Don't define HAVE_DUP2.
1032         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1033         * lib/dup2.c: Likewise.
1034         * modules/dup2 (Depends-on, configure.ac): Likewise.
1035         (Depends-on): Remove dup2-obsolete.
1036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1037         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1038         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1040 2020-07-07  Bruno Haible  <bruno@clisp.org>
1042         canonicalize: Trim module dependencies.
1043         * lib/hash-triple.h: Group declarations.
1044         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1045         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1046         (STREQ): Remove macro.
1047         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1048         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1049         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1050         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1051         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1052         hash-triple-simple.
1053         * modules/file-set (Depends-on): Likewise.
1055 2020-07-07  Bruno Haible  <bruno@clisp.org>
1057         Clarify dependencies to double-slash-root.
1058         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1059         (Depends-on): Add double-slash-root.
1060         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1061         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1063 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1065         libgmp: new module
1066         The idea is to let programs simply include <gmp.h>, and
1067         so long as they live within the mini-gmp subset they need
1068         not worry about whether the GMP libraries are installed.
1069         * MODULES.html.sh: Mention it.
1070         * config/srclist.txt: Mention files copied from GMP source.
1071         * config/srclistvars.sh (GMP): New var.
1072         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1073         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1074         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1076 2020-07-05  Bruno Haible  <bruno@clisp.org>
1078         mkancesdirs: Trim module dependencies.
1079         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1080         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1082 2020-07-05  Bruno Haible  <bruno@clisp.org>
1084         getprogname: Trim module dependencies.
1085         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1086         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1087         basename-lgpl.
1089 2020-07-05  Bruno Haible  <bruno@clisp.org>
1091         filenamecat-lgpl: Trim module dependencies.
1092         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1093         dirname.h.
1094         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1095         basename-lgpl, filename.
1097 2020-07-05  Bruno Haible  <bruno@clisp.org>
1099         backupfile, backup-rename: Trim module dependencies.
1100         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1101         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1102         basename-lgpl.
1103         * modules/backup-rename (Depends-on): Likewise.
1105 2020-07-05  Bruno Haible  <bruno@clisp.org>
1107         argp: Trim module dependencies.
1108         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1109         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1111 2020-07-05  Bruno Haible  <bruno@clisp.org>
1113         basename-lgpl: New module.
1114         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1115         lib/basename-lgpl.c.
1116         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1117         <stdbool.h>, filename.h.
1118         (last_component): Rename a local variable.
1119         * lib/dirname.h: Include basename-lgpl.h.
1120         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1121         (last_component, base_len): Remove declarations.
1122         * modules/basename-lgpl: New file.
1123         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1124         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1125         (Makefile.am): Don't compile basename-lgpl.c.
1126         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1127         not 'dirname'.
1129 2020-07-05  Bruno Haible  <bruno@clisp.org>
1131         dirname, dirname-lgpl: Simplify.
1132         * m4/dirname.m4: Remove file.
1133         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1134         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1135         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1137 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1139         tests: avoid shadowing warning
1140         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1142 2020-07-05  Bruno Haible  <bruno@clisp.org>
1144         supersede: Add tests.
1145         * tests/test-supersede.c: New file.
1146         * tests/test-supersede-open.h: New file.
1147         * tests/test-supersede-fopen.h: New file.
1148         * modules/supersede-tests: New file.
1150         supersede: New module.
1151         * lib/supersede.h: New file.
1152         * lib/supersede.c: New file.
1153         * m4/supersede.m4: New file.
1154         * modules/supersede: New file.
1156 2020-07-05  Bruno Haible  <bruno@clisp.org>
1158         Add some copyright headers.
1159         * lib/dev-ino.h: Add copyright header.
1160         * lib/di-set.h: Likewise.
1161         * lib/fchown-stub.c: Likewise.
1162         * lib/file-set.h: Likewise.
1163         * lib/hash-triple.h: Likewise.
1164         * lib/idcache.h: Likewise.
1165         * lib/ino-map.h: Likewise.
1166         * lib/mkancesdirs.h: Likewise.
1167         * lib/scratch_buffer.h: Likewise.
1168         * lib/se-context.in.h: Likewise.
1169         * lib/stdopen.h: Likewise.
1170         * lib/userspec.h: Likewise.
1172 2020-07-04  Bruno Haible  <bruno@clisp.org>
1174         getrandom: Relicense under LGPLv2+.
1175         Paul Eggert's approval is in
1176         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1177         * modules/getrandom (License): Change to LGPLv2+.
1179 2020-07-04  Bruno Haible  <bruno@clisp.org>
1181         getumask: Add tests.
1182         * tests/test-getumask.c: New file.
1183         * modules/getumask-tests: New file.
1185         getumask: New module.
1186         * lib/sys_stat.in.h (getumask): New declaration.
1187         * lib/getumask.c: New file.
1188         * m4/getumask.m4: New file.
1189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1190         declared.
1191         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1192         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1193         HAVE_GETUMASK.
1194         * modules/getumask: New file.
1195         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1196         * doc/glibc-functions/getumask.texi: New file.
1197         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1199 2020-07-04  Bruno Haible  <bruno@clisp.org>
1201         clean-temp: Add support for temporary files with given mode.
1202         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1203         * lib/clean-temp.c (struct try_create_file_params): New type.
1204         (try_create_file): New function.
1205         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1206         gen_tempname.
1208 2020-07-04  Bruno Haible  <bruno@clisp.org>
1210         clean-temp: Document limitations.
1211         * lib/clean-temp.h: Document limitations.
1213 2020-07-04  Bruno Haible  <bruno@clisp.org>
1215         clean-temp: Add support for temporary files with unpredictable names.
1216         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1217         * lib/clean-temp.c: Include tempname.h.
1218         (gen_register_open_temp): New function.
1219         * modules/tempname (configure.ac): Define a module indicator.
1221 2020-07-04  Bruno Haible  <bruno@clisp.org>
1223         clean-temp: Add support for temporary files anywhere in the file system.
1224         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1225         cleanup_temporary_file): New declarations.
1226         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1227         variables.
1228         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1229         (dir_cleanup_list): Renamed from cleanup_list.
1230         (cleanup_action): Process the file_cleanup_list as well.
1231         (do_init_clean_temp): New function.
1232         (clean_temp_once): New variable.
1233         (init_clean_temp): New function.
1234         (create_temp_dir): Invoke it.
1235         (register_temporary_file, unregister_temporary_file,
1236         cleanup_temporary_file): New functions.
1237         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1238         argument.
1240 2020-07-04  Bruno Haible  <bruno@clisp.org>
1242         clean-temp: Improve comments.
1243         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1244         fwriteerror_temp, close_stream_temp): Clarify intended use.
1245         * lib/clean-temp.c: Likewise.
1247 2020-07-04  Bruno Haible  <bruno@clisp.org>
1249         clean-temp: Make multithread-safe, part 2.
1250         * lib/fatal-signal.h: Include <signal.h>.
1251         (get_fatal_signal_set): New declaration.
1252         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1253         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1254         (struct closeable_fd): New type.
1255         (fatal_signal_set): New variable.
1256         (init_fatal_signal_set): New function.
1257         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1258         (cleanup_action): Invoke asyncsafe_close instead of close.
1259         (create_temp_dir): Invoke init_fatal_signal_set.
1260         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1261         element.
1262         (unregister_fd): Remove function.
1263         (close_temp): Cleanup descriptors list on the fly. Invoke
1264         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1265         (fclose_variant_temp): New function.
1266         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1267         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1269 2020-07-04  Bruno Haible  <bruno@clisp.org>
1271         clean-temp: Make multithread-safe, part 1.
1272         * lib/clean-temp.c: Include glthread/lock.h.
1273         (cleanup_list_lock): New variable.
1274         (register_temp_file, unregister_temp_file, register_temp_subdir,
1275         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1276         (create_temp_dir): Likewise. Don't free the old array.
1277         (descriptors_lock): New variable.
1278         (register_fd, unregister_fd): Use it.
1279         * modules/clean-temp (Depends-on): Add lock.
1281 2020-07-04  Bruno Haible  <bruno@clisp.org>
1283         fatal-signal: Make multithread-safe.
1284         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1285         (do_init_fatal_signal_set): New function, extracted from
1286         init_fatal_signal_set.
1287         (fatal_signal_set_once): New variable.
1288         (init_fatal_signal_set): Use gl_once.
1290 2020-07-03  Bruno Haible  <bruno@clisp.org>
1292         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1293         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1294         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1295         <bcrypt.h>.
1297 2020-07-03  Bruno Haible  <bruno@clisp.org>
1299         dfa tests: Follow common file naming conventions.
1300         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1301         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1302         * tests/test-dfa-invalid-char-class.sh: Renamed from
1303         tests/dfa-invalid-char-class.sh. Update.
1304         * modules/dfa-tests (Files, Makefile.am): Update.
1306 2020-07-03  Bruno Haible  <bruno@clisp.org>
1308         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1309         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1310         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1312 2020-07-03  Bruno Haible  <bruno@clisp.org>
1314         asyncsafe-spin: Reduce code duplication.
1315         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1316         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1317         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1319 2020-07-03  Bruno Haible  <bruno@clisp.org>
1321         lchmod: Simplify after 2020-02-22 change.
1322         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1324 2020-07-03  Bruno Haible  <bruno@clisp.org>
1326         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1327         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1329 2020-07-03  Bruno Haible  <bruno@clisp.org>
1331         dfa: Make sure the compiler does not barf on 'inline'.
1332         * modules/dfa (configure.ac): Require AC_C_INLINE.
1334 2020-07-03  Bruno Haible  <bruno@clisp.org>
1336         bitset: Make sure the compiler does not barf on 'inline'.
1337         * modules/bitset (configure.ac): New section.
1339 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1341         manywarnings: improve port to GCC 10.1
1342         * build-aux/gcc-warning.spec: Also list warnings that are default
1343         or are enabled by already-given flags.  This lets us speed up
1344         checking for attributes, and makes the generated compilation
1345         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1346         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1347         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1348         to shell variables that may have long values.
1349         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1350         consequences of other flags, to speed up checking and
1351         shorten commands.
1353         tests: pacify gcc -fanalyzer on zerosize_ptr
1354         * tests/test-memcasecmp.c (main):
1355         * tests/test-memchr.c (main):
1356         * tests/test-memchr2.c (main):
1357         * tests/test-memcmp.c (main):
1358         * tests/test-memmem.c (main):
1359         * tests/test-memrchr.c (main):
1360         * tests/unistr/test-chr.h (main):
1361         * tests/unistr/test-cmp.h (test_cmp):
1362         Check whether zerosize_ptr returns NULL before using it.
1363         This pacifies GCC 10.1’s new fanalyzer option, and matches
1364         other uses of zerosize_ptr.
1366 2020-07-01  Bruno Haible  <bruno@clisp.org>
1368         asyncsafe-spin: Add tests.
1369         * tests/test-asyncsafe-spin1.c: New file.
1370         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1371         tests/test-pthread-spin.c.
1372         * modules/asyncsafe-spin-tests: New file.
1374 2020-07-01  Bruno Haible  <bruno@clisp.org>
1376         asyncsafe-spin: New module.
1377         * lib/asyncsafe-spin.h: New file.
1378         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1379         * modules/asyncsafe-spin: New file.
1381 2020-07-01  Bruno Haible  <bruno@clisp.org>
1383         windows-spin: Fix race condition on multiprocessor systems.
1384         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1386 2020-07-01  Bruno Haible  <bruno@clisp.org>
1388         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1389         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1390         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1391         an implementation based on other GCC built-ins.
1393 2020-07-01  Bruno Haible  <bruno@clisp.org>
1395         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1396         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1397         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1398         lock byte.
1400 2020-07-01  Bruno Haible  <bruno@clisp.org>
1402         pthread-spin: Add error checking.
1403         * lib/pthread-spin.c: Include <stdbool.h>.
1404         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1405         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1406         the unlocks.
1407         * modules/pthread-spin (Depends-on): Add stdbool.
1409 2020-07-01  Bruno Haible  <bruno@clisp.org>
1411         pthread-spin: Add tests.
1412         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1413         * modules/pthread-spin-tests: New file.
1415 2020-07-01  Bruno Haible  <bruno@clisp.org>
1417         tests: Reduce code duplication.
1418         * tests/atomic-int-posix.h: New file, extracted from
1419         tests/test-pthread-mutex.c.
1420         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1421         * tests/test-pthread-rwlock.c: Likewise.
1422         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1423         * modules/pthread-rwlock-tests (Files): Likewise.
1425 2020-07-01  Bruno Haible  <bruno@clisp.org>
1427         tests: Refactor.
1428         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1429         * tests/test-mtx.c: Include it. Remove the corresponding code.
1430         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1432 2020-07-01  Bruno Haible  <bruno@clisp.org>
1434         tests: Refactor.
1435         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1436         * tests/test-lock.c: Include it. Remove the corresponding code.
1437         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1439 2020-06-29  Bruno Haible  <bruno@clisp.org>
1441         sys_socket: Don't define socklen_t if it is already defined on mingw.
1442         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1443         <https://savannah.gnu.org/bugs/?57725>,
1444         by Rahul Das <bokul_4u@yahoo.com> in
1445         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1446         and by Eli Zaretskii <eliz@gnu.org> in
1447         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1448         * lib/sys_socket.in.h (socklen_t): Remove definition.
1450 2020-06-29  Bruno Haible  <bruno@clisp.org>
1452         alloca-opt: Fix warning on mingw.
1453         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1455         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1456         whether alloca is defined.
1458 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1460         getrandom: do not depend on ‘open’ on mingw
1461         Similarly for at-internal, getloadavg.  These modules do not call
1462         the ‘open’ function when they are compiled on mingw.  On mingw,
1463         this avoids having to compile open.c when building Emacs, which
1464         does its own thing with ‘open’.
1465         * modules/at-internal, modules/getloadavg, modules/getrandom:
1466         (Depends-on): Don’t depend on ‘open’ on mingw.
1467         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1468         * modules/getloadavg (Depends-on):
1469         Depend on intprops, open, stdbool, stdlib only if compiling
1470         getloadavg.c.
1472 2020-06-28  Bruno Haible  <bruno@clisp.org>
1474         doc: Add a note about sigprocmask vs. pthread_sigmask.
1475         * doc/posix-functions/sigprocmask.texi: Add note.
1477 2020-06-28  Bruno Haible  <bruno@clisp.org>
1479         getrandom: Fix compilation errors on older versions of mingw.
1480         Reported by Eli Zaretskii <eliz@gnu.org> in
1481         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1482         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1483         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1484         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1485         BCryptGenRandom ourselves.
1487 2020-06-28  Bruno Haible  <bruno@clisp.org>
1489         clean-temp: Fix wrong errno in error message.
1490         * lib/clean-temp.c (create_temp_dir): Save errno around
1491         unblock_fatal_signals call.
1493 2020-06-27  Bruno Haible  <bruno@clisp.org>
1495         fatal-signal: Make multithread-safe.
1496         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1498 2020-06-27  Bruno Haible  <bruno@clisp.org>
1500         clean-temp: Don't force deletion of temporary files on native Windows.
1501         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1502         argument.
1503         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1504         * NEWS: Mention the change.
1505         * lib/javacomp.c (write_temp_file): Update.
1507 2020-06-27  Bruno Haible  <bruno@clisp.org>
1509         fatal-signal: Make multithread-safe.
1510         * lib/fatal-signal.c: Include glthread/lock.h.
1511         (at_fatal_signal_lock): New variable.
1512         (at_fatal_signal): Use it.
1513         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1514         (block_fatal_signals, unblock_fatal_signals): Use them.
1515         * modules/fatal-signal (Depends-on): Add lock.
1517 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1519         getloadavg: don’t depend on fopen-gnu
1520         This is for Emacs, which does not need fopen-gnu for anything else,
1521         and which would need it only on a NetBSD platform where getloadavg
1522         does not work (does that even happen?).
1523         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1524         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1526         * tests/test-getloadavg.c (main): Fix typo.
1528 2020-06-27  Bruno Haible  <bruno@clisp.org>
1530         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1531         * modules/tempname (Link): New section.
1532         * modules/mkdtemp (Link): Likewise.
1533         * modules/clean-temp (Link): Likewise.
1534         * modules/mkstemp (Link): Likewise.
1535         * modules/stdlib-safer (Link): Likewise.
1536         * modules/mkstemps (Link): Likewise.
1537         * modules/mkostemp (Link): Likewise.
1538         * modules/mkostemps (Link): Likewise.
1539         * modules/tmpfile (Link): Likewise.
1540         * modules/tmpfile-safer (Link): Likewise.
1541         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1542         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1543         $(LIB_GETRANDOM).
1544         * NEWS: Mention the changes.
1546 2020-06-27  Bruno Haible  <bruno@clisp.org>
1548         fopen-gnu: Simplify code.
1549         * lib/fopen.c: Include <stdbool.h>.
1550         (rpl_fopen): Use a single variable open_flags instead of
1551         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1552         * modules/fopen (Depends-on): Add stdbool.
1554 2020-06-26  Bruno Haible  <bruno@clisp.org>
1556         canonicalize: Improve documentation.
1557         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1558         return convention.
1560 2020-06-26  Bruno Haible  <bruno@clisp.org>
1562         xgetcwd: Improve documentation.
1563         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1565 2020-06-26  Bruno Haible  <bruno@clisp.org>
1567         getcwd: Improve documentation.
1568         * lib/getcwd.c (__getcwd): Document the failure return convention.
1570 2020-06-26  Bruno Haible  <bruno@clisp.org>
1572         fchdir: Improve documentation.
1573         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1574         convention.
1576 2020-06-26  Bruno Haible  <bruno@clisp.org>
1578         filenamecat-lgpl: Set errno upon failure.
1579         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1580         return convention.
1581         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1583 2020-06-26  Bruno Haible  <bruno@clisp.org>
1585         areadlink-with-size: Set errno upon failure.
1586         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
1587         fails.
1588         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
1590 2020-06-26  Bruno Haible  <bruno@clisp.org>
1592         copy-file: Shrink dependencies.
1593         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
1594         qcopy-acl.
1596 2020-06-26  Bruno Haible  <bruno@clisp.org>
1598         doc: Mention declaration fixes implemented by some modules.
1599         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
1600         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
1601         declaration appear in <unistd.h>.
1602         * doc/posix-functions/dup.texi: Likewise.
1603         * doc/posix-functions/dup2.texi: Likewise.
1604         * doc/posix-functions/gethostname.texi: Likewise.
1605         * doc/posix-functions/isatty.texi: Likewise.
1606         * doc/posix-functions/lseek.texi: Likewise.
1607         * doc/posix-functions/unlink.texi: Likewise.
1608         * doc/posix-functions/read.texi: Mention the module 'read'.
1609         * doc/posix-functions/write.texi: Mention the effects of the module
1610         'write'.
1612 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1614         c-dtoastr, c-ldtoastr: new modules
1615         These modules provide the same functionality as the modules
1616         dtoastr and ldtoastr except for the formatting taking place in the
1617         C locale.
1618         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
1619         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
1620         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
1621         defined.  Use c_snprintf and c_strtod/c_strtold instead of
1622         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
1623         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
1624         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
1625         modules/c-ldtoastr-tests: New files.
1626         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
1627         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
1629 2020-06-21  Bruno Haible  <bruno@clisp.org>
1631         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
1632         * lib/tzset.c: Include <stdlib.h>, <string.h>.
1634 2020-06-16  Bruno Haible  <bruno@clisp.org>
1636         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
1637         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
1639 2020-06-16  Bruno Haible  <bruno@clisp.org>
1641         thread, thrd: Avoid a compiler warning.
1642         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
1644 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
1646         windows-thread: Avoid a compiler warning.
1647         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
1648         void.
1649         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
1651 2020-06-15  Bruno Haible  <bruno@clisp.org>
1653         unictype/joininggroup-name: Fix warning on 64-bit mingw.
1654         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
1655         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
1656         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
1657         first.
1659 2020-06-06  Bruno Haible  <bruno@clisp.org>
1661         calloc-gnu tests: Avoid a test failure with clang.
1662         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
1663         'volatile', to defeat compiler optimizations.
1665 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1667         getloadavg: fix double-increment bug
1668         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
1669         Linux without glibc, Android, Cygwin.  This fixes a bug I
1670         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
1671         Problem and fix reported by Semen Verchenko in:
1672         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
1674         tempname: use getrandom, not getentropy
1675         This removes a dependency, as getentropy depends on getrandom.
1676         * lib/tempname.c: Include sys/random.h instead of unistd.h.
1677         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
1678         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
1680 2020-06-01  Bruno Haible  <bruno@clisp.org>
1682         doc: New chapter 'Multithreading'.
1683         * doc/multithread.texi: New file.
1684         * doc/gnulib.texi: Include it.
1686 2020-06-01  Bruno Haible  <bruno@clisp.org>
1688         doc: Move 'Running self-tests under valgrind' section.
1689         * doc/gnulib.texi (Build Infrastructure Modules): Include
1690         valgrind-tests.texi here...
1691         (Miscellaneous Notes): ... not here.
1693 2020-06-01  Bruno Haible  <bruno@clisp.org>
1695         doc: Move 'Visual Studio Compatibility' section.
1696         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
1697         here...
1698         (Build Infrastructure Modules): ... not here.
1700 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1702         doc: improve randomness discussion
1703         Inspired by comments from Jeffrey Walton in:
1704         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
1705         * doc/glibc-functions/getentropy.texi (getentropy):
1706         * doc/glibc-functions/getrandom.texi (getrandom):
1707         Improve discussion of problems with "random" data,
1708         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
1710 2020-06-01  Bruno Haible  <bruno@clisp.org>
1712         doc: Fix Texinfo syntax error.
1713         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
1715 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
1717         doc: Change '.' to '@.' where appropriate.
1718         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
1719         * doc/glibc-functions/fstatfs.texi: Likewise.
1720         * doc/glibc-functions/fts_children.texi: Likewise.
1721         * doc/glibc-functions/fts_read.texi: Likewise.
1722         * doc/glibc-functions/getdirentries.texi: Likewise.
1723         * doc/glibc-functions/mkostemp.texi: Likewise.
1724         * doc/glibc-functions/mkostemps.texi: Likewise.
1725         * doc/glibc-functions/mkstemps.texi: Likewise.
1726         * doc/glibc-functions/preadv.texi: Likewise.
1727         * doc/glibc-functions/pwritev.texi: Likewise.
1728         * doc/glibc-functions/sendfile.texi: Likewise.
1729         * doc/glibc-functions/statfs.texi: Likewise.
1730         * doc/gnulib-intro.texi: Likewise.
1731         * doc/gnulib-tool.texi: Likewise.
1732         * doc/intprops.texi: Likewise.
1733         * doc/lib-symbol-visibility.texi: Likewise.
1734         * doc/licenses-texi.texi: Likewise.
1735         * doc/pastposix-functions/bcmp.texi: Likewise.
1736         * doc/pastposix-functions/bcopy.texi: Likewise.
1737         * doc/pastposix-functions/bzero.texi: Likewise.
1738         * doc/pastposix-functions/ecvt.texi: Likewise.
1739         * doc/pastposix-functions/fcvt.texi: Likewise.
1740         * doc/pastposix-functions/ftime.texi: Likewise.
1741         * doc/pastposix-functions/gcvt.texi: Likewise.
1742         * doc/pastposix-functions/getwd.texi: Likewise.
1743         * doc/pastposix-functions/index.texi: Likewise.
1744         * doc/pastposix-functions/mktemp.texi: Likewise.
1745         * doc/pastposix-functions/rindex.texi: Likewise.
1746         * doc/pastposix-functions/wcswcs.texi: Likewise.
1747         * doc/posix-functions/aio_cancel.texi: Likewise.
1748         * doc/posix-functions/aio_error.texi: Likewise.
1749         * doc/posix-functions/aio_fsync.texi: Likewise.
1750         * doc/posix-functions/aio_read.texi: Likewise.
1751         * doc/posix-functions/aio_return.texi: Likewise.
1752         * doc/posix-functions/aio_suspend.texi: Likewise.
1753         * doc/posix-functions/aio_write.texi: Likewise.
1754         * doc/posix-functions/creat.texi: Likewise.
1755         * doc/posix-functions/ctime.texi: Likewise.
1756         * doc/posix-functions/daylight.texi: Likewise.
1757         * doc/posix-functions/fgetpos.texi: Likewise.
1758         * doc/posix-functions/fopen.texi: Likewise.
1759         * doc/posix-functions/freopen.texi: Likewise.
1760         * doc/posix-functions/fseeko.texi: Likewise.
1761         * doc/posix-functions/fsetpos.texi: Likewise.
1762         * doc/posix-functions/fstatat.texi: Likewise.
1763         * doc/posix-functions/fstatvfs.texi: Likewise.
1764         * doc/posix-functions/ftello.texi: Likewise.
1765         * doc/posix-functions/ftruncate.texi: Likewise.
1766         * doc/posix-functions/getrlimit.texi: Likewise.
1767         * doc/posix-functions/lio_listio.texi: Likewise.
1768         * doc/posix-functions/localtime.texi: Likewise.
1769         * doc/posix-functions/lseek.texi: Likewise.
1770         * doc/posix-functions/mkstemp.texi: Likewise.
1771         * doc/posix-functions/mktime.texi: Likewise.
1772         * doc/posix-functions/open.texi: Likewise.
1773         * doc/posix-functions/openat.texi: Likewise.
1774         * doc/posix-functions/opendir.texi: Likewise.
1775         * doc/posix-functions/pread.texi: Likewise.
1776         * doc/posix-functions/pwrite.texi: Likewise.
1777         * doc/posix-functions/readdir.texi: Likewise.
1778         * doc/posix-functions/readdir_r.texi: Likewise.
1779         * doc/posix-functions/scandir.texi: Likewise.
1780         * doc/posix-functions/seekdir.texi: Likewise.
1781         * doc/posix-functions/setrlimit.texi: Likewise.
1782         * doc/posix-functions/statvfs.texi: Likewise.
1783         * doc/posix-functions/strftime.texi: Likewise.
1784         * doc/posix-functions/telldir.texi: Likewise.
1785         * doc/posix-functions/timezone.texi: Likewise.
1786         * doc/posix-functions/tmpfile.texi: Likewise.
1787         * doc/posix-functions/truncate.texi: Likewise.
1788         * doc/posix-functions/tzname.texi: Likewise.
1789         * doc/posix-functions/wcsftime.texi: Likewise.
1790         * doc/windows-sockets.texi: Likewise.
1792 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1794         getrandom-tests: do not assume GRND_RANDOM yields short read
1795         * tests/test-getrandom.c (main): Omit assertion that
1796         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
1797         when b’s size is 100000.  This assertion fails with Linux kernel
1798         5.6.13, as that kernel ignores the GRND_RANDOM flag.
1799         The separate blocking pool is going away in the Linux kernel, and
1800         they’ve added a flag GRND_INSECURE instead; see:
1801         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
1802         The assertion was iffy anyway; what’s to prevent a kernel from
1803         lazily filling a large buffer with random bytes?
1805         read-file-test: pacify --enable-gcc-warnings
1806         * tests/test-read-file.c (test_read_file): Now static.
1808         tempname: merge from glibc and coreutils
1809         Also, merge in Gnulib’s more-recent methods of making it easier
1810         to share between Gnulib and glibc, and fix a few randomness
1811         glitches.
1812         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
1813         (__set_errno): Remove; libc-config.h does that for us.
1814         Do not include <sys/time.h>.
1815         (__secure_getenv) [_LIBC]: New macro.
1816         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
1817         (RANDOM_BITS): Rewrite.
1818         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
1819         (random_value): New typedef.
1820         (try_file, try_dir, try_nocreate): Move up.
1821         (gen_tempname_len, try_tempname_len): New functions.
1822         (gen_tempname_len): Use a constant array rather than a switch.
1823         (try_tempname_len): Don’t assume string length fits in int.
1824         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
1825         has enough entropy (it’s a bit short).
1826         (__gen_tempname): Rewrite in terms of gen_tempname_len.
1827         (__try_tempname): Rewrite in terms of try_tempname_len.
1828         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
1829         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
1830         Add getentropy, libc-config.
1832 2020-05-31  Bruno Haible  <bruno@clisp.org>
1834         getrandom, getentropy: Mention the crypto/gc-random module.
1835         Suggested by Simon Josefsson in
1836         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
1837         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
1838         crypto/gc-random module.
1839         * doc/glibc-functions/getentropy.texi: Likewise.
1841 2020-05-31  Bruno Haible  <bruno@clisp.org>
1843         getentropy: Enhance tests.
1844         * tests/test-getentropy.c (main): Add one more test.
1845         * tests/test-unistd-c++.cc: Check the signature of getentropy.
1847 2020-05-31  Bruno Haible  <bruno@clisp.org>
1849         getentropy: Work around a macOS and Solaris problem.
1850         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
1851         'getentropy' module.
1852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1853         UNISTD_H_HAVE_SYS_RANDOM_H.
1854         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
1855         UNISTD_H_HAVE_SYS_RANDOM_H.
1856         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
1857         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
1858         problem. List more platforms.
1860 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1862         fnmatch: merge from glibc
1863         Also, merge in Gnulib’s more-recent methods of making it easier
1864         to share between Gnulib and glibc.
1865         * lib/fnmatch.c: Reorder includes to match glibc better.
1866         Include libc-config.h instead of config.h.
1867         Include alloca.h only if _LIBC || HAVE_ALLOCA.
1868         Do not include "../locale/elem-hash.h" if _LIBC.
1869         Define macros for btowc, etc. if _LIBC.  All uses simplified.
1870         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
1871         Include intprops.h, since glibc has it now.
1872         (SIZE_MAX): Remove; use (size_t) -1 instead.
1873         Omit the "Comment out all this code" ifdef, since Gnulib
1874         has never really needed it.
1875         (STREQ): Remove; no longer used.
1876         (__libc_use_alloca, alloca, alloca_account): Define as
1877         needed if !_LIBC.
1878         (ISWCTYPE): Remove; all uses replaced by iswctype.
1879         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
1880         (internal_function): Remove.  All uses removed.
1881         (STRUCT): New macro.
1882         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
1883         (WMEMCMP): New macro.
1884         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
1885         and <locale/weightwc.h>.
1886         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
1887         __builtin_expect.  Check for integer overflow more
1888         systematically.  Account for alloca storage better when
1889         recursive.  Use strnlen instead of strlen for efficiency.
1890         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
1891         (struct STRUCT): New type.
1892         (FCT, EXT): New ENDS and ALLOCA_USED args.
1893         All callers changed.
1894         (FCT): Prefer __glibc_unlikely to __builtin_expect.
1895         Simplify by assuming WIDE_CHAR_SUPPORT.
1896         Copy _LIBC code from glibc without worrying Gnulib compatibility.
1897         Cast cold to UCHAR to avoid signedness warning.
1898         (END): Check for invalid pattern.
1899         (EXT): Improve alloca/malloc checking (taken from glibc),
1900         and improve it some more by using intprops.h and checking
1901         for integer overflow and using bool for booleans.
1902         * lib/libc-config.h (compat_symbol): New macro.
1903         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
1904         acceptable to non-GCC when a trailing semicolon is added.
1905         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
1906         libc-config, strnlen.  Remove alloca.
1908 2020-05-31  Bruno Haible  <bruno@clisp.org>
1910         getrandom: Doc and test tweaks.
1911         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
1912         it sets errno when failing.
1913         * tests/test-getrandom.c (main): Disable the high-quality check on those
1914         platforms on which it fails.
1915         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
1916         Cygwin to the list of platforms that don't have the function. Add a note
1917         about the quality of the result.
1918         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
1919         declaration; this is fixed by module 'getrandom'.
1921 2020-05-31  Bruno Haible  <bruno@clisp.org>
1923         getrandom: Add support for native Windows.
1924         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
1925         <wincrypt.h>.
1926         (CRYPT_VERIFY_CONTEXT): New macro.
1927         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
1928         'A'.
1929         (GetProcAddress): New macro.
1930         (BCryptGenRandomFuncType): New type.
1931         (BCryptGenRandomFunc, initialized): New variables.
1932         (initialize): New function.
1933         (getrandom): On native Windows, use <bcrypt.h> API when available, and
1934         <wincrypt.h> API as fallback.
1935         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
1936         * modules/getrandom (Link): New section.
1937         * modules/getentropy (Link): Likewise.
1938         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
1939         $(LIB_GETRANDOM).
1940         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
1941         $(LIB_GETRANDOM).
1942         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
1943         against $(LIB_GETRANDOM).
1944         * doc/glibc-functions/getrandom.texi: Mention the native Windows
1945         support.
1947 2020-05-31  Bruno Haible  <bruno@clisp.org>
1949         getrandom: Simplify the determination of the random number devices.
1950         Suggested by Paul Eggert in
1951         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
1952         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
1953         macros.
1954         * modules/getrandom (Depends-on): Remove crypto/gc-random.
1956 2020-05-31  Bruno Haible  <bruno@clisp.org>
1958         crypto/gc-random: Fix list of crypto devices for Solaris.
1959         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
1961 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
1963         list: fix GCC warnings
1964         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
1965         (gl_tree_next_node, gl_tree_node_nx_set_value)
1966         (gl_tree_previous_node, gl_tree_next_node):
1967         Mark unused arguments.
1968         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1969         * lib/gl_anylinked_list2.h (gl_linked_node_value)
1970         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
1972         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
1973         the same variable name in nested scopes.
1975 2020-05-31  Bruno Haible  <bruno@clisp.org>
1977         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
1978         Reported by Akim Demaille in
1979         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
1980         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
1981         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
1982         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
1983         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
1984         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
1986 2020-05-30  Bruno Haible  <bruno@clisp.org>
1988         wmemchr: Relicense under LGPLv2+.
1989         * modules/wmemchr (License): Set to LGPLv2+.
1991 2020-05-30  Bruno Haible  <bruno@clisp.org>
1993         wmempcpy: New module.
1994         Reported by Paul Eggert in
1995         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
1996         * lib/wchar.in.h (wmempcpy): New declaration.
1997         * lib/wmempcpy.c: New file.
1998         * m4/wmempcpy.m4: New file.
1999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2001         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2002         HAVE_WMEMPCPY.
2003         * modules/wmempcpy: New file.
2004         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2005         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2006         * modules/mempcpy (Description): Fix typo.
2008 2020-05-30  Bruno Haible  <bruno@clisp.org>
2010         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2011         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2013 2020-05-30  Bruno Haible  <bruno@clisp.org>
2015         sys_random: Work around macOS bug.
2016         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2017         <stdlib.h> before <sys/random.h>.
2018         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2019         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2020         first.
2021         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2023 2020-05-30  Bruno Haible  <bruno@clisp.org>
2025         getrandom: Override incompatible system function on Solaris 11.
2026         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2027         * lib/getrandom.c (getrandom): When the system has getrandom, just
2028         invoke it.
2029         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2030         system's getrandom function's prototype is not the expected one.
2031         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2032         REPLACE_GETRANDOM.
2033         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2034         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2035         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2036         EAGAIN.
2037         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2038         Solaris problem.
2040 2020-05-30  Bruno Haible  <bruno@clisp.org>
2042         sys_random: Add C++ tests.
2043         * tests/test-sys_random-c++.cc: New file.
2044         * modules/sys_random-c++-tests: New file.
2045         * modules/sys_random-tests (Depends-on): Depend on it.
2047         sys_random: Add tests.
2048         * tests/test-sys_random.c: New file.
2049         * modules/sys_random-tests: New file.
2051         sys_random: New module.
2052         * lib/sys_random.in.h: Use the common idioms for overridable header
2053         files.
2054         * m4/sys_random_h.m4: New file.
2055         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2056         * modules/sys_random: New file.
2057         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2058         (Depends-on): Add sys_random.
2059         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2060         gl_UNISTD_MODULE_INDICATOR.
2061         (Makefile.am): Don't generate sys/random.h here.
2062         * doc/glibc-headers/sys_random.texi: New file.
2063         * doc/gnulib.texi: Include it.
2065 2020-05-30  Bruno Haible  <bruno@clisp.org>
2067         unistd: Remove conflicting declaration of getrandom().
2068         * lib/unistd.in.h (getrandom): Remove declaration.
2069         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2070         declared.
2071         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2072         HAVE_GETRANDOM.
2073         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2074         HAVE_GETRANDOM.
2076 2020-05-30  Bruno Haible  <bruno@clisp.org>
2078         getrandom: Add tests.
2079         * tests/test-getrandom.c: New file.
2080         * modules/getrandom-tests: New file.
2082 2020-05-30  Bruno Haible  <bruno@clisp.org>
2084         crypto/gc-random: Fix link error on MSVC.
2085         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2086         * modules/crypto/gc-random (Link): New section.
2087         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2088         $(LIB_GC_RANDOM).
2090 2020-05-30  Bruno Haible  <bruno@clisp.org>
2092         Don't assume that UNICODE is not defined.
2093         Many Windows API functions are defined differently (redirecting to a
2094         function with suffix 'W') if the application defines the macro UNICODE
2095         than by default (redirecting to a function with suffix 'A').
2096         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2097         variant with suffix 'A'.
2098         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2099         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2100         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2101         * lib/getlogin.c (GetUserName): Likewise.
2102         * lib/getlogin_r.c (GetUserName): Likewise.
2103         * lib/gettimeofday.c (LoadLibrary): Likewise.
2104         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2105         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2106         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2107         * lib/mountlist.c (GetDriveType): Likewise.
2108         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2109         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2110         Likewise.
2111         * lib/physmem.c (GetModuleHandle): Likewise.
2112         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2113         PeekMessage, DispatchMessage): Likewise.
2114         * lib/progreloc.c (GetModuleFileName): Likewise.
2115         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2116         * lib/read.c (GetNamedPipeHandleState): Likewise.
2117         * lib/readdir.c (FindNextFile): Likewise.
2118         * lib/relocatable.c (GetModuleFileName): Likewise.
2119         * lib/rename.c (MoveFileEx): Likewise.
2120         * lib/rewinddir.c (FindFirstFile): Likewise.
2121         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2122         PeekMessage, DispatchMessage): Likewise.
2123         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2124         * lib/socket.c (WSASocket): Likewise.
2125         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2126         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2127         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2128         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2129         * lib/tmpdir.c (GetTempPath): Likewise.
2130         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2131         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2132         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2133         * lib/windows-cond.c (CreateEvent): Likewise.
2134         * lib/windows-rwlock.c (CreateEvent): Likewise.
2135         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2136         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2137         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2138         * lib/write.c (GetNamedPipeHandleState): Likewise.
2140 2020-05-30  Bruno Haible  <bruno@clisp.org>
2142         physmem: Fix compilation errors on MSVC.
2143         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2144         * modules/physmem (Depends-on): Add unistd.
2146 2020-05-29  Bruno Haible  <bruno@clisp.org>
2148         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2149         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2150         LDADD a second time, after the second occurrence of libtests.a.
2151         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2153 2020-05-29  Bruno Haible  <bruno@clisp.org>
2155         fnmatch: Rely on more gnulib modules.
2156         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2157         wmempcpy, mempcpy.
2158         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2159         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2160         HAVE_MEMPCPY are all 1.
2161         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2162         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2164 2020-05-29  Bruno Haible  <bruno@clisp.org>
2166         Avoid dynamic lookup of Windows API functions when possible.
2167         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2168         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2169         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2170         (use_win32_p): Define differently.
2171         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2172         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2173         for Windows XP or higher.
2175 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2177         read-file: disable buffering if RF_SENSITIVE is set
2178         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2179         Suggested by Glenn Strauss.
2180         (fread_file): Suggest calling setvbuf before calling this
2181         function.  Suggested by Bruno Haible.
2183 2020-05-29  Bruno Haible  <bruno@clisp.org>
2185         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2186         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2187         program.
2188         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2189         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2190         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2191         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2193 2020-05-29  Bruno Haible  <bruno@clisp.org>
2195         Fix compilation error on native Windows (regression from 2020-05-28).
2196         Reported by Daiki Ueno.
2197         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2198         macro when not using dynamic loading.
2199         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2200         QueryFullProcessImageNameFunc): Likewise.
2201         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2202         GetFinalPathNameByHandleFunc): Likewise.
2204 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2206         fopen-gnu-tests: fix "\x" escape usage
2207         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2209 2020-05-28  Bruno Haible  <bruno@clisp.org>
2211         Avoid dynamic loading of Windows API functions when possible.
2212         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2213         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2214         * lib/gettimeofday.c (GetProcAddress,
2215         GetSystemTimePreciseAsFileTimeFuncType,
2216         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2217         define in a build for Windows 8 or higher.
2218         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2219         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2220         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2221         in a build for Windows Vista or higher.
2222         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2223         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2224         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2226 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2228         explicit_bzero-tests: improve -Wmissing-declarations pacification
2229         * tests/test-explicit_bzero.c: Now noinline.
2230         Suggested by Bruno Haible in:
2231         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2233 2020-05-28  Bruno Haible  <bruno@clisp.org>
2235         Fix build errors due to read-file changes (regression from 2020-05-27).
2236         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2237         invocation.
2238         * tests/test-sameacls.c (main): Likewise.
2239         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2240         read_binary_file.
2241         * tests/test-pipe-filter-ii1.c (main): Likewise.
2243 2020-05-28  Bruno Haible  <bruno@clisp.org>
2245         fts: Make more robust in multithreaded applications.
2246         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2247         * modules/fts (Depends-on): Add 'open'.
2249 2020-05-28  Bruno Haible  <bruno@clisp.org>
2251         relocatable-prog: Make more robust in multithreaded applications.
2252         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2253         relocatable-prog-wrapper.
2254         (find_executable): Pass an O_CLOEXEC flag to open().
2255         * modules/relocatable-prog (Depends-on): Add 'open'.
2257 2020-05-28  Bruno Haible  <bruno@clisp.org>
2259         getloadavg: Make more robust in multithreaded applications.
2260         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2261         Simplify use of O_CLOEXEC.
2262         * modules/getloadavg (Depends-on): Add 'open'.
2264 2020-05-28  Bruno Haible  <bruno@clisp.org>
2266         vma-iter: Make more robust in multithreaded applications.
2267         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2268         open().
2269         * modules/vma-iter (Depends-on): Add 'open'.
2271 2020-05-28  Bruno Haible  <bruno@clisp.org>
2273         truncate: Make more robust in multithreaded applications.
2274         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2276 2020-05-28  Bruno Haible  <bruno@clisp.org>
2278         pagealign_alloc: Make more robust in multithreaded applications.
2279         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2280         open().
2281         * modules/pagealign_alloc (Depends-on): Add 'open'.
2283 2020-05-28  Bruno Haible  <bruno@clisp.org>
2285         openat: Make more robust in multithreaded applications.
2286         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2288 2020-05-28  Bruno Haible  <bruno@clisp.org>
2290         at-internal: Make more robust in multithreaded applications.
2291         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2292         open().
2294 2020-05-28  Bruno Haible  <bruno@clisp.org>
2296         mountlist: Make more robust in multithreaded applications.
2297         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2298         open().
2299         * modules/mountlist (Depends-on): Add 'open'.
2301 2020-05-28  Bruno Haible  <bruno@clisp.org>
2303         login_tty: Make more robust in multithreaded applications.
2304         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2305         * modules/login_tty (Depends-on): Add 'open'.
2307 2020-05-28  Bruno Haible  <bruno@clisp.org>
2309         javacomp: Make more robust in multithreaded applications.
2310         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2311         open().
2312         * modules/javacomp (Depends-on): Add 'open'.
2314 2020-05-28  Bruno Haible  <bruno@clisp.org>
2316         getprogname: Make more robust in multithreaded applications.
2317         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2318         * modules/getprogname (Depends-on): Add 'open'.
2320 2020-05-28  Bruno Haible  <bruno@clisp.org>
2322         get_progname_of: Make more robust in multithreaded applications.
2323         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2324         open().
2325         * modules/get_progname_of (Depends-on): Add 'open'.
2327 2020-05-28  Bruno Haible  <bruno@clisp.org>
2329         get_ppid_of: Make more robust in multithreaded applications.
2330         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2331         * modules/get_ppid_of (Depends-on): Add 'open'.
2333 2020-05-28  Bruno Haible  <bruno@clisp.org>
2335         get-rusage-as: Make more robust in multithreaded applications.
2336         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2337         flag to open().
2338         * modules/get-rusage-as (Depends-on): Add 'open'.
2340 2020-05-28  Bruno Haible  <bruno@clisp.org>
2342         crypto/gc: Make more robust in multithreaded applications.
2343         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2344         * modules/crypto/gc (Depends-on): Add 'open'.
2346 2020-05-28  Bruno Haible  <bruno@clisp.org>
2348         copy-file: Make more robust in multithreaded applications.
2349         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2350         open().
2352 2020-05-28  Bruno Haible  <bruno@clisp.org>
2354         chown: Make more robust in multithreaded applications.
2355         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2357 2020-05-28  Bruno Haible  <bruno@clisp.org>
2359         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2360         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2362 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2364         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2365         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2366         specified on Windows.
2367         * tests/test-fopen-gnu.c (DATA): New define.
2368         (main): Add test for reading binary files with an 'e' flag.
2370 2020-05-27  Bruno Haible  <bruno@clisp.org>
2372         Don't assume that UNICODE is not defined.
2373         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2374         differently if the application defines the macro UNICODE.
2375         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2376         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2377         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2378         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2379         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2381 2020-05-27  Bruno Haible  <bruno@clisp.org>
2383         Improve pattern for defining _WIN32_WINNT.
2384         Newer versions of the Windows API may not only add, but also remove API
2385         functions. Therefore, when the user is e.g. building for Windows 10, we
2386         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2387         use of APIs that were present in Windows 8 but removed in Windows 10.
2388         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2389         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2390         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2391         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2392         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2394 2020-05-27  Bruno Haible  <bruno@clisp.org>
2396         javacomp: Make more robust in multithreaded applications.
2397         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2398         * modules/javacomp (Depends-on): Add fopen-gnu.
2400 2020-05-27  Bruno Haible  <bruno@clisp.org>
2402         mountlist: Make more robust in multithreaded applications.
2403         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2404         to fopen.
2405         * modules/mountlist (Depends-on): Add fopen-gnu.
2407 2020-05-27  Bruno Haible  <bruno@clisp.org>
2409         sethostname: Make more robust in multithreaded applications.
2410         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2411         * modules/sethostname (Depends-on): Add fopen-gnu.
2413 2020-05-27  Bruno Haible  <bruno@clisp.org>
2415         readutmp: Make more robust in multithreaded applications.
2416         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2417         * modules/readutmp (Depends-on): Add fopen-gnu.
2419 2020-05-27  Bruno Haible  <bruno@clisp.org>
2421         getpass: Make more robust in multithreaded applications.
2422         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2423         * modules/getpass (Depends-on): Add fopen-gnu.
2425 2020-05-27  Bruno Haible  <bruno@clisp.org>
2427         getloadavg: Make more robust in multithreaded applications.
2428         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2429         * modules/getloadavg (Depends-on): Add fopen-gnu.
2431 2020-05-27  Bruno Haible  <bruno@clisp.org>
2433         exclude: Make more robust in multithreaded applications.
2434         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2435         * modules/exclude (Depends-on): Add fopen-gnu.
2437 2020-05-27  Bruno Haible  <bruno@clisp.org>
2439         bitset: Make more robust in multithreaded applications.
2440         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2441         'e' flag to fopen.
2442         * modules/bitset (Depends-on): Add fopen-gnu.
2444 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2446         read-file: add RF_SENSITIVE flag
2447         * lib/read-file.h (RF_SENSITIVE): New define.
2448         * lib/read-file.c (fread_file, read_file): Take into account of
2449         RF_SENSITIVE flag.
2450         * modules/read-file (Depends-on): Add explicit_bzero.
2451         This adds an alternative behavior of those functions to explicitly
2452         clear the internal memory block when it becomes unused.  This is
2453         useful for reading sensitive information from a file.
2455 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2457         read-file: add flags to modify reading behavior
2458         * lib/read-file.h (RF_BINARY): New define.
2459         (fread_file, read_file): Take FLAGS argument.
2460         (read_binary_file): Remove.
2461         * lib/read-file.c (internal_read_file): Merge into ...
2462         (read_file): ... here.
2463         * modules/read-file-tests (Files): Add "tests/macros.h".
2464         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2465         * NEWS: Mention this change.
2467 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2469         doc/gnulib-intro.texi: add missing "to" in sentence
2470         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2472         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2474 2020-05-26  Bruno Haible  <bruno@clisp.org>
2476         count-one-bits: Fix MSVC specific code.
2477         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2478         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2479         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2480         using GCC.
2481         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2482         (__popcnt64): In 32-bit mode, define as an inline function.
2483         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2485 2020-05-26  Bruno Haible  <bruno@clisp.org>
2487         argz: Avoid name clashes through argz.h.
2488         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2490         * lib/argz.h: Don't use __ prefixed identifiers.
2491         (const): Remove definition.
2492         (argz_next): Remove inline definitions.
2494 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2496         read-file: make use of fopen-gnu
2497         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2498         (read_binary_file): Likewise.
2499         * modules/read-file (Depends-on): Add fopen-gnu.
2501 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2503         getentropy, getrandom: new modules
2504         * MODULES.html.sh (func_all_modules):
2505         * lib/unistd.in.h (getentropy, getrandom):
2506         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2507         * modules/unistd (unistd.h):
2508         Add support for getentropy, getrandom.
2509         * doc/glibc-functions/getentropy.texi (getentropy):
2510         * doc/glibc-functions/getrandom.texi (getrandom):
2511         These are now fixed on some platforms.
2512         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2513         * m4/getentropy.m4, m4/getrandom.m4:
2514         * modules/getentropy, modules/getentropy-tests:
2515         * modules/getrandom, modules/getrandom-tests:
2516         * tests/test-getentropy.c, tests/test-getrandom.c:
2517         New files.
2519 2020-05-25  Bruno Haible  <bruno@clisp.org>
2521         Add missing C99 dependencies.
2522         Reported by Paul Smith <psmith@gnu.org> in
2523         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2524         * modules/assert (Depends-on): Add c99.
2525         * modules/filenamecat-lgpl (Depends-on): Likewise.
2526         * modules/libc-config (Depends-on): Likewise.
2527         * modules/mktime (Depends-on): Likewise.
2528         * modules/random_r (Depends-on): Likewise.
2529         * modules/regex (Depends-on): Likewise.
2530         * modules/scratch_buffer (Depends-on): Likewise.
2531         * modules/timespec-add (Depends-on): Likewise.
2532         * modules/timespec-sub (Depends-on): Likewise.
2533         * modules/verify (Depends-on): Likewise.
2535 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2537         explicit_bzero-tests: pacify -Wmissing-declarations
2538         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2539         Now static.
2541 2020-05-24  Bruno Haible  <bruno@clisp.org>
2543         fopen-gnu: Add tests.
2544         * tests/test-fopen-gnu.c: New file.
2545         * modules/fopen-gnu-tests: New file.
2547         fopen-gnu: New module.
2548         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2549         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2550         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2551         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2552         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2553         * modules/fopen-gnu: New file.
2554         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2556 2020-05-24  Bruno Haible  <bruno@clisp.org>
2558         open, openat: Really support O_CLOEXEC.
2559         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2560         O_CLOEXEC flag to orig_open.
2561         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2562         pass a O_CLOEXEC flag to orig_openat.
2563         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2564         * modules/open-tests (Depends-on): Add fcntl.
2565         * modules/openat-tests (Depends-on): Likewise.
2566         * modules/fcntl-safer-tests (Depends-on): Likewise.
2568 2020-05-24  Bruno Haible  <bruno@clisp.org>
2570         fopen: Fix the trailing slash workaround.
2571         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2572         write access. Pass the right flags to open().
2573         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2575 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2577         assure: new macro ‘affirm’
2578         * lib/assure.h: Include verify.h.
2579         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2580         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2581         and commentary by Bruno Haible in:
2582         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2583         * modules/assure (Depends-on:): Add verify.
2585 2020-05-23  Bruno Haible  <bruno@clisp.org>
2587         calloc-gnu: Make test work in non-flat address spaces.
2588         Uses code by Paul Eggert.
2589         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
2590         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
2592 2020-05-23  Bruno Haible  <bruno@clisp.org>
2594         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
2595         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
2596         AC_RUN_IFELSE invocations.
2598 2020-05-23  Bruno Haible  <bruno@clisp.org>
2600         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
2601         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
2602         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
2603         don't have it.
2604         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2605         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
2606         don't have it.
2607         * lib/isnanf-nolibm.h (__has_builtin): New macro.
2608         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2609         it.
2610         * lib/isnanl-nolibm.h (__has_builtin): New macro.
2611         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2612         it.
2613         * lib/math.in.h (__has_builtin): New macro.
2614         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2615         it.
2616         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2617         it.
2618         (isnan): Don't use the builtins on clang versions that don't have
2619         __builtin_isnanf and __builtin_isnanl.
2621 2020-05-23  Bruno Haible  <bruno@clisp.org>
2623         calloc-gnu: Avoid wrong configure results with clang.
2624         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
2625         'volatile', to defeat compiler optimizations.
2627 2020-05-23  Bruno Haible  <bruno@clisp.org>
2629         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
2630         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
2631         'long double' values by reference, with values taken from a statically
2632         allocated array.
2634 2020-05-23  Bruno Haible  <bruno@clisp.org>
2636         findprog-in: Ignore directories.
2637         Reported by Frederick Eaton via Dmitry Goncharov in
2638         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2639         * lib/findprog-in.c (find_in_given_path): When the file found is a
2640         directory, set errno to EACCES and, during a PATH search, continue
2641         searching.
2642         * modules/findprog-in (Depends-on): Add sys_stat, stat.
2644 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2646         verify: document ‘assume’ better
2647         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
2649 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
2651         gendocs: Clarify licenses for templates.
2652         * doc/gendocs_template: Add a GNU All-Permissive license notice
2653         and bump Parent-Version.
2654         * doc/gendocs_template_min: Add a GNU All-Permissive license
2655         notice and copy the explanatory comment about the license notice
2656         at the bottom from gendocs_template.
2658 2020-05-21  Bruno Haible  <bruno@clisp.org>
2660         group-member: Relicense under LGPLv2+.
2661         Jim Meyering's approval is in
2662         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
2663         Paul Eggert's approval is in
2664         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
2665         Eric Blake's approval is in
2666         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
2667         * modules/group-member (License): Change to LGPLv2+.
2669 2020-05-21  Bruno Haible  <bruno@clisp.org>
2671         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
2672         Reported by Tim Rühsen in
2673         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2674         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
2676 2020-05-21  Bruno Haible  <bruno@clisp.org>
2678         regex: Avoid wrong configure results with "clang -fsanitize=leak".
2679         Reported by Tim Rühsen in
2680         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2681         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
2682         before returning with status 0.
2684 2020-05-21  Bruno Haible  <bruno@clisp.org>
2686         glob: Avoid wrong configure results with "clang -fsanitize=leak".
2687         Reported by Tim Rühsen in
2688         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2689         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
2691 2020-05-21  Bruno Haible  <bruno@clisp.org>
2693         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
2694         Reported by Tim Rühsen in
2695         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2696         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
2697         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
2698         respectively.
2700 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
2702         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
2703         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
2705 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2707         ftoastr: fix ifndef typo
2708         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
2710 2020-05-19  Bruno Haible  <bruno@clisp.org>
2712         havelib: Tweak documentation.
2713         * doc/havelib.texi (Searching for Libraries): Fix typo.
2715 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2717         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
2718         This was needed earlier because modules had to import the main script,
2719         but that is no longer true.  Rename the script so that it is
2720         consistent with all other scripts in gnulib and uses hyphens.
2721         * build-aux/vcs_to_changelog.py: Rename to...
2722         * build-aux/vcs-to-changelog.py: ... this.
2723         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
2724         * modules/vcs-to-changelog: Likewise.
2726 2020-05-17  Bruno Haible  <bruno@clisp.org>
2728         Clarify intended usage of the license file modules.
2729         Reported by Asher Gordon <AsDaGo@posteo.net> in
2730         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
2731         * doc/licenses-texi.texi (License Texinfo sources): Mention the
2732         GNU AGPL. Explain the intended usage of the modules.
2733         * modules/fdl (Notice): Discourage use as a module.
2734         * modules/fdl-1.3 (Notice): Likewise.
2736 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
2738         hash: add hash_xinsert
2739         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
2741 2020-05-16  Bruno Haible  <bruno@clisp.org>
2743         findprog-lgpl: Fix link error (existing since 2008-09-02).
2744         * modules/findprog-lgpl (Makefile.am): Arrange to compile
2745         findprog-lgpl.c, not findprog.c.
2746         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
2747         XNMALLOC.
2749 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
2751         c-stack: pacify -Wunused-result when DEBUG
2752         Problem reported by Marc Nieper-Wißkirchen in:
2753         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
2754         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2755         Explicitly ignore write failures.
2757 2020-05-13  Jim Meyering  <meyering@fb.com>
2759         announce-gen: improve a comment
2760         * build-aux/announce-gen: Improve comment.
2762 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
2764         xalloc: pacify -Wanalyzer-possible-null-argument
2765         Problem reported for GCC 10.1.0 by Bruno Haible in:
2766         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
2767         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
2768         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
2769         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
2771 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2773         careadlinkat: fix GCC 10 workaround
2774         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2775         Massage the code so that it’s closer to what it was before
2776         the GCC 10.1.0 workaround was introduced.  This fixes
2777         a loop when !buffer and the bug workaround is in effect.
2778         Remove unnecessary casts.  Defend in a different way
2779         against (buffer && !buffer_size), by adding at least 1
2780         to buf_size each time through the loop.
2782 2020-05-10  Bruno Haible  <bruno@clisp.org>
2784         doc: Mark HP-UX as unsupported.
2785         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
2787 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2789         careadlinkat: limit GCC workaround
2790         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
2791         10.1.0 and later, since the workaround is pretty bad and the GCC
2792         bug should get fixed.
2794 2020-05-10  Bruno Haible  <bruno@clisp.org>
2796         havelib: Enhance documentation.
2797         * doc/havelib.texi (Searching for Libraries): Mention the bad
2798         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
2800 2020-05-10  Bruno Haible  <bruno@clisp.org>
2802         attribute: Clarify list of attributes.
2803         * lib/attribute.h: Reorder the list of attributes, and group them by
2804         purpose.
2806 2020-05-10  Bruno Haible  <bruno@clisp.org>
2808         string: Fix compilation error in C++ mode.
2809         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
2810         _GL_WARN_ON_USE.
2811         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
2812         instead of _GL_WARN_ON_USE.
2814 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
2816         announce-gen: add support for dist-lzip
2817         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
2819 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2821         manywarnings: port to GCC 10.1
2822         * build-aux/gcc-warning.spec:
2823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
2824         Add GCC 10.1.0 warnings.
2826         careadlinkat: pacify -Wreturn-local-addr
2827         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2828         Pacify gcc 10’s -Wreturn-local-addr option.
2829         Simplify some of the later code.
2831 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2833         attribute: remove ATTRIBUTE_DEPRECATED
2834         * lib/attribute.h: Improve recently-added comments, mostly
2835         by shortening them (use active voice, etc.).
2836         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
2837         Problem reported by Bruno Haible in:
2838         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
2840 2020-05-09  Bruno Haible  <bruno@clisp.org>
2842         attribute: Add comments.
2843         * lib/attribute.h: Document each macro.
2845 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
2847         bitset: use the attribute module
2848         * modules/bitset: Depend on 'attribute'.
2849         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
2850         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
2851         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
2852         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
2854 2020-05-09  Bruno Haible  <bruno@clisp.org>
2856         c-stack: Fix warning when DEBUG is enabled.
2857         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
2858         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
2859         * lib/c-stack.c: Include <stdio.h>.
2861 2020-05-09  Bruno Haible  <bruno@clisp.org>
2863         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
2864         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
2865         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2866         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2867         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2868         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2869         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2870         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2871         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2872         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
2873         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2874         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2875         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2877 2020-05-09  Bruno Haible  <bruno@clisp.org>
2879         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
2880         Reported by Akim Demaille in
2881         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
2882         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
2883         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
2884         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
2886 2020-05-09  Bruno Haible  <bruno@clisp.org>
2888         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
2889         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
2890         that usually comes from m4/gnulib-common.m4.
2891         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
2893 2020-05-09  Bruno Haible  <bruno@clisp.org>
2895         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
2896         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
2897         that usually comes from m4/gnulib-common.m4.
2898         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2899         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2900         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
2902 2020-05-09  Bruno Haible  <bruno@clisp.org>
2904         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
2905         * lib/uchar.in.h (char16_t): Define as macro if
2906         GNULIB_OVERRIDES_CHAR16_T.
2907         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
2908         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
2909         (gl_UCHAR_H): Invoke them.
2910         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
2911         GNULIB_OVERRIDES_CHAR32_T.
2912         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
2913         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
2914         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
2915         GNULIB_OVERRIDES_CHAR32_T.
2917 2020-05-09  Bruno Haible  <bruno@clisp.org>
2919         Macro tweaks.
2920         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
2921         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
2923 2020-05-08  Bruno Haible  <bruno@clisp.org>
2925         c32rtomb: Avoid compilation failure on Haiku.
2926         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
2927         inline definitions.
2928         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
2930 2020-05-08  Bruno Haible  <bruno@clisp.org>
2932         mbrtoc32: Avoid compilation failure on Haiku.
2933         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
2934         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
2935         AC_CHECK_FUNCS_ONCE.
2936         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
2938 2020-05-08  Bruno Haible  <bruno@clisp.org>
2940         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
2941         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
2943 2020-05-08  Bruno Haible  <bruno@clisp.org>
2945         list: Update documentation.
2946         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
2947         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
2948         * doc/containers.texi (Container data types): Document the new list
2949         operations and their complexity.
2951 2020-05-08  Bruno Haible  <bruno@clisp.org>
2953         ignore-value tests: Use module 'attribute'.
2954         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
2955         * tests/test-ignore-value.c: Include attribute.h.
2956         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
2957         * modules/ignore-value-tests (Depends-on): Add attribute.
2959 2020-05-08  Bruno Haible  <bruno@clisp.org>
2961         uniname/uniname: Use module 'attribute'.
2962         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
2963         * lib/uniname/uninames.h: Regenerated.
2964         * lib/uniname/uniname.c: Include attribute.h.
2965         * modules/uniname/uniname (Depends-on): Add attribute.
2967 2020-05-08  Bruno Haible  <bruno@clisp.org>
2969         c32rtomb: Use module 'attribute'.
2970         * lib/c32rtomb.c: Include attribute.h.
2971         (FALLTHROUGH): Remove macro.
2972         * modules/c32rtomb (Depends-on): Add attribute.
2974 2020-05-08  Bruno Haible  <bruno@clisp.org>
2976         xsize: Use module 'attribute'.
2977         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
2978         * modules/xsize (Depends-on): Add attribute.
2980 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2982         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
2984         * lib/attribute.h: Minor style fixes.
2986         Fix version-etc glitch on OpenIndiana
2987         Problem reported by Mats Erik Andersson in:
2988         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
2989         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
2990         that now clashes with gnulib-common.h.  All uses changed.
2992 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2994         attribute: new module
2995         This simplifies use of GCC and C2X attributes like ‘deprecated’.
2996         * MODULES.html.sh: Add attribute.
2997         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
2998         * doc/gnulib.texi (Particular Modules): Add Attributes.
2999         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3000         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3001         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3002         * lib/vasnprintf.c:
3003         Include attribute.h, and let it define FALLTHROUGH.
3004         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3005         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3006         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3007         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3008         This is a copy since Gawk doesn’t use Gnulib.
3009         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3010         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3011         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3012         Keep the existing FALLTHROUGH definition since Glibc might use it,
3013         and it does no harm to Gnulib’s FALLTHROUGH.
3014         * lib/fts_.h, lib/inttostr.h:
3015         (__GNUC_PREREQ): Remove; no longer needed.
3016         (__attribute_warn_unused_result__): Remove.  All uses
3017         replaced by _GL_ATTRIBUTE_NODISCARD.
3018         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3019         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3020         __attribute__ ((__warn_unused_result__)), for forward
3021         compatibility to C2X.
3022         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3023         _GL_ATTRIBUTE_NODISCARD.
3024         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3025         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3026         replaced by gl_COMMON_BODY’s implementation, which has a
3027         slightly different signature.
3028         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3029         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3030         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3031         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3032         No doubt all uses should be replaced, at some point.
3033         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3034         (_Noreturn): Use it.
3035         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3036         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3037         (_GL_ATTRIBUTE_COLD)
3038         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3039         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3040         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3041         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3042         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3043         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3044         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3045         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3046         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3047         (_GL_ATTRIBUTE_SENTINEL): New macros.
3048         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3049         * modules/fnmatch, modules/freopen-safer, modules/fts:
3050         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3051         * modules/quotearg, modules/savewd:
3052         * modules/unistdio/u16-u16-vasnprintf:
3053         * modules/unistdio/u16-vasnprintf:
3054         * modules/unistdio/u32-u32-vasnprintf:
3055         * modules/unistdio/u32-vasnprintf:
3056         * modules/unistdio/u8-u8-vasnprintf:
3057         * modules/unistdio/u8-vasnprintf:
3058         * modules/unistdio/ulc-vasnprintf:
3059         * modules/unistr/u8-uctomb, modules/vasnprintf:
3060         (Depends-on:): Add attribute module.
3062 2020-05-03  Bruno Haible  <bruno@clisp.org>
3064         bison: Fix today's commit.
3065         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3067 2020-05-03  Bruno Haible  <bruno@clisp.org>
3069         list-c++: Add get_first, get_last, set_first, set_last operations.
3070         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3071         set_first, set_last.
3072         * lib/gl_list.h: Tweak comments.
3074 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3076         bison: rely on bison's %require to check a version requirement
3077         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3078         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3079         enough of not.
3080         So far it is the only know Yacc tool that supports '%require'.
3081         Other yaccs will actually even choke on seeing the -o option after the
3082         input file name.
3083         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3085 2020-05-02  Bruno Haible  <bruno@clisp.org>
3087         list: Add get_first, get_last, set_first, set_last operations.
3088         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3089         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3090         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3092 2020-05-02  Bruno Haible  <bruno@clisp.org>
3094         list: Remove redundant code for remove_first and remove_last operations.
3095         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3096         remove_first, remove_last.
3097         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3098         * lib/gl_array_list.c: Revert last change.
3099         * lib/gl_carray_list.c: Likewise.
3100         * lib/gl_anylinked_list2.h: Likewise.
3101         * lib/gl_linked_list.c: Likewise.
3102         * lib/gl_linkedhash_list.c: Likewise.
3103         * lib/gl_anytree_list2.h: Likewise.
3104         * lib/gl_avltree_list.c: Likewise.
3105         * lib/gl_avltreehash_list.c: Likewise.
3106         * lib/gl_rbtree_list.c: Likewise.
3107         * lib/gl_rbtreehash_list.c: Likewise.
3108         * lib/gl_sublist.c: Likewise.
3110 2020-05-02  Bruno Haible  <bruno@clisp.org>
3112         bison-i18n: Add support for cross-compilation.
3113         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3114         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3115         via Akim Demaille <akim@lrde.epita.fr>.
3116         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3117         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3118         Don't use bison's --print-localedir option when cross-compiling.
3119         Also, fix an error message and a comment.
3121 2020-05-01  Bruno Haible  <bruno@clisp.org>
3123         list: Add remove_first and remove_last operations.
3124         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3125         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3126         * lib/gl_list.h (struct gl_list_implementation): Add fields
3127         remove_first, remove_last.
3128         (gl_list_remove_first, gl_list_remove_last): New functions.
3129         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3130         functions, based on gl_array_remove_at.
3131         (gl_array_list_implementation): Implement the new operations.
3132         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3133         New functions, based on gl_carray_remove_at.
3134         (gl_carray_list_implementation): Implement the new operations.
3135         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3136         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3137         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3138         new operations.
3139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3140         Likewise.
3141         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3142         New functions, based on gl_tree_remove_at.
3143         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3144         new operations.
3145         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3146         Likewise.
3147         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3148         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3149         Likewise.
3150         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3151         New functions, based on gl_sublist_remove_at.
3152         (gl_sublist_list_implementation): Implement the new operations.
3153         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3154         remove_last.
3155         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3156         gl_list_remove_last.
3157         * tests/test-avltree_list.c (main): Likewise.
3158         * tests/test-avltreehash_list.c (main): Likewise.
3159         * tests/test-carray_list.c (main): Likewise.
3160         * tests/test-linked_list.c (main): Likewise.
3161         * tests/test-linkedhash_list.c (main): Likewise.
3162         * tests/test-rbtree_list.c (main): Likewise.
3163         * tests/test-rbtreehash_list.c (main): Likewise.
3165 2020-05-01  Bruno Haible  <bruno@clisp.org>
3167         parse-datetime: Fix a build failure with an older bison version.
3168         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3169         parse-datetime.tab.c if a suitable version of bison was not found.
3171 2020-05-01  Bruno Haible  <bruno@clisp.org>
3173         bison: New module.
3174         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3175         m4/parse-datetime.m4.
3176         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3177         * modules/bison: New file.
3178         * modules/parse-datetime (Files): Remove m4/bison.m4.
3179         (Depends-on): Add bison.
3181 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3183         Update users.txt.
3184         * users.txt: Add poke.
3186 2020-04-28  Bruno Haible  <bruno@clisp.org>
3188         posix_spawn_file_actions_addfchdir tests: Enhance test.
3189         * tests/test-posix_spawn5.c: Include findprog.h.
3190         (test): New function, extracted from main.
3191         (main): Invoke it. Also, invoke it with a program name such as
3192         "bin/pwd".
3193         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3194         findprog.
3196 2020-04-28  Bruno Haible  <bruno@clisp.org>
3198         posix_spawn_file_actions_addchdir tests: Enhance test.
3199         * tests/test-posix_spawn4.c: Include findprog.h.
3200         (test): New function, extracted from main.
3201         (main): Invoke it. Also, invoke it with a program name such as
3202         "bin/pwd".
3203         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3204         findprog.
3206 2020-04-28  Bruno Haible  <bruno@clisp.org>
3208         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3209         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3210         access elements of the wrong union member.
3212 2020-04-27  Bruno Haible  <bruno@clisp.org>
3214         getdate: Remove deprecated module.
3215         * modules/getdate: Remove file.
3216         * doc/getdate.texi: Remove file.
3217         * lib/getdate.h: Remove file.
3218         * NEWS: Mention the removal.
3220 2020-04-27  Bruno Haible  <bruno@clisp.org>
3222         realloc: Remove deprecated module.
3223         * modules/realloc: Remove file.
3224         * NEWS: Mention the removal.
3226 2020-04-27  Bruno Haible  <bruno@clisp.org>
3228         calloc: Remove deprecated module.
3229         * modules/calloc: Remove file.
3230         * NEWS: Mention the removal.
3232 2020-04-27  Bruno Haible  <bruno@clisp.org>
3234         malloc: Remove deprecated module.
3235         * modules/malloc: Remove file.
3236         * NEWS: Mention the removal.
3238 2020-04-27  Bruno Haible  <bruno@clisp.org>
3240         fnmatch-posix: Remove deprecated module.
3241         * modules/fnmatch-posix: Remove file.
3242         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3243         * NEWS: Mention the removal.
3245 2020-04-27  Bruno Haible  <bruno@clisp.org>
3247         pipe: Remove deprecated module.
3248         * modules/pipe: Remove file.
3249         * lib/pipe.h: Remove file.
3250         * NEWS: Mention the removal.
3252 2020-04-27  Bruno Haible  <bruno@clisp.org>
3254         getopt: Remove deprecated module.
3255         * modules/getopt: Remove file.
3256         * NEWS: Mention the removal.
3258 2020-04-27  Bruno Haible  <bruno@clisp.org>
3260         remove-dest-slash: Remove deprecated module.
3261         * modules/rename-dest-slash: Remove file.
3262         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3263         Update.
3264         * NEWS: Mention the removal.
3266 2020-04-27  Bruno Haible  <bruno@clisp.org>
3268         unictype/bidicategory-*: Remove deprecated modules.
3269         * modules/unictype/bidicategory-all: Remove file.
3270         * modules/unictype/bidicategory-byname: Remove file.
3271         * modules/unictype/bidicategory-name: Remove file.
3272         * modules/unictype/bidicategory-of: Remove file.
3273         * modules/unictype/bidicategory-test: Remove file.
3274         * MODULES.html.sh (Unicode string functions): Update.
3275         * NEWS: Mention the removals.
3277 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3279         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3280         From a suggestion by Askar Safin in:
3281         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3282         * lib/fts.c (fts_build): If file types are known, optimize
3283         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3284         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3285         non-directories.
3287 2020-04-19  Bruno Haible  <bruno@clisp.org>
3289         vasnprintf: Add support for printing wide characters using escapes.
3290         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3291         (wctomb_fallback): New function.
3292         (local_wctomb): New function.
3293         (local_wcrtomb): New function or macro.
3294         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3295         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3296         %lc.
3298 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3300         fts: remove NOSTAT_LEAF_OPTIMIZATION
3301         It caused ‘find’ and ‘du’ to dump core, and it was useful
3302         only for obsolescent Linux filesystems anyway.  Problem reported in:
3303         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3304         Quite possibly there is still a serious underlying fts bug with
3305         tight-loop-check and mutating file systems, but if so this patch
3306         should cause the bug to be triggered less often.
3307         * lib/fts.c (enum leaf_optimization): Remove
3308         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3309         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3310         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3311         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3312         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3313         Remove.  All uses removed.
3315 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3317         explicit_bzero: Improve code style.
3318         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3320 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3322         explicit_bzero: On native Windows, use SecureZeroMemory().
3323         * lib/explicit_bzero.c: Include <windows.h>.
3324         (explicit_bzero): On native Windows, use SecureZeroMemory.
3326 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3328         explicit_bzero: Use memset_s() when available.
3329         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3330         (explicit_bzero): Use memset_s when available.
3331         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3333 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3335         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3336         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3337         free() that overwrite the memory with canaries.
3339 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3341         bootstrap: recommend git submodule update --init
3342         Reported by Bruno Haible.
3343         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3344         * build-aux/bootstrap: recommand "git submodule update --init"
3345         rather than "git submodule init".
3347 2020-04-12  Bruno Haible  <bruno@clisp.org>
3349         explicit_bzero: Add tests.
3350         * tests/test-explicit_bzero.c: New file.
3351         * modules/explicit_bzero-tests: New file.
3353 2020-04-11  Bruno Haible  <bruno@clisp.org>
3355         explicit_bzero: Relicense under LGPLv2+.
3356         Approved by Paul Eggert.
3357         * modules/explicit_bzero (License): Change to LGPLv2+.
3359 2020-04-10  Bruno Haible  <bruno@clisp.org>
3361         findprog, relocatable-prog: Ignore directories during PATH search.
3362         Reported by Frederick Eaton via Dmitry Goncharov in
3363         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3365         * lib/findprog.c (find_in_path): When the file found in a PATH element
3366         is a directory, continue searching.
3367         * modules/findprog (Depends-on): Add sys_stat, stat.
3368         * modules/findprog-lgpl (Depends-on): Likewise.
3370         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3371         element is a directory, continue searching.
3372         * lib/relocwrapper.c: Update comments.
3373         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3374         (configure.ac-early): New section.
3376 2020-04-10  Bruno Haible  <bruno@clisp.org>
3378         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3379         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3381         * MODULES.html.sh: In a git-less tarball, use the date of the first
3382         ChangeLog entry.
3384 2020-04-04  Bruno Haible  <bruno@clisp.org>
3386         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3387         * m4/gettext.m4: Fix comments regarding the gettext library.
3388         * m4/intl-thread-locale.m4: Likewise.
3389         * m4/intlmacosx.m4: Likewise.
3390         * m4/lcmessage.m4: Likewise.
3391         * m4/nls.m4: Likewise.
3392         * m4/po.m4: Likewise.
3393         * m4/progtest.m4: Likewise.
3395 2020-04-04  Jim Meyering  <meyering@fb.com>
3397         maint: remove a stray inter-word space in a 6x-repeated comment
3398         Induce the changes by running this:
3399           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3400         * build-aux/announce-gen: Change "by  perl" to "by perl".
3401         * build-aux/gitlog-to-changelog: Likewise.
3402         * build-aux/prefix-gnulib-mk: Likewise.
3403         * build-aux/update-copyright: Likewise.
3404         * build-aux/useless-if-before-free: Likewise.
3405         * tests/test-update-copyright.sh: Likewise.
3407 2020-03-28  Bruno Haible  <bruno@clisp.org>
3409         Use module 'filename' instead of module 'dosname'.
3411         * lib/at-func.c: Include filename.h instead of dosname.h.
3412         * lib/unlinkat.c: Likewise.
3413         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3414         * modules/areadlinkat-with-size (Depends-on): Likewise.
3415         * modules/faccessat (Depends-on): Likewise.
3416         * modules/fchmodat (Depends-on): Likewise.
3417         * modules/fchownat (Depends-on): Likewise.
3418         * modules/fstatat (Depends-on): Likewise.
3419         * modules/mkdirat (Depends-on): Likewise.
3420         * modules/mkfifoat (Depends-on): Likewise.
3421         * modules/readlinkat (Depends-on): Likewise.
3422         * modules/selinux-at (Depends-on): Likewise.
3423         * modules/symlinkat (Depends-on): Likewise.
3424         * modules/unlinkat (Depends-on): Likewise.
3425         * modules/utimensat (Depends-on): Likewise.
3427         * lib/at-func2.c: Include filename.h instead of dosname.h.
3428         * modules/linkat (Depends-on): Add filename. Remove dosname.
3429         * modules/renameatu (Depends-on): Likewise.
3431         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3432         * lib/canonicalize-lgpl.c: Likewise.
3433         * modules/canonicalize (Depends-on): Add filename.
3434         * modules/canonicalize-lgpl (Depends-on): Likewise.
3436         * lib/dirname.h: Include filename.h instead of dosname.h.
3437         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3439         * lib/fchdir.c: Include filename.h instead of dosname.h.
3440         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3442         * lib/openat.c: Include filename.h instead of dosname.h.
3443         * modules/openat (Depends-on): Add filename. Remove dosname.
3445         * lib/rmdir.c: Include filename.h instead of dosname.h.
3446         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3448         * lib/savewd.c: Include filename.h instead of dosname.h.
3449         * modules/savewd (Depends-on): Add filename. Remove dosname.
3451         * lib/unlink.c: Include filename.h instead of dosname.h.
3452         * modules/unlink (Depends-on): Add filename. Remove dosname.
3454         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3455         * lib/relocwrapper.c: Update comments.
3457         * modules/lstat (Depends-on): Remove dosname.
3459 2020-03-28  Bruno Haible  <bruno@clisp.org>
3461         dosname: Redirect to 'filename'.
3462         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3463         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3464         * lib/dosname.h: Remove all definitions. Just include filename.h.
3465         * modules/dosname (Status, Notice): Mark as deprecated.
3466         (Depends-on): Add 'filename'.
3468 2020-03-28  Bruno Haible  <bruno@clisp.org>
3470         dosname: Change IS_RELATIVE_FILE_NAME.
3471         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3472         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3473         * NEWS: Mention the change.
3475 2020-03-28  Bruno Haible  <bruno@clisp.org>
3477         filename: Copy some definitions from module 'dosname'.
3478         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3479         (HAS_DEVICE): Document macro.
3480         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3481         (IS_ABSOLUTE_FILE_NAME): Consider
3482         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3483         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3484         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3485         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3486         IS_PATH_WITH_DIR.
3487         (DllMain): Update.
3488         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3489         IS_PATH_WITH_DIR.
3490         (find_executable): Update.
3491         * NEWS: Document the deprecations.
3493 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3495         getopt-posix: port __GETOPT_PREFIX to macOS
3496         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3497         Define to work around a problem with asm on macOS (Bug#40205).
3499 2020-03-22  Bruno Haible  <bruno@clisp.org>
3501         MODULES.html.sh: Add support for reproducible builds.
3502         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3503         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3504         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3505         current date.
3507 2020-03-22  Bruno Haible  <bruno@clisp.org>
3509         Several modules: Depend on stat.
3510         * modules/acl-permissions (Depends-on): Add stat.
3511         * modules/canonicalize (Depends-on): Likewise.
3512         * modules/file-has-acl (Depends-on): Likewise.
3513         * modules/fstat (Depends-on): Likewise.
3514         * modules/fstatat (Depends-on): Likewise.
3515         * modules/glob (Depends-on): Likewise.
3516         * modules/javacomp (Depends-on): Likewise.
3517         * modules/linkat (Depends-on): Likewise.
3518         * modules/mkdir (Depends-on): Likewise.
3519         * modules/pt_chown (Depends-on): Likewise.
3520         * modules/ptsname_r (Depends-on): Likewise.
3521         * modules/readlinkat (Depends-on): Likewise.
3522         * modules/rename (Depends-on): Likewise.
3523         * modules/renameatu (Depends-on): Likewise.
3524         * modules/tmpdir (Depends-on): Likewise.
3525         * modules/utimens (Depends-on): Likewise.
3526         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3527         * modules/same (Depends-on): Remove stat.
3529 2020-03-22  Bruno Haible  <bruno@clisp.org>
3531         acl-permissions: Improve autoconf macro.
3532         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3533         more reliably.
3535 2020-03-22  Bruno Haible  <bruno@clisp.org>
3537         file-has-acl: Fix module description.
3538         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3539         (Depends-on): Depend on acl-permissions unconditionally.
3541 2020-03-21  Bruno Haible  <bruno@clisp.org>
3543         unlink: Ensure errno also on native Windows.
3544         * modules/unlink (Depends-on): Add malloc-posix.
3546 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3548         unlink: fix malloc errno typo
3549         Problem reported by Tim Rühsen in:
3550         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3551         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3553 2020-03-16  Bruno Haible  <bruno@clisp.org>
3555         *printf-posix: Fix m4 error (regression from 2020-03-08).
3556         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3557         brackets in AC_COMPILE_IFELSE invocation.
3559 2020-03-08  Bruno Haible  <bruno@clisp.org>
3561         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3562         * modules/crypto/af_alg (Depends-on): Add fstat.
3563         * modules/renameatu (Depends-on): Likewise.
3564         * modules/same (Depends-on): Likewise.
3565         * modules/term-style-control (Depends-on): Likewise.
3567 2020-03-08  Bruno Haible  <bruno@clisp.org>
3569         *printf-posix: Document why it's overridden on some glibc systems.
3570         Reported by Adrian Bunk <bunk@stusta.de> in
3571         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3572         * doc/posix-functions/*printf.texi: Document the problem with the %n
3573         directive on some glibc systems.
3574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3575         the cross-compilation guesses accordingly.
3577 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3579         open, openat: port to (O_RDWR | O_RDONLY) != 0
3580         Potential portability problem reported by Dan Gohman in:
3581         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3582         * lib/open.c (open):
3583         * lib/openat.c (rpl_openat):
3584         Don’t assume O_RDONLY is disjoint from O_RDWR.
3586 2020-03-07  Bruno Haible  <bruno@clisp.org>
3588         openat: Fix theoretically possible issue on GNU/Hurd.
3589         Reported by Dan Gohman <sunfish@mozilla.com> in
3590         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
3591         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
3592         ignore the bits that are also set in O_RDONLY.
3594 2020-02-24  Bruno Haible  <bruno@clisp.org>
3596         getloadavg: Don't use /usr/local when cross-compiling on AIX.
3597         Reported by Jens Rehsack <sno@netbsd.org> in
3598         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
3599         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
3600         cross-compiling.
3602 2020-02-24  Bruno Haible  <bruno@clisp.org>
3604         fcntl: Add witness of gnulib override.
3605         Reported by Jens Rehsack <sno@netbsd.org> in
3606         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
3607         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
3608         macros.
3610 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
3612         Update users.txt.
3613         * users.txt: Add datamash, time.
3615 2020-02-23  Bruno Haible  <bruno@clisp.org>
3617         uni*/base: Use 'restrict'.
3618         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
3619         from lib/regex.h.
3620         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
3621         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
3622         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
3623         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
3624         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
3625         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
3626         '_UC_RESTRICT'.
3627         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
3628         u32_conv_to_encoding): Use '_UC_RESTRICT'.
3629         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
3630         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
3631         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3632         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3633         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
3634         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
3635         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
3636         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
3637         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
3638         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
3639         '_UC_RESTRICT'.
3640         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
3641         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
3642         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
3643         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
3644         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
3645         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
3646         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
3647         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
3649 2020-02-23  Bruno Haible  <bruno@clisp.org>
3651         glob, spawn: Use improved '_Restrict_' definition.
3652         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
3653         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
3655 2020-02-23  Bruno Haible  <bruno@clisp.org>
3657         crypto/gc: Use 'restrict'.
3658         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
3659         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
3661         crypto/hmac-*: Use 'restrict'.
3662         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
3663         'restrict'.
3664         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
3665         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
3666         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
3667         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
3669         crypto/sm3: Use 'restrict'.
3670         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
3671         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
3673         crypto/*-buffer: Use 'restrict'.
3674         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
3675         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
3677         crypto/sha512-buffer: Use 'restrict'.
3678         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
3679         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
3680         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
3682         crypto/sha256-buffer: Use 'restrict'.
3683         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
3684         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
3685         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
3687         crypto/sha1-buffer: Use 'restrict'.
3688         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
3689         'restrict'.
3690         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
3692         crypto/md5-buffer: Use 'restrict'.
3693         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
3694         'restrict'.
3695         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
3697         crypto/md4: Use 'restrict'.
3698         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
3699         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
3701         crypto/md2: Use 'restrict'.
3702         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
3703         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
3705         crypto/rijndael: Use 'restrict'.
3706         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
3707         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
3708         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
3710         crypto/arctwo: Use 'restrict'.
3711         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
3712         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
3714         crypto/arcfour: Use 'restrict'.
3715         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
3716         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
3718         careadlinkat: Use 'restrict'.
3719         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
3720         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
3721         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
3723         regex-quote: Use 'restrict'.
3724         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
3725         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
3727         system-quote: Use 'restrict'.
3728         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
3729         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
3731         sh-quote: Use 'restrict'.
3732         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
3733         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
3735         quotearg: Use 'restrict'.
3736         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
3737         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
3739         parse-datetime: Use 'restrict'.
3740         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
3741         'restrict'.
3742         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
3744         nstrftime: Use 'restrict'.
3745         * lib/strftime.h (nstrftime): Use 'restrict'.
3746         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
3748         mbstok_r: Use 'restrict'.
3749         * lib/string.in.h (mbstok_r): Use 'restrict'.
3751         xmemcoll: Use 'restrict'.
3752         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
3753         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
3755         memcoll: Use 'restrict'.
3756         * lib/memcoll.h (memcoll): Use 'restrict'.
3757         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
3759         vasnprintf: Use 'restrict'.
3760         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
3761         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
3763         c-vasnprintf: Use 'restrict'.
3764         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
3765         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
3767         c-vsnprintf: Use 'restrict'.
3768         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
3769         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
3771         c-snprintf: Use 'restrict'.
3772         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
3773         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
3775         astrxfrm: Use 'restrict'.
3776         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
3777         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
3779         amemxfrm: Use 'restrict'.
3780         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
3781         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
3783 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
3785         fchmodat, lchmod: simplify
3786         It appears that we may have overengineered lchmod and fchmodat,
3787         in that the code was prepared for some hypothetical platforms but
3788         was so complicated that it was hard to understand.  I attempted to
3789         improve the situation by simplifying the code when this
3790         simplification should not hurt on real platforms; we can re-add
3791         complexity later to port to platforms I didn’t know about.
3792         * lib/fchmodat.c (fchmodat):
3793         * lib/lchmod.c (lchmod):
3794         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
3795         around the /proc code that needs it.
3796         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
3797         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
3798         Do not include <config.h> twice.
3799         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
3800         lchmod on any known hosts.
3801         (lchmod): Do not defer to fchmodat, so that the lchmod module
3802         need not depend on the fchmodat module (which is a circular
3803         dependency).  Do not use openat, since ‘open’ suffices.
3804         Coalesce calls to lchmod/chmod.
3805         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
3806         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
3807         * modules/lchmod (Depends-on, configure.ac):
3808         * modules/sys_stat (Depends-on):
3809         Do not worry about replacing lchmod, since that shouldn’t happen.
3810         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
3811         Do not worry about whether lchmod works on non-symlinks,
3812         since every known lchmod works on non-symlinks.
3813         * modules/lchmod (Depends-on):
3814         Remove circular dependency on fchmodat.
3816 2020-02-22  Bruno Haible  <bruno@clisp.org>
3818         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
3819         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
3820         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
3822 2020-02-22  Bruno Haible  <bruno@clisp.org>
3824         Use 'restrict' in all POSIX function declarations.
3825         * lib/iconv.in.h (iconv): Use 'restrict'.
3826         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
3827         * lib/monetary.in.h (strfmon_l): Likewise.
3828         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
3829         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
3830         pthread_mutex_timedlock, pthread_rwlock_init,
3831         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
3832         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
3833         * lib/search.in.h (tdelete): Likewise.
3834         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
3835         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
3836         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
3837         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
3838         Likewise.
3839         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
3840         strtoull): Likewise.
3841         * lib/string.in.h (strncat): Likewise.
3842         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
3843         recvfrom): Likewise.
3844         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
3845         * lib/time.in.h (strftime): Likewise.
3846         * lib/unistd.in.h (readlink, readlinkat): Likewise.
3847         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
3848         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
3849         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
3850         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
3851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
3852         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
3853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3854         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3855         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3856         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3859         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3860         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3861         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
3862         other *_h.m4 files.
3863         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
3865 2020-02-22  Bruno Haible  <bruno@clisp.org>
3867         Update NEWS.
3868         * NEWS: Mention the last change.
3870 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
3872         chmodat, chownat: new modules
3873         These are split from fchmodat, fchownat.  GNU Emacs needs the
3874         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
3875         lchmodat.  Split the latter two into a new module chmodat.
3876         Similarly for fchownat.  This the same basic idea for why statat
3877         was split from fstatat on 2013-01-23.
3878         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
3879         Rename from FCHMODAT_INLINE.  All uses changed.
3880         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
3881         Rename from FCHOWNAT_INLINE.  All uses changed.
3882         * lib/openat.h:
3883         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
3884         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
3885         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
3886         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
3887         (configure.ac): Remove fchmodat module indicator.
3888         (Makefile.am): Omit chmodat.c.
3889         (Maintainer): Add self.
3890         * modules/fchownat: Similarly, but for chown.
3891         * tests/test-fchownat.c (BASE): Don't define if already defined.
3892         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
3894 2020-02-22  Bruno Haible  <bruno@clisp.org>
3896         users.txt: Add groff.
3897         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
3898         * users.txt: Add groff.
3900 2020-02-22  Bruno Haible  <bruno@clisp.org>
3902         gnulib-tool: Ensure copied files are writable.
3903         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
3904         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
3905         * gnulib-tool (func_ensure_writable): New function.
3906         (func_ln_s, func_hardlink, func_lookup_file, func_import,
3907         func_create_testdir, copy-file): Invoke it after copying a file.
3909 2020-02-22  Bruno Haible  <bruno@clisp.org>
3911         users.txt: Update.
3912         * users.txt: Update URLs to projects that have moved or switched to git.
3913         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
3914         over the summary view. Add gawk.
3916 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
3918         largefile: remove _DARWIN_USE_64_BIT_INODE
3919         It’s not needed in currently-supported macOS versions, and was
3920         problematic anyway in MacOS X 10.5 which was the only version that
3921         could use it.  Problem reported by Peter Eisentraut in:
3922         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
3923         * m4/largefile.m4 (AC_SYS_LARGEFILE):
3924         Don’t define _DARWIN_USE_64_BIT_INODE.
3925         This syncs with Autoconf master.
3927         Add ‘extern "C"’ to count-one-bits.h etc.
3928         This ports these .h files to C++.
3929         Problem reported by Simon Marchi in:
3930         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
3931         * lib/count-leading-zeros.h, lib/count-one-bits.h:
3932         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
3934 2020-02-19  Bruno Haible  <bruno@clisp.org>
3936         uninorm/decompose-internal: Avoid "no previous prototype" warning.
3937         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3938         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
3939         * lib/array-mergesort.h: Accept an optional macro definition
3940         STATIC_FROMTO.
3941         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
3943 2020-02-16  Bruno Haible  <bruno@clisp.org>
3945         fchmodat: Make more future-proof.
3946         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
3947         NEED_FCHMODAT_NONSYMLINK_FIX.
3948         (gl_PREREQ_FCHMODAT): New macro.
3949         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
3950         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
3951         without lchmod function.
3952         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
3954 2020-02-16  Bruno Haible  <bruno@clisp.org>
3956         lchmod: Make more future-proof.
3957         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
3958         (gl_PREREQ_LCHMOD): New macro.
3959         * lib/lchmod.c (orig_lchmod): New function.
3960         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
3961         Return EOPNOTSUPP only on Linux and on platforms without lchmod
3962         function.
3963         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
3965         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
3966         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
3968 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3970         xnanosleep: prefer pause, and get remaining time
3971         Problem reported by Vladimir Panteleev in:
3972         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
3973         * lib/xnanosleep.c: Include intprops.h, unistd.h.
3974         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
3975         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
3976         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
3977         * modules/xnanosleep (Depends-on): Add intprops, unistd.
3979 2020-02-16  Bruno Haible  <bruno@clisp.org>
3981         lchmod: Improve cross-compilation guess.
3982         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
3983         cross-compiling, guess depending on the platform.
3985 2020-02-16  Bruno Haible  <bruno@clisp.org>
3987         fstrcmp: Add API to clean up resources.
3988         Reported by Akim Demaille <akim@lrde.epita.fr> in
3989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
3990         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
3991         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
3993 2020-02-14  Bruno Haible  <bruno@clisp.org>
3995         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
3996         Reported by Christian Biesinger in
3997         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
3998         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
3999         corresponding module is not enabled.
4000         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4001         prototype if the corresponding module is not enabled.
4003 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4005         fchmodat, lchmod: port to buggy Linux filesystems
4006         Problem reported by Florian Weimer in:
4007         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4008         * lib/fchmodat.c (fchmodat):
4009         * lib/lchmod.c (lchmod):
4010         Don’t assume that chmod on the O_PATH-opened fd will do
4011         the right thing on a symbolic link.
4012         * lib/fchmodat.c (fchmodat):
4013         Don’t attempt to special-case
4014         any flag value other than AT_SYMLINK_NOFOLLOW.
4016 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4018         lchmod: pacify Coverity CID 1491216
4019         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4020         not complain about unreachable code at the ‘struct stat st;’
4021         declaration.
4023 2020-02-10  Bruno Haible  <bruno@clisp.org>
4025         copysignf: Fix link error on HP-UX with cc.
4026         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4027         HP-UX, set COPYSIGNF_LIBM to -lm.
4029 2020-02-10  Bruno Haible  <bruno@clisp.org>
4031         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4032         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4033         with $(LIB_SEMAPHORE).
4034         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4035         with $(LIB_SEMAPHORE).
4037 2020-02-10  Bruno Haible  <bruno@clisp.org>
4039         ptsname_r-tests: Avoid unused function warning.
4040         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4042 2020-02-08  Bruno Haible  <bruno@clisp.org>
4044         lchmod: Add tests.
4045         * tests/test-lchmod.c: New file.
4046         * modules/lchmod-tests: New file.
4048 2020-02-08  Bruno Haible  <bruno@clisp.org>
4050         lchmod: Ensure declaration on HP-UX.
4051         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4052         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4054 2020-02-08  Bruno Haible  <bruno@clisp.org>
4056         fchmodat: Strengthen tests.
4057         * tests/test-fchmodat.c (BASE): New macro.
4058         (main): Use it, to avoid conflicts with other unit tests. Verify that
4059         fchmodat changed the file permission bits.
4061 2020-02-08  Bruno Haible  <bruno@clisp.org>
4063         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4064         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4065         '#undef __need_system_sys_stat_h'.
4067 2020-02-08  Bruno Haible  <bruno@clisp.org>
4069         fchmodat: Improve cross-compilation guesses.
4070         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4071         cross-compiling, guess depending on the platform.
4072         * doc/posix-functions/fchmodat.texi: Clarify.
4074 2020-02-08  Bruno Haible  <bruno@clisp.org>
4076         Fix compilation errors in a testdir created with --with-c++-tests.
4077         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4078         since it does not work any more with g++ >= 4.4.
4080 2020-02-08  Bruno Haible  <bruno@clisp.org>
4082         doc: Update for glibc 2.31.
4083         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4084         * doc/gnulib.texi: Include it.
4085         * doc/pastposix-functions/h_errno.texi: Update.
4086         * doc/posix-functions/*.texi: Likewise.
4088 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4090         mountlist: consider smb3 file systems as remote
4091         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4092         "smb3" as remote.
4094 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4096         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4097         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4098         they act like chmod on non-symlinks.
4099         * NEWS:
4100         * doc/glibc-functions/lchmod.texi (lchmod):
4101         * doc/posix-functions/fchmodat.texi (fchmodat):
4102         Mention this.
4103         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4104         config.h, and undef it after including sys/stat.h the first time.
4105         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4106         sys/stat.h a second time after defining orig_fchmodat.
4107         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4108         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4109         * lib/lchmod.c: New file.
4110         * lib/sys_stat.in.h (fchmodat, lchmod):
4111         Support replacing these functions.
4112         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4113         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4114         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4115         Test that lchmod works on non-symlinks.
4116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4117         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4118         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4119         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4120         * modules/lchmod (Files): Add lib/lchmod.c.
4121         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4122         (configure.ac): Compile lchmod.c if needed.
4123         (lib_SOURCES): Add lchmod.c.
4124         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4125         and REPLACE_LCHMOD.
4126         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4127         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4129 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4131         mountlist: Consider AFS filesystems as remote
4132         df --local relies on the ME_REMOTE macro to determine if a given
4133         mount entry should be considered "local".  There is special logic
4134         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4135         kernel's kafs module or AuriStorFS is treated as a local mount.
4136         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4137         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4139 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4141         Port _Noreturn to older Clang
4142         Problem reported by Jeffery Walton in:
4143         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4144         * lib/_Noreturn.h (_Noreturn):
4145         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4146         Assume _Noreturn works in Clang 3.5 and later.
4147         It is documented to work in Clang 3.5:
4148         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4149         and is not documented in Clang 3.4:
4150         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4151         Apple sets __clang_version__ to a different value, so use
4152         __apple_build_version__ there.  See:
4153         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4155 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4157         test-canonicalize: avoid unused function warning
4158         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4159         with the same guard as that used to protect usage of the null_ptr
4160         function, so that one doesn't get a -Wunused warning.
4161         * tests/test-canonicalize-lgpl.c: Likewise.
4163 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4165         libc-config: port to Apple’s Clang variant
4166         * lib/libc-config.h (__glibc_clang_prereq):
4167         Port to Apple’s Clang variant, which uses a different
4168         numbering scheme for __clang_major__.
4170 2020-02-02  Bruno Haible  <bruno@clisp.org>
4172         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4173         * doc/containers.texi: Document these new modules.
4175 2020-02-02  Bruno Haible  <bruno@clisp.org>
4177         omap-c++: Add tests.
4178         * tests/test-omap-c++.cc: New file.
4179         * modules/omap-c++-tests: New file.
4181         omap-c++: New module.
4182         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4183         * modules/omap-c++: New file.
4185 2020-02-02  Bruno Haible  <bruno@clisp.org>
4187         map-c++: Add tests.
4188         * tests/test-map-c++.cc: New file.
4189         * modules/map-c++-tests: New file.
4191         map-c++: New module.
4192         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4193         * modules/map-c++: New file.
4195 2020-02-02  Bruno Haible  <bruno@clisp.org>
4197         oset-c++: Add tests.
4198         * tests/test-oset-c++.cc: New file.
4199         * modules/oset-c++-tests: New file.
4201         oset-c++: New module.
4202         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4203         * modules/oset-c++: New file.
4205 2020-02-02  Bruno Haible  <bruno@clisp.org>
4207         set-c++: Add tests.
4208         * tests/test-set-c++.cc: New file.
4209         * modules/set-c++-tests: New file.
4211         set-c++: New module.
4212         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4213         * modules/set-c++: New file.
4215 2020-02-02  Bruno Haible  <bruno@clisp.org>
4217         list-c++: Add tests.
4218         * tests/test-list-c++.cc: New file.
4219         * modules/list-c++-tests: New file.
4221         list-c++: New module.
4222         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4223         * modules/list-c++: New file.
4225 2020-02-02  Bruno Haible  <bruno@clisp.org>
4227         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4228         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4229         '_Noreturn'.
4230         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4232 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4234         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4235         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4236           error: argument 2 value '18446744073709551615'
4237           exceeds maximum object size 9223372036854775807
4238           [-Werror=alloc-size-larger-than=]
4239         The details of this restriction are discussed at:
4240         https://stackoverflow.com/q/42574890/4421
4241         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4243 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4245         sysctl.h: avoid including on glibc
4246         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4247         * lib/physmem.c: Likewise.
4249 2020-02-02  Bruno Haible  <bruno@clisp.org>
4251         list, set, oset, map, omap: Avoid imperative voice in documentation.
4252         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4253         in the specification of functions.
4254         * lib/gl_set.h: Likewise.
4255         * lib/gl_oset.h: Likewise.
4256         * lib/gl_map.h: Likewise.
4257         * lib/gl_omap.h: Likewise.
4258         * lib/gl_*.h: Likewise.
4260 2020-02-01  Bruno Haible  <bruno@clisp.org>
4262         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4263         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4264         does.
4266 2020-01-29  Bruno Haible  <bruno@clisp.org>
4268         array-map, hash-map, linkedhash-map: Fix module description.
4269         * modules/array-map (Description): Fix description.
4270         * modules/hash-map (Description): Likewise.
4271         * modules/linkedhash-map (Description): Likewise.
4273 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4275         dfa: do not depend on isblank
4276         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4277         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4278         * modules/dfa (Depends-on): Remove isblank.
4279         * modules/isblank: Add a module indicator, for lib/dfa.c.
4281         dfa: do not assume 64-bit int
4282         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4283         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4284         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4285         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4286         Fall back to 32-bit words.
4287         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4288         of 4 64-bit args.  All uses changed.
4290 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4292         regex: remove limits-h dependency
4293         * modules/regex (Depends-on): Remove limits-h, since the
4294         code no longer depends on ULONG_WIDTH already being defined.
4296         regex: port to non-GCC pre-IEC-60559
4297         Problem reported by Arnold Robbins in:
4298         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4299         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4301 2020-01-25  Bruno Haible  <bruno@clisp.org>
4303         c32isxdigit: Add tests.
4304         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4305         * tests/test-c32isxdigit.sh: New file.
4306         * modules/c32isxdigit-tests: New file.
4308         c32isxdigit: New module.
4309         * lib/c32isxdigit.c: New file.
4310         * modules/c32isxdigit: New file.
4311         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4313 2020-01-25  Bruno Haible  <bruno@clisp.org>
4315         c32isupper: Add tests.
4316         * tests/test-c32isupper.c: New file.
4317         * tests/test-c32isupper.sh: New file.
4318         * modules/c32isupper-tests: New file.
4320         c32isupper: New module.
4321         * lib/c32isupper.c: New file.
4322         * modules/c32isupper: New file.
4323         * doc/posix-functions/iswupper.texi: Mention the new module.
4325 2020-01-25  Bruno Haible  <bruno@clisp.org>
4327         c32isspace: Add tests.
4328         * tests/test-c32isspace.c: New file.
4329         * tests/test-c32isspace.sh: New file.
4330         * modules/c32isspace-tests: New file.
4332         c32isspace: New module.
4333         * lib/c32isspace.c: New file.
4334         * modules/c32isspace: New file.
4335         * doc/posix-functions/iswspace.texi: Mention the new module.
4337 2020-01-25  Bruno Haible  <bruno@clisp.org>
4339         c32ispunct: Add tests.
4340         * tests/test-c32ispunct.c: New file.
4341         * tests/test-c32ispunct.sh: New file.
4342         * modules/c32ispunct-tests: New file.
4344         c32ispunct: New module.
4345         * lib/c32ispunct.c: New file.
4346         * modules/c32ispunct: New file.
4347         * doc/posix-functions/iswpunct.texi: Mention the new module.
4349 2020-01-25  Bruno Haible  <bruno@clisp.org>
4351         c32isprint: Add tests.
4352         * tests/test-c32isprint.c: New file.
4353         * tests/test-c32isprint.sh: New file.
4354         * modules/c32isprint-tests: New file.
4356         c32isprint: New module.
4357         * lib/c32isprint.c: New file.
4358         * modules/c32isprint: New file.
4359         * doc/posix-functions/iswprint.texi: Mention the new module.
4361 2020-01-25  Bruno Haible  <bruno@clisp.org>
4363         c32islower: Add tests.
4364         * tests/test-c32islower.c: New file.
4365         * tests/test-c32islower.sh: New file.
4366         * modules/c32islower-tests: New file.
4368         c32islower: New module.
4369         * lib/c32islower.c: New file.
4370         * modules/c32islower: New file.
4371         * doc/posix-functions/iswlower.texi: Mention the new module.
4373 2020-01-25  Bruno Haible  <bruno@clisp.org>
4375         c32isgraph: Add tests.
4376         * tests/test-c32isgraph.c: New file.
4377         * tests/test-c32isgraph.sh: New file.
4378         * modules/c32isgraph-tests: New file.
4380         c32isgraph: New module.
4381         * lib/c32isgraph.c: New file.
4382         * modules/c32isgraph: New file.
4383         * doc/posix-functions/iswgraph.texi: Mention the new module.
4385 2020-01-25  Bruno Haible  <bruno@clisp.org>
4387         c32isdigit: Add tests.
4388         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4389         * tests/test-c32isdigit.sh: New file.
4390         * modules/c32isdigit-tests: New file.
4392         c32isdigit: New module.
4393         * lib/c32isdigit.c: New file.
4394         * modules/c32isdigit: New file.
4395         * doc/posix-functions/iswdigit.texi: Mention the new module.
4397 2020-01-25  Bruno Haible  <bruno@clisp.org>
4399         c32iscntrl: Add tests.
4400         * tests/test-c32iscntrl.c: New file.
4401         * tests/test-c32iscntrl.sh: New file.
4402         * modules/c32iscntrl-tests: New file.
4404         c32iscntrl: New module.
4405         * lib/c32iscntrl.c: New file.
4406         * modules/c32iscntrl: New file.
4407         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4409 2020-01-25  Bruno Haible  <bruno@clisp.org>
4411         c32isblank: Add tests.
4412         * tests/test-c32isblank.c: New file.
4413         * tests/test-c32isblank.sh: New file.
4414         * modules/c32isblank-tests: New file.
4416         c32isblank: New module.
4417         * lib/c32isblank.c: New file.
4418         * modules/c32isblank: New file.
4419         * doc/posix-functions/iswblank.texi: Mention the new module.
4421 2020-01-25  Bruno Haible  <bruno@clisp.org>
4423         c32isalpha: Add tests.
4424         * tests/test-c32isalpha.c: New file.
4425         * tests/test-c32isalpha.sh: New file.
4426         * modules/c32isalpha-tests: New file.
4428         c32isalpha: New module.
4429         * lib/c32isalpha.c: New file.
4430         * modules/c32isalpha: New file.
4431         * doc/posix-functions/iswalpha.texi: Mention the new module.
4433 2020-01-25  Bruno Haible  <bruno@clisp.org>
4435         c32isalnum: Add tests.
4436         * tests/test-c32isalnum.c: New file.
4437         * tests/test-c32isalnum.sh: New file.
4438         * modules/c32isalnum-tests: New file.
4440         c32isalnum: New module.
4441         * lib/c32isalnum.c: New file.
4442         * lib/c32is-impl.h: New file.
4443         * modules/c32isalnum: New file.
4444         * doc/posix-functions/iswalnum.texi: Mention the new module.
4446 2020-01-25  Bruno Haible  <bruno@clisp.org>
4448         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4449         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4450         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4451         c32isupper, c32isxdigit): New declarations.
4452         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4453         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4454         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4455         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4456         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4457         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4458         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4459         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4460         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4461         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4462         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4463         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4464         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4466 2020-01-25  Bruno Haible  <bruno@clisp.org>
4468         mbchar, wctype: Use the corrected iswxdigit function.
4469         * modules/mbchar (Depends-on): Add iswxdigit.
4470         * modules/wctype (Depends-on): Likewise.
4472         iswxdigit: Add tests.
4473         * tests/test-iswxdigit.c: New file.
4474         * tests/test-iswxdigit.sh: New file.
4475         * modules/iswxdigit-tests: New file.
4477         iswxdigit: New module.
4478         * m4/iswxdigit.m4: New file.
4479         * lib/wctype.in.h (iswxdigit): Potentially override.
4480         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4481         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4482         * lib/iswxdigit.c: New file.
4483         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4484         REPLACE_ISWXDIGIT.
4485         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4486         REPLACE_ISWXDIGIT.
4487         * modules/iswxdigit: New file.
4488         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4490 2020-01-25  Bruno Haible  <bruno@clisp.org>
4492         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4493         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4494         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4495         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4496         off_t on mingw, invoke _lseeki64 instead of lseek.
4498 2020-01-25  Bruno Haible  <bruno@clisp.org>
4500         iswdigit tests: Avoid test failure on Cygwin.
4501         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4502         byte sequence, return 0.
4504         iswdigit: Fix test failure on native Windows.
4505         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4507         mbchar, wctype: Use the corrected iswdigit function.
4508         * modules/mbchar (Depends-on): Add iswdigit.
4509         * modules/wctype (Depends-on): Likewise.
4511         iswdigit: Add tests.
4512         * tests/test-iswdigit.c: New file.
4513         * tests/test-iswdigit.sh: New file.
4514         * modules/iswdigit-tests: New file.
4516         iswdigit: New module.
4517         * m4/iswdigit.m4: New file.
4518         * lib/wctype.in.h (iswdigit): Potentially override.
4519         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4520         * lib/iswdigit.c: New file.
4521         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4522         REPLACE_ISWDIGIT.
4523         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4524         REPLACE_ISWDIGIT.
4525         * modules/iswdigit: New file.
4526         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4528 2020-01-25  Bruno Haible  <bruno@clisp.org>
4530         hard-locale tests: Make it easy to reuse the musl test.
4531         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4532         * modules/hard-locale-tests (Files): Add it.
4533         (configure.ac): Invoke gl_MUSL_LIBC.
4535 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4537         regex: port to Gawk on nonstandard platforms
4538         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4539         This is useful for Gawk, which does not use the Gnulib stdlib-h
4540         module.  Problem reported by Arnold Robbins in:
4541         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4543 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4545         regex: fix bug with >=16 subexpressions
4546         * lib/regex_internal.h (struct re_backref_cache_entry):
4547         Use bitset_word_t as the type of eps_reachable_subexps_map,
4548         instead of unsigned short int.  This fixes a bug I introduced
4549         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4550         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4551         Remove unused member 'unused'.
4553         regex: simplify definition of BITSET_WORD_BITS
4554         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4555         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4556         * lib/regex_internal.h (BITSET_WORD_BITS):
4557         * modules/regex (Depends-on): Add limits-h.
4558         Simplify now that we can use ULONG_WIDTH.
4560 2020-01-20  Bruno Haible  <bruno@clisp.org>
4562         mbrtoc32: Add note about FreeBSD 12.
4563         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4564         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4565         affected.
4567 2020-01-20  Bruno Haible  <bruno@clisp.org>
4569         unistr/u8-uctomb: Fix warning.
4570         Reported by Andreas Schwab <schwab@suse.de> in
4571         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4572         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4573         (u8_uctomb): Add FALLTHROUGH markers.
4575 2020-01-20  Bruno Haible  <bruno@clisp.org>
4577         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4578         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4579         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4580         (glthread_once): Use it.
4582 2020-01-19  Bruno Haible  <bruno@clisp.org>
4584         threadlib: Disable use of weak symbols on FreeBSD 11.
4585         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
4587         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
4588         against a bug in FreeBSD 11.
4590 2020-01-19  Bruno Haible  <bruno@clisp.org>
4592         iconv_open: Improve z/OS support.
4593         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
4594         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
4595         Remove mapping for EUC-TW.
4597 2020-01-18  Bruno Haible  <bruno@clisp.org>
4599         Rename ~~gnulib.m4 to zzgnulib.m4.
4600         Suggested by Paul Eggert.
4601         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
4602         * gnulib-tool (func_get_filelist): Update.
4603         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4605 2020-01-18  Bruno Haible  <bruno@clisp.org>
4607         doc: Update license notices.
4608         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
4609         reference to a section or to a "file as part of this distribution".
4611 2020-01-18  Bruno Haible  <bruno@clisp.org>
4613         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
4614         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4615         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
4616         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
4617         AC_EGREP_CPP.
4619 2020-01-18  Bruno Haible  <bruno@clisp.org>
4621         Ensure Automake does not drop ~~gnulib.m4.
4622         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
4623         * m4/gnulib-common.m4 (gl_COMMON): Require it.
4625 2020-01-18  Bruno Haible  <bruno@clisp.org>
4627         Fix major regression from 2020-01-10.
4628         Reported by Paul Eggert in
4629         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
4630         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4631         Don't AC_REQUIRE anything.
4632         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
4633         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
4634         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
4635         use ac_compile instead.
4636         (AC_CHECK_DECL): Remove override.
4637         * m4/~~gnulib.m4: New file.
4638         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
4639         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4641 2020-01-17  Bruno Haible  <bruno@clisp.org>
4642             Paul Eggert  <eggert@cs.ucla.edu>
4644         glob: Fix use-after-free bug.
4645         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
4647         * lib/glob.c (__glob): Delay freeing dirname until after the use of
4648         end_name.
4650 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4652         vcs-to-changelog: Fix parsing of fndecl without args.
4653         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
4654         for empty arguments.
4656 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4658         vcs-to-changelog: Add documentation.
4659         * doc/vcs-to-changelog.texi: New file.
4660         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
4661         section.
4663 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4665         vcs-to-changelog: Allow loading of custom quirks file.
4666         * build-aux/vcs_to_changelog.py: New commandline option -q.
4668 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4670         vcs-to-changelog: Fix formatting of ChangeLog output.
4671         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
4672         output.
4674 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4676         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
4677         Reported in
4678         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
4679         * build-aux/vcstocl/frontend_c.py: Remove shebang.
4681 2020-01-15  Simon Josefsson  <simon@josefsson.org>
4683         crypto/gc-pbkdf2: New module.
4684         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
4685         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
4686         * lib/gc-pbkdf2.c: New file.
4687         * lib/gc-pbkdf2-sha1.c: Use new interface.
4688         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
4689         * modules/crypto/gc-pbkdf2: New file.
4690         * modules/crypto/gc-pbkdf2-tests: New file.
4691         * tests/test-gc-pbkdf2.c: New file.
4693 2020-01-12  Bruno Haible  <bruno@clisp.org>
4695         c32stombs: Add tests.
4696         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
4697         * tests/test-c32stombs-1.sh: New file, based on
4698         tests/test-c32srtombs-1.sh.
4699         * tests/test-c32stombs-2.sh: New file, based on
4700         tests/test-c32srtombs-2.sh.
4701         * tests/test-c32stombs-3.sh: New file, based on
4702         tests/test-c32srtombs-3.sh.
4703         * tests/test-c32stombs-4.sh: New file, based on
4704         tests/test-c32srtombs-4.sh.
4705         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
4707         c32stombs: New module.
4708         * lib/uchar.in.h (c32stombs): New declaration.
4709         * lib/c32stombs.c: New file.
4710         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
4711         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
4712         * modules/c32stombs: New file.
4713         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
4714         * doc/posix-functions/wcstombs.texi: Mention the new module.
4716 2020-01-11  Jim Meyering  <meyering@fb.com>
4718         perl: require the "warnings" module
4719         * m4/perl.m4: Also "use warnings", so we reject the perl found
4720         on at least one IRIX 6.5 system. Reported by Bruno Haible in
4721         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
4723 2020-01-10  Bruno Haible  <bruno@clisp.org>
4725         Fix major regression from 2020-01-04.
4726         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4727         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
4728         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
4729         AC_DEFUN_ONCE.
4730         (AC_CHECK_DECL): Invoke, not require, it.
4732 2020-01-10  Bruno Haible  <bruno@clisp.org>
4734         c32snrtombs: Add tests.
4735         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
4736         * tests/test-c32snrtombs-1.sh: New file, based on
4737         tests/test-wcsnrtombs1.sh.
4738         * tests/test-c32snrtombs-2.sh: New file, based on
4739         tests/test-wcsnrtombs2.sh.
4740         * tests/test-c32snrtombs-3.sh: New file, based on
4741         tests/test-wcsnrtombs3.sh.
4742         * tests/test-c32snrtombs-4.sh: New file, based on
4743         tests/test-wcsnrtombs4.sh.
4744         * modules/c32snrtombs-tests: New file, based on
4745         modules/wcsnrtombs-tests.
4747         c32snrtombs: New module.
4748         * lib/uchar.in.h (c32snrtombs): New declaration.
4749         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4750         INTERNAL_STATE, WCRTOMB.
4751         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4752         * lib/c32snrtombs.c: New file.
4753         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
4754         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
4755         * modules/c32snrtombs: New file.
4756         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
4757         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4759 2020-01-09  Bruno Haible  <bruno@clisp.org>
4761         c32srtombs: Add tests.
4762         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
4763         * tests/test-c32srtombs-1.sh: New file, based on
4764         tests/test-wcsrtombs1.sh.
4765         * tests/test-c32srtombs-2.sh: New file, based on
4766         tests/test-wcsrtombs2.sh.
4767         * tests/test-c32srtombs-3.sh: New file, based on
4768         tests/test-wcsrtombs3.sh.
4769         * tests/test-c32srtombs-4.sh: New file, based on
4770         tests/test-wcsrtombs4.sh.
4771         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
4773         c32srtombs: New module.
4774         * lib/uchar.in.h (c32srtombs): New declaration.
4775         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4776         INTERNAL_STATE, WCRTOMB.
4777         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4778         * lib/c32srtombs.c: New file.
4779         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
4780         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
4781         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
4782         * modules/c32srtombs: New file.
4783         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
4784         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
4786 2020-01-08  Bruno Haible  <bruno@clisp.org>
4788         c32tob: Make consistent with mbrtoc32.
4789         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
4790         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
4791         use c32rtomb, not wctob.
4792         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
4793         (Depends-on): Add c32rtomb.
4794         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
4796 2020-01-08  Bruno Haible  <bruno@clisp.org>
4798         c32rtomb: Add tests.
4799         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
4800         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
4801         * tests/test-c32rtomb-w32.c: New file, based on
4802         tests/test-wcrtomb-w32.c.
4803         * tests/test-c32rtomb-w32-1.sh: New file, based on
4804         tests/test-wcrtomb-w32-1.sh.
4805         * tests/test-c32rtomb-w32-2.sh: New file, based on
4806         tests/test-wcrtomb-w32-2.sh.
4807         * tests/test-c32rtomb-w32-3.sh: New file, based on
4808         tests/test-wcrtomb-w32-3.sh.
4809         * tests/test-c32rtomb-w32-4.sh: New file, based on
4810         tests/test-wcrtomb-w32-4.sh.
4811         * tests/test-c32rtomb-w32-5.sh: New file, based on
4812         tests/test-wcrtomb-w32-5.sh.
4813         * tests/test-c32rtomb-w32-6.sh: New file, based on
4814         tests/test-wcrtomb-w32-6.sh.
4815         * tests/test-c32rtomb-w32-7.sh: New file, based on
4816         tests/test-wcrtomb-w32-7.sh.
4817         * modules/c32rtomb-tests: New file.
4819         c32rtomb: New module.
4820         * lib/uchar.in.h (c32rtomb): New declaration.
4821         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
4822         * m4/c32rtomb.m4: New file.
4823         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
4824         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
4825         REPLACE_C32RTOMB.
4826         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
4827         HAVE_C32RTOMB, REPLACE_C32RTOMB.
4828         * modules/c32rtomb: New file.
4829         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
4830         * doc/posix-functions/c32rtomb.texi: Document the new module.
4831         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4833 2020-01-08  Bruno Haible  <bruno@clisp.org>
4835         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
4836         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
4837         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
4838         but is not working.
4839         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
4840         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
4841         differ, use the system's mbrtoc32, adding workarounds.
4842         * modules/mbrtoc32 (Depends-on): Add hard-locale.
4843         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
4844         Windows problem.
4845         * lib/btoc32.c: Include <stdio.h>, <string.h>.
4846         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
4847         use mbrtoc32, not btowc.
4848         * modules/btoc32 (Depends-on): Add mbrtoc32.
4849         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
4850         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
4851         * modules/mbsrtoc32s (Depends-on): Update conditions.
4852         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
4853         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
4854         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
4855         * modules/mbsnrtoc32s (Depends-on): Update conditions.
4856         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
4858 2020-01-07  Bruno Haible  <bruno@clisp.org>
4860         wcrtomb: Make multithread-safe, except possibly on IRIX.
4861         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
4862         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
4863         WCRTOMB_RETVAL_BUG.
4864         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
4865         wctomb only on IRIX.
4867 2020-01-05  Jim Meyering  <meyering@fb.com>
4869         tests: skip thread-using tests when threading is disabled
4870         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
4871         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
4872         of those, so they are skipped in this case.
4873         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
4874         * tests/test-setlocale_null-mt-all.c (main): Likewise.
4875         * tests/test-setlocale_null-mt-one.c (main): Likewise.
4877 2020-01-05  Bruno Haible  <bruno@clisp.org>
4879         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
4880         Reported by Jim Meyering in
4881         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
4882         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
4883         (GNULIB_defined_ptsname_r): New macro.
4884         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
4885         (main): Disable the NULL argument test if canonicalize_file_name does
4886         not come from gnulib.
4887         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
4888         (main): Disable the NULL argument test if canonicalize_file_name does
4889         not come from gnulib.
4890         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
4891         (test_errors): Disable the NULL argument test if ptsname_r does not come
4892         from gnulib.
4894 2020-01-04  Jim Meyering  <meyering@fb.com>
4896         update-copyright: reenable its always-skipped test
4897         * tests/test-update-copyright.sh: Restore the "-pi" options removed
4898         on 2019-06-15. Without those, an internal preliminary test would
4899         fail, causing this test always to be skipped.
4900         Verify that the test is now run and passes via this:
4901           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
4903 2020-01-05  Bruno Haible  <bruno@clisp.org>
4905         mbstoc32s: Add tests.
4906         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
4907         * tests/test-mbstoc32s-1.sh: New file, based on
4908         tests/test-mbsrtoc32s-1.sh.
4909         * tests/test-mbstoc32s-2.sh: New file, based on
4910         tests/test-mbsrtoc32s-2.sh.
4911         * tests/test-mbstoc32s-3.sh: New file, based on
4912         tests/test-mbsrtoc32s-3.sh.
4913         * tests/test-mbstoc32s-4.sh: New file, based on
4914         tests/test-mbsrtoc32s-4.sh.
4915         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
4917         mbstoc32s: New module.
4918         * lib/uchar.in.h (mbstoc32s): New declaration.
4919         * lib/mbstoc32s.c: New file.
4920         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
4921         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
4922         * modules/mbstoc32s: New file.
4923         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
4924         * doc/posix-functions/mbstowcs.texi: Mention the new module.
4926 2020-01-05  Bruno Haible  <bruno@clisp.org>
4928         Tweak recently added tests.
4929         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
4930         * tests/test-mbsrtoc32s.c: Likewise.
4931         * tests/test-mbsnrtoc32s.c: Likewise.
4933 2020-01-04  Bruno Haible  <bruno@clisp.org>
4935         mbsnrtoc32s: Add tests.
4936         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
4937         * tests/test-mbsnrtoc32s-1.sh: New file, based on
4938         tests/test-mbsnrtowcs1.sh.
4939         * tests/test-mbsnrtoc32s-2.sh: New file, based on
4940         tests/test-mbsnrtowcs2.sh.
4941         * tests/test-mbsnrtoc32s-3.sh: New file, based on
4942         tests/test-mbsnrtowcs3.sh.
4943         * tests/test-mbsnrtoc32s-4.sh: New file, based on
4944         tests/test-mbsnrtowcs4.sh.
4945         * modules/mbsnrtoc32s-tests: New file, based on
4946         modules/mbsnrtowcs-tests.
4948         mbsnrtoc32s: New module.
4949         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
4950         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
4951         INTERNAL_STATE, MBRTOWC.
4952         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
4953         * lib/mbsnrtoc32s.c: New file.
4954         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
4955         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
4956         * modules/mbsnrtoc32s: New file.
4957         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
4958         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
4960 2020-01-04  Bruno Haible  <bruno@clisp.org>
4962         mbsrtoc32s tests: Enhance test.
4963         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
4964         test strings for UTF-8 and GB18030.
4966 2020-01-04  Bruno Haible  <bruno@clisp.org>
4968         mbsrtoc32s: Fix bug.
4969         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
4970         that SMALL_WCHAR_T is defined.
4972 2020-01-04  Bruno Haible  <bruno@clisp.org>
4974         mbsrtoc32s: Add tests.
4975         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
4976         * tests/test-mbsrtoc32s-1.sh: New file, based on
4977         tests/test-mbsrtowcs1.sh.
4978         * tests/test-mbsrtoc32s-2.sh: New file, based on
4979         tests/test-mbsrtowcs2.sh.
4980         * tests/test-mbsrtoc32s-3.sh: New file, based on
4981         tests/test-mbsrtowcs3.sh.
4982         * tests/test-mbsrtoc32s-4.sh: New file, based on
4983         tests/test-mbsrtowcs4.sh.
4984         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
4986         mbsrtoc32s: New module.
4987         * lib/uchar.in.h (mbsrtoc32s): New declaration.
4988         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
4989         INTERNAL_STATE, MBRTOWC.
4990         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
4991         * lib/mbsrtoc32s.c: New file.
4992         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
4993         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
4994         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
4995         * modules/mbsrtoc32s: New file.
4996         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
4997         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
4999 2020-01-04  Bruno Haible  <bruno@clisp.org>
5001         mbrtowc, mbrtoc32: Tighten dependendies.
5002         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5003         REPLACE_MBSTATE_T is 1.
5004         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5005         REPLACE_MBSTATE_T is 0.
5006         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5007         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5008         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5009         REPLACE_MBSTATE_T is 0.
5011 2020-01-04  Bruno Haible  <bruno@clisp.org>
5013         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5014         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5015         * modules/uchar (Files): Add stdint.m4.
5016         (Makefile.am): Substitute SMALL_WCHAR_T.
5017         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5019 2020-01-04  Bruno Haible  <bruno@clisp.org>
5021         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5022         Reported by Martin Storsjö <martin@martin.st> in
5023         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5024         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5025         New macros.
5026         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5028 2020-01-04  Bruno Haible  <bruno@clisp.org>
5030         btoc32: Add tests.
5031         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5032         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5033         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5034         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5036         btoc32: New module.
5037         * lib/uchar.in.h (btoc32): New declaration.
5038         * lib/btoc32.c: New file.
5039         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5040         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5041         * modules/btoc32: New file.
5042         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5043         * doc/posix-functions/btowc.texi: Mention the new module.
5045 2020-01-03  Bruno Haible  <bruno@clisp.org>
5047         uchar tests: Avoid compilation error with HP cc.
5048         * tests/test-uchar.c: Disable a test when HP cc is in use.
5050 2020-01-03  Bruno Haible  <bruno@clisp.org>
5052         mbrtoc32: Add tests.
5053         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5054         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5055         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5056         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5057         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5058         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5059         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5060         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5061         tests/test-mbrtowc-w32-1.sh.
5062         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5063         tests/test-mbrtowc-w32-2.sh.
5064         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5065         tests/test-mbrtowc-w32-3.sh.
5066         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5067         tests/test-mbrtowc-w32-4.sh.
5068         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5069         tests/test-mbrtowc-w32-5.sh.
5070         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5071         tests/test-mbrtowc-w32-6.sh.
5072         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5073         tests/test-mbrtowc-w32-7.sh.
5074         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5076         mbrtoc32: New module.
5077         * lib/uchar.in.h (mbrtoc32): New declaration.
5078         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5079         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5080         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5081         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5082         REPLACE_MBRTOC32.
5083         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5084         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5085         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5086         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5087         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5088         $(LIB_MBRTOWC).
5089         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5090         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5092 2020-01-03  Bruno Haible  <bruno@clisp.org>
5094         mbrtowc: Refactor to share code with mbrtoc32.
5095         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5096         * lib/mbrtowc-impl-utf8.h: Likewise.
5097         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5098         mbrtowc-impl.h.
5099         * modules/mbrtowc (Files): Add the new files.
5101 2020-01-03  Jim Meyering  <meyering@fb.com>
5103         doc: fix time.texi wording
5104         * doc/posix-headers/time.texi (time.h): Typo.
5106 2020-01-03  Bruno Haible  <bruno@clisp.org>
5108         mbrtowc: Refactor locale charset dispatching.
5109         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5110         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5111         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5112         localcharset.h, streq.h.
5113         (enc_t): Remove type.
5114         (locale_enc): Remove function.
5115         (cached_locale_enc): Remove variable.
5116         (locale_enc_cached): Remove function.
5117         (mbrtowc): Invoke locale_encoding_classification.
5118         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5119         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5120         lc-charset-dispatch.c.
5121         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5123 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5125         doc: mention 32-bit time_t issue
5126         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5127         * doc/posix-headers/time.texi (time.h): Mention 2038.
5129 2020-01-03  Bruno Haible  <bruno@clisp.org>
5131         mbrtowc: Ensure the mbtowc_lock is unique.
5132         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5133         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5134         lib/setlocale_null.c.
5135         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5136         glthread/lock.h. Include mbtowc-lock.h.
5137         (mbtowc_lock): Remove declaration.
5138         (mbrtowc): Use mbtowc_with_lock.
5139         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5140         threads.h. Set LIB_MBRTOWC.
5141         (gl_PREREQ_MBTOWC_LOCK): New macro.
5142         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5143         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5144         (Depends-on): Remove lock.
5145         (configure.ac): Arrange to compile mbtowc-lock.c.
5146         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5147         * modules/acl (Link): Likewise.
5148         * modules/argmatch (Link): Likewise.
5149         * modules/backup-rename (Link): Likewise.
5150         * modules/backupfile (Link): Likewise.
5151         * modules/closein (Link): Likewise.
5152         * modules/closeout (Link): Likewise.
5153         * modules/copy-file (Link): Likewise.
5154         * modules/csharpcomp (Link): Likewise.
5155         * modules/csharpexec (Link): Likewise.
5156         * modules/dfa (Link): Likewise.
5157         * modules/exclude (Link): Likewise.
5158         * modules/fnmatch (Link): Likewise.
5159         * modules/fnmatch-gnu (Link): Likewise.
5160         * modules/fnmatch-posix (Link): Likewise.
5161         * modules/glob (Link): Likewise.
5162         * modules/human (Link): Likewise.
5163         * modules/javacomp (Link): Likewise.
5164         * modules/javaexec (Link): Likewise.
5165         * modules/javaversion (Link): Likewise.
5166         * modules/mbfile (Link): Likewise.
5167         * modules/mbiter (Link): Likewise.
5168         * modules/mbmemcasecmp (Link): Likewise.
5169         * modules/mbmemcasecoll (Link): Likewise.
5170         * modules/mbrlen (Link): Likewise.
5171         * modules/mbscasecmp (Link): Likewise.
5172         * modules/mbscasestr (Link): Likewise.
5173         * modules/mbschr (Link): Likewise.
5174         * modules/mbscspn (Link): Likewise.
5175         * modules/mbsinit (Link): Likewise.
5176         * modules/mbslen (Link): Likewise.
5177         * modules/mbsncasecmp (Link): Likewise.
5178         * modules/mbsnlen (Link): Likewise.
5179         * modules/mbsnrtowcs (Link): Likewise.
5180         * modules/mbspbrk (Link): Likewise.
5181         * modules/mbspcasecmp (Link): Likewise.
5182         * modules/mbsrchr (Link): Likewise.
5183         * modules/mbsrtowcs (Link): Likewise.
5184         * modules/mbssep (Link): Likewise.
5185         * modules/mbsspn (Link): Likewise.
5186         * modules/mbsstr (Link): Likewise.
5187         * modules/mbstok_r (Link): Likewise.
5188         * modules/mbswidth (Link): Likewise.
5189         * modules/mbuiter (Link): Likewise.
5190         * modules/mkdir-p (Link): Likewise.
5191         * modules/propername (Link): Likewise.
5192         * modules/quote (Link): Likewise.
5193         * modules/quotearg (Link): Likewise.
5194         * modules/quotearg-simple (Link): Likewise.
5195         * modules/regex-quote (Link): Likewise.
5196         * modules/rpmatch (Link): Likewise.
5197         * modules/sh-quote (Link): Likewise.
5198         * modules/system-quote (Link): Likewise.
5199         * modules/trim (Link): Likewise.
5200         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5201         * modules/unistdio/ulc-fprintf (Link): Likewise.
5202         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5203         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5204         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5205         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5206         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5207         * modules/xfreopen (Link): Likewise.
5208         * modules/xmemcoll (Link): Likewise.
5209         * modules/yesno (Link): Likewise.
5210         * modules/regex (Link): Add $(LIB_MBRTOWC).
5211         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5212         instead of $(LIBTHREAD).
5213         * modules/argmatch-tests (Makefile.am): Likewise.
5214         * modules/closein-tests (Makefile.am): Likewise.
5215         * modules/copy-file-tests (Makefile.am): Likewise.
5216         * modules/dfa-tests (Makefile.am): Likewise.
5217         * modules/fnmatch-tests (Makefile.am): Likewise.
5218         * modules/glob-tests (Makefile.am): Likewise.
5219         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5220         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5221         * modules/mbrtowc-tests (Makefile.am): Likewise.
5222         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5223         * modules/mbscasestr-tests (Makefile.am): Likewise.
5224         * modules/mbschr-tests (Makefile.am): Likewise.
5225         * modules/mbscspn-tests (Makefile.am): Likewise.
5226         * modules/mbsinit-tests (Makefile.am): Likewise.
5227         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5228         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5229         * modules/mbspbrk-tests (Makefile.am): Likewise.
5230         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5231         * modules/mbsrchr-tests (Makefile.am): Likewise.
5232         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5233         * modules/mbsspn-tests (Makefile.am): Likewise.
5234         * modules/mbsstr-tests (Makefile.am): Likewise.
5235         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5236         * modules/quotearg-tests (Makefile.am): Likewise.
5237         * modules/readtokens-tests (Makefile.am): Likewise.
5238         * modules/sh-quote-tests (Makefile.am): Likewise.
5239         * modules/system-quote-tests (Makefile.am): Likewise.
5240         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5241         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5242         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5243         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5244         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5245         * modules/yesno-tests (Makefile.am): Likewise.
5246         * modules/exclude-tests (Makefile.am): Link the programs with
5247         $(LIB_MBRTOWC).
5248         * modules/regex-tests (Makefile.am): Likewise.
5249         * modules/regex-quote-tests (Makefile.am): Likewise.
5251 2020-01-03  Bruno Haible  <bruno@clisp.org>
5253         getopt-posix: Fix compilation failure in testdirs.
5254         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5255         when the gnulib module 'getopt-posix' is enabled.
5256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5257         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5258         module indicator.
5259         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5261 2020-01-03  Bruno Haible  <bruno@clisp.org>
5263         doc: Mention the 64-bit inode number problem.
5264         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5265         64-bit inode number problem.
5266         * doc/posix-functions/stat.texi: Mention that this module fixes the
5267         64-bit inode number problem.
5268         * doc/posix-functions/lstat.texi: Likewise.
5269         * doc/posix-functions/fstat.texi: Likewise.
5270         * doc/posix-functions/readdir.texi: Add more details.
5271         * doc/posix-functions/readdir_r.texi: Likewise.
5273 2020-01-02  Bruno Haible  <bruno@clisp.org>
5275         wcrtomb: Add more tests.
5276         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5277         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5278         locale_charset() returns the expected value; otherwise, skip the test.
5279         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5280         * tests/test-wcrtomb-w32-7.sh: Likewise.
5281         * modules/wcrtomb-tests (Files): Add these files.
5282         (Depends-on): Add localcharset.
5283         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5285 2020-01-02  Bruno Haible  <bruno@clisp.org>
5287         mbrtowc: Add more tests.
5288         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5289         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5290         locale_charset() returns the expected value; otherwise, skip the test.
5291         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5292         * tests/test-mbrtowc-w32-7.sh: Likewise.
5293         * modules/mbrtowc-tests (Files): Add these files.
5294         (Depends-on): Add localcharset.
5295         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5297 2020-01-02  Bruno Haible  <bruno@clisp.org>
5299         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5300         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5301         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5302         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5303         MBRTOWC_STORES_INCOMPLETE_BUG.
5304         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5306 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5308         doc: mention glibc bug 24269
5309         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5310         Reformat slightly so that it looks nicer in the Grep manual.
5312 2020-01-02  Bruno Haible  <bruno@clisp.org>
5314         mbrtowc: Don't replace mbstate_t on MSVC.
5315         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5316         a missing mbsinit function on native Windows.
5317         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5318         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5319         MSVC bug.
5320         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5322 2020-01-02  Bruno Haible  <bruno@clisp.org>
5324         setlocale-null: Avoid crashing the MSVC linker.
5325         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5326         MSVC.
5328 2020-01-02  Bruno Haible  <bruno@clisp.org>
5330         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5331         * modules/wchar (Depends-on): Add inttypes-incomplete.
5332         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5333         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5334         of strtoimax.
5336 2020-01-02  Bruno Haible  <bruno@clisp.org>
5338         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5339         * lib/mbrtowc.c: Include <stdint.h>.
5340         * modules/mbrtowc (Depends-on): Add stdint.
5342 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5344         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5345         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5346         which will auto enable use of openssl, only for >= version 3,
5347         which is newly licensed under the Apache Software License.
5349 2020-01-01  Bruno Haible  <bruno@clisp.org>
5351         mbrtowc: Include function name in macro names.
5352         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5353         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5354         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5355         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5356         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5357         C_LOCALE_MAYBE_EILSEQ.
5359 2020-01-01  Bruno Haible  <bruno@clisp.org>
5361         c32tob: New module.
5362         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5363         (c32tob): New declaration.
5364         * lib/c32tob.c: New file.
5365         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5366         macros.
5367         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5368         * modules/uchar (Depends-on): Add snippet/c++defs.
5369         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5370         uchar.h.
5371         * modules/c32tob: New file.
5372         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5373         defined.
5374         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5375         c32tob.
5376         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5377         * doc/posix-functions/wctob.texi: Mention the new module.
5379 2020-01-01  Bruno Haible  <bruno@clisp.org>
5381         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5382         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5383         $(LIB_SETLOCALE).
5385 2020-01-01  Bruno Haible  <bruno@clisp.org>
5387         hard-locale tests: Fix a conflict with the C++ tests.
5388         * modules/hard-locale-tests (Makefile.am): Build a program named
5389         'current-locale', not 'locale'.
5391 2020-01-01  Bruno Haible  <bruno@clisp.org>
5393         doc: Update documentation about wchar_t.
5394         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5395         wchar_t type.
5397 2020-01-01  Bruno Haible  <bruno@clisp.org>
5399         mbrtowc tests: Fix typos.
5400         * tests/test-mbrtowc.c (main): Fix typo.
5401         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5403 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5405         maint: update copyright notices
5406         Before doing the following changes done by hand, I also ran ‘make
5407         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5408         to do most of the copyright years automatically.  A few upstream
5409         sources are still in 2019 but these should eventually be changed
5410         automatically too.
5411         * build-aux/declared.sh (func_version):
5412         * build-aux/libtool-next-version (func_version):
5413         * build-aux/run-test (func_version):
5414         Update these notices by hand.  Put just the last year
5415         in output of programs, as per GNU coding standards.
5417 2019-12-31  Bruno Haible  <bruno@clisp.org>
5419         uchar: Add C++ tests.
5420         * tests/test-uchar-c++.cc: New file.
5421         * tests/test-uchar-c++2.cc: New file.
5422         * modules/uchar-c++-tests: New file.
5424         uchar: Add tests.
5425         * tests/test-uchar.c: New file.
5426         * modules/uchar-tests: New file.
5428         uchar: New module.
5429         * lib/uchar.in.h: New file.
5430         * m4/uchar.m4: New file.
5431         * modules/uchar: New file.
5432         * doc/posix-headers/uchar.texi: Mention the new module.
5434 2019-12-30  Jim Meyering  <meyering@fb.com>
5436         localeinfo: ->simple would be wrong for LC_ALL=C
5437         That would lead to using unnecessary and expensive code paths in dfa.c.
5438         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5439         error that would have made grep many times slower in the C locale.
5440         With this change, and a file created like this:
5441           yes 00 | head -10000000 > in
5442         Running grep as follows becomes more than 40 times faster:
5443           LC_ALL=C grep -Fw 0 in
5445 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5447         doc: document trouble with back-references
5448         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5450 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5452         doc: use “back-reference” for \1 etc.
5453         * doc/regex.texi: Consistently spell “back-reference” with
5454         a hyphen, since that’s how POSIX does it.
5456 2019-12-26  Jim Meyering  <meyering@fb.com>
5458         test-framework-sh: tighten an internal grep regexp
5459         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5460         that helps test for a working printf.
5462 2019-12-26  Bruno Haible  <bruno@clisp.org>
5464         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5465         Reported by Paul Eggert in
5466         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5467         Simplification by Jim Meyering.
5468         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5469         octal escape sequence in a UTF-8 locale.
5471 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5473         mbrtowc: port better to narrow-wchar_t platforms
5474         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5475         wchar_t is too narrow to represent all the Unicode characters,
5476         consider a byte sequence for an out-of-wchar_t-range character to
5477         be an encoding error.  This fixes grep’s surrogate-pair test
5478         failure on AIX 7.2.
5480 2019-12-24  Bruno Haible  <bruno@clisp.org>
5482         localcharset: Avoid referencing rpl_setlocale on native Windows.
5483         * lib/localcharset.c (setlocale): Undefine.
5485 2019-12-24  Bruno Haible  <bruno@clisp.org>
5487         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5488         * m4/semaphore.m4: New file.
5489         * modules/lock-tests (Files): Add it.
5490         (configure.ac): Require gl_SEMAPHORE.
5491         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5493 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5495         strptime: fix typo in previous patch
5496         Problem and fix reported by Bruno Haible in:
5497         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5498         * lib/strptime.c (day_of_the_week): Fix paren bug.
5500 2019-12-24  Bruno Haible  <bruno@clisp.org>
5502         setlocale-null: Make it easy to rely on the lock in another library.
5503         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5504         defined.
5506 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5508         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5509         Performanced analyzed by Bruno Haible in:
5510         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5511         * config/srclist.txt: Do not sync mktime.c for now.
5512         * lib/mktime.c (shr, ydhms_diff):
5513         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5514         * lib/strptime.c (day_of_the_week):
5515         * lib/xtime.h (xtime_sec):
5516         Redo with neither ‘%’ nor conditional branches.
5518 2019-12-23  Bruno Haible  <bruno@clisp.org>
5520         setlocale-null: Export the lock function also on non-Windows platforms.
5521         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5522         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5523         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5524         * modules/setlocale-null (configure.ac): Invoke it.
5525         (Files): Add m4/visibility.m4.
5527 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5529         gethrxtime: fix rounding bug with negative args
5530         Problem reported by Bruno Haible in:
5531         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5532         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5533         with negative rounding.  Common platforms can compute / and % with
5534         a single instruction, so the simplified code should be shorter and
5535         faster on these platforms anyway.
5537 2019-12-22  Bruno Haible  <bruno@clisp.org>
5539         gethrxtime: remove incorrect overflow detection
5540         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5541         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5542         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5543         cannot now see the need for anyway (even in cases where it works),
5544         as the patch is helpful only when the signs of S and NS disagree,
5545         and all callers pass nonnegative values for S and NS.
5547 2019-12-22  Bruno Haible  <bruno@clisp.org>
5549         setlocale-null: Add standalone include file.
5550         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5551         * lib/locale.in.h: Include setlocale_null.h.
5552         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5553         setlocale_null): Remove declarations.
5554         * lib/setlocale_null.c: Include setlocale_null.h.
5555         * lib/localename.c: Likewise.
5556         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5557         (Depends-on): Add snippet/arg-nonnull.
5558         (Include): Allow either "setlocale_null.h" or <locale.h>.
5560 2019-12-22  Bruno Haible  <bruno@clisp.org>
5562         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5563         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5564         AC_RUN_IFELSE test.
5565         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5566         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5567         problem.
5569 2019-12-22  Bruno Haible  <bruno@clisp.org>
5571         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5572         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5573         unconditional AC_LIBOBJ.
5574         * modules/selinux-at: Likewise.
5575         * modules/xmemdup0: Likewise.
5576         * modules/xstrtoll: Likewise.
5578 2019-12-22  Bruno Haible  <bruno@clisp.org>
5580         longlong: Mark module obsolete.
5581         * modules/longlong (Status, Notice): New sections.
5583         stdint: Assume that the compiler supports 'long long'.
5584         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5585         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5586         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5587         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
5588         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5589         * modules/stdint (Files): Remove longlong.m4.
5590         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
5591         HAVE_UNSIGNED_LONG_LONG_INT.
5593         inttypes-incomplete: Assume that the compiler supports 'long long'.
5594         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5595         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
5596         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5597         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
5598         HAVE_LONG_LONG_INT to be 1.
5599         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5600         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
5602         malloca: Assume that the compiler supports 'long long'.
5603         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
5604         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
5605         * modules/malloca (Files): Remove longlong.m4.
5606         * modules/relocatable-prog-wrapper (Files): Likewise.
5608         atoll: Assume that the compiler supports 'long long'.
5609         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
5610         * modules/atoll (Files): Remove longlong.m4.
5612         strtoll: Assume that the compiler supports 'long long'.
5613         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
5614         * modules/strtoll (Files): Remove longlong.m4.
5616         strtoull: Assume that the compiler supports 'long long'.
5617         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
5618         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5619         * modules/strtoull (Files): Remove longlong.m4.
5621         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
5622         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
5623         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5624         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
5625         AC_TYPE_LONG_LONG_INT.
5626         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
5627         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5628         * modules/strtoimax (Files): Remove longlong.m4.
5629         * modules/strtoumax (Files): Likewise.
5631         xstrtoll: Assume that the compiler supports 'long long'.
5632         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
5633         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
5635         vasnprintf: Assume that the compiler supports 'long long'.
5636         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
5637         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
5638         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5639         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
5640         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
5641         require AC_TYPE_LONG_LONG_INT.
5642         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5643         gl_PREREQ_VASNPRINTF): Likewise.
5644         * modules/vasnprintf (Files): Remove longlong.m4.
5645         * modules/c-vasnprintf (Files): Likewise.
5646         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5647         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5648         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5649         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5650         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5651         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5652         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5654         gethrxtime: Assume that the compiler supports 'long long'.
5655         * lib/xtime.h (xtime_t): Define to 'long long int' always.
5656         (XTIME_PRECISION): Define to 1000000000 always.
5657         (xtime_make, xtime_sec): Optimize accordingly.
5658         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
5659         * modules/gethrxtime (Files): Remove longlong.m4.
5661         integer_length*: Assume that the compiler supports 'long long'.
5662         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
5663         * modules/integer_length (Files): Remove longlong.m4.
5664         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5665         * modules/integer_length_l (Files): Remove longlong.m4.
5666         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5667         * modules/integer_length_ll (Files): Remove longlong.m4.
5668         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5670         count-one-bits: Assume that the compiler supports 'long long'.
5671         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
5672         * m4/count-one-bits.m4: Remove file.
5673         * modules/count-one-bits (Files): Remove it.
5674         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
5675         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
5676         unconditionally.
5678         count-trailing-zeros: Assume that the compiler supports 'long long'.
5679         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
5680         unconditionally.
5681         * m4/count-trailing-zeros.m4: Remove file.
5682         * modules/count-trailing-zeros (Files): Remove it.
5683         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
5684         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
5685         unconditionally.
5687         count-leading-zeros: Assume that the compiler supports 'long long'.
5688         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
5689         unconditionally.
5690         * m4/count-leading-zeros.m4: Remove file.
5691         * modules/count-leading-zeros (Files): Remove it.
5692         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
5693         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
5694         unconditionally.
5696 2019-12-22  Bruno Haible  <bruno@clisp.org>
5698         localcharset: Update support for OpenBSD.
5699         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
5701 2019-12-21  Bruno Haible  <bruno@clisp.org>
5703         pthread_sigmask: Avoid test failure on NetBSD 8.0.
5704         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
5705         NetBSD.
5706         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
5708 2019-12-21  Bruno Haible  <bruno@clisp.org>
5710         threadlib: Improve code structure.
5711         * m4/threadlib.m4: Reorder macros. Add comments.
5713 2019-12-21  Bruno Haible  <bruno@clisp.org>
5715         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
5716         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
5717         here from m4/threads.m4).
5718         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
5719         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
5720         (gl_STDTHREADLIB): New macro.
5721         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
5722         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
5724 2019-12-21  Bruno Haible  <bruno@clisp.org>
5726         sched_yield: Don't depend on threadlib and yield.
5727         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
5728         LIB_SCHED_YIELD.
5729         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
5730         m4/yield.m4).
5731         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
5732         gl_THREADLIB and gl_YIELD.
5733         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
5734         based on $(LIB_SCHED_YIELD).
5735         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
5736         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5737         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
5738         (Depends-on): Remove threadlib.
5739         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5740         * modules/threads-h (Files): Remove m4/yield.m4.
5741         * modules/pthread-cond-tests (Makefile.am): Link the programs against
5742         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5743         * modules/pthread-mutex-tests (Makefile.am): Likewise.
5744         * modules/pthread-once-tests (Makefile.am): Likewise.
5745         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
5746         * modules/pthread-tss-tests (Makefile.am): Likewise.
5748 2019-12-21  Bruno Haible  <bruno@clisp.org>
5750         threads-h: Don't depend on threadlib.
5751         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
5752         not gl_THREADLIB_EARLY.
5754 2019-12-21  Bruno Haible  <bruno@clisp.org>
5756         nl_langinfo tests: Fix link error (regression from 2019-12-18).
5757         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
5758         with $(LIB_SETLOCALE).
5760 2019-12-21  Bruno Haible  <bruno@clisp.org>
5762         threadlib: Remove unused dependency (left over from 2019-07-06).
5763         * modules/threadlib (Depends-on): Remove havelib.
5765 2019-12-21  Bruno Haible  <bruno@clisp.org>
5767         New convention for multithread-safety tests.
5768         * tests/test-setlocale_null-mt-one.c: Renamed from
5769         tests/test-setlocale_null-one.c.
5770         * tests/test-setlocale_null-mt-all.c: Renamed from
5771         tests/test-setlocale_null-all.c.
5772         * modules/setlocale-null-tests (Files, Makefile.am): Update.
5774 2019-12-21  Bruno Haible  <bruno@clisp.org>
5776         quotearg tests: Fix conflict with hard-locale tests.
5777         * tests/testlocale: Renamed from tests/locale.
5778         * modules/quotearg-tests (Files): Update.
5779         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
5781 2019-12-21  Bruno Haible  <bruno@clisp.org>
5783         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
5784         Reported by Daniel Richard G. in
5785         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
5786         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
5787         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
5788         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
5789         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
5790         alternative to PTHREAD_RWLOCK_INITIALIZER.
5791         * lib/glthread/lock.c: Likewise.
5793 2019-12-21  Bruno Haible  <bruno@clisp.org>
5795         memcmp tests: Work around the clang bug.
5796         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
5797         the clang optimization.
5799 2019-12-20  Bruno Haible  <bruno@clisp.org>
5801         localcharset: Add support for z/OS encoding names.
5802         * lib/localcharset.h: Mention which encodings are used as locale
5803         encodings on z/OS.
5805 2019-12-20  Bruno Haible  <bruno@clisp.org>
5807         iconv_open: Add support for z/OS encoding names.
5808         Reported by Daniel Richard G. in
5809         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
5810         * lib/iconv_open-zos.gperf: New file.
5811         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
5812         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
5813         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
5814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
5815         * doc/posix-functions/iconv_open.texi: Mention z/OS.
5817 2019-12-20  Bruno Haible  <bruno@clisp.org>
5819         doc: Document the problem of the per-thread locale functions on z/OS.
5820         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
5821         * doc/posix-functions/newlocale.texi: Likewise.
5822         * doc/posix-functions/duplocale.texi: Likewise.
5823         * doc/posix-functions/freelocale.texi: Likewise.
5825 2019-12-20  Bruno Haible  <bruno@clisp.org>
5827         localename, gettext: Fix host_os value for z/OS.
5828         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
5829         cross-configuration code.
5831 2019-12-19  Jim Meyering  <meyering@fb.com>
5833         nstrftime: avoid a shadowing warning
5834         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
5835         to avoid shadowing an "i" declared hundreds of lines above.
5837 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5839         dfa: struct dfamust now uses flexible array
5840         * lib/dfa.c: Include flexmember.h.
5841         (dfamust, dfamustfree): Adjust to struct dfamust change.
5842         This saves a call to malloc+free.
5843         * lib/dfa.h (struct dfamust): Make the final member a
5844         flexible array member.
5845         * modules/dfa (Depends-on): Add flexmember.
5847         dfa: fast->small for array elements
5848         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
5849         since this type is used in arrays.  This change is more for
5850         documentation than for any practical effect, since the two types
5851         are the same on all known platforms.
5853 2019-12-19  Bruno Haible  <bruno@clisp.org>
5855         iconv tests: Test canonicalized, not system-dependent, encoding names.
5856         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
5857         * modules/iconv-tests (Depends-on): Add iconv_open.
5859 2019-12-18  Bruno Haible  <bruno@clisp.org>
5861         localename: Fix test failure on AIX 7.2.
5862         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
5863         locales on AIX.
5864         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
5865         locales on AIX.
5867 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5869         Improve port of AC_C_RESTRICT to Oracle C++
5870         Problem reported by Christian Biesinger in:
5871         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
5872         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
5873         Oracle Developer Studio C++ 12.5 or later.
5875 2019-12-18  Bruno Haible  <bruno@clisp.org>
5877         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
5878         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
5880 2019-12-18  Bruno Haible  <bruno@clisp.org>
5882         localename: Ensure multithread-safety in future changes.
5883         * lib/localename.c (setlocale): Reference the system's setlocale().
5884         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
5885         (gl_locale_name_posix): Likewise.
5886         * modules/localename (Depends-on): Add setlocale-null.
5888 2019-12-18  Bruno Haible  <bruno@clisp.org>
5890         setlocale-null: Make API more useful.
5891         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
5892         callers changed.
5893         (setlocale_null): New declaration.
5894         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
5895         extracted from setlocale_null_unlocked.
5896         (setlocale_null_unlocked): Invoke it.
5897         (setlocale_null_r): Renamed from setlocale_null.
5898         (setlocale_null): New function, extracted from setlocale_mtsafe in
5899         setlocale.c.
5900         * lib/setlocale.c: Don't include <errno.h>.
5901         (setlocale_mtsafe): Invoke setlocale_null.
5902         * lib/setlocale-lock.c: Update comments.
5903         * doc/posix-functions/setlocale.texi: Mention both functions.
5905 2019-12-18  Bruno Haible  <bruno@clisp.org>
5907         localename: Optimize code for native Windows.
5908         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
5909         category (not allowed here).
5911 2019-12-18  Bruno Haible  <bruno@clisp.org>
5913         setlocale: Make calls with NULL argument multithread-safe.
5914         * lib/setlocale.c: Include <errno.h>.
5915         (setlocale_mtsafe): New function.
5916         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
5917         (setlocale_improved): Renamed from rpl_setlocale.
5918         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
5919         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
5920         LIB_SETLOCALE.
5921         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
5922         (Link): New section.
5923         * tests/locale.c: Undefine setlocale.
5924         * tests/test-setlocale_null-one.c: Likewise.
5925         * tests/test-setlocale_null-all.c: Likewise.
5926         * modules/setlocale-tests (Makefile.am): Link the test programs with
5927         $(LIB_SETLOCALE).
5928         * modules/astrxfrm-tests (Makefile.am): Likewise.
5929         * modules/btowc-tests (Makefile.am): Likewise.
5930         * modules/c-ctype-tests (Makefile.am): Likewise.
5931         * modules/c-snprintf-tests (Makefile.am): Likewise.
5932         * modules/c-strcase-tests (Makefile.am): Likewise.
5933         * modules/c-vasprintf-tests (Makefile.am): Likewise.
5934         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
5935         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
5936         * modules/dfa-tests (Makefile.am): Likewise.
5937         * modules/duplocale-tests (Makefile.am): Likewise.
5938         * modules/hard-locale-tests (Makefile.am): Likewise.
5939         * modules/localcharset-tests (Makefile.am): Likewise.
5940         * modules/localename-tests (Makefile.am): Likewise.
5941         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5942         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5943         * modules/mbrtowc-tests (Makefile.am): Likewise.
5944         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5945         * modules/mbscasestr-tests (Makefile.am): Likewise.
5946         * modules/mbschr-tests (Makefile.am): Likewise.
5947         * modules/mbscspn-tests (Makefile.am): Likewise.
5948         * modules/mbsinit-tests (Makefile.am): Likewise.
5949         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5950         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5951         * modules/mbspbrk-tests (Makefile.am): Likewise.
5952         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5953         * modules/mbsrchr-tests (Makefile.am): Likewise.
5954         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5955         * modules/mbsspn-tests (Makefile.am): Likewise.
5956         * modules/mbsstr-tests (Makefile.am): Likewise.
5957         * modules/nl_langinfo-tests (Makefile.am): Likewise.
5958         * modules/quotearg-tests (Makefile.am): Likewise.
5959         * modules/regex-tests (Makefile.am): Likewise.
5960         * modules/strfmon_l-tests (Makefile.am): Likewise.
5961         * modules/strtod-tests (Makefile.am): Likewise.
5962         * modules/strtold-tests (Makefile.am): Likewise.
5963         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
5964         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
5965         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
5966         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
5967         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5968         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5969         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5970         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5971         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
5972         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5973         * modules/wcrtomb-tests (Makefile.am): Likewise.
5974         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
5975         * modules/wcsrtombs-tests (Makefile.am): Likewise.
5976         * modules/wcwidth-tests (Makefile.am): Likewise.
5977         * doc/posix-functions/setlocale.texi: Mention that the multithread-
5978         safety fix is also available in module 'setlocale'.
5980 2019-12-18  Bruno Haible  <bruno@clisp.org>
5982         hard-locale: Make multithread-safe.
5983         * lib/hard-locale.h (hard_locale): Move documentation to here.
5984         * lib/hard-locale.c: Don't include <stdlib.h>.
5985         (GLIBC_VERSION): Remove macro.
5986         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
5987         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
5988         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
5989         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
5990         (Link): New section.
5991         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
5992         $(LIB_HARD_LOCALE).
5994 2019-12-18  Bruno Haible  <bruno@clisp.org>
5996         hard-locale: Avoid test failure on Haiku.
5997         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
5999 2019-12-18  Bruno Haible  <bruno@clisp.org>
6001         setlocale-null: Handle NULL result from setlocale.
6002         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6003         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6004         from setlocale or _wsetlocale.
6006 2019-12-18  Bruno Haible  <bruno@clisp.org>
6008         hard-locale: Add test.
6009         * tests/test-hard-locale.c: New file.
6010         * tests/locale.c: New file.
6011         * modules/hard-locale-tests: New file.
6013 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6015         dfa: do not match invalid UTF-8
6016         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6017         from 5 to 9 tokens; this is needed due to the changes to
6018         add_utf8_anychar.
6019         (charclass_index): 2nd arg is now pointer-to-const.
6020         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6021         instead of allowing overlong encodings or surrogate halves.
6023         dfa: simplify charclass by assuming C99
6024         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6025         (charclass_word): Now always uint_fast64_t.
6026         (CHARCLASS_PAIR): Remove.
6027         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6029         fts: tune via calloc
6030         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6032         dfa: tune via xzalloc
6033         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6035 2019-12-17  Bruno Haible  <bruno@clisp.org>
6037         localcharset: Fix multithread-safety bug on Windows and OS/2.
6038         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6039         invalid.
6040         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6041         assemble the result.
6043 2019-12-17  Bruno Haible  <bruno@clisp.org>
6045         localcharset: Optimize code for native Windows.
6046         * lib/localcharset.c (locale_charset): Don't bother calling
6047         setlocale (LC_ALL, NULL) since we're not interested in its result.
6049 2019-12-17  Bruno Haible  <bruno@clisp.org>
6051         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6052         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6053         setlocale.
6054         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6055         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6056         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6058 2019-12-17  Bruno Haible  <bruno@clisp.org>
6060         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6061         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6062         stack-allocated buffer to assemble each result and different static
6063         buffers to return it.
6064         * tests/test-nl_langinfo-mt.c: New file.
6065         * modules/nl_langinfo-tests (Files): Add it.
6066         (Depends-on): Add thread, nanosleep.
6067         (Makefile.am): Build test-nl_langinfo-mt test.
6069 2019-12-17  Bruno Haible  <bruno@clisp.org>
6071         langinfo: Document more details.
6072         * doc/posix-headers/langinfo.texi: List platform details.
6073         * doc/posix-functions/nl_langinfo.texi: Likewise.
6075 2019-12-17  Bruno Haible  <bruno@clisp.org>
6077         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6078         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6079         and Martin Storsjö <martin@martin.st>
6080         in <https://savannah.gnu.org/bugs/?57406>.
6081         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6082         mingw.
6084 2019-12-17  Bruno Haible  <bruno@clisp.org>
6086         glob: Avoid warning on mingw.
6087         Reported by Christian Biesinger <cbiesinger@google.com> in
6088         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6089         * lib/glob.c (__stat64): Undefine first.
6091 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6093         xalloc: tune xzalloc for fresh allocations
6094         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6095         because when the memory is freshly allocated from the OS via sbrk
6096         or mmap, calloc can avoid doing the memset.
6098         dfa: new function dfacopysyntax
6099         * lib/dfa.c (struct dfa): Move syntax member later so
6100         that dfacopysyntax can easily clear earlier members.
6101         (dfacopysyntax): New function, used by Gawk.
6103 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6105         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6106         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6107         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6108         if not already defined.
6110         dfa: remove one dependency on MB_CUR_MAX
6111         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6113         dfa: remove struct lexer_state.cur_mb_len
6114         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6115         as it’s not needed and the code is simpler without it.
6116         All uses removed.
6118 2019-12-16  Bruno Haible  <bruno@clisp.org>
6120         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6121         Reported by Arnold Robbins <arnold@skeeve.com>.
6122         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6123         copied from lib/glthread/lock.h.
6124         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6125         (setlocale_null_with_lock): If pthread_in_use() is false, use
6126         setlocale_null_unlocked directly.
6127         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6128         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6129         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6130         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6131         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6132         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6134 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6136         dfa: make dfasyntax thread-safe
6137         Problem reported by Bruno Haible in:
6138         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6139         * lib/dfa.c: Do not include locale.h.
6140         (struct dfa): Remove simple_locale member.
6141         All uses replaced by localeinfo.simple.
6142         (using_simple_locale): Remove; now present (with some
6143         changes) in localeinfo.c.
6144         (dfasyntax): No need to initialize removed member.
6146         localeinfo: record whether locale is simple
6147         * lib/localeinfo.c (using_simple_locale): New function,
6148         copied here from lib/dfa.c but with a change: it uses
6149         strcoll for its heuristic, instead of using setlocale.
6150         This lets it be thread-safe.
6151         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6153 2019-12-15  Bruno Haible  <bruno@clisp.org>
6155         duplocale: Fix multithread-safety bug on AIX.
6156         * lib/duplocale.c: Don't include <stdlib.h>.
6157         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6158         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6159         Set LIB_DUPLOCALE.
6160         * modules/duplocale (Depends-on): Add setlocale-null.
6161         (Link): New section.
6162         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6163         $(LIB_DUPLOCALE).
6165 2019-12-15  Bruno Haible  <bruno@clisp.org>
6167         setlocale-null: Add tests.
6168         * tests/test-setlocale_null.c: New file.
6169         * tests/test-setlocale_null-one.c: New file.
6170         * tests/test-setlocale_null-all.c: New file.
6171         * modules/setlocale-null-tests: New file.
6173         setlocale-null: New module.
6174         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6175         setlocale_null): New declarations.
6176         * lib/setlocale_null.c: New file.
6177         * lib/setlocale-lock.c: New file.
6178         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6179         * m4/setlocale_null.m4: New file.
6180         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6181         GNULIB_SETLOCALE_NULL.
6182         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6183         * modules/setlocale-null: New file.
6184         * doc/posix-functions/setlocale.texi: Mention the new module.
6186 2019-12-15  Bruno Haible  <bruno@clisp.org>
6188         lock tests: Skip test when no multithreading is enabled.
6189         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6191 2019-12-14  Bruno Haible  <bruno@clisp.org>
6193         locale, duplocale, localename: Fix last patch.
6194         Reported by Daniel Richard G. in
6195         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6196         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6197         Don't define if locale_t does not exist.
6199 2019-12-13  Bruno Haible  <bruno@clisp.org>
6201         locale, duplocale, localename: Fix errors if locale_t does not exist.
6202         Reported by Daniel Richard G. in
6203         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6204         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6205         macros.
6206         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6207         HAVE_NEWLOCALE.
6208         * tests/test-localename.c: Likewise.
6209         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6210         HAVE_DUPLOCALE.
6211         * tests/test-locale-c++.cc: Likewise.
6213 2019-12-13  Bruno Haible  <bruno@clisp.org>
6215         wcstok: Fix test failure on HP-UX.
6216         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6217         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6219 2019-12-12  Bruno Haible  <bruno@clisp.org>
6221         strtod, strtold tests: Avoid test failure on AIX 7.2.
6222         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6223         '.' both are radix characters.
6224         * tests/test-strtold1.c (main): Likewise.
6226 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6228         dfa: prefer ptrdiff_t for API, too
6229         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6230         but do this only for internal use for now.
6231         * NEWS: Mention the API change.
6232         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6233         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6234         values known to be nonnegative.
6235         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6236         Prefer idx_t or ptrdiff_t to size_t for API.
6237         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6238         Prefer ptrdiff_t to size_t for API.
6240         stdalign: port to xlclang 16.01
6241         Problem reportd by Bruno Haible in:
6242         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6243         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6244         ((__aligned__ (...))) with xlclang, as a top-level
6245         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6246         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6248 2019-12-12  Bruno Haible  <bruno@clisp.org>
6250         duplocale: Fix test failure on AIX 7.2 with xlclang.
6251         * lib/duplocale.c: Include <stdlib.h>.
6252         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6253         value.
6255 2019-12-12  Bruno Haible  <bruno@clisp.org>
6257         stddef: Document the AIX xlc issue.
6258         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6260 2019-12-12  Bruno Haible  <bruno@clisp.org>
6262         duplocale: Don't attempt to override if locale_t does not exist.
6263         Reported by Daniel Richard G. in
6264         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6265         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6266         HAVE_DUPLOCALE to 0.
6268 2019-12-12  Bruno Haible  <bruno@clisp.org>
6270         wcwidth: Avoid test failure on AIX 7.2.
6271         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6272         negative.
6273         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6275 2019-12-12  Bruno Haible  <bruno@clisp.org>
6277         ilogbl: Work around Cygwin bug.
6278         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6279         correct.
6280         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6282 2019-12-12  Bruno Haible  <bruno@clisp.org>
6284         strtold: Work around Cygwin bug.
6285         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6286         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6287         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6288         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6289         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6291 2019-12-12  Bruno Haible  <bruno@clisp.org>
6293         strtold: Fix autoconf test.
6294         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6296 2019-12-11  Bruno Haible  <bruno@clisp.org>
6298         fsync tests: Skip test that is known to fail.
6299         * doc/posix-functions/fsync.texi: Update list of platforms.
6300         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6301         that is known to fail on AIX and Cygwin.
6303 2019-12-11  Bruno Haible  <bruno@clisp.org>
6305         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6307         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6308         HAVE_GETADDRINFO as a C macro.
6309         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6310         declare as replacement functions.
6311         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6312         define as no-op overrides.
6313         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6314         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6315         * modules/getaddrinfo (Depends-on, configure.ac): Test
6316         REPLACE_GETADDRINFO.
6317         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6318         problem.
6319         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6320         convention problems.
6322 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6324         dfa: prefer signed integers for internals
6325         Signed integers can be checked more easily for integer overflow.
6326         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6327         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6328         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6329         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6330         (replace, state_index, epsclosure, charclass_context)
6331         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6332         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6333         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6334         (comsubs, inboth, allocmust):
6335         Prefer a signed to an unsigned integer when calculating indexes,
6336         unless the integer is part of the external API (a bigger deal,
6337         and to be done later).
6339         dfa: fix index overflow
6340         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6341         very large regular expressions.
6343         dfa: update commentary for previous change
6344         * NEWS: Mention the change.
6345         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6347 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6349         dfa: separate parse and compile phase
6350         ‘dfamust’ must be called after parsing and before tokens are
6351         reordered, but both are executed in the compilation phase.
6352         Token reordering was introduced in Gnulib commit
6353         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6354         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6355         * lib/dfa.c (dfaparse): Change it to global function.
6356         (dfacomp): If first argument is NULL, skip parse.
6357         * lib/dfa.h: (dfaparse): Add a prototype.
6359 2019-12-11  Bruno Haible  <bruno@clisp.org>
6361         unistd tests: Fix link error on MSVC.
6362         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6363         $(LIB_GETLOGIN).
6365 2019-12-11  Bruno Haible  <bruno@clisp.org>
6367         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6368         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6369         and POSIX substitutes are supported in C++ mode.
6370         * NEWS: Likewise.
6372 2019-12-11  Bruno Haible  <bruno@clisp.org>
6374         stddef: Fix compilation error in C++ mode on MSVC.
6375         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6376         instead, include <cstddef>.
6378 2019-12-11  Bruno Haible  <bruno@clisp.org>
6380         unistd: Fix compilation error in C++ mode on MSVC.
6381         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6382         does not have <unistd.h>.
6384 2019-12-11  Bruno Haible  <bruno@clisp.org>
6386         locale: Fix compilation error in C++ mode on MSVC.
6387         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6388         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6389         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6390         int_n_sep_by_space): Define as macros on MSVC.
6392 2019-12-11  Bruno Haible  <bruno@clisp.org>
6394         wchar: Fix compilation error in C++ mode on MSVC.
6395         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6397 2019-12-11  Bruno Haible  <bruno@clisp.org>
6399         pthread-thread: Fix compilation error in C++ mode on MSVC.
6400         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6401         _GL_CXXALIAS_RPL invocation.
6403 2019-12-08  Bruno Haible  <bruno@clisp.org>
6405         Fix compilation errors in C++ mode on Haiku.
6406         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6407         non-glibc systems.
6408         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6409         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6410         posix_spawnattr_setschedparam): Likewise.
6411         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6412         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6413         * lib/unistd.in.h (usleep): Likewise.
6415 2019-12-08  Bruno Haible  <bruno@clisp.org>
6417         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6418         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6419         * modules/fseeko (configure.ac-early): Require it instead of
6420         AC_FUNC_FSEEKO.
6421         * modules/ftello (configure.ac-early): Likewise.
6422         * modules/fflush (configure.ac-early): Likewise.
6424 2019-12-08  Bruno Haible  <bruno@clisp.org>
6426         Fix compilation error in C++ mode on HP-UX 11.
6427         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6428         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6430 2019-12-08  Bruno Haible  <bruno@clisp.org>
6432         Fix compilation errors on HP-UX 11/ia64.
6433         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6434         _GL_FUNCDECL_SYS.
6436 2019-12-08  Bruno Haible  <bruno@clisp.org>
6438         Fix compilation error in C++ mode on OpenBSD.
6439         * lib/signal.in.h (signal): Declare on OpenBSD.
6441 2019-12-08  Bruno Haible  <bruno@clisp.org>
6443         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6444         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6445         instead of #error.
6447 2019-12-08  Bruno Haible  <bruno@clisp.org>
6449         Fix compilation errors in C++ mode on FreeBSD.
6450         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6451         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6452         * lib/threads.in.h (thrd_exit): Likewise.
6453         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6455 2019-12-08  Bruno Haible  <bruno@clisp.org>
6457         Fix compilation errors in C++ mode on macOS and FreeBSD.
6458         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6459         or FreeBSD with clang, use the approach without C preprocessor macro.
6461 2019-12-07  Bruno Haible  <bruno@clisp.org>
6463         Fix compilation errors in C++ mode on AIX with xlclang++.
6464         Reported by Christian Biesinger <cbiesinger@google.com> in
6465         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6466         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6468 2019-12-07  Bruno Haible  <bruno@clisp.org>
6470         Document compilation error in C++ mode on NetBSD 8.0.
6471         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6473 2019-12-07  Bruno Haible  <bruno@clisp.org>
6475         Fix compilation errors in C++ mode on Solaris 10.
6476         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6477         to non-empty on Solaris with a non-GCC compiler.
6478         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6480 2019-12-07  Bruno Haible  <bruno@clisp.org>
6482         Reword NEWS entry.
6483         * NEWS: Reword the latest NEWS entry.
6485 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6487         Move xstrtol_fatal to a new xstrtol-error module.
6488         * lib/xstrtol.h: Stop including <getopt.h>.
6489         (xstrtol_fatal): Move ...
6490         * lib/xstrtol-error.h: ... here.  New file.
6491         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6492         * tests/test-xstrtol.c: Likewise.
6493         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6494         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6495         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6496         * modules/xstrtol-error: New file.
6497         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6498         * MODULES.html.sh: Add xstrtol-error.
6499         * NEWS: Document the change.
6501 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6503         nstrftime: better width support for %N, %z
6504         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6505         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6506         a new WIDTH parameter.
6507         (add, add1, cpy): Use these macros.
6508         (width_add): Do not treat digits == 0 as a special case,
6509         do not pad if padding is ‘-’, and do not use a negative width.
6510         (__strftime_internal): Redo formatting of nanoseconds and numeric
6511         timezones to avoid buffer misuse in unusual cases, and so that
6512         widths make more sense.  Add support for widths greater than 9 to
6513         the %N format; they are zero filled on the right.
6514         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6516 2019-12-05  Bruno Haible  <bruno@clisp.org>
6518         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6519         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6520         set REPLACE_ISFINITE to 1.
6521         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6522         REPLACE_ISINF to 1.
6523         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6524         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6525         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6526         * lib/threads.in.h (call_once): Likewise.
6527         * lib/iconv.in.h (iconv): Likewise.
6529 2019-12-05  Bruno Haible  <bruno@clisp.org>
6531         wchar: Add more C++ tests.
6532         Reported by Christian Biesinger <cbiesinger@google.com> in
6533         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6534         * tests/test-wchar-c++3.cc: New file.
6535         * modules/wchar-c++-tests (Files): Add it.
6536         (Makefile.am): Compile it.
6538 2019-12-05  Bruno Haible  <bruno@clisp.org>
6540         Add more C++ tests.
6542         assert-h: Add C++ tests.
6543         * tests/test-assert-h-c++.cc: New file.
6544         * tests/test-assert-h-c++2.cc: New file.
6545         * modules/assert-h-c++-tests: New file.
6546         * modules/assert-h-tests: New file.
6548         ctype: Add C++ tests.
6549         * tests/test-ctype-c++.cc: New file.
6550         * tests/test-ctype-c++2.cc: New file.
6551         * modules/ctype-c++-tests: New file.
6552         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6554         errno: Add C++ tests.
6555         * tests/test-errno-c++.cc: New file.
6556         * tests/test-errno-c++2.cc: New file.
6557         * modules/errno-c++-tests: New file.
6558         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6560         float: Add C++ tests.
6561         * tests/test-float-c++.cc: New file.
6562         * tests/test-float-c++2.cc: New file.
6563         * modules/float-c++-tests: New file.
6564         * modules/float-tests (Depends-on): Add float-c++-tests.
6566         inttypes: Add more C++ tests.
6567         * tests/test-inttypes-c++2.cc: New file.
6568         * modules/inttypes-c++-tests (Files): Add it.
6569         (Makefile.am): Compile it.
6571         limits-h: Add C++ tests.
6572         * tests/test-limits-h-c++.cc: New file.
6573         * tests/test-limits-h-c++2.cc: New file.
6574         * modules/limits-h-c++-tests: New file.
6575         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6577         stdarg: Add C++ tests.
6578         * tests/test-stdarg-c++.cc: New file.
6579         * tests/test-stdarg-c++2.cc: New file.
6580         * modules/stdarg-c++-tests: New file.
6581         * modules/stdarg-tests: New file.
6583         stdbool: Add C++ tests.
6584         * tests/test-stdbool-c++.cc: New file.
6585         * tests/test-stdbool-c++2.cc: New file.
6586         * modules/stdbool-c++-tests: New file.
6587         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
6589         stddef: Add C++ tests.
6590         * tests/test-stddef-c++.cc: New file.
6591         * tests/test-stddef-c++2.cc: New file.
6592         * modules/stddef-c++-tests: New file.
6593         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
6595         stdint: Add C++ tests.
6596         * tests/test-stdint-c++.cc: New file.
6597         * tests/test-stdint-c++2.cc: New file.
6598         * modules/stdint-c++-tests: New file.
6599         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
6601         wchar: Add more C++ tests.
6602         * tests/test-wchar-c++2.cc: New file.
6603         * modules/wchar-c++-tests (Files): Add it.
6604         (Makefile.am): Compile it.
6606         wctype-h: Add more C++ tests.
6607         * tests/test-wctype-h-c++2.cc: New file.
6608         * modules/wctype-h-c++-tests (Files): Add it.
6609         (Makefile.am): Compile it.
6611 2019-12-04  Bruno Haible  <bruno@clisp.org>
6613         Fix compilation errors in C++ mode with xlclang++ on AIX.
6614         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
6615         C++ mode on AIX.
6616         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
6617         without C preprocessor macro.
6618         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
6619         _GL_CXXALIAS_SYS.
6620         * lib/threads.in.h (thrd_exit): Likewise.
6622 2019-12-04  Bruno Haible  <bruno@clisp.org>
6624         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
6625         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
6626         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
6628 2019-12-04  Bruno Haible  <bruno@clisp.org>
6630         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
6631         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
6632         _GL_CXXALIASWARN invocation on non-glibc systems.
6633         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
6634         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
6635         iswctype, towlower, towupper): Likewise.
6637 2019-12-03  Bruno Haible  <bruno@clisp.org>
6639         Avoid hassles caused by [[noreturn]] in C++.
6640         Reported by Christian Biesinger <cbiesinger@google.com> in
6641         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
6642         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
6643         * lib/_Noreturn.h: Likewise.
6645 2019-12-02  Bruno Haible  <bruno@clisp.org>
6647         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
6648         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
6649         LIBMULTITHREAD.
6650         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
6651         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
6652         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
6653         gl_THREADLIB.
6654         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
6656 2019-12-02  Bruno Haible  <bruno@clisp.org>
6658         Fix some more link errors with --enable-threads=isoc.
6659         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
6660         * modules/pthread-rwlock (Depends-on): Likewise.
6662 2019-12-02  Bruno Haible  <bruno@clisp.org>
6664         Fix link errors with --enable-threads=posix on AIX.
6665         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
6666         program with $(LIBTHREAD).
6667         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
6668         program with $(LIBTHREAD).
6670 2019-12-02  Bruno Haible  <bruno@clisp.org>
6672         Fix link errors with --enable-threads=posix on AIX.
6673         * modules/mbrtowc (Link): New section.
6674         * modules/acl (Link): Likewise.
6675         * modules/argmatch (Link): Likewise.
6676         * modules/backup-rename (Link): Likewise.
6677         * modules/backupfile (Link): Likewise.
6678         * modules/closein (Link): Likewise.
6679         * modules/closeout (Link): Likewise.
6680         * modules/copy-file (Link): Likewise.
6681         * modules/csharpcomp (Link): Likewise.
6682         * modules/csharpexec (Link): Likewise.
6683         * modules/dfa (Link): Likewise.
6684         * modules/exclude (Link): Likewise.
6685         * modules/fnmatch (Link): Likewise.
6686         * modules/fnmatch-gnu (Link): Likewise.
6687         * modules/fnmatch-posix (Link): Likewise.
6688         * modules/glob (Link): Likewise.
6689         * modules/human (Link): Likewise.
6690         * modules/javacomp (Link): Likewise.
6691         * modules/javaexec (Link): Likewise.
6692         * modules/javaversion (Link): Likewise.
6693         * modules/mbfile (Link): Likewise.
6694         * modules/mbiter (Link): Likewise.
6695         * modules/mbmemcasecmp (Link): Likewise.
6696         * modules/mbmemcasecoll (Link): Likewise.
6697         * modules/mbrlen (Link): Likewise.
6698         * modules/mbscasecmp (Link): Likewise.
6699         * modules/mbscasestr (Link): Likewise.
6700         * modules/mbschr (Link): Likewise.
6701         * modules/mbscspn (Link): Likewise.
6702         * modules/mbsinit (Link): Likewise.
6703         * modules/mbslen (Link): Likewise.
6704         * modules/mbsncasecmp (Link): Likewise.
6705         * modules/mbsnlen (Link): Likewise.
6706         * modules/mbsnrtowcs (Link): Likewise.
6707         * modules/mbspbrk (Link): Likewise.
6708         * modules/mbspcasecmp (Link): Likewise.
6709         * modules/mbsrchr (Link): Likewise.
6710         * modules/mbsrtowcs (Link): Likewise.
6711         * modules/mbssep (Link): Likewise.
6712         * modules/mbsspn (Link): Likewise.
6713         * modules/mbsstr (Link): Likewise.
6714         * modules/mbstok_r (Link): Likewise.
6715         * modules/mbswidth (Link): Likewise.
6716         * modules/mbuiter (Link): Likewise.
6717         * modules/mkdir-p (Link): Likewise.
6718         * modules/propername (Link): Likewise.
6719         * modules/quote (Link): Likewise.
6720         * modules/quotearg (Link): Likewise.
6721         * modules/quotearg-simple (Link): Likewise.
6722         * modules/regex-quote (Link): Likewise.
6723         * modules/rpmatch (Link): Likewise.
6724         * modules/sh-quote (Link): Likewise.
6725         * modules/system-quote (Link): Likewise.
6726         * modules/trim (Link): Likewise.
6727         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6728         * modules/unistdio/ulc-fprintf (Link): Likewise.
6729         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6730         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6731         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6732         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6733         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6734         * modules/xfreopen (Link): Likewise.
6735         * modules/xmemcoll (Link): Likewise.
6736         * modules/yesno (Link): Likewise.
6737         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
6738         * modules/argmatch-tests (Makefile.am): Likewise.
6739         * modules/closein-tests (Makefile.am): Likewise.
6740         * modules/copy-file-tests (Makefile.am): Likewise.
6741         * modules/dfa-tests (Makefile.am): Likewise.
6742         * modules/fnmatch-tests (Makefile.am): Likewise.
6743         * modules/glob-tests (Makefile.am): Likewise.
6744         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6745         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6746         * modules/mbrtowc-tests (Makefile.am): Likewise.
6747         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6748         * modules/mbscasestr-tests (Makefile.am): Likewise.
6749         * modules/mbschr-tests (Makefile.am): Likewise.
6750         * modules/mbscspn-tests (Makefile.am): Likewise.
6751         * modules/mbsinit-tests (Makefile.am): Likewise.
6752         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6753         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6754         * modules/mbspbrk-tests (Makefile.am): Likewise.
6755         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6756         * modules/mbsrchr-tests (Makefile.am): Likewise.
6757         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6758         * modules/mbsspn-tests (Makefile.am): Likewise.
6759         * modules/mbsstr-tests (Makefile.am): Likewise.
6760         * modules/quotearg-tests (Makefile.am): Likewise.
6761         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6762         * modules/readtokens-tests (Makefile.am): Likewise.
6763         * modules/regex-quote-tests (Makefile.am): Likewise.
6764         * modules/sh-quote-tests (Makefile.am): Likewise.
6765         * modules/system-quote-tests (Makefile.am): Likewise.
6766         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6767         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6768         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6769         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6770         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6771         * modules/yesno-tests (Makefile.am): Likewise.
6773 2019-12-02  Bruno Haible  <bruno@clisp.org>
6775         Simplify link sections.
6776         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
6777         * modules/lock (Link): Likewise.
6778         * modules/cond (Link): Likewise.
6779         * modules/tls (Link): Likewise.
6780         * modules/yield (Link): Likewise.
6781         * modules/regex (Link): Likewise.
6782         * modules/localename (Link): Likewise.
6783         * modules/unicase/locale-language (Link): Likewise.
6784         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
6786 2019-12-02  Bruno Haible  <bruno@clisp.org>
6788         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
6789         * tests/test-thread_self.c (main): Disable test on AIX.
6791 2019-12-01  Bruno Haible  <bruno@clisp.org>
6793         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
6794         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
6795         gl_THREADLIB_EARLY_BODY.
6796         (gl_THREADLIB_EARLY_BODY): Invoke it.
6797         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
6798         (gl_THREADLIB_BODY): Invoke it.
6799         (gl_PTHREADLIB): New macro.
6800         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
6801         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
6802         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
6803         * modules/pthread-h (Files): Add threadlib.m4.
6804         (Depends-on): Remove threadlib.
6805         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
6806         and _THREAD_SAFE here.
6807         (Link): Use LIBPTHREAD, not LIBTHREAD.
6808         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
6809         LIBMULTITHREAD.
6810         * modules/pthread-once (Link): Likewise.
6811         * modules/pthread-mutex (Link): Likewise.
6812         * modules/pthread-rwlock (Link): Likewise.
6813         * modules/pthread-cond (Link): Likewise.
6814         * modules/pthread-tss (Link): Likewise.
6815         * modules/pthread-spin (Link): Likewise.
6816         * modules/pthread (Link): Likewise.
6817         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
6818         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
6819         * modules/pthread-once-tests (test_pthread_once1_LDADD,
6820         test_pthread_once2_LDADD): Likewise.
6821         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
6822         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
6823         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
6824         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
6826 2019-12-01  Bruno Haible  <bruno@clisp.org>
6828         cond: State linking requirements.
6829         * modules/cond (Link): New section.
6831 2019-12-01  Bruno Haible  <bruno@clisp.org>
6833         threadlib: Remove unnecessary file (left over from 2019-07-06).
6834         * modules/threadlib (Files): Remove config.rpath.
6836 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
6838         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
6839         Reported by Dagobert Michelsen <dam@opencsw.org> in
6840         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
6841         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
6842         list of strings instead of one string.
6843         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
6844         * pygnulib/GLImport.py (execute): Likewise.
6846 2019-11-27  Bruno Haible  <bruno@clisp.org>
6848         openpty, forkpty: Fix build error on Solaris 11.4.
6849         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
6850         also in <termios.h>.
6851         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
6852         of the function also in <termios.h>.
6853         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
6854         * doc/glibc-functions/forkpty.texi: Likewise.
6856 2019-11-27  Bruno Haible  <bruno@clisp.org>
6858         New options --enable-threads=isoc and --enable-threads=isoc+posix.
6859         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
6860         --enable-threads=isoc and --enable-threads=isoc+posix.
6861         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
6862         When both the ISO C and the POSIX threads API are available, choose
6863         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
6864         --enable-threads=isoc+posix was specified. When only the ISO C threads
6865         API is available and --enable-threads=iso was specified, choose
6866         USE_ISOC_THREADS.
6867         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
6868         USE_ISOC_AND_POSIX_THREADS.
6869         * lib/glthread/lock.c: Likewise.
6870         * lib/glthread/cond.h: Likewise.
6871         * lib/glthread/cond.c: Likewise.
6872         * lib/glthread/tls.h: Likewise.
6873         * lib/glthread/tls.c: Likewise.
6874         * lib/glthread/yield.h: Likewise.
6875         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
6876         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
6877         * lib/glthread/thread.c: Likewise.
6878         * lib/glthread/threadlib.c: Likewise.
6879         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
6880         USE_ISOC_AND_POSIX_THREADS.
6881         * tests/test-cond.c: Consider USE_ISOC_THREADS and
6882         USE_ISOC_AND_POSIX_THREADS.
6883         * tests/test-tls.c: Likewise.
6884         * tests/test-thread_create.c (main): Likewise.
6885         * tests/test-pthread-cond.c: Likewise.
6886         * tests/test-pthread-mutex.c: Likewise.
6887         * tests/test-pthread-once2.c: Likewise.
6888         * tests/test-pthread-rwlock.c: Likewise.
6889         * tests/test-pthread-tss.c: Likewise.
6890         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
6891         USE_POSIX_THREADS.
6893 2019-11-24  Bruno Haible  <bruno@clisp.org>
6895         mbrtowc: Modernize autoconf test.
6896         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
6897         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
6898         try a UTF-8 locale.
6899         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
6901 2019-11-24  Bruno Haible  <bruno@clisp.org>
6903         Fix errors in C++ mode on mingw.
6904         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
6905         instead of _GL_CXXALIAS_SYS.
6906         * lib/signal.in.h (pthread_sigmask): Likewise.
6907         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
6908         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6909         Likewise.
6910         * lib/wchar.in.h (btowc): Likewise.
6912 2019-11-24  Bruno Haible  <bruno@clisp.org>
6914         sys_time: Fix errors in C++ mode on mingw.
6915         * lib/sys_time.in.h (timeval): Restore the redirection
6916         '#define timeval rpl_timeval', for when the symbol timeval is being used
6917         outside the 'gnulib' namespace.
6918         * lib/sys_select.in.h (select): In C++, write 'timeval', not
6919         'struct timeval'.
6921 2019-11-24  Bruno Haible  <bruno@clisp.org>
6923         iswctype: Fix errors in C++ mode on mingw.
6924         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
6925         is 1.
6926         * lib/iswctype.c (iswctype): Add another implementation, for the
6927         GNULIB_defined_wint_t case.
6928         * modules/iswctype (configure.ac): Compile iswctype.c also if
6929         GNULIB_OVERRIDES_WINT_T is 1.
6931 2019-11-24  Bruno Haible  <bruno@clisp.org>
6933         windows-timedmutex: Fix errors in C++ mode on mingw.
6934         * lib/windows-timedmutex.h: Add closing brace.
6936 2019-11-24  Bruno Haible  <bruno@clisp.org>
6938         Fix errors in C++ mode on Cygwin.
6939         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
6940         _GL_CXXALIAS_SYS.
6942 2019-11-24  Bruno Haible  <bruno@clisp.org>
6944         time_r: Fix for mingw (regression from 2019-11-16).
6945         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
6946         AC_LINK_IFELSE test only if the function does not appear to exist.
6948 2019-11-24  Bruno Haible  <bruno@clisp.org>
6950         wcstok: Add tests.
6951         * tests/test-wcstok.c: New file.
6952         * modules/wcstok-tests: New file.
6954 2019-11-24  Bruno Haible  <bruno@clisp.org>
6956         wcstok: Work around wrong signature on native Windows.
6957         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
6958         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
6959         REPLACE_WCSTOK.
6960         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
6961         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
6962         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
6963         * doc/posix-functions/wcstok.texi: Mention the problem.
6965 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
6967         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
6968         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
6969         remove workaround for GCC bug 91450 as the bug should be fixed
6970         there too.
6972 2019-11-21  Bruno Haible  <bruno@clisp.org>
6974         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
6975         Reported by Christian Biesinger <cbiesinger@google.com> in
6976         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
6977         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
6978         non-glibc systems.
6979         * lib/locale.in.h (localeconv, setlocale): Likewise.
6980         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
6981         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
6982         rint, round, trunc): Likewise.
6983         * lib/monetary.in.h (strfmon_l): Likewise.
6984         * lib/pthread.in.h (pthread_mutexattr_getrobust,
6985         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
6986         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
6987         pthread_spin_destroy): Likewise.
6988         * lib/signal.in.h (raise, signal): Likewise.
6989         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
6990         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
6991         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
6992         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
6993         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
6994         Likewise.
6995         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
6996         Likewise.
6997         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
6998         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
6999         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7000         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7001         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7002         wcsftime): Likewise.
7003         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7005 2019-11-21  Bruno Haible  <bruno@clisp.org>
7007         Fix various errors in _GL_CXXALIAS_SYS invocations.
7008         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7009         _GL_CXXALIAS_SYS.
7010         * lib/pthread.in.h (pthread_mutexattr_gettype,
7011         pthread_mutexattr_getrobust): Likewise.
7012         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7013         * lib/sys_socket.in.h (recv, send): Likewise.
7014         * lib/unistd.in.h (getdtablesize): Likewise.
7015         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7016         'struct timeval'.
7018 2019-11-21  Bruno Haible  <bruno@clisp.org>
7020         math tests: Update after 2019-08-28 change.
7021         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7022         return type of 'bool', not 'int'.
7024 2019-11-21  Bruno Haible  <bruno@clisp.org>
7026         pthread-spin: Fix errors in C++ mode.
7027         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7028         functions as nonexistent when <pthread.h> exists but does not define
7029         the pthread_spinlock_t type.
7031 2019-11-21  Bruno Haible  <bruno@clisp.org>
7033         pthread-mutex: Fix errors in C++ mode.
7034         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7035         pthread_mutexattr_getrobust exists. If not, define
7036         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7037         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7038         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7039         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7040         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7041         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7042         definition.
7044 2019-11-19  Bruno Haible  <bruno@clisp.org>
7046         threads-h tests: Fix typo.
7047         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7049 2019-11-19  Bruno Haible  <bruno@clisp.org>
7051         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7052         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7053         to 'const pthread_attr_t *'.
7054         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7055         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7057 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7059         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7060         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7061         work around GCC bug 91450 as the bug should be fixed there.
7063 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7065         glob: get closer to glibc glob.c
7066         Omit differences from glibc when the differences don’t matter.
7067         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7068         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7069         (glob_lstat): New function.
7070         (glob_in_dir): Use it.
7071         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7072         Use changed.
7074 2019-11-18  Bruno Haible  <bruno@clisp.org>
7076         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7077         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7078         UINTPTR_MAX): Consider _WIN64.
7079         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7080         a pointer.
7082 2019-11-18  Bruno Haible  <bruno@clisp.org>
7084         stdint: Fix value of WINT_MAX when we override wint_t.
7085         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7086         when GNULIB_OVERRIDES_WINT_T is 1.
7088 2019-11-18  Bruno Haible  <bruno@clisp.org>
7090         vcs-to-changelog: New module.
7091         * modules/vcs-to-changelog: New file.
7092         * MODULES.html.sh (func_all_modules): Add it.
7094 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7096         vcs-to-changelog: New script to generate ChangeLog-like output.
7097         Discussion:
7098         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7099         * build-aux/vcs_to_changelog.py: New file.
7100         * build-aux/vcstocl/frontend_c.py: New file.
7101         * build-aux/vcstocl/misc_util.py: New file.
7102         * build-aux/vcstocl/vcs_git.py: New file.
7104 2019-11-18  Bruno Haible  <bruno@clisp.org>
7106         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7107         Reported by Keith Marshall <keith@users.osdn.me> in
7108         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7109         and <https://osdn.net/projects/mingw/ticket/39677>.
7110         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7111         already been defined by mingw's <crtdefs.h>.
7113 2019-11-18  Bruno Haible  <bruno@clisp.org>
7115         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7116         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7117         conditionally enabled.
7119 2019-11-18  Bruno Haible  <bruno@clisp.org>
7121         gc: Mirror libgcrypt.m4 from libgcrypt.
7122         * config/srclistvars.sh (LIBGCRYPT): New variable.
7123         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7125 2019-11-17  Bruno Haible  <bruno@clisp.org>
7127         locale, localename: Improve z/OS support.
7128         Reported by Daniel Richard G. in
7129         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7130         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7131         gl_LOCALE_H.
7132         (gl_LOCALE_H): Require it.
7133         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7134         defined, don't even check for newlocale, duplocale, freelocale.
7135         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7136         locale_t is not defined.
7138 2019-11-17  Bruno Haible  <bruno@clisp.org>
7140         havelib: Make libdirstems processing more flexible.
7141         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7142         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7143         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7144         patch from 2017-02-19).
7145         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7146         libdirs, even when the first one exists as a directory.
7148 2019-11-17  Bruno Haible  <bruno@clisp.org>
7150         havelib: Match the bitness when searching for libraries.
7151         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7152         acl_is_expected_elfclass.
7153         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7154         file exists, in ELF, also test whether it has the ELF class that
7155         corresponds to the host's bitness.
7157 2019-11-17  Bruno Haible  <bruno@clisp.org>
7159         host-cpu-c-abi: Add support for unknown CPUs.
7160         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7161         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7162         32-bit or 64-bit.
7164 2019-11-17  Bruno Haible  <bruno@clisp.org>
7166         havelib: Remove redundant code.
7167         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7168         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7170 2019-11-17  Bruno Haible  <bruno@clisp.org>
7172         havelib: Fix a bug in dependency processing.
7173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7174         of .la files, don't overwrite the value of additional_libdir for the
7175         next rounds.
7177 2019-11-16  Bruno Haible  <bruno@clisp.org>
7179         wctype-h: When overriding wint_t, override also the related functions.
7180         Reported by Christian Biesinger <cbiesinger@google.com> in
7181         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7182         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7183         REPLACE_ISWCNTRL to 1.
7184         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7185         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7186         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7187         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7188         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7189         on mingw.
7190         * doc/posix-headers/wctype.texi: Likewise.
7192 2019-11-16  Bruno Haible  <bruno@clisp.org>
7194         time_r: Fix for mingw.
7195         Reported by Christian Biesinger <cbiesinger@google.com> in
7196         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7197         * lib/time.in.h: On mingw, include <unistd.h>.
7198         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7199         <time.h>. Test for localtime_r in a way that works when it is defined
7200         as an inline function.
7202 2019-11-13  Bruno Haible  <bruno@clisp.org>
7204         havelib: Revert last change.
7205         * build-aux/config.rpath: Revert last change. We can add msys2 support
7206         when it has been added to libtool.m4 upstream.
7208 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7210         config: add msys support
7211         Requested by Arnold Robbins in:
7212         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7213         He also requested a change to config.guess, which I’ll forward
7214         upstream.
7215         * build-aux/ar-lib (func_file_conv):
7216         * build-aux/compile (func_file_conv):
7217         * build-aux/config.rpath (wl, with_gnu_ld)
7218         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7219         Treat msys like cygwin.
7221 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7223         regex: now back in sync with glibc
7224         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7225         regexec.c got merged into glibc and are now copies again.
7227 2019-10-27  Bruno Haible  <bruno@clisp.org>
7229         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7230         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7231         statement.
7232         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7233         32-bit CPUs.
7235 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7237         timespec-add, timespec-sub: simplify
7238         * lib/timespec-add.c (timespec_add):
7239         * lib/timespec-sub.c (timespec_sub):
7240         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7241         work on unsigned integers.
7243 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7245         nstrftime: speed up integer overflow checking
7246         * lib/nstrftime.c: Include intprops.h.
7247         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7248         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7249         instead of doing it by hand.
7250         * modules/nstrftime (Depends-on): Add intprops.
7252         Port better to GCC under macOS
7253         Work around macOS header that has ‘#define __has_builtin(x) 0’
7254         when compiled by GCC.  Apple really, really doesn’t want you to
7255         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7256         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7257         The fix is to not trust __has_builtin when being compiled by
7258         recent-enough GCC.
7259         * lib/intprops.h (__has_builtin)
7260         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7261         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7262         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7263         Remove.  All uses removed.
7264         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7265         directly, if defined and if not newer GCC.
7266         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7267         New macro, that use __has_builtin directly, if defined and if
7268         not newer GCC.
7269         (assume): Use them.
7271 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7273         maintainer-makefile: update rule for argmatch.
7274         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7276 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7278         bitset: let freeing functions accept NULL.
7279         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7280         given NULL.
7281         * lib/bitset.h: Document that.
7282         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7284 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7286         inttypes: use more-robust test for int range
7287         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7288         Problem reported by Dagobert Michelsen in:
7289         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7290         * lib/inttypes.in.h: Rely only on limits.h when checking
7291         int range.
7293 2019-10-15  Bruno Haible  <bruno@clisp.org>
7295         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7296         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7297         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7298         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7299         term_ostream_set_hyperlink): New functions.
7300         (term_styled_ostream_get_hyperlink_ref,
7301         term_styled_ostream_get_hyperlink_id,
7302         term_styled_ostream_set_hyperlink): New function aliases.
7304 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7306         update-copyright: use en dashes in .texi ranges
7307         * build-aux/update-copyright: Match year ranges like "1998--2019",
7308         which are used in the Autoconf manual.  Also, update ranges in
7309         .tex, .texi, and .texinfo files to use en dashes instead of
7310         hyphens.
7312 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7314         * config/srclist.txt: Remove posix/regex_internal.c for now.
7316 2019-10-13  Bruno Haible  <bruno@clisp.org>
7318         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7319         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7320         contents to the empty string.
7322 2019-10-12  Bruno Haible  <bruno@clisp.org>
7324         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7325         * tests/test-intprops.c (main): Disable two more tests when using
7326         HP-UX cc.
7328 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7330         Simplify and regularize regex use of ‘assert’
7331         Also, tell GCC about the asserts even when compiling without
7332         debugging, to give it further optimization opportunities.
7333         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7334         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7335         (parse_expression, parse_bracket_exp):
7336         * lib/regex_internal.c (build_wcs_buffer)
7337         (build_wcs_upper_buffer, re_string_reconstruct)
7338         (re_string_context_at):
7339         * lib/regexec.c (re_search_stub, re_copy_regs)
7340         (re_search_internal, prune_impossible_nodes, check_matching)
7341         (check_halt_state_context, set_regs, sift_states_backward)
7342         (build_sifted_states, transit_state_mb, transit_state_bkref)
7343         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7344         (match_ctx_add_subtop):
7345         Use it instead of plain ‘assert’.
7347 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7349         regex: omit debug assignment when not debugging
7350         * lib/regexec.c (re_search_internal) [!DEBUG]:
7351         Remove unnecessary assignment.
7353         regex: tell compiler there’s at most 256 arcs out
7354         Partly this is to help the reader (and maybe help GCC);
7355         partly this is to pacify Coverity.
7356         * lib/regex_internal.h: Include verify.h.
7357         * lib/regexec.c (group_nodes_into_DFAstates):
7358         Tell the compiler that ndests cannot exceed SBC_MAX.
7359         * modules/regex (Depends-on): Add ‘verify’.
7361         regex: simplify by assuming C99
7362         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7363         temporarily.
7364         * lib/regex_internal.h (lock_define, re_match_context_t):
7365         Simplify by assuming C99 macros and const.
7366         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7367         initializers.  Remove unnecessary assignment, as mctx is now
7368         safely initialized earlier.
7370         regex: avoid copying of uninitialized storage
7371         * config/srclist.txt: Comment out regcomp.c temporarily.
7372         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7373         Initialize even when not checking for lint, as the behavior is
7374         arguably undefined otherwise and Coverity warns about it.
7376 2019-10-06  Bruno Haible  <bruno@clisp.org>
7378         access tests: Fix test failure when run as root.
7379         * tests/test-access.c: Include root-uid.h.
7380         (geteuid): Define fallback.
7381         (main): Don't expect that writing to a read-only file would fail when
7382         running as root. Also, remove the created files at the end.
7383         * modules/access-tests (Depends-on): Add root-uid.
7384         (configure.ac): Test whether geteuid exists.
7386 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7388         users.txt: add GNU nano
7389         Nano has been making use of gnulib since March 2017, version 2.8.0.
7391 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7393         bootstrap: simplify debugging of wget failures
7394         Problem reported by Tim Rühsen in:
7395         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7396         * build-aux/bootstrap (po_download_command_format):
7397         Invoke wget with -nv instead of -q, to make debugging easier.
7399 2019-09-29  Bruno Haible  <bruno@clisp.org>
7401         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7402         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7403         'const' attribute.
7405 2019-09-29  Bruno Haible  <bruno@clisp.org>
7407         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7408         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7410 2019-09-28  Bruno Haible  <bruno@clisp.org>
7412         Update comments that refer to POSIX.
7413         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7414         sentence about trailing slashes.
7415         * lib/fflush.c: Clarify the reasoning.
7416         * tests/test-fflush2.c: Cite the relevant sentence.
7418 2019-09-28  Bruno Haible  <bruno@clisp.org>
7420         access: Document limitations on Windows.
7421         Suggested by Zaretskii <eliz@gnu.org>.
7422         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7424 2019-09-28  Bruno Haible  <bruno@clisp.org>
7426         findprog-in: Fix comment.
7427         Reported by Eli Zaretskii <eliz@gnu.org>.
7428         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7429         condition.
7430         * lib/stat.c (rpl_stat): Fix typo in comment.
7431         * lib/utime.c (_gl_utimens_windows): Likewise.
7433 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7435         Update URLs and associated text
7436         (Thanks to Bruno Haible for proofreading this patch.)
7437         Prefer https: to http: in URLs where either will do, for the usual
7438         security reasons.  I also updated broken and/or moved URLs
7439         discovered during the process. In a few places I had to resort to
7440         archive.org, since I didn't find the originals elsewhere.
7442 2019-09-15  Paul Smith  <psmith@gnu.org>
7443             Bruno Haible  <bruno@clisp.org>
7445         findprog-in: Set errno when the search fails.
7446         * lib/findprog-in.c: Include <errno.h>.
7447         (find_in_given_path): Set errno before returning NULL.
7448         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7449         Define the term "slash".
7451 2019-09-15  Bruno Haible  <bruno@clisp.org>
7453         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7454         * modules/findprog (Depends-on): Add access.
7455         * modules/findprog-lgpl (Depends-on): Likewise.
7456         * modules/findprog-in (Depends-on): Likewise.
7458 2019-09-15  Bruno Haible  <bruno@clisp.org>
7460         access: Add tests.
7461         * tests/test-access.c: New file.
7462         * modules/access-tests: New file.
7464         access: New module.
7465         * lib/unistd.in.h (access): New declaration.
7466         * lib/access.c: New file.
7467         * m4/access.m4: New file.
7468         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7469         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7470         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7471         REPLACE_ACCESS.
7472         * modules/access: New file.
7473         * tests/test-unistd-c++.cc (access): Check signature.
7474         * doc/posix-functions/access.texi: Mention the new module.
7476 2019-09-15  Bruno Haible  <bruno@clisp.org>
7478         fcntl-h: Fix compilation error of creat.c on MSVC.
7479         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7480         defined.
7482 2019-09-15  Bruno Haible  <bruno@clisp.org>
7484         creat: Add tests.
7485         * tests/test-creat.c: New file, based on tests/test-open.h.
7486         * modules/creat-tests: New file.
7488         creat: New module.
7489         * lib/fcntl.in.h (creat): New declaration.
7490         * lib/creat.c: New file, based on lib/open.c.
7491         * m4/creat.m4: New file.
7492         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7493         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7494         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7495         * modules/open (Files): Add m4/open-slash.m4.
7496         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7497         REPLACE_CREAT.
7498         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7499         * modules/creat: New file.
7500         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7501         * doc/posix-functions/creat.texi: Mention the new module.
7503 2019-09-15  Bruno Haible  <bruno@clisp.org>
7505         open tests: Enhance test.
7506         * tests/test-open.h (test_open): Test the creation of an executable
7507         regular file. Also improve initial cleanup.
7509 2019-09-15  Bruno Haible  <bruno@clisp.org>
7511         intprops tests: Avoid build failure with HP-UX cc.
7512         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7513         "error 4018: Macro param too large after substitution - use -H option.".
7515 2019-09-14  Bruno Haible  <bruno@clisp.org>
7517         Make autoconf tests work with -Werror=implicit-function-declaration.
7518         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7519         towupper() declaration.
7520         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7521         declaration.
7523 2019-09-14  Bruno Haible  <bruno@clisp.org>
7525         findprog-in: Better mimic the system on native Windows.
7526         Reported by Paul Smith <psmith@gnu.org>.
7527         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7528         non-empty suffixes when the file name already contains a '.'.
7530 2019-09-10  Bruno Haible  <bruno@clisp.org>
7532         wctob: Fix autoconf test.
7533         Based on patch by Florian Weimer <fweimer@redhat.com>.
7534         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7536 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7538         xhash: provide hash_xinitialize.
7539         Suggested by Egor Pugin <egor.pugin@gmail.com>
7540         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7541         * modules/xhash, lib/xhash.c: New.
7542         * lib/hash.h (hash_xinitialize): New.
7544 2019-09-09  Bruno Haible  <bruno@clisp.org>
7546         findprog-in: Make exec optimization optional.
7547         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7548         (find_in_given_path): Add optimize_for_exec parameter.
7549         * lib/findprog-in.c (find_in_given_path): Likewise.
7551 2019-09-08  Bruno Haible  <bruno@clisp.org>
7553         Add option to assume the best, not the worst, when cross-compiling.
7554         Suggested by Jonas Termansen <sortie@maxsi.org>.
7555         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7556         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7557         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7558         lt_cv_sys_argz_works.
7559         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7560         ac_cv_func_calloc_0_nonnull.
7561         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7562         --enable-cross-guesses for gl_cv_func_realpath_works.
7563         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7564         gl_cv_func_cbrtl_ieee.
7565         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7566         gl_cv_func_ceil_ieee.
7567         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7568         gl_cv_func_ceilf_ieee.
7569         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7570         gl_cv_func_ceill_ieee.
7571         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7572         ac_cv_func_chown_works.
7573         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7574         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7575         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7576         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7577         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7578         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7579         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7580         gl_cv_func_expl_works.
7581         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7582         gl_cv_func_expm1_ieee.
7583         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7584         gl_cv_func_expm1l_works.
7585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7586         gl_cv_func_open_directory_works.
7587         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
7588         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
7589         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
7590         gl_cv_func_fchownat_empty_filename_works.
7591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
7592         gl_cv_func_fdopendir_works.
7593         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
7594         gl_cv_func_floor_ieee.
7595         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
7596         gl_cv_func_floorf_ieee.
7597         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
7598         gl_cv_func_fma_works.
7599         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
7600         gl_cv_func_fmaf_works.
7601         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
7602         gl_cv_func_fmal_works.
7603         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
7604         gl_cv_func_fmod_ieee.
7605         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
7606         gl_cv_func_fmodf_ieee.
7607         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
7608         gl_cv_func_fmodl_ieee.
7609         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
7610         gl_cv_func_fpurge_works.
7611         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
7612         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
7613         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
7614         gl_cv_func_getcwd_null.
7615         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
7616         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
7617         gl_cv_func_working_getdelim.
7618         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7619         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
7620         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7621         gl_cv_func_getgroups_works.
7622         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
7623         am_cv_func_working_getline.
7624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
7625         for gl_cv_func_getopt_gnu.
7626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
7627         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
7628         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
7629         gl_cv_func_hypot_ieee.
7630         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
7631         gl_cv_func_hypotf_ieee.
7632         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
7633         gl_cv_func_hypotl_ieee.
7634         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
7635         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
7636         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
7637         gl_cv_func_link_works.
7638         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
7639         gl_cv_func_linkat_slash.
7640         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
7641         gl_cv_func_log_ieee.
7642         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
7643         gl_cv_func_logf_ieee.
7644         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
7645         gl_cv_func_logl_works.
7646         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
7647         gl_cv_func_log10_ieee.
7648         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
7649         gl_cv_func_log10f_ieee.
7650         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
7651         gl_cv_func_log10l_works.
7652         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
7653         gl_cv_func_log1p_ieee.
7654         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
7655         gl_cv_func_log1pf_ieee.
7656         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
7657         gl_cv_func_log1pl_ieee.
7658         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
7659         gl_cv_func_log2_ieee.
7660         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
7661         gl_cv_func_log2f_ieee.
7662         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
7663         --enable-cross-guesses for
7664         gl_cv_func_lstat_dereferences_slashed_symlink.
7665         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
7666         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7667         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
7668         gl_cv_C_locale_sans_EILSEQ.
7669         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
7670         gl_cv_func_memchr_works.
7671         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
7672         gl_cv_func_memmem_works_always.
7673         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
7674         gl_cv_func_memmem_works_fast.
7675         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
7676         gl_cv_func_mkdir_trailing_slash_works,
7677         gl_cv_func_mkdir_trailing_dot_works.
7678         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
7679         gl_cv_func_mkfifo_works.
7680         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
7681         gl_cv_func_mknod_works.
7682         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
7683         gl_cv_func_working_mkstemp.
7684         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
7685         gl_cv_func_working_mktime.
7686         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
7687         gl_cv_func_modf_ieee.
7688         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
7689         gl_cv_func_modff_ieee.
7690         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
7691         gl_cv_func_modfl_ieee.
7692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
7693         gl_cv_func_nanosleep.
7694         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
7695         gl_cv_func_perror_works.
7696         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
7697         gl_cv_func_printf_sizes_c99.
7698         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
7699         gl_cv_func_printf_infinite.
7700         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
7701         gl_cv_func_printf_infinite_long_double.
7702         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
7703         gl_cv_func_printf_directive_a.
7704         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
7705         gl_cv_func_printf_directive_f.
7706         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
7707         gl_cv_func_printf_flag_zero.
7708         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
7709         gl_cv_func_printf_enomem.
7710         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
7711         gl_cv_func_snprintf_truncation_c99.
7712         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
7713         gl_cv_func_snprintf_retval_c99.
7714         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
7715         gl_cv_func_snprintf_directive_n.
7716         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
7717         gl_cv_func_vsnprintf_zerosize_c99.
7718         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
7719         gl_cv_func_pselect_detects_ebadf.
7720         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
7721         Obey --enable-cross-guesses for
7722         gl_cv_pthread_rwlock_rdlock_prefer_writer.
7723         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
7724         gl_cv_func_ptsname_sets_errno.
7725         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
7726         gl_cv_func_svid_putenv.
7727         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
7728         gl_cv_func_readlink_works.
7729         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
7730         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7731         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
7732         gl_cv_func_re_compile_pattern_working.
7733         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
7734         gl_cv_func_remainder_ieee.
7735         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
7736         gl_cv_func_remainderf_ieee.
7737         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
7738         gl_cv_func_remainderl_ieee.
7739         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
7740         gl_cv_func_rintl_works.
7741         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
7742         gl_cv_func_rmdir_works.
7743         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
7744         gl_cv_func_round_ieee.
7745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
7746         gl_cv_func_roundf_ieee.
7747         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
7748         gl_cv_func_roundl_ieee.
7749         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
7750         gl_cv_func_select_detects_ebadf.
7751         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
7752         gl_cv_func_setenv_works.
7753         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
7754         gl_cv_func_unsetenv_works.
7755         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
7756         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
7757         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
7758         gl_cv_func_sleep_works.
7759         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
7760         gl_cv_func_stat_file_slash.
7761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
7762         gl_cv_func_stpncpy.
7763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
7764         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
7765         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
7766         gl_cv_func_strcasestr_linear.
7767         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
7768         gl_cv_func_working_strerror.
7769         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
7770         gl_cv_func_strerror_0_works.
7771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
7772         --enable-cross-guesses for gl_cv_func_strerror_r_works.
7773         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
7774         gl_cv_func_strstr_works_always.
7775         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
7776         gl_cv_func_strstr_linear.
7777         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
7778         gl_cv_func_strtod_works.
7779         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
7780         gl_cv_func_strtold_works.
7781         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
7782         gl_cv_func_symlink_works.
7783         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
7784         gl_cv_func_symlinkat_works.
7785         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
7786         gl_cv_func_trunc_ieee.
7787         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
7788         gl_cv_func_truncf_ieee.
7789         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
7790         gl_cv_func_truncl_ieee.
7791         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
7792         gl_cv_func_tzset_clobber.
7793         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
7794         gl_cv_func_ungetc_works.
7795         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
7796         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
7797         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
7798         gl_cv_func_usleep_works.
7799         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
7800         gl_cv_func_futimesat_works.
7801         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
7802         gl_cv_func_working_utimes.
7803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
7804         gl_cv_func_wcwidth_works.
7805         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
7806         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
7807         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
7808         links for testing. Obey --enable-cross-guesses for
7809         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
7810         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
7812 2019-09-08  Bruno Haible  <bruno@clisp.org>
7814         Clarify that cross-compilation guesses are guesses.
7815         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
7816         cross-compiling.
7818 2019-09-08  Bruno Haible  <bruno@clisp.org>
7820         chown: Fix configure output (regression from 2019-03-23).
7821         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
7822         gl_cv_func_chown_follows_symlink variable.
7824 2019-09-08  Bruno Haible  <bruno@clisp.org>
7826         findprog-in: New module.
7827         Suggested by Paul Smith <psmith@gnu.org>.
7828         * lib/findprog.h (find_in_given_path): New declaration.
7829         * lib/findprog-in.c: New file, based on lib/findprog.c.
7830         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
7831         * modules/findprog-in: New file.
7833 2019-09-08  Bruno Haible  <bruno@clisp.org>
7835         findprog: Remove unused dependency.
7836         * modules/findprog (Depends-on): Remove strdup.
7838 2019-09-08  Bruno Haible  <bruno@clisp.org>
7840         findprog: Remove test that is obsolete since 2006-04-24.
7841         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
7843 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
7845         bitset: style changes
7846         * lib/bitset/vector.c (vbitset_resize): Factor computation.
7847         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
7848         xzalloc to xcalloc.
7849         Suggested by Paul Eggert.
7851 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
7853         bitset: check memory allocation
7854         Reported by 江 祖铭 (Zu-Ming Jiang).
7855         With help from Paul Eggert.
7856         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
7857         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
7858         instead of realloc.
7859         When shrinking, accept failures.
7860         * lib/bitset/vector.c (vbitset_resize): Likewise.
7862 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7864         scratch_buffer: sync from glibc
7865         * config/srclist.txt: Add the scratch_buffer source
7866         code from glibc, since these should be in sync.
7867         Autoupdate.
7869 2019-09-07  Bruno Haible  <bruno@clisp.org>
7871         doc: Update for glibc 2.30.
7872         * doc/glibc-functions/gettid.texi: New file.
7873         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
7874         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
7875         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
7876         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
7877         * doc/glibc-functions/sem_clockwait.texi: New file.
7878         * doc/glibc-functions/tgkill.texi: New file.
7879         * doc/glibc-functions/twalk_r.texi: New file.
7880         * doc/gnulib.texi: Include them.
7881         (Glibc semaphore.h): New section.
7882         * doc/pastposix-functions/h_errno.texi: Update.
7883         * doc/posix-functions/*.texi: Likewise.
7885 2019-09-06  Bruno Haible  <bruno@clisp.org>
7887         symlink tests: Avoid test failure on Linux with Lustre file system.
7888         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
7889         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
7890         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
7892 2019-09-01  Bruno Haible  <bruno@clisp.org>
7894         gitsub.sh: Add support for shallow-cloning of subdirectories.
7895         * top/gitsub.sh (func_usage): Document allowed git options with
7896         'git pull'.
7897         (func_pull): Accept GIT_OPTIONS argument.
7898         (pull): Parse git options before complaining about too many arguments.
7899         Pass the git options to func_pull.
7901 2019-08-29  Bruno Haible  <bruno@clisp.org>
7903         lock: Fix cross-compilation guesses.
7904         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
7905         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
7906         platforms.
7908 2019-08-28  Bruno Haible  <bruno@clisp.org>
7910         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
7911         Reported by Martin Storsjö <martin@martin.st> in
7912         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
7913         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
7914         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
7915         files from GCC 6 or newer, use an override through '#define', because
7916         the inline definitions in the platform's <cmath> cannot be overridden
7917         in another way.
7919 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7921         Revert macOS INT_MULTIPLY_WRAPV patch
7922         Problem reported by Bruno Haible in:
7923         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
7924         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
7925         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
7926         Go back to working around the Clang bug on macOS.
7928 2019-08-27  Bruno Haible  <bruno@clisp.org>
7930         libtool-next-version: Fix error output.
7931         * build-aux/libtool-next-version (func_fatal_error): Fix the program
7932         name.
7934 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7936         Speed up INT_MULTIPLY_WRAPV on macOS
7937         Assume that __builtin_mul_overflow works OK with Clang on macOS.
7938         Mattias Engdegård says it’s safe to assume the relevant library
7939         is always available there.
7940         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
7941         New temporary internal macro.
7942         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
7943         No need to work around the Clang bug on macOS.
7945 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7947         intprops.h, verify.h: port better to clang
7948         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7949         with Clang.  Problem reported privately by Mattias Engdegård.
7950         Also, insulate intprops.h and verify.h better against each other’s
7951         definitions of __has_builtin on non-Clang hosts.
7952         * lib/intprops.h (__has_builtin): Define a temporary substitute
7953         if __has_builtin is not already defined.
7954         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7955         New temporary internal macros.
7956         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
7957         Now two separate macros, replacing the old
7958         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
7959         __builtin_mul_overflow is like the rest.  All uses changed.
7960         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
7961         Adjust to above changes.
7962         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
7963         longer relevant.  All uses changed.
7964         * lib/verify.h (__has_builtin): Treat like intprops.h,
7965         so that the two .h files do not collide with each other.
7966         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
7967         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
7969 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7971         intprops: say why not Clang __builtin_add_overflow
7972         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
7973         Mention Clang in comment, responding to a query from
7974         Mattias Engdegård.
7976 2019-08-24  Bruno Haible  <bruno@clisp.org>
7978         doc: Document most of the files outside of modules.
7979         * doc/gnulib.texi (Build Infrastructure Files,
7980         Release Management Files): New chapters.
7982 2019-08-24  Bruno Haible  <bruno@clisp.org>
7984         bootstrap: Keep in sync with the 'gettext' module.
7985         Reported by Assaf Gordon in
7986         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
7987         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
7988         * build-aux/po/remove-potcdate.sin: Likewise.
7990 2019-08-24  Bruno Haible  <bruno@clisp.org>
7992         crypto/gc-sha512: Add tests.
7993         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
7994         * modules/crypto/gc-sha512-tests: New file.
7996         crypto/gc-sha256: Add tests.
7997         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
7998         * modules/crypto/gc-sha256-tests: New file.
8000         crypto/gc-sha256, crypto/gc-sha512: New modules.
8001         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8002         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8003         (MAX_DIGEST_SIZE): Set to 64.
8004         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8005         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8006         (gc_sha256, gc_sha512): New functions.
8007         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8008         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8009         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8011 2019-08-24  Bruno Haible  <bruno@clisp.org>
8013         crypto/gc-sha1 tests: Improve output when the test fails.
8014         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8015         output.
8017 2019-08-24  Bruno Haible  <bruno@clisp.org>
8019         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8020         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8021         LIBGCRYPT_HAS_MD_SM3.
8022         * lib/gc-libgcrypt.c: Include sm3.h.
8023         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8024         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8025         implementation if libgcrypt does not support SM3.
8027 2019-08-24  Bruno Haible  <bruno@clisp.org>
8029         crypto/gc-md2: Optimize and clarify code.
8030         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8031         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8032         is not needed.
8034 2019-08-24  Bruno Haible  <bruno@clisp.org>
8036         crypto/gc-md2: Add comment.
8037         * lib/gc-libgcrypt.c: Add comment.
8039 2019-08-24  Bruno Haible  <bruno@clisp.org>
8041         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8042         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8043         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8044         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8045         variable.
8047 2019-08-24  Bruno Haible  <bruno@clisp.org>
8049         crypto/gc: Fix link error with --with-libgcrypt.
8050         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8051         AC_LIB_HAVE_LINKFLAGS invocation.
8053 2019-08-24  Bruno Haible  <bruno@clisp.org>
8055         crypto/gc: Access the module indicators correctly.
8056         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8057         * lib/gc-libgcrypt.c: Likewise.
8059 2019-08-24  Bruno Haible  <bruno@clisp.org>
8061         crypto/gc: Fix configuration with --with-libgcrypt.
8062         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8063         * modules/crypto/gc (Files): Add it.
8064         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8066 2019-08-24  Bruno Haible  <bruno@clisp.org>
8068         Remove unused file.
8069         * m4/stat-macros.m4: Remove file.
8071 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8073         New strip-trailing-space option for srclist-update
8074         * config/srclist-update (fixfile): Support new option.
8075         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8076         Use it.
8078 2019-08-20  Eric Blake  <eblake@redhat.com>
8080         accept4: Support SOCK_NONBLOCK, if defined
8081         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8083         accept4: Fix compilation when native accept4() exists.
8084         Reported by Richard W.M. Jones <rjones@redhat.com> in
8085         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8086         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8088 2019-08-18  Bruno Haible  <bruno@clisp.org>
8090         Defeat -flto GCC optimization in math autoconf tests.
8091         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8092         at <https://savannah.gnu.org/bugs/?56109>.
8093         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8094         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8095         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8096         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8097         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8098         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8099         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8100         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8101         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8102         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8103         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8104         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8106 2019-08-17  Bruno Haible  <bruno@clisp.org>
8108         windows-spin: Implement declared functions.
8109         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8110         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8111         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8112         name.
8114 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8116         intprops: port to Oracle Developer Studio 12.6
8117         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8118         typos that were in a section not compiled by GCC.
8120 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8122         intprops: support uchar, ushort _WRAPV dests
8123         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8124         when __builtin_add_overflow etc. and _Generic are not used.
8125         (_GL_INT_OP_WRAPV): Use it to support destinations that
8126         are unsigned char or unsigned short, even in compilers
8127         that lack __typeof__ and are not C11-compatible.
8129         intprops: pacify picky GCC
8130         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8131         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8132         possibly-incorrect result.
8133         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8134         about (A) used as a boolean, when A is an expression like 3 * 4.
8136         intprops: support unsigned *_WRAPV results
8137         Add support for unsigned, unsigned long, and unsigned long long
8138         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8139         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8140         bug with unsigned inputs reported by Eli Zaretskii in:
8141         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8142         * config/srclist.txt: Break the glibc connection for intprops.h
8143         temporarily, while more testing is done in Gnulib-using apps.
8144         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8145         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8146         Support unsigned results no narrower than unsigned int.  Report
8147         overflow correctly if some arguments are unsigned.
8148         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8149         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8150         the right thing with narrow args.
8151         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8152         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8153         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8154         * tests/test-intprops.c: Check for bugs and test new behavior.
8156 2019-08-14  Bruno Haible  <bruno@clisp.org>
8158         get_progname_of: New module.
8159         * lib/get_progname_of.h: New file.
8160         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8161         * lib/getprogname.c (getprogname): Tweak coding style.
8162         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8163         * modules/get_progname_of: New file.
8165 2019-08-14  Bruno Haible  <bruno@clisp.org>
8167         get_ppid_of: New module.
8168         * lib/get_ppid_of.h: New file.
8169         * lib/get_ppid_of.c: New file.
8170         * modules/get_ppid_of: New file.
8172 2019-08-13  Bruno Haible  <bruno@clisp.org>
8174         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8175         * tests/test-libtextstyle.c (main): Do not emit styling when the
8176         environment variable NO_COLOR is set.
8178 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8180         verify: improve diagnostic quality in recent GCC
8181         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8182         useful line number containing the top-level caller of the macro.
8183         So, bring back the older way of issuing a diagnostic containing
8184         the top-level call’s arg, so that it is easier to diagnose
8185         ‘verify’ failures with recent GCC.
8186         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8187         Bring back DIAGNOSTIC arg.  All callers changed.
8188         (verify): Just use _GL_VERIFY.
8190 2019-08-11  Bruno Haible  <bruno@clisp.org>
8192         localcharset: Add more aliases for OS/2.
8193         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8194         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8195         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8197 2019-08-10  Eric Blake  <eblake@redhat.com>
8199         configmake: Update advice on usage.
8200         * modules/configmake (Include): No longer necessary to include
8201         last, since configmake.h itself worries about collision avoidance.
8203 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8205         parse-datetime: fix 'T' military timezone handling
8206         * lib/parse-datetime.y (zone):
8207         follow-up to the previous commit: the 'T' case is handled outside the
8208         conversion table (used as either military timezone UTC-7 or ISO8601
8209         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8210         timezone letters.
8212 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8214         parse-datetime: fix military timezone letters
8215         Problem and trivial fix reported by Neil Hoggarth in:
8216         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8217         * lib/parse-datetime.y (military_table):
8218         Do it the right way, not the RFC 822 way.
8220 2019-08-08  Eric Blake  <eblake@redhat.com>
8222         configmake: Avoid namespace pollution issue on mingw.
8223         * modules/configmake (Makefile.am): If the project uses
8224         <winsock2.h>, include that header before defining DATADIR.
8226 2019-07-28  Bruno Haible  <bruno@clisp.org>
8228         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8229         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8231 2019-07-24  Bruno Haible  <bruno@clisp.org>
8233         pthread-h: Fix definitions of types and macros on mingw.
8234         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8235         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8236         not in use.
8237         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8238         'pthread-once' is not in use.
8239         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8240         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8241         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8242         in use.
8243         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8244         Define also when module 'pthread-rwlock' is not in use.
8245         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8246         also when module 'pthread-cond' is not in use.
8247         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8248         'pthread-tss' is not in use.
8249         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8250         use.
8252 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8254         crypto/gc: Cope with libgcrypt without SM3.
8255         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8257 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8259         backupfile: fix resource leak on memory failure
8260         Problem found by Coverity (CID 1484214).
8261         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8263 2019-07-22  Bruno Haible  <bruno@clisp.org>
8265         Avoid missing-declarations warning in various tests.
8266         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8267         test6, test_optional, test7, test8, test9, test10, test11, test12,
8268         test13, test14, test15, test_fun): Declare static.
8269         * tests/test-cnd.c (test_cnd_wait): Likewise.
8270         * tests/test-cond.c (test_cond): Likewise.
8272 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8274         pthread tests: Avoid missing-declarations warning.
8275         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8277 2019-07-19  Bruno Haible  <bruno@clisp.org>
8279         parse-datetime: Avoid warnings from bison versions >= 3.3.
8280         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8281         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8283 2019-07-19  Bruno Haible  <bruno@clisp.org>
8285         parse-datetime: Require Bison 2.4 or newer.
8286         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8287         Code taken from gettext's intl.m4.
8288         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8289         of YACC.
8291 2019-07-19  Bruno Haible  <bruno@clisp.org>
8293         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8294         * lib/areadlink-with-size.c: Include <string.h>.
8295         * lib/areadlinkat-with-size.c: Likewise.
8296         * lib/xgethostname.c: Likewise.
8297         * lib/xgetdomainname.c: Likewise.
8299 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8301         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8302         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8303         "%pure-parser".  The former is available since Bison 2.3b (2008),
8304         while the latter is marked as obsolete since version 3.4 (May 2019).
8306 2019-07-16  Bruno Haible  <bruno@clisp.org>
8308         update-copyright: Make it work again (regression from 2019-06-15).
8309         Reported by Brian C. Lane <bcl@redhat.com>.
8310         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8312 2019-07-14  Bruno Haible  <bruno@clisp.org>
8314         doc: Update info about <pthread.h>.
8315         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8316         of 'pthread'.
8318 2019-07-14  Bruno Haible  <bruno@clisp.org>
8320         pthread_sigmask tests: Use new multithread modules.
8321         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8322         glthread/thread.h.
8323         (main_thread, killer_thread): Change type to pthread_t.
8324         (main): Update accordingly.
8325         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8326         thread.
8328 2019-07-14  Bruno Haible  <bruno@clisp.org>
8330         pthread-tss: Add tests.
8331         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8332         tests/test-tss.c.
8333         * modules/pthread-tss-tests: New file.
8335 2019-07-14  Bruno Haible  <bruno@clisp.org>
8337         pthread-cond: Add tests.
8338         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8339         tests/test-cnd.c.
8340         * modules/pthread-cond-tests: New file.
8342 2019-07-14  Bruno Haible  <bruno@clisp.org>
8344         pthread-rwlock: Add tests.
8345         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8346         * modules/pthread-rwlock-tests: New file.
8348 2019-07-14  Bruno Haible  <bruno@clisp.org>
8350         pthread-mutex: Add tests.
8351         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8352         tests/test-mtx.c.
8353         * modules/pthread-mutex-tests: New file.
8355 2019-07-14  Bruno Haible  <bruno@clisp.org>
8357         pthread-once: Add tests.
8358         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8359         tests/test-call_once.c.
8360         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8361         tests/test-mtx.c.
8362         * modules/pthread-once-tests: New file.
8364 2019-07-14  Bruno Haible  <bruno@clisp.org>
8366         pthread-thread: Add tests.
8367         * tests/test-pthread-thread.c: New file, based on
8368         tests/test-thread_create.c and tests/test-thrd_create.c.
8369         * modules/pthread-thread-tests: New file.
8371 2019-07-14  Bruno Haible  <bruno@clisp.org>
8373         pthread: Turn into a convenience module.
8374         * lib/pthread.in.h: Remove declarations for extern inline functions.
8375         * lib/pthread.c: Remove file.
8376         * modules/pthread (Files): Remove it.
8377         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8378         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8379         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8380         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8381         GNULIB_PTHREAD.
8382         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8384 2019-07-14  Bruno Haible  <bruno@clisp.org>
8386         pthread-spin: New module.
8387         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8388         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8389         inline definitions.
8390         * lib/pthread-spin.c: New file.
8391         * m4/pthread-spin.m4: New file.
8392         * modules/pthread-spin: New file.
8393         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8394         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8395         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8396         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8397         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8399 2019-07-14  Bruno Haible  <bruno@clisp.org>
8401         pthread-tss: New module.
8402         * lib/pthread-tss.c: New file.
8403         * m4/pthread-tss.m4: New file.
8404         * modules/pthread-tss: New file.
8405         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8406         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8407         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8408         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8410 2019-07-14  Bruno Haible  <bruno@clisp.org>
8412         pthread-cond: New module.
8413         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8414         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8415         * lib/pthread-cond.c: New file.
8416         * m4/pthread-cond.m4: New file.
8417         * modules/pthread-cond: New file.
8418         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8419         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8420         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8421         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8422         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8423         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8424         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8425         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8427 2019-07-14  Bruno Haible  <bruno@clisp.org>
8429         pthread-rwlock: New module.
8430         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8431         * m4/pthread-rwlock.m4: New file.
8432         * modules/pthread-rwlock: New file.
8433         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8434         and the Android problem.
8435         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8436         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8437         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8438         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8439         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8440         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8441         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8442         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8443         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8444         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8446 2019-07-14  Bruno Haible  <bruno@clisp.org>
8448         pthread-mutex: New module.
8449         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8450         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8451         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8452         pthread_mutex_unlock): Remove inline definitions.
8453         * lib/pthread-mutex.c: New file.
8454         * m4/pthread-mutex.m4: New file.
8455         * modules/pthread-mutex: New file.
8456         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8457         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8458         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8459         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8460         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8461         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8462         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8463         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8464         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8465         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8466         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8467         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8469 2019-07-14  Bruno Haible  <bruno@clisp.org>
8471         pthread-once: New module.
8472         * lib/pthread-once.c: New file.
8473         * m4/pthread-once.m4: New file.
8474         * modules/pthread-once: New file.
8475         * doc/posix-functions/pthread_once.texi: Mention the new module.
8477 2019-07-14  Bruno Haible  <bruno@clisp.org>
8479         pthread-thread: New module.
8480         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8481         inline definitions.
8482         * lib/pthread-thread.c: New file.
8483         * m4/pthread-thread.m4: New file.
8484         * modules/pthread-thread: New file.
8485         * doc/posix-functions/pthread_create.texi: Mention the new module.
8486         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8487         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8488         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8489         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8490         * doc/posix-functions/pthread_self.texi: Likewise.
8491         * doc/posix-functions/pthread_equal.texi: Likewise.
8492         * doc/posix-functions/pthread_detach.texi: Likewise.
8493         * doc/posix-functions/pthread_join.texi: Likewise.
8494         * doc/posix-functions/pthread_exit.texi: Likewise.
8496 2019-07-14  Bruno Haible  <bruno@clisp.org>
8498         pthread-h: Prepare for adding new modules.
8499         * lib/pthread.in.h: Define the types and macros for each of the
8500         facilities separately.
8501         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8502         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8503         HAVE_PTHREAD_PROCESS_SHARED.
8504         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8505         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8506         HAVE_PTHREAD_PROCESS_SHARED.
8507         * modules/pthread-h (Makefile.am): Substitute
8508         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8509         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8511 2019-07-14  Bruno Haible  <bruno@clisp.org>
8513         pthread-h: Add declarations of essential pthread functions.
8514         * lib/pthread.in.h: Include snippets.
8515         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8516         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8517         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8518         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8519         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8520         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8521         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8522         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8523         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8524         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8525         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8526         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8527         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8528         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8529         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8530         pthread_key_create, pthread_setspecific, pthread_getspecific,
8531         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8532         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8533         declarations.
8534         (pthread_mutex_timedlock): Move declaration.
8535         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8536         declared.
8537         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8538         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8539         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8540         HAVE_* and REPLACE_* variables for the new functions.
8541         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8542         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8543         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8544         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8545         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8546         variables for the new functions. Split the sed script, to avoid the
8547         limit of 99 commands of HP-UX sed.
8548         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8550 2019-07-14  Bruno Haible  <bruno@clisp.org>
8552         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8553         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8554         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8555         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8556         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8557         * modules/pthread-h (Depends-on): Add threadlib.
8558         (Link): Change to $(LIBTHREAD).
8559         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8560         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8562 2019-07-14  Bruno Haible  <bruno@clisp.org>
8564         pthread-h: Add C++ tests.
8565         * tests/test-pthread-c++.cc: New file.
8566         * modules/pthread-h-c++-tests: New file.
8568 2019-07-14  Bruno Haible  <bruno@clisp.org>
8570         pthread-h: Add tests.
8571         * tests/test-pthread.c: New file.
8572         * modules/pthread-h-tests: New file.
8574 2019-07-14  Bruno Haible  <bruno@clisp.org>
8576         pthread-h: New module.
8577         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8578         is 1.
8579         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8580         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8581         <pthread.h> pollutes the namespace; instead, prepare for generating a
8582         pthread.h always. Substitute HAVE_PTHREAD_H here.
8583         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8584         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8585         * modules/pthread-h: New file, based on modules/pthread.
8586         * modules/pthread: Rely on 'pthread-h'.
8587         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
8588         Update.
8589         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
8590         pthread.
8592 2019-07-14  Bruno Haible  <bruno@clisp.org>
8594         sched_yield: New module.
8595         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
8596         (sched_yield): New declaration.
8597         * lib/sched_yield.c: New file.
8598         * m4/sched_yield.m4: New file.
8599         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
8600         provide a replacement sched.h always. Test whether sched_yield is
8601         declared.
8602         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
8603         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
8604         (Makefile.am): Provide a replacement sched.h always. Substitute
8605         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
8606         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
8607         * modules/sched_yield: New file.
8608         * doc/posix-functions/sched_yield.texi: Mention the new module.
8610 2019-07-14  Bruno Haible  <bruno@clisp.org>
8612         windows-spin: New module.
8613         * lib/windows-spin.h: New file.
8614         * lib/windows-spin.c: New file.
8615         * modules/windows-spin: New file.
8617 2019-07-14  Bruno Haible  <bruno@clisp.org>
8619         windows-timedrwlock: New module.
8620         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
8621         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
8622         windows-cond.c.
8623         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
8624         redefinition conflict with windows-timedrwlock.h.
8625         * modules/windows-timedrwlock: New file.
8627 2019-07-14  Bruno Haible  <bruno@clisp.org>
8629         windows-rwlock: New module.
8630         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
8631         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
8632         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
8633         windows-initguard.h.
8634         (gl_rwlock_t): Define using glwthread_rwlock_t.
8635         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
8636         (glthread_rwlock_init): Define using glwthread_rwlock_init.
8637         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
8638         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
8639         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
8640         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
8641         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
8642         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
8643         glthread_rwlock_destroy_func): Remove declarations.
8644         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
8645         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
8646         gl_waitqueue_notify_all, glthread_rwlock_init_func,
8647         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
8648         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
8649         functions.
8650         * modules/windows-rwlock: New file.
8651         * modules/lock (Depends-on): Add windows-rwlock.
8653 2019-07-14  Bruno Haible  <bruno@clisp.org>
8655         windows-thread: Add support for creating a thread in detached state.
8656         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
8657         (glwthread_thread_create): Add attr argument.
8658         * lib/windows-thread.c (glwthread_thread_create): Likewise.
8659         * lib/glthread/thread.h (glthread_create): Update.
8660         * lib/thrd.c (thrd_create): Update.
8662 2019-07-14  Bruno Haible  <bruno@clisp.org>
8664         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
8665         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
8666         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
8667         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
8668         * lib/windows-mutex.h: Update.
8669         * lib/windows-recmutex.h: Likewise.
8670         * lib/windows-timedmutex.h: Likewise.
8671         * lib/windows-timedrecmutex.h: Likewise.
8672         * lib/windows-cond.h: Likewise.
8673         * lib/glthread/lock.h: Likewise.
8674         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
8675         lib/windows-spinlock.h.
8676         * modules/windows-recmutex (Files): Likewise.
8677         * modules/windows-timedmutex (Files): Likewise.
8678         * modules/windows-timedrecmutex (Files): Likewise.
8679         * modules/windows-cond (Files): Likewise.
8680         * modules/threads-h (Files): Likewise.
8682 2019-07-14  Bruno Haible  <bruno@clisp.org>
8684         doc: Fix info about pthread API in HP-UX.
8685         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
8687 2019-07-14  Bruno Haible  <bruno@clisp.org>
8689         threads-h: Fix generation of threads.h.
8690         * modules/threads-h (Makefile.am): Insert the required header file
8691         snippets.
8693 2019-07-09  Bruno Haible  <bruno@clisp.org>
8695         striconveh test: Fix a compilation failure when iconv is not available.
8696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8697         * tests/test-striconveh.c (main): Move iconv_close invocations inside
8698         HAVE_ICONV.
8700 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
8702         argmatch: adjust columns for help2man.
8703         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
8704         requires column 20 or more, return 20.
8706 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8708         areadlink-with-size: avoid realloc when size==0
8709         * lib/areadlink-with-size.c (areadlink_with_size):
8710         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
8711         Reallocate at the end to the actual size, to avoid memory waste,
8712         as suggested by Bruno Haible.  But when the guessed size is zero -
8713         useful when the size is unknown - do the initial small readlink
8714         into the stack, to avoid that realloc in the usual case.
8716 2019-07-06  Pádraig Brady  <P@draigBrady.com>
8718         areadlink-with-size: guess a buffer size with 0 size
8719         The size is usually taken from st_size, which can be zero,
8720         resulting in inefficient operation.
8721         Instead let zero select an initial memory allocation
8722         of 128 bytes, which most symlinks fit within.
8723         * lib/areadlink-with-size.c (areadlink_with_size):
8724         Start with a 128 byte buffer, for SIZE == 0.
8725         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
8727 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
8729         Replace manually crafted hex regexes with [:xdigit:]
8730         * build-aux/gitlog-to-changelog (parse_amend_file)
8731         (git_dir_option):
8732         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
8733         This patch is backported from Emacs (Bug#36167).
8735 2019-07-06  Bruno Haible  <bruno@clisp.org>
8737         error: Fix documentation.
8738         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
8739         module provides.
8740         * doc/glibc-functions/error_message_count.texi: Likewise.
8741         * doc/glibc-functions/error_one_per_line.texi: Likewise.
8742         * doc/glibc-functions/error_print_progname.texi: Likewise.
8744 2019-07-06  Bruno Haible  <bruno@clisp.org>
8746         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
8747         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
8748         and older is unsupported.
8749         * doc/**/*.texi: Update.
8751 2019-07-06  Bruno Haible  <bruno@clisp.org>
8753         doc: Remove documentation of Linux libc5 as a supported platform.
8754         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
8755         to Linux libc5.
8756         * doc/posix-functions/iswalpha.texi: Likewise.
8757         * doc/posix-functions/iswblank.texi: Likewise.
8758         * doc/posix-functions/iswcntrl.texi: Likewise.
8759         * doc/posix-functions/iswdigit.texi: Likewise.
8760         * doc/posix-functions/iswgraph.texi: Likewise.
8761         * doc/posix-functions/iswlower.texi: Likewise.
8762         * doc/posix-functions/iswprint.texi: Likewise.
8763         * doc/posix-functions/iswpunct.texi: Likewise.
8764         * doc/posix-functions/iswspace.texi: Likewise.
8765         * doc/posix-functions/iswupper.texi: Likewise.
8766         * doc/posix-functions/iswxdigit.texi: Likewise.
8767         * doc/posix-functions/snprintf.texi: Likewise.
8768         * doc/posix-functions/vsnprintf.texi: Likewise.
8770 2019-07-06  Bruno Haible  <bruno@clisp.org>
8772         doc: Remove documentation of Tandem/NSK as a supported platform.
8773         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
8774         Tandem/NSK.
8775         * doc/**/*.texi: Update.
8777 2019-07-06  Bruno Haible  <bruno@clisp.org>
8779         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
8780         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
8781         and older is unsupported.
8782         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
8783         Mac OS X 10.4 and older.
8784         * doc/posix-functions/asinl.texi: Likewise.
8785         * doc/posix-functions/atanl.texi: Likewise.
8786         * doc/posix-functions/cosl.texi: Likewise.
8787         * doc/posix-functions/expl.texi: Likewise.
8788         * doc/posix-functions/frexpl.texi: Likewise.
8789         * doc/posix-functions/gettimeofday.texi: Likewise.
8790         * doc/posix-functions/logl.texi: Likewise.
8791         * doc/posix-functions/mkstemp.texi: Likewise.
8792         * doc/posix-functions/sinl.texi: Likewise.
8793         * doc/posix-functions/sqrtl.texi: Likewise.
8794         * doc/posix-functions/tanl.texi: Likewise.
8795         * doc/posix-functions/wcswidth.texi: Likewise.
8796         * doc/**/*.texi: Update.
8798 2019-07-06  Bruno Haible  <bruno@clisp.org>
8800         doc: Remove documentation of AIX 4 as a supported platform.
8801         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
8802         unsupported.
8803         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
8804         workarounds.
8805         * doc/posix-functions/strnlen.texi: Likewise.
8806         * doc/posix-headers/inttypes.texi: Likewise.
8807         * doc/**/*.texi: Update.
8809 2019-07-06  Bruno Haible  <bruno@clisp.org>
8811         doc: Remove documentation of HP-UX 10 as a supported platform.
8812         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
8813         unsupported.
8814         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
8815         workarounds.
8816         * doc/posix-functions/gmtime_r.texi: Likewise.
8817         * doc/posix-functions/localtime_r.texi: Likewise.
8818         * doc/posix-functions/mkstemp.texi: Likewise.
8819         * doc/**/*.texi: Update.
8821 2019-07-06  Bruno Haible  <bruno@clisp.org>
8823         doc: Remove documentation of Interix 3.5 as a supported platform.
8824         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
8825         unsupported.
8826         * doc/posix-functions/select.texi: Don't mention Interix specific
8827         workarounds.
8828         * doc/posix-headers/signal.texi: Likewise.
8829         * doc/**/*.texi: Update.
8831 2019-07-06  Bruno Haible  <bruno@clisp.org>
8833         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
8834         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
8835         unsupported.
8836         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
8837         workarounds.
8838         * doc/posix-functions/nl_langinfo.texi: Likewise.
8839         * doc/posix-functions/remainder.texi: Likewise.
8840         * doc/posix-functions/towlower.texi: Likewise.
8841         * doc/posix-functions/towupper.texi: Likewise.
8842         * doc/posix-functions/vsnprintf.texi: Likewise.
8843         * doc/posix-functions/wcscat.texi: Likewise.
8844         * doc/posix-functions/wcschr.texi: Likewise.
8845         * doc/posix-functions/wcscmp.texi: Likewise.
8846         * doc/posix-functions/wcscpy.texi: Likewise.
8847         * doc/posix-functions/wcscspn.texi: Likewise.
8848         * doc/posix-functions/wcslen.texi: Likewise.
8849         * doc/posix-functions/wcsncat.texi: Likewise.
8850         * doc/posix-functions/wcsncmp.texi: Likewise.
8851         * doc/posix-functions/wcsncpy.texi: Likewise.
8852         * doc/posix-functions/wcspbrk.texi: Likewise.
8853         * doc/posix-functions/wcsrchr.texi: Likewise.
8854         * doc/posix-functions/wcsspn.texi: Likewise.
8855         * doc/posix-headers/langinfo.texi: Likewise.
8856         * doc/posix-headers/signal.texi: Likewise.
8857         * doc/posix-headers/wchar.texi: Likewise.
8858         * doc/posix-headers/wctype.texi: Likewise.
8859         * doc/**/*.texi: Update.
8861 2019-07-05  Bruno Haible  <bruno@clisp.org>
8863         doc: Remove documentation of OSF/1 as supported platform.
8864         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
8865         unsupported.
8866         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
8867         workarounds.
8868         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
8869         * doc/glibc-functions/ptsname_r.texi: Likewise.
8870         * doc/posix-functions/ceil.texi: Likewise.
8871         * doc/posix-functions/ceilf.texi: Likewise.
8872         * doc/posix-functions/ceill.texi: Likewise.
8873         * doc/posix-functions/fchdir.texi: Likewise.
8874         * doc/posix-functions/floor.texi: Likewise.
8875         * doc/posix-functions/floorf.texi: Likewise.
8876         * doc/posix-functions/fmod.texi: Likewise.
8877         * doc/posix-functions/fmodf.texi: Likewise.
8878         * doc/posix-functions/fmodl.texi: Likewise.
8879         * doc/posix-functions/log.texi: Likewise.
8880         * doc/posix-functions/logf.texi: Likewise.
8881         * doc/posix-functions/logl.texi: Likewise.
8882         * doc/posix-functions/log10.texi: Likewise.
8883         * doc/posix-functions/log10f.texi: Likewise.
8884         * doc/posix-functions/log10l.texi: Likewise.
8885         * doc/posix-functions/log2.texi: Likewise.
8886         * doc/posix-functions/log2f.texi: Likewise.
8887         * doc/posix-functions/log2l.texi: Likewise.
8888         * doc/posix-functions/mbrtowc.texi: Likewise.
8889         * doc/posix-functions/recv.texi: Likewise.
8890         * doc/posix-functions/recvfrom.texi: Likewise.
8891         * doc/posix-functions/remainder.texi: Likewise.
8892         * doc/posix-functions/remainderf.texi: Likewise.
8893         * doc/posix-functions/remainderl.texi: Likewise.
8894         * doc/posix-functions/round.texi: Likewise.
8895         * doc/posix-functions/roundf.texi: Likewise.
8896         * doc/posix-functions/roundl.texi: Likewise.
8897         * doc/posix-functions/send.texi: Likewise.
8898         * doc/posix-functions/sendto.texi: Likewise.
8899         * doc/posix-functions/setenv.texi: Likewise.
8900         * doc/posix-functions/snprintf.texi: Likewise.
8901         * doc/posix-functions/tcgetsid.texi: Likewise.
8902         * doc/posix-functions/trunc.texi: Likewise.
8903         * doc/posix-functions/truncf.texi: Likewise.
8904         * doc/posix-functions/truncl.texi: Likewise.
8905         * doc/posix-functions/ttyname_r.texi: Likewise.
8906         * doc/posix-functions/unsetenv.texi: Likewise.
8907         * doc/posix-functions/wcsrtombs.texi: Likewise.
8908         * doc/posix-headers/sys_select.texi: Likewise.
8909         * doc/posix-headers/wchar.texi: Likewise.
8910         * doc/posix-headers/wctype.texi: Likewise.
8911         * doc/**/*.texi: Update.
8913 2019-07-05  Bruno Haible  <bruno@clisp.org>
8915         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
8916         * doc/**/*.texi: Update.
8918 2019-07-05  Bruno Haible  <bruno@clisp.org>
8920         doc: Remove documentation of Solaris 8 and older as supported platforms.
8921         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
8922         unsupported.
8923         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
8924         workarounds.
8925         * doc/posix-functions/memcmp.texi: Likewise.
8926         * doc/posix-functions/rename.texi: Likewise.
8927         * doc/posix-functions/tzset.texi: Likewise.
8928         * doc/posix-headers/wctype.texi: Likewise.
8929         * doc/**/*.texi: Update.
8931 2019-07-05  Bruno Haible  <bruno@clisp.org>
8933         doc: Remove documentation of Interix 3.5 as a supported platform.
8934         * doc/**/*.texi: Update.
8936 2019-07-05  Bruno Haible  <bruno@clisp.org>
8938         doc: Remove documentation of BeOS as a supported platform.
8939         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
8940         unsupported.
8941         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
8942         * doc/posix-functions/getdelim.texi: Likewise.
8943         * doc/**/*.texi: Update.
8945 2019-07-05  Bruno Haible  <bruno@clisp.org>
8947         thread, lock, cond, tls: Remove support for Pth threads.
8948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
8949         --enable-threads=pth any more.
8950         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
8951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
8952         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
8953         threads and ISO C11 threads.
8954         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
8955         * lib/glthread/lock.h: Likewise.
8956         * lib/glthread/lock.c: Likewise.
8957         * lib/glthread/cond.h: Likewise.
8958         * lib/glthread/cond.c: Likewise.
8959         * lib/glthread/tls.h: Likewise.
8960         * lib/glthread/tls.c: Likewise.
8961         * lib/glthread/yield.h: Likewise.
8962         * lib/regex_internal.h: Likewise.
8963         * tests/test-thread_create.c: Likewise.
8964         * tests/test-lock.c: Likewise.
8965         * tests/test-cond.c: Likewise.
8966         * tests/test-tls.c: Likewise.
8967         * tests/test-rwlock1.c: Don't include glthread/yield.h.
8968         (main): Sleep without calling gl_thread_yield.
8970 2019-07-05  Bruno Haible  <bruno@clisp.org>
8972         thread, lock, cond, tls: Remove support for old Solaris threads.
8973         Solaris >= 2.5.1 has POSIX threads.
8974         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
8975         --enable-threads=solaris any more.
8976         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
8977         * lib/glthread/thread.c: Update comment.
8978         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
8979         * lib/glthread/lock.h: Likewise.
8980         * lib/glthread/lock.c: Likewise.
8981         * lib/glthread/cond.h: Likewise.
8982         * lib/glthread/cond.c: Likewise.
8983         * lib/glthread/tls.h: Likewise.
8984         * lib/glthread/tls.c: Likewise.
8985         * lib/glthread/yield.h: Likewise.
8986         * lib/regex_internal.h: Likewise.
8987         * tests/test-thread_create.c: Likewise.
8988         * tests/test-lock.c: Likewise.
8989         * tests/test-cond.c: Likewise.
8990         * tests/test-tls.c: Likewise.
8992 2019-07-05  Bruno Haible  <bruno@clisp.org>
8994         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
8995         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
8996         needed size is equal to the allocated size.
8997         * lib/getcwd.c (__getcwd): Likewise.
8999 2019-07-05  Bruno Haible  <bruno@clisp.org>
9001         xgetdomainname: Don't return an excessive memory allocation.
9002         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9003         before returning it.
9005 2019-07-05  Bruno Haible  <bruno@clisp.org>
9007         xgethostname: Don't return an excessive memory allocation.
9008         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9009         returning it.
9011 2019-07-05  Bruno Haible  <bruno@clisp.org>
9013         areadlinkat-with-size: Don't return an excessive memory allocation.
9014         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9015         before returning it.
9017 2019-07-05  Bruno Haible  <bruno@clisp.org>
9019         areadlink-with-size: Don't return an excessive memory allocation.
9020         Reported by Andreas Dilger <adilger@whamcloud.com>.
9021         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9022         before returning it.
9024 2019-07-03  Bruno Haible  <bruno@clisp.org>
9026         renameatu: Fix test failure on MSVC.
9027         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9028         empty string.
9030 2019-07-03  Bruno Haible  <bruno@clisp.org>
9032         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9033         * lib/mbrtowc.c: Include glthread/lock.h.
9034         (mbtowc_lock): New variable.
9035         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9036         encodings, explicitly reset the internal state of mbtowc, and protect
9037         this through a lock.
9038         * modules/mbrtowc (Depends-on): Add lock.
9040 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9042         argmatch: don't define _ in the header.
9043         Reported by Jim Meyering.
9044         * lib/argmatch.h (N_, _): Don't define.
9045         Use gettext instead.
9046         * lib/argmatch.h (_): Define.
9047         * tests/test-argmatch.c (N_): Define.
9049 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9051         verify: document ‘assume’ better
9052         * lib/verify.h: Reword doc (Bug#36370).
9054 2019-07-02  Bruno Haible  <bruno@clisp.org>
9056         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9057         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9058         "CPutf8".
9059         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9061 2019-07-02  Bruno Haible  <bruno@clisp.org>
9063         getcwd: Fix crash when invoked with size = 0 on MSVC.
9064         * lib/getcwd.c: Include msvc-inval.h.
9065         (getcwd_nothrow): New function/macro.
9066         (getcwd_system): New macro.
9067         (__getcwd): Use it instead of getcwd.
9068         * modules/getcwd (Depends-on): Add msvc-inval.
9069         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9071 2019-07-02  Bruno Haible  <bruno@clisp.org>
9073         nonblocking-pipe tests: Fix test failure on MSVC.
9074         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9075         native Windows.
9077 2019-07-02  Bruno Haible  <bruno@clisp.org>
9079         usleep: Implement with millisecond resolution on native Windows.
9080         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9081         * doc/pastposix-functions/usleep.texi: Update accordingly.
9083 2019-07-02  Bruno Haible  <bruno@clisp.org>
9085         lstat tests: Fix test failure on MSVC.
9086         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9087         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9089 2019-07-02  Bruno Haible  <bruno@clisp.org>
9091         stat tests: Fix test failure on MSVC.
9092         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9093         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9095 2019-07-02  Bruno Haible  <bruno@clisp.org>
9097         getaddrinfo tests: Fix test failure on MSVC.
9098         * tests/test-getaddrinfo.c: Include sockets.h.
9099         (main): Invoke gl_sockets_startup.
9100         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9102 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9104         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9105         * lib/poll.c: Call Windows native select() with Windows native timeval.
9107 2019-06-30  Bruno Haible  <bruno@clisp.org>
9109         argmatch: Fix compilation errors.
9110         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9111         * tests/test-argmatch.c (main): Update after last-minute function names
9112         change.
9114 2019-06-30  Bruno Haible  <bruno@clisp.org>
9116         Include <stdlib.h> when needed.
9117         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9118         * lib/fcntl.c: Likewise.
9119         * lib/mbscasestr.c: Likewise.
9120         * lib/mbssep.c: Likewise.
9121         * lib/mbsstr.c: Likewise.
9122         * lib/openat.c: Include <stdlib.h>, needed for free().
9123         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9124         abort().
9126 2019-06-30  Bruno Haible  <bruno@clisp.org>
9128         Include <stdlib.h> when needed.
9129         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9130         * lib/faccessat.c: Likewise.
9131         * lib/fchmodat.c: Likewise.
9132         * lib/fchownat.c: Likewise.
9133         * lib/fstatat.c: Likewise.
9134         * lib/mkfifoat.c: Likewise.
9135         * lib/mknodat.c: Likewise.
9136         * lib/readlinkat.c: Likewise.
9137         * lib/symlinkat.c: Likewise.
9138         * lib/utimensat.c: Likewise.
9139         * lib/mkdirat.c: Likewise. Include also the specification header.
9141 2019-06-30  Bruno Haible  <bruno@clisp.org>
9143         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9144         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9145         from gl_PREREQ_SYS_H_SOCKET.
9146         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9148         gl_PREREQ_SYS_H_WS2TCPIP.
9149         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9150         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9151         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9153 2019-06-30  Bruno Haible  <bruno@clisp.org>
9155         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9156         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9157         REPLACE_INET_NTOP to 1 always.
9158         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9159         REPLACE_INET_PTON to 1 always.
9161 2019-06-30  Bruno Haible  <bruno@clisp.org>
9163         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9164         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9165         not REPLACE_INET_NTOP.
9167 2019-06-30  Bruno Haible  <bruno@clisp.org>
9169         poll: Add comment.
9170         * lib/poll.c: Add comment about WSAPoll.
9172 2019-06-30  Bruno Haible  <bruno@clisp.org>
9174         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9175         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9176         * lib/poll.in.h: Include <winsock2.h>.
9177         (POLL*, pollfd): Override on native Windows.
9178         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9179         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9180         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9182 2019-06-28  Bruno Haible  <bruno@clisp.org>
9184         accept4: Fix compilation error on OpenIndiana.
9185         Reported by Michal Nowak <mnowak@startmail.com>
9186         via Mark H Weaver <mhw@netris.org>.
9187         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9188         whether it exists as a function.
9190 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9192         strverscmp: sync from glibc
9193         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9194         comments, include libc-config.h, define __strverscmp to be
9195         strverscmp, and don’t assume types line uint8_t and int8_t that
9196         that C99 doesn’t guarantee.
9197         [!_LIBC]: Include libc-config.h; define __strverscmp.
9198         Include stdint.h.
9199         (__strverscmp): Assume C99.  Use uint_least8_t
9200         and int_least8_t instead of unsigned char and signed char.
9201         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9203 2019-06-25  Bruno Haible  <bruno@clisp.org>
9205         tss tests: Add tests for destructors and races.
9206         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9207         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9208         functions.
9209         (main): Invoke them.
9210         * modules/tls-tests (Depends-on): Add mtx.
9212 2019-06-25  Bruno Haible  <bruno@clisp.org>
9214         tls tests: Add tests for destructors and races.
9215         * tests/test-tls.c: Include glthread/lock.h.
9216         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9217         functions.
9218         (main): Invoke them.
9219         * modules/tls-tests (Depends-on): Add lock.
9221 2019-06-25  Bruno Haible  <bruno@clisp.org>
9223         windows-tls: Implement TLS key destructors for native Windows.
9224         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9225         declaration.
9226         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9227         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9228         (dtor_table_init_once, dtor_table_lock: New variables.
9229         (struct dtor): New type.
9230         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9231         dtor_processing_threads): New variables.
9232         (dtor_table_initialize, dtor_table_ensure_initialized,
9233         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9234         functions.
9235         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9236         handle non-NULL destructors.
9237         * modules/windows-tls (Depends-on): Add windows-once.
9238         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9239         Use the functions declared in windows-tls.h.
9240         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9241         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9242         * lib/windows-thread.c: Include windows-tls.h.
9243         (wrapper_func, glwthread_thread_exit): Invoke
9244         glwthread_tls_process_destructors.
9245         * modules/windows-thread (Depends-on): Add windows-tls.
9247 2019-06-25  Bruno Haible  <bruno@clisp.org>
9249         threadlib: Avoid autoconf warning "was expanded before it was required".
9250         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9252 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9254         argmatch: remove duplicate const qualifier
9255         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9257 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9259         unistd: stddef.h and sys/types.h namespace cleanup
9260         * lib/unistd.in.h [__GLIBC__]:
9261         Do not include stddef.h or sys/types.h.
9262         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9263         supposed to declare off_t and ssize_t.  Problem found when looking
9264         at why @GNULIB_PWRITE@ was different from the newly-added
9265         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9267 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9269         maintainer-makefile: restore portability to non-GNU awks
9270         Reported by Tim Rühsen.
9271         * top/maint.mk (AWK): New variable.  Use it.
9272         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9274 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9276         Document setvbuf _IOLBF problem
9277         * doc/posix-functions/setvbuf.texi (setvbuf):
9278         Document MS-Windows portability problem with _IOLBF.
9280         Document lseek SEEK_DATA/SEEK_HOLE
9281         * doc/posix-functions/lseek.texi (lseek):
9282         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9284 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9286         argmatch: put all the docs member last.
9287         Reported by Bruno Haible.
9288         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9289         member before the docs done.
9290         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9292 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9294         argmatch: add support to generate the usage message.
9295         * lib/argmatch.c: Move some #includes and gettext support to...
9296         * lib/argmatch.h: here.
9297         (ARGMATCH_DEFINE_GROUP): New macro.
9298         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9299         (argmatch_backup_group): New.
9300         (CHECK): New.
9301         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9302         argmatch_backup_argument and argmatch_backup_usage.
9303         * modules/argmatch: We depend on c99.
9304         * doc/argmatch.texi (Recognizing Option Arguments): New.
9305         * doc/gnulib.texi: Use it.
9307 2019-06-21  Bruno Haible  <bruno@clisp.org>
9309         thrd: Add comment.
9310         * lib/thrd.c (pthread_main_func): Add comment.
9312 2019-06-21  Bruno Haible  <bruno@clisp.org>
9314         threads-h: Define 'thread_local' if and only if it actually works.
9315         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9316         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9317         Oracle Solaris Studio C. Compile a simple program, to see whether
9318         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9319         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9320         * lib/threads.in.h (thread_local): Undefine if it does not work.
9321         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9322         (Link): Mention LIBTHREADLOCAL.
9323         * tests/test-threads.c: Don't check that thread_local is defined.
9324         * tests/test-thread_local.c: New file.
9325         * modules/threads-h-tests (Files): Add it and macros.h.
9326         (Depends-on): Add thrd and stdint.
9327         (configure.ac): Test whether 'alarm' is declared.
9328         (Makefile.am): Arrange to build and link test-thread_local.
9329         * doc/posix-headers/threads.texi: Mention the platforms that don't
9330         support 'thread_local'.
9332 2019-06-20  Bruno Haible  <bruno@clisp.org>
9334         threads-h: Simplify link dependencies.
9335         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9336         Don't set LTLIBSTDTHREAD.
9337         * modules/thrd (Link): Simplify accordingly.
9338         * modules/mtx (Link): Likewise.
9339         * modules/cnd (Link): Likewise.
9340         * modules/tss (Link): Likewise.
9341         * modules/threads (Link): Likewise.
9343 2019-06-20  Bruno Haible  <bruno@clisp.org>
9345         threads-h: Fix link error on FreeBSD 11.
9346         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9347         also with -lpthread.
9349 2019-06-20  Bruno Haible  <bruno@clisp.org>
9351         threadlib: Fix typo (regression from today).
9352         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9354 2019-06-20  Bruno Haible  <bruno@clisp.org>
9356         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9357         * lib/windows-thread.c: Include <errno.h>.
9358         * lib/windows-tls.c: Likewise.
9360 2019-06-20  Bruno Haible  <bruno@clisp.org>
9362         tss tests: Small improvement.
9363         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9365 2019-06-20  Bruno Haible  <bruno@clisp.org>
9367         threads: New module.
9368         * modules/threads: New file.
9370 2019-06-20  Bruno Haible  <bruno@clisp.org>
9372         tss: Add tests.
9373         * tests/test-tss.c: New file, based on tests/test-tls.c.
9374         * modules/tss-tests: New file.
9376 2019-06-20  Bruno Haible  <bruno@clisp.org>
9378         cnd: Add tests.
9379         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9380         * modules/cnd-tests: New file.
9382 2019-06-20  Bruno Haible  <bruno@clisp.org>
9384         mtx: Add tests.
9385         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9386         * tests/test-call_once.c: New file, based on tests/test-once.c.
9387         * modules/mtx-tests: New file.
9389 2019-06-20  Bruno Haible  <bruno@clisp.org>
9391         thrd: Add tests.
9392         * tests/test-thrd_create.c: New file, based on
9393         tests/test-thread_create.c.
9394         * tests/test-thrd_current.c: New file, based on
9395         tests/test-thread_self.c.
9396         * modules/thrd-tests: New file.
9398 2019-06-20  Bruno Haible  <bruno@clisp.org>
9400         tss: New module.
9401         * lib/tss.c: New file.
9402         * modules/tss: New file.
9403         * doc/posix-functions/tss_create.texi: Mention the new module.
9404         * doc/posix-functions/tss_set.texi: Likewise.
9405         * doc/posix-functions/tss_get.texi: Likewise.
9406         * doc/posix-functions/tss_delete.texi: Likewise.
9408 2019-06-20  Bruno Haible  <bruno@clisp.org>
9410         cnd: New module.
9411         * lib/cnd.c: New file.
9412         * modules/cnd: New file.
9413         * doc/posix-functions/cnd_init.texi: Mention the new module.
9414         * doc/posix-functions/cnd_wait.texi: Likewise.
9415         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9416         * doc/posix-functions/cnd_signal.texi: Likewise.
9417         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9418         * doc/posix-functions/cnd_destroy.texi: Likewise.
9420 2019-06-20  Bruno Haible  <bruno@clisp.org>
9422         mtx: New module.
9423         * lib/mtx.c: New file.
9424         * modules/mtx: New file.
9425         * doc/posix-functions/call_once.texi: Mention the new module.
9426         * doc/posix-functions/mtx_init.texi: Likewise.
9427         * doc/posix-functions/mtx_lock.texi: Likewise.
9428         * doc/posix-functions/mtx_trylock.texi: Likewise.
9429         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9430         * doc/posix-functions/mtx_unlock.texi: Likewise.
9431         * doc/posix-functions/mtx_destroy.texi: Likewise.
9433 2019-06-20  Bruno Haible  <bruno@clisp.org>
9435         thrd: New module.
9436         * lib/thrd.c: New file.
9437         * m4/thrd.m4: New file.
9438         * modules/thrd: New file.
9439         * doc/posix-functions/thrd_current.texi: Mention the new module.
9440         * doc/posix-functions/thrd_detach.texi: Likewise.
9441         * doc/posix-functions/thrd_equal.texi: Likewise.
9442         * doc/posix-functions/thrd_exit.texi: Likewise.
9443         * doc/posix-functions/thrd_sleep.texi: Likewise.
9444         * doc/posix-functions/thrd_yield.texi: Likewise.
9445         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9446         AIX bug.
9447         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9448         AIX and Solaris bugs.
9450 2019-06-20  Bruno Haible  <bruno@clisp.org>
9452         threads-h: Add tests.
9453         * tests/test-threads.c: New file.
9454         * modules/threads-h-tests: New file.
9455         * tests/test-threads-c++.cc: New file.
9456         * modules/threads-h-c++-tests: New file.
9458 2019-06-20  Bruno Haible  <bruno@clisp.org>
9460         threads-h: New module.
9461         * lib/threads.in.h: New file.
9462         * m4/threads.m4: New file.
9463         * m4/yield.m4 (gl_YIELD): Update comment.
9464         * modules/threads-h: New file.
9465         * modules/yields (configure.ac): Use AC_REQUIRE.
9466         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9467         bugs.
9469 2019-06-20  Bruno Haible  <bruno@clisp.org>
9471         windows-thread: New module.
9472         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9473         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9474         * lib/glthread/thread.h: Include windows-thread.h.
9475         (gl_thread_t): Define using glwthread_thread_t.
9476         (glthread_create): Define using glwthread_thread_create.
9477         (glthread_join): Define using glwthread_thread_join.
9478         (gl_thread_self): Define using glwthread_thread_self.
9479         (gl_thread_exit): Define using glwthread_thread_exit.
9480         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9481         gl_thread_exit_func): Remove declarations.
9482         * lib/glthread/thread.c (self_key): Remove variable.
9483         (do_init_self_key, init_self_key): Remove functions.
9484         (struct gl_thread_struct): Remove type.
9485         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9486         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9487         functions.
9488         * modules/windows-thread: New file.
9489         * modules/thread (Depends-on): Add windows-thread.
9491 2019-06-20  Bruno Haible  <bruno@clisp.org>
9493         windows-tls: New module.
9494         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9495         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9496         * lib/glthread/tls.h: Include windows-tls.h.
9497         (gl_tls_key_t): Define using glwthread_tls_key_t.
9498         * modules/windows-tls: New file.
9499         * modules/tls (Depends-on): Add windows-tls.
9501 2019-06-20  Bruno Haible  <bruno@clisp.org>
9503         windows-cond: New module.
9504         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9505         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9506         * lib/glthread/cond.h: Include windows-cond.h.
9507         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9508         (gl_cond_t): Define using glwthread_cond_t.
9509         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9510         (glthread_cond_init): Define using glwthread_cond_init.
9511         (glthread_cond_wait): Define using glwthread_cond_wait.
9512         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9513         (glthread_cond_signal): Define using glwthread_cond_signal.
9514         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9515         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9516         (glthread_cond_init_func, glthread_cond_wait_func,
9517         glthread_cond_timedwait_func, glthread_cond_signal_func,
9518         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9519         declarations.
9520         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9521         types.
9522         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9523         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9524         glthread_cond_init_func, glthread_cond_wait_func,
9525         glthread_cond_timedwait_func, glthread_cond_signal_func,
9526         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9527         functions.
9528         * modules/windows-cond: New file.
9529         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9531 2019-06-20  Bruno Haible  <bruno@clisp.org>
9533         windows-timedrecmutex: New module.
9534         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9535         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9536         * modules/windows-timedrecmutex: New file.
9538 2019-06-20  Bruno Haible  <bruno@clisp.org>
9540         windows-timedmutex: New module.
9541         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9542         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9543         * modules/windows-timedmutex: New file.
9545 2019-06-20  Bruno Haible  <bruno@clisp.org>
9547         windows-recmutex: New module.
9548         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9549         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9550         * lib/glthread/lock.h: Include windows-recmutex.h.
9551         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9552         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9553         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9554         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9555         (glthread_recursive_lock_unlock): Define using
9556         glwthread_recmutex_unlock.
9557         (glthread_recursive_lock_destroy): Define using
9558         glwthread_recmutex_destroy.
9559         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9560         glthread_recursive_lock_unlock_func,
9561         glthread_recursive_lock_destroy_func): Remove declarations.
9562         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9563         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9564         glthread_recursive_lock_destroy_func): Remove functions.
9565         * modules/windows-recmutex: New file.
9566         * modules/lock (Depends-on): Add windows-recmutex.
9568 2019-06-20  Bruno Haible  <bruno@clisp.org>
9570         windows-mutex: New module.
9571         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9572         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9573         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9574         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9575         (gl_spinlock_t): Remove type.
9576         (gl_lock_t): Define using glwthread_mutex_t.
9577         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9578         (glthread_lock_init): Define using glwthread_mutex_init.
9579         (glthread_lock_lock): Define using glwthread_mutex_lock.
9580         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9581         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9582         (glthread_lock_init_func, glthread_lock_lock_func,
9583         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9584         declarations.
9585         Use glwthread_spinlock_t instead of gl_spinlock_t.
9586         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
9587         GLWTHREAD_SPINLOCK_INIT.
9588         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
9589         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9590         functions.
9591         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
9592         gl_spinlock_t.
9593         * modules/windows-mutex: New file.
9594         * modules/lock (Depends-on): Add windows-mutex.
9596 2019-06-20  Bruno Haible  <bruno@clisp.org>
9598         windows-once: New module.
9599         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
9600         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
9601         * lib/glthread/lock.h: Include windows-once.h.
9602         (gl_once_t): Define using glwthread_once_t.
9603         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
9604         (glthread_once): Define using glwthread_once.
9605         (glthread_once_func): Remove declaration.
9606         * lib/glthread/lock.c (glthread_once_func): Remove function.
9607         * modules/windows-once: New file.
9608         * modules/lock (Depends-on): Add windows-once.
9610 2019-06-20  Bruno Haible  <bruno@clisp.org>
9612         lock, cond: Avoid possible counter wraparound on Windows.
9613         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
9614         field of the guard unchanged if it was already positive.
9615         (glthread_rwlock_rdlock_func): Likewise.
9616         (glthread_rwlock_wrlock_func): Likewise.
9617         (glthread_recursive_lock_lock_func): Likewise.
9618         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
9619         (glthread_cond_timedwait_func): Likewise.
9621 2019-06-20  Bruno Haible  <bruno@clisp.org>
9623         cond: Make glthread_cond_timedwait more reliable on Windows.
9624         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
9625         condition variable before looking at the current time.
9627 2019-06-20  Bruno Haible  <bruno@clisp.org>
9629         pthread_mutex_timedlock: New module.
9630         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
9631         new declaration.
9632         * lib/pthread_mutex_timedlock.c: New file.
9633         * m4/pthread_mutex_timedlock.m4: New file.
9634         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
9635         whether pthread_mutex_timedlock is declared.
9636         (gl_PTHREAD_MODULE_INDICATOR): New macro.
9637         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9638         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9639         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
9640         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9641         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9642         * modules/pthread_mutex_timedlock: New file.
9643         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
9644         module.
9646 2019-06-20  Bruno Haible  <bruno@clisp.org>
9648         thread, lock, cond, tls: Recognize C11 multithreaded applications.
9649         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
9650         * lib/glthread/thread.h (c11_threads_in_use): New macro.
9651         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9652         * lib/glthread/lock.h (c11_threads_in_use): New macro.
9653         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9654         * lib/glthread/cond.h (c11_threads_in_use): New macro.
9655         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9656         * lib/glthread/tls.h (c11_threads_in_use): New macro.
9657         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9659 2019-06-20  Bruno Haible  <bruno@clisp.org>
9661         tls tests: Small improvements.
9662         * tests/test-tls.c: Include <stdint.h>.
9663         (worker_thread): Avoid gcc warning on 64-bit mingw.
9664         (test_tls): Pass a different id to each thread.
9665         * modules/tls-tests (Depends-on): Add stdint.
9667 2019-06-20  Bruno Haible  <bruno@clisp.org>
9669         cond tests: Simplify.
9670         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
9672 2019-06-20  Bruno Haible  <bruno@clisp.org>
9674         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
9675         * tests/test-lock.c (test_once): Don't reference fire_signal if
9676         !ENABLE_LOCKING.
9678 2019-06-19  Bruno Haible  <bruno@clisp.org>
9680         nanosleep: Relicense under LGPLv2+.
9681         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
9682         * modules/nanosleep (License): Change to LGPLv2+.
9684 2019-06-19  Bruno Haible  <bruno@clisp.org>
9686         Reorder pieces of header in perl scripts.
9687         The desired order is
9688         - Prologue part 1 (2 lines with #!)
9689         - Program short description
9690         - Copyright and license notice
9691         - Written-by notice
9692         - Program short description (optional)
9693         - Program long description (optional)
9694         - Prologue part 2
9695         - Time stamp
9696         - Code
9697         Reported by Paul Eggert.
9698         * build-aux/announce-gen: Reorder header.
9699         * build-aux/gitlog-to-changelog: Likewise.
9700         * build-aux/useless-if-before-free: Likewise.
9701         * build-aux/prefix-gnulib-mk: Add copyright notice and short
9702         description.
9703         * build-aux/update-copyright: Likewise. Add short description. Bump
9704         time-stamp-line-limit to 200.
9706 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9708         verify-tests: work around xlc bug
9709         Problem reported by Bruno Haible in:
9710         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
9711         * tests/test-verify.c (item): Move the arithmetic inside the
9712         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
9714 2019-06-16  Bruno Haible  <bruno@clisp.org>
9716         Restore Emacs time-stamp hook applicability.
9717         Reported by Darshit Shah <darnir@gnu.org>.
9718         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
9719         * build-aux/announce-gen: Likewise.
9720         * build-aux/gitlog-to-changelog: Likewise.
9721         * build-aux/prefix-gnulib-mk: Likewise.
9722         * build-aux/update-copyright: Likewise.
9724 2019-06-15  Bruno Haible  <bruno@clisp.org>
9726         Fix scripts to have valid executable format on Alpine Linux.
9727         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9728         Idea by Paul Eggert.
9729         * build-aux/useless-if-before-free: Use a prologue that starts with
9730         '#!/bin/sh'.
9731         * build-aux/announce-gen: Likewise.
9732         * build-aux/gitlog-to-changelog: Likewise.
9733         * build-aux/prefix-gnulib-mk: Likewise.
9734         * build-aux/update-copyright: Likewise.
9735         * tests/test-update-copyright.sh: Update test program accordingly.
9737 2019-06-10  Bruno Haible  <bruno@clisp.org>
9739         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
9740         Reported by Nikita Ermakov <arei@altlinux.org> in
9741         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
9742         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
9743         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
9745 2019-06-10  Bruno Haible  <bruno@clisp.org>
9747         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
9748         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9749         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
9750         a copy of the path argument.
9751         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9752         it.
9754 2019-06-10  Bruno Haible  <bruno@clisp.org>
9756         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
9757         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
9758         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9759         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
9760         a copy of the path argument.
9761         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9762         it.
9764 2019-06-10  Bruno Haible  <bruno@clisp.org>
9766         posix_spawn_file_actions_addfchdir: Add tests.
9767         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
9768         * tests/test-posix_spawn5.c: New file.
9769         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
9771 2019-06-10  Bruno Haible  <bruno@clisp.org>
9773         posix_spawn_file_actions_addfchdir: New module.
9774         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
9775         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
9776         union member 'fchdir_action'.
9777         * lib/spawn_faction_addfchdir.c: New file.
9778         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
9779         * m4/posix_spawn_faction_addfchdir.m4: New file.
9780         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9781         'posix_spawn_file_actions_addfchdir' is present and whether
9782         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
9783         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9784         posix_spawn_file_actions_addfchdir is declared.
9785         (gl_SPAWN_H_DEFAULTS): Initialize
9786         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9787         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9788         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9789         * modules/spawn (Makefile.am): Substitute
9790         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9791         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9793         * modules/posix_spawn_file_actions_addfchdir: New file.
9794         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
9795         signature.
9796         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9797         * doc/posix-functions/posix_spawnp.texi: Likewise.
9798         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
9799         Likewise.
9801 2019-06-10  Bruno Haible  <bruno@clisp.org>
9803         doc: Document existence of posix_spawn_file_actions_addchdir module.
9804         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
9805         the posix_spawn_file_actions_addchdir module.
9807 2019-06-10  Bruno Haible  <bruno@clisp.org>
9809         posix_spawn-internal: Fix module description.
9810         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
9811         from here...
9812         * modules/posix_spawnp (configure.ac): ... and here...
9813         * modules/posix_spawn-internal (configure.ac): ... to here.
9815 2019-06-10  Bruno Haible  <bruno@clisp.org>
9817         doc: Update and improve documentation of glibc functions.
9818         This is a series of commits that
9819         - updates the documentation to the state of glibc 2.29,
9820         - adds references to Linux man pages and glibc documentation,
9821         - marks Linux specific functions as such.
9822         These are the commits:
9823         doc: Update after removal of crypt functions from glibc 2.28.
9824         doc: Remove mention of function vm86 (does not exist on x86_64).
9825         doc: Remove mention of functions that are gone from glibc.
9826         doc: Mention that glibc no longer provides h_errno.
9827         doc: Mention the availability of specific functions in glibc versions.
9828         doc: Mention eaccess.
9829         doc: Add references to Linux man pages.
9830         doc: Add references to glibc documentation.
9831         doc: Mention inotify_* functions.
9832         doc: Mention ppoll.
9833         doc: Mention sched_getcpu.
9834         doc: Mention sync_file_range.
9835         doc: Mention epoll_pwait.
9836         doc: Mention eventfd, eventfd_read, eventfd_write.
9837         doc: Mention signalfd.
9838         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
9839         doc: Mention epoll_create1.
9840         doc: Mention getauxval.
9841         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
9842         doc: Mention nextdown, nextup.
9843         doc: Mention more ISO TS 18661-1 <math.h> functions.
9844         doc: Mention ISO TS 18661-1 <fenv.h> functions.
9845         doc: Mention getrandom, getentropy.
9846         doc: Mention strfromf, strfromd, strfroml.
9847         doc: Mention preadv2, pwritev2.
9848         doc: Mention copy_file_range.
9849         doc: Mention memfd_create.
9850         doc: Mention mlock2.
9851         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
9852         doc: Mention more ISO TS 18661-1 <math.h> functions.
9853         doc: Mention renameat2.
9854         doc: Mention statx.
9855         doc: Mention the ISO C11 multithreading header and functions.
9856         doc: Mention getcpu.
9857         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
9858         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
9859         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
9860         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
9861         doc: Some glibc functions also exist on Solaris 11.
9862         doc: Some glibc functions also exist on Solaris 11.4.
9863         doc: Some glibc functions also exist on FreeBSD.
9864         doc: Some glibc functions also exist on BeOS.
9865         doc: Some glibc functions also exist on Haiku.
9866         doc: Mark functions which exist only on Linux.
9867         doc: Mark functions which exist only on Linux and illumos.
9869 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9871         copy-file: fix typo
9872         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
9874         copy-file-range: simplify into a stub
9875         Based on a comment by Florian Weimer in:
9876         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
9877         It turns out that Emacs (which will use this module) won’t need an
9878         emulation and I suspect other programs won’t either, because these
9879         programs will need to fall back on read+write anyway.  Perhaps I
9880         am wrong and other programs will be able to use an emulation; if
9881         so, this patch can be reverted.
9882         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
9883         Just call it copy_file_range.
9884         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
9885         Check via AC_LINK_IFELSE.
9886         * modules/copy-file-range (Depends-on): Remove modules no longer used.
9888 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9890         copy-file: prefer copy_file_range
9891         * lib/copy-file.c: Do not include xalloc.h.
9892         (qcopy_file_preserving): Allocate a buffer only if
9893         copy_file_range does not suffice.  If the allocation fails
9894         don't give up; just use a small stack-based buffer.
9895         Prefer copy_file_range if it works.
9896         * modules/copy-file (Depends-on): Add copy-file-range.
9897         Remove xalloc.
9899         copy-file-range: new module
9900         * MODULES.html.sh: Add copy-file-range.
9901         * lib/copy-file-range.c, m4/copy-file-range.m4:
9902         * modules/copy-file-range: New files.
9903         * lib/unistd.in.h (copy_file_range): Declare.
9904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
9905         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
9906         * modules/unistd (unistd.h): Substitute them.
9908 2019-05-28  Bruno Haible  <bruno@clisp.org>
9910         binary-io: Attempted use of O_BINARY on consoles no longer fails.
9911         Reported by KO Myung-Hun <komh78@gmail.com> in
9912         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
9913         * lib/binary-io.h (__gl_setmode_check): Remove function.
9914         (set_binary_mode): Declare as notinline on DJGPP and EMX.
9915         * lib/binary-io.c (__gl_setmode_check): Remove function.
9916         (set_binary_mode): Define here on DJGPP and EMX. Inline
9917         __gl_setmode_check. In case of a tty, don't return an error code.
9919 2019-05-28  James Youngman  <jay@gnu.org>
9921         dirent-safer: Make opendir_safer usable from C++.
9922         * lib/dirent-safer.h: use extern "C".
9924 2019-05-28  James Youngman  <jay@gnu.org>
9926         canonicalize: Make canonicalize_filename_mode usable from C++.
9927         * lib/canonicalize.h: use extern "C".
9929 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
9931         prefix-gnulib-mk: Fix CPPFLAGS migration.
9932         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
9933         _a part of the library name.
9935 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9937         flexmember: update comments again
9938         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
9940         flexmember: update comment
9941         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
9943 2019-05-20  Bruno Haible  <bruno@clisp.org>
9945         setlocale: Improve fallback on macOS.
9946         * lib/setlocale.c (search): Optimize away a redundant strcmp()
9947         invocation.
9948         (locales_with_principal_territory): New array.
9949         (langcmp, get_main_locale_with_same_language): New functions.
9950         (locales_with_principal_language): New array.
9951         (terrcmp, get_main_locale_with_same_territory): New functions.
9952         (rpl_setlocale): When setlocale_single failed, try again with a locale
9953         that is more likely to exist. Don't warn if the environment variable
9954         SETLOCALE_VERBOSE is not set.
9956 2019-05-19  Bruno Haible  <bruno@clisp.org>
9958         localename: Fix default on macOS.
9959         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
9960         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
9961         (gl_locale_name_environ, gl_locale_name_default): Remove code for
9962         HAVE_CFLOCALECOPYCURRENT.
9963         * lib/localename.h (gl_locale_name_default): Update.
9965 2019-05-19  Karl Berry  <karl@freefriends.org>
9967         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
9968         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
9969         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
9971 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
9973         maintainer-makefile: catch uses of $< in non-implicit rules
9974         * top/maint.mk (sc_prohibit_magic_number_exit): New.
9976 2019-05-18  Bruno Haible  <bruno@clisp.org>
9978         threadlib: Provide an easy way to avoid mingw's winpthreads library.
9979         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
9980         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
9981         gl_use_threads accordingly.
9983 2019-05-18  Bruno Haible  <bruno@clisp.org>
9985         pthread_sigmask: Fix compilation error with --enable-threads=windows.
9986         Reported by Tim Rühsen in
9987         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
9988         and Michele Locati in
9989         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
9990         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
9991         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
9992         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
9993         in use and regardless which threads API is chosen.
9995 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
9997         close-stream, closein, closeout: simplify
9998         I noticed this opportunity for simplification while drafting a
9999         new, related module that I haven’t had time to finish yet.
10000         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10001         * modules/close-stream (Files): Remove m4/close-stream.m4.
10002         (configure.ac): Omit gl_CLOSE_STREAM.
10003         * modules/closein (Files): Remove m4/closein.m4
10004         (configure.ac): Omit gl_CLOSEIN.
10005         * modules/closeout (Files): Remove m4/closeout.m4.
10006         (configure.ac): Omit gl_CLOSEOUT.
10008 2019-05-12  Bruno Haible  <bruno@clisp.org>
10010         libtool-next-version: New program.
10011         * build-aux/libtool-next-version: New file.
10013 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10014             Bruno Haible  <bruno@clisp.org>
10016         version-etc: Ease translation.
10017         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10018         URLs and formatting newlines out of translatable string.
10020 2019-05-11  Bruno Haible  <bruno@clisp.org>
10022         gnupload: Explain how to create symlinks.
10023         * build-aux/gnupload (usage): Add an example that creates symlinks.
10025 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10027         fpucw: port to gcc -pedantic
10028         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10029         Use __extension__ if using ({ ... }).
10031         crypto/af_alg: port to strict C compilers
10032         * lib/af_alg.c: Include af_alg.h regardless, so that the
10033         compilation unit is nonempty.
10035 2019-05-10  Bruno Haible  <bruno@clisp.org>
10037         base64: Avoid false positive warning from Coverity.
10038         Reported by Kamil Dudka <kdudka@redhat.com>.
10039         Idea by Paul Eggert.
10040         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10041         '& 0x3f' to the array index expressions. This convinces Coverity that
10042         there is no out-of-bounds array reference, regardless of the input.
10044 2019-05-09  Bruno Haible  <bruno@clisp.org>
10046         gettext: Update to gettext 0.20.
10047         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10048         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10049         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10050         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10051         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10052         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10053         (configure.ac): Request infrastructure compatible with gettext 0.20.
10054         * m4/glibc2.m4: Remove file.
10055         * m4/intdiv0.m4: Remove file.
10056         * m4/intl.m4: Remove file.
10057         * m4/intldir.m4: Remove file.
10058         * m4/intmax.m4: Remove file.
10059         * m4/printf-posix.m4: Remove file.
10060         * m4/uintmax_t.m4: Remove file.
10061         * m4/gettext.m4: Update from gettext 0.20.
10062         * m4/po.m4: Likewise.
10064 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10066         verify: remove verify_true
10067         * NEWS: Mention this.
10068         * lib/verify.h (verify_true): Remove.
10069         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10071         Support C2X and C++17 static_assert
10072         C2X and C++17 finally added support for a simple, single-argument
10073         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10074         doing back in 2005.  Implement static_assert on older platforms.
10075         The only remaining advantage of ‘verify’ is a shorter name.
10076         * doc/posix-headers/assert.texi (assert.h):
10077         * doc/verify.texi (Compile-time Assertions):
10078         Modernize for C2X and C++17.
10079         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10080         New macros.
10081         (_GL_HAVE__STATIC_ASSERT): Remove.
10082         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10083         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10084         string.  All callers changed.
10085         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10086         are used.  All callers changed.
10087         (_Static_assert): Allow either 1 or 2 args, and define if
10088         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10089         !_GL_HAVE__STATIC_ASSERT.
10090         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10091         of defining if !_GL_HAVE_STATIC_ASSERT.
10092         (verify_expr, verify): Don’t bother trying to copy the expression
10093         into the diagnostic, since 1-argument static_assert doesn’t.
10094         (verify): Prefer 1-argument _Static_assert if it works.
10095         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10097 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10099         Fix _GL_HAVE__STATIC_ASSERT typo
10100         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10101         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10103 2019-05-05  Bruno Haible  <bruno@clisp.org>
10105         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10106         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10107         via Akim Demaille <akim.demaille@gmail.com>.
10108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10109         en_US.UTF-8 locale, since that is more likely to be present than an
10110         fr_FR.UTF-8 locale.
10111         * tests/test-wcwidth.c (main): Check the width of U+2202.
10112         * doc/posix-functions/wcwidth.texi: Mention the issue.
10114 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10116         Port manywarnings to GCC 9
10117         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10118         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10119         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10120         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10121         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10122         --help=warnings output.
10123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10124         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10125         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10127 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10129         Sync lib/mktime-internal.h from glibc
10130         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10131         * lib/mktime-internal.h: Autoupdate.
10133 2019-04-28  Bruno Haible  <bruno@clisp.org>
10135         tls tests: Prevent that the test takes too long.
10136         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10137         (main): Let the test fail if it takes more than 10 minutes.
10138         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10140 2019-04-27  Bruno Haible  <bruno@clisp.org>
10142         lock tests: Prevent that the test takes too long.
10143         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10144         (main): Let the test fail if it takes more than 10 minutes.
10145         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10147 2019-04-27  Bruno Haible  <bruno@clisp.org>
10149         localename: Fix crash on mingw (regression from 2018-11-23).
10150         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10151         locale name that is null.
10153 2019-04-27  Bruno Haible  <bruno@clisp.org>
10155         Fix gcc warnings on 64-bit mode mingw.
10156         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10157         * lib/gl_array_list.c: Likewise.
10158         * lib/gl_array_map.c: Likewise.
10159         * lib/gl_array_set.c: Likewise.
10160         * lib/gl_carray_list.c: Likewise.
10161         * lib/gl_sublist.c: Likewise.
10162         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10163         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10164         * lib/gl_hash_map.c (uintptr_t): Likewise.
10165         * lib/gl_hash_set.c (uintptr_t): Likewise.
10166         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10167         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10168         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10169         * lib/iconv.c (uintptr_t): Likewise.
10170         * lib/iconv_close.c (uintptr_t): Likewise.
10171         * tests/test-lock.c: Include <stdint.h>.
10172         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10173         'long'.
10174         * modules/clean-temp (Depends-on): Add stdint.
10175         * modules/array-list (Depends-on): Likewise.
10176         * modules/array-map (Depends-on): Likewise.
10177         * modules/array-set (Depends-on): Likewise.
10178         * modules/carray-list (Depends-on): Likewise.
10179         * modules/sublist (Depends-on): Likewise.
10180         * modules/lock-tests (Depends-on): Likewise.
10182 2019-04-27  Bruno Haible  <bruno@clisp.org>
10184         error: Tweak indentation.
10185         * lib/error.c: Correct indentation.
10187 2019-04-27  Bruno Haible  <bruno@clisp.org>
10189         term-style-control: Fix gcc warning on mingw.
10190         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10191         of i.
10193 2019-04-26  Bruno Haible  <bruno@clisp.org>
10195         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10196         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10198 2019-04-26  Bruno Haible  <bruno@clisp.org>
10200         relocatable-prog: Fix gcc warning on mingw.
10201         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10202         on EMX.
10204 2019-04-02  Bruno Haible  <bruno@clisp.org>
10206         gitsub.sh: New file.
10207         * top/gitsub.sh: New file.
10209 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10211         argmatch: use void* for raw memory pointers
10212         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10213         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10214         to "values", keep char* for strings.
10216 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10218         prefix-gnulib-mk: fix the support for gnulib-po
10219         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10220         Don't touch HAVE_* variables.
10221         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10223 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10225         di-set: allow free with 'ino_map' being NULL.
10226         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10227         is NULL.  Bug introduced in commit 3703dbbe88dd.
10228         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10229         as a test.
10231 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10233         * lib/str-two-way.h: Fix comment typo.
10235 2019-04-13  Bruno Haible  <bruno@clisp.org>
10237         x-to-1: Restore ability to use original calling convention.
10238         * build-aux/x-to-1.in: Add comments. Accept the original form of
10239         HELP2MAN argument as well as the form expected since 2012-12-12.
10241 2019-04-13  Bruno Haible  <bruno@clisp.org>
10243         x-to-1: Avoid failure due to missing perl modules.
10244         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10245         needs are installed.
10247 2019-04-13  Bruno Haible  <bruno@clisp.org>
10249         openmp-init: New module.
10250         * modules/openmp-init: New file.
10251         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10252         the changes from 2019-04-09.
10254 2019-04-12  Bruno Haible  <bruno@clisp.org>
10256         signbit: Fix compilation error when gnulib's math.h exists twice.
10257         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10259 2019-04-12  Bruno Haible  <bruno@clisp.org>
10261         openmp: Fix compilation error on platforms without OpenMP.
10262         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10264 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10266         mountlist: make parsing /proc/self/mountinfo more robust
10267         Cater for the following issues with mountinfo parsing (the first
10268         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10269         in <https://bugs.gnu.org/35137>).
10270         1. The fields source, target, mntroot and fstype may contain characters
10271         like '\r'; sscanf(3) fails to read such values with the %s format
10272         specifier because it would stop at such characters.
10273         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10274         The only true separator in that file is the ' ' character.
10275         2. The source field may be an empty string, which happens e.g. with
10276         "mount -t tmpfs '' /target".
10277         3. The fstype field may contain mangled characters as well which need
10278         unescaping.
10279         * lib/mountlist.c (terminate_at_blank): Add utility function.
10280         (read_file_system_list): In the block trying to read the mountinfo file,
10281         avoid using sscanf(3) with %s format; instead, parse the above fields
10282         separated by spaces one by one.
10283         This also handles the case when the source field is an empty string.
10284         Unescape the fstype field.
10286 2019-04-09  Bruno Haible  <bruno@clisp.org>
10288         openmp: Add workaround for 32-bit programs on AIX.
10289         * lib/omp.in.h: New file.
10290         * lib/omp-init.c: New file, based on lib/nproc.c.
10291         * m4/omp_h.m4: New file.
10292         * modules/openmp (Files): Add them.
10293         (Depends-on): Add include_next, c-ctype, setenv.
10294         (configure.ac): Invoke gl_OMP_H.
10295         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10296         (Include): Mention <omp.h>.
10298 2019-04-09  Bruno Haible  <bruno@clisp.org>
10300         nproc: Fix return value for privileged processes.
10301         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10302         getpid().
10304 2019-04-07  Bruno Haible  <bruno@clisp.org>
10306         Add copyright notices in several files.
10307         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10308         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10309         * lib/libunistring.valgrind: Likewise.
10310         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10311         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10312         * lib/memchr.valgrind: Likewise.
10313         * lib/memchr2.valgrind: Likewise.
10314         * lib/rawmemchr.valgrind: Likewise.
10315         * lib/relocatable.valgrind: Likewise.
10316         * lib/strchrnul.valgrind: Likewise.
10318 2019-03-25  Bruno Haible  <bruno@clisp.org>
10320         term-style-control tests: Fix link error.
10321         Reported by Tom G. Christensen in
10322         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10323         * modules/term-style-control-tests (Makefile.am): Link
10324         test-term-style-control-hello and test-term-style-control-yes against
10325         LIBINTL.
10327 2019-03-24  Bruno Haible  <bruno@clisp.org>
10329         term-style-control: Add tests.
10330         * tests/test-term-style-control-hello.c: New file.
10331         * tests/test-term-style-control-yes.c: New file.
10332         * modules/term-style-control-tests: New file.
10334         term-style-control: New module.
10335         * lib/term-style-control.h: New file, based on libtextstyle's
10336         term-ostream.oo.h and term-ostream.oo.c.
10337         * lib/term-style-control.c: New file, based on libtextstyle's
10338         term-ostream.oo.c.
10339         * modules/term-style-control: New file.
10341 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10343         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10344         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10345         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10347 2019-03-23  Bruno Haible  <bruno@clisp.org>
10349         Support cross-compilation to musl libc.
10350         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10351         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10352         musl libc.
10353         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10354         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10355         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10356         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10357         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10358         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10359         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10360         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10361         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10362         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10363         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10364         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10365         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10366         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10367         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10368         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10369         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10370         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10371         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10372         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10373         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10375         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10376         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10378         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10379         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10380         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10381         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10382         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10383         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10384         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10385         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10386         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10387         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10388         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10389         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10390         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10391         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10392         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10393         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10394         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10395         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10397         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10398         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10399         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10400         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10401         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10402         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10403         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10404         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10405         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10406         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10407         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10408         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10409         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10410         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10411         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10412         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10413         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10416         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10417         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10418         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10420         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10421         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10422         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10423         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10424         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10425         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10426         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10427         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10428         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10429         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10432 2019-03-23  Bruno Haible  <bruno@clisp.org>
10434         posix_spawn_file_actions_*: Document musl libc bugs.
10435         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10436         the bug.
10437         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10438         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10439         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10440         cross-compiling to a musl system, guess no.
10441         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10442         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10444 2019-03-23  Bruno Haible  <bruno@clisp.org>
10446         futimens: Document musl libc bug.
10447         * doc/posix-functions/futimens.texi: Mention the bug.
10448         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10449         cross-compiling, guess no on glibc and musl systems.
10451 2019-03-23  Bruno Haible  <bruno@clisp.org>
10453         Clarify that cross-compilation guesses are guesses.
10454         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10455         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10456         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10457         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10458         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10459         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10460         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10461         gl_cv_glob_lists_symlinks.
10462         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10463         'guessing ' to ac_cv_func_malloc_0_nonnull.
10464         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10465         'guessing ' to ac_cv_func_realloc_0_nonnull.
10466         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10467         'guessing ' to gl_cv_func_poll.
10468         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10469         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10472 2019-03-23  Bruno Haible  <bruno@clisp.org>
10474         strtold: Fix typo.
10475         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10477 2019-03-23  Bruno Haible  <bruno@clisp.org>
10479         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10480         Reported by Akim Demaille.
10481         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10482         [[noreturn]] would not work, use _Noreturn instead.
10484 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10486         libtextstyle-optional: Fix compiler warnings.
10487         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10488         as unused.
10490 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10492         bitset: fix memory leaks
10493         Reported by Bruno Haible.
10494         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10495         * lib/bitset/vector.c (vbitset_free): New.
10496         (vbitset_vtable): Use it.
10498 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10500         bitset: minor changes
10501         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10502         * lib/bitset/table.c: Formatting changes.
10503         Remove useless braces.
10504         Prefer using else in cascades of if/else-if with returns.
10505         * lib/bitset/vector.c: Reduce scopes.
10507 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10509         bitset: expose bitset_resize
10510         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10511         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10512         (main): Use a variable bitset as reference, since fixed does not support resize.
10514 2019-03-19  Bruno Haible  <bruno@clisp.org>
10516         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10517         Reported by Akim Demaille.
10518         * doc/noreturn.texi: New file.
10519         * doc/gnulib.texi: Include it.
10521 2019-03-19  Bruno Haible  <bruno@clisp.org>
10523         doc: Document how to use 'static inline'.
10524         * doc/static-inline.texi: New file.
10525         * doc/gnulib.texi: Include it.
10527 2019-03-19  Bruno Haible  <bruno@clisp.org>
10529         libtextstyle-optional: Add tests.
10530         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10531         adhoc-tests/hello.c.
10532         * tests/test-libtextstyle-default.css: New file, copied from
10533         libtextstyle's adhoc-tests/hello-default.css.
10534         * modules/libtextstyle-optional-tests: New file.
10536         libtextstyle-optional: New module.
10537         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10538         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10539         * modules/libtextstyle-optional: New file.
10541 2019-03-19  Bruno Haible  <bruno@clisp.org>
10543         c-stack: Make signal handlers more reliable.
10544         * lib/c-stack.c (progname): New variable.
10545         (die): Use it.
10546         (c_stack_action): Initialize it.
10547         (segv_handler): Save and restore errno.
10549 2019-03-19  Bruno Haible  <bruno@clisp.org>
10551         Help making signal handlers more reliable.
10552         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10553         _GL_ASYNC_SAFE into config.h.
10554         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10555         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10556         argument.
10557         * lib/fatal-signal.c (action_t, uninstall_handlers,
10558         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10559         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10560         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10561         _GL_ASYNC_SAFE.
10562         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10563         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10565 2019-03-18  Bruno Haible  <bruno@clisp.org>
10567         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10568         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10569         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10571 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10573         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10574         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10575         GCC 4.8.
10577 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10579         fts: minor simplification
10580         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10582 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10584         bitset, timevar: Depend on c99.
10585         Reported by Bruno Haible.
10586         * modules/bitset, modules/timevar (Depends-on): Add c99.
10588 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10590         bitset: a bit (...) more tests
10591         * tests/test-bitset.c (check_attributes): Check zero and ones.
10593 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10595         bitset: fix overflows.
10596         Reported by Bruno Haible.
10597         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
10598         * lib/bitset/table.c (tbitset_test): last_bit is the position of
10599         the bit in the array of bitset_word, so be sure to take its modulo
10600         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
10601         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
10603 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
10605         bitset: style changes.
10606         * lib/bitset/table.c: Use NULL, not 0, for pointers.
10607         Formatting changes.
10608         (tbitset_list): Reduce scopes.
10610 2019-03-16  Bruno Haible  <bruno@clisp.org>
10612         fatal-signal: Pass the signal number to the action.
10613         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
10614         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
10615         (fatal_signal_handler): Pass the signal number to the action.
10616         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
10617         signal number as parameter.
10618         (create_temp_dir): Update.
10619         * lib/wait-process.c (cleanup_slaves_action): New function.
10620         (register_slave_subprocess): Update at_fatal_signal invocation.
10621         * NEWS: Mention the change.
10623 2019-03-16  Bruno Haible  <bruno@clisp.org>
10625         fatal-signal: Add function that lists the fatal signals.
10626         * lib/fatal-signal.h (get_fatal_signals): New declaration.
10627         * lib/fatal-signal.c (get_fatal_signals): New function.
10629 2019-03-14  Bruno Haible  <bruno@clisp.org>
10631         isatty: Make it return true in Cygwin consoles on native Windows.
10632         * lib/isatty.c: Include <string.h>.
10633         (GetProcAddress): New macro.
10634         (GetNamedPipeClientProcessIdFuncType): New type.
10635         (GetNamedPipeClientProcessIdFunc): New variable.
10636         (QueryFullProcessImageNameFuncType): New type.
10637         (QueryFullProcessImageNameFunc): New variable.
10638         (initialized): New variable.
10639         (initialize): New function.
10640         (IsCygwinConsoleHandle): New function.
10641         (isatty): Invoke it.
10642         * doc/posix-functions/isatty.texi: Mention the issue.
10644 2019-03-14  Bruno Haible  <bruno@clisp.org>
10646         all: Update URLs to msdn.microsoft.com.
10647         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
10648         was moved to docs.microsoft.com.
10650 2019-03-13  Bruno Haible  <bruno@clisp.org>
10652         gnulib-tool: Clarify the coding style.
10653         Suggested by Pavel Raiskup <praiskup@redhat.com>.
10654         * gnulib-tool: Add comment about coding style.
10656 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10658         strtod: fix clash with strtold
10659         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
10660         * lib/strtod.c (compute_minus_zero, minus_zero):
10661         Simplify by remving the macro / external variable,
10662         and having just a function.  User changed.  This avoids
10663         the need for an external variable that might clash.
10665 2019-03-10  Bruno Haible  <bruno@clisp.org>
10667         alloca-opt: Fix conflict mingw's new <alloca.h> file.
10668         Reported by Eli Zaretskii <eliz@gnu.org>.
10669         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
10670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
10671         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
10673 2019-03-10  Bruno Haible  <bruno@clisp.org>
10675         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
10676         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
10677         is in use.
10678         * tests/test-printf-posix2.c: Likewise.
10680 2019-03-10  Bruno Haible  <bruno@clisp.org>
10682         uninorm tests: Free allocated memory.
10683         * tests/uninorm/test-u32-normalize-big.h
10684         (struct normalization_test_file): Remove 'const' from allocated member.
10685         (free_normalization_test_file): New declaration.
10686         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
10687         memory.
10688         (free_normalization_test_file): New function.
10689         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
10690         'struct normalization_test_file' contents.
10691         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
10692         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
10693         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
10695 2019-03-10  Bruno Haible  <bruno@clisp.org>
10697         di-set: Fix memory leak.
10698         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
10699         not free().
10701 2019-03-10  Bruno Haible  <bruno@clisp.org>
10703         tests: Free allocated memory.
10704         Reported by <deltatau@protonmail.com> via Assaf Gordon.
10705         * tests/test-astrxfrm.c (main): Free allocated memory.
10706         * tests/test-bitset.c (compare, check_attributes): Free allocated
10707         bitsets.
10708         * tests/test-filenamecat.c (main): Free allocated memory.
10709         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
10710         * tests/test-freadptr.c (main): Likewise.
10711         * tests/test-freadptr2.c (main): Free allocated memory.
10712         * tests/test-freadseek.c (main): Likewise.
10713         * tests/test-gc-arcfour.c (main): Close allocated context.
10714         * tests/test-gc-arctwo.c (main): Likewise.
10715         * tests/test-gc-des.c (main): Close all allocated contexts.
10716         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
10717         * tests/test-pipe-filter-ii1.c (main): Likewise.
10718         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
10719         allocated file actions.
10720         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
10721         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
10722         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
10723         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
10724         * tests/test-strfmon_l.c (main): Free allocated locales.
10725         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
10726         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
10727         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10728         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
10729         * tests/unistr/test-chr.h (main): Free input32.
10730         * tests/unistr/test-strchr.h (test_strchr): Likewise.
10732 2019-03-10  Bruno Haible  <bruno@clisp.org>
10734         tests: Prepare for using valgrind.
10735         * tests/*.sh: Invoke all test programs through ${CHECKER}.
10736         * tests/*/*.sh: Likewise.
10737         * tests/test-freadptr.c (main): Update accordingly.
10738         * tests/test-freadseek.c (main): Likewise.
10740 2019-03-09  Bruno Haible  <bruno@clisp.org>
10742         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
10743         * lib/get-rusage-as.c (get_rusage_as): When compiled by
10744         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
10745         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
10746         before exiting.
10748 2019-03-09  Jim Meyering  <meyering@fb.com>
10750         test-userspec.c: don't print NULL
10751         * tests/test-userspec.c (main): A test release of gcc,
10752         9.0.1 20190310, warned that this test would attempt to
10753         print a NULL pointer via a %s printf format.  Fix that
10754         and remove the unnecessary preceding "!diag" conjunct.
10755         Also add a comment.
10757 2019-03-03  Bruno Haible  <bruno@clisp.org>
10759         getloadavg: Write NULL for the null pointer.
10760         Reported by Michal Privoznik <mprivozn@redhat.com>.
10761         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
10763 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
10765         alloca, tsearch-tests: Write NULL for the null pointer.
10766         * lib/alloca.c (i00afunc): Write NULL instead of 0.
10767         * tests/test-tsearch.c (mangle_tree): Likewise.
10769 2019-03-09  Bruno Haible  <bruno@clisp.org>
10771         strfmon_l: Fix -fsanitize=address finding.
10772         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
10773         <string.h>.
10774         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
10775         (directive_t, directives_t): New types.
10776         (fmon_parse): New function.
10777         (rpl_strfmon_l): Don't call va_arg more often than needed for the
10778         format string. Consume 'long double' arguments in places where the
10779         format string indicates so.
10780         * modules/strfmon_l (Depends-on): Add 'stdbool'.
10782 2019-03-09  Bruno Haible  <bruno@clisp.org>
10784         crypto/des: Fix undefined behaviour.
10785         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
10786         shift operations on 'int'.
10788 2019-03-09  Bruno Haible  <bruno@clisp.org>
10790         Fix undefined behaviour.
10791         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
10792         'unsigned int', to avoid shift operations on 'int'.
10793         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
10794         * tests/test-count-leading-zeros.c (main): Use a random number that has
10795         as many bits as TYPE, not only 2*15 or 2*31 bits.
10796         * tests/test-count-trailing-zeros.c (main): Likewise.
10797         * tests/test-count-one-bits.c (main): Likewise.
10798         * tests/test-memmem.c: Don't include "null-ptr.h".
10799         (main): Use zerosize_ptr() instead of null_ptr().
10800         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
10802 2019-03-08  Bruno Haible  <bruno@clisp.org>
10804         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
10805         Reported by Jeffrey Walton <noloader@gmail.com>.
10806         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
10807         invoke memset with a zero size.
10808         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10809         Likewise.
10810         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10811         Adjust accordingly.
10813 2019-03-08  Bruno Haible  <bruno@clisp.org>
10815         unistr/*, uniconv/*: Fix undefined behaviour.
10816         Reported by Jeffrey Walton <noloader@gmail.com>.
10817         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
10818         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
10819         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10820         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10822 2019-03-08  Bruno Haible  <bruno@clisp.org>
10824         unistr/u8-cmp: Fix undefined behaviour.
10825         Reported by Jeffrey Walton <noloader@gmail.com>.
10826         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
10828 2019-03-08  Bruno Haible  <bruno@clisp.org>
10830         unictype/numeric: Fix undefined behaviour.
10831         Reported by Jeffrey Walton <noloader@gmail.com>.
10832         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
10833         on shift overflow, caught by "gcc -fsanitize=undefined".
10834         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
10835         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
10836         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
10838 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
10840         git-version-gen: fix --version copyright year
10841         * build-aux/git-version-gen, build-aux/move-if-change (version):
10842         --version output copyright year is now taken from script year,
10843         so that it no longer needs to be updated by hand.
10845 2019-03-04  Bruno Haible  <bruno@clisp.org>
10847         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
10848         This approach supports relocatable installation of shared libraries
10849         which depend on other shared libraries from the same package.
10850         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
10851         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
10852         wrapper around the original LIBTOOL.
10853         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
10854         token '@loader_path' instead of '$ORIGIN'.
10855         * build-aux/libtool-reloc: New file.
10856         * modules/relocatable-prog (Files): Add it.
10857         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
10858         the recent changes. Document the need to set the *_LDFLAGS of libraries.
10859         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
10860         Makefile.am, not in configure.ac.
10862 2019-03-04  Bruno Haible  <bruno@clisp.org>
10864         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
10865         * build-aux/install-reloc: Revert change.
10866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
10868 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10870         nstrftime: support the ‘+’ flag
10871         * lib/nstrftime.c (add, __strftime_internal):
10872         Add support for the ‘+’ flag introduced in POSIX.1-2017.
10873         (__strftime_internal): New arg ‘width’.  All uses changed.
10874         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
10876 2019-02-24  Bruno Haible  <bruno@clisp.org>
10878         relocatable-prog: Improve verbose output.
10879         * build-aux/install-reloc (func_verbose): Escape characters that would
10880         be interpreted by the shell.
10882 2019-02-24  Bruno Haible  <bruno@clisp.org>
10884         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
10885         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
10886         "sys/stat.h".
10887         * lib/lstat.c: Likewise.
10888         * lib/fstat.c: Likewise.
10889         * lib/fstatat.c: Likewise.
10891 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
10893         long-options: add parse_gnu_standard_options_only
10894         Discussed in https://bugs.gnu.org/33468 .
10896         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
10897         (parse_gnu_standard_options_only): Add function to process
10898         the GNU default options --help and --version and fail for
10899         any other unknown long or short option. See
10900         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
10901         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
10902         * modules/long-options (depends-on): Add stdbool, exitfail.
10903         * top/maint.mk (sc_prohibit_long_options_without_use): Update
10904         syntax-check rule, add new function name.
10906 2019-02-23  Bruno Haible  <bruno@clisp.org>
10908         relocatable-prog: Update documentation.
10909         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
10910         the recent changes.
10912 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10914         nstrftime: tweak arg order
10915         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
10916         All callers changed.  Suggested by TAMUKI Shoichi in:
10917         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
10919 2019-02-23  Bruno Haible  <bruno@clisp.org>
10921         relocatable-prog: Use wrapper-free installation also on Mac OS X.
10922         Reported by Paul Smith <psmith@gnu.org>.
10923         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
10924         (func_relativize): New function, from gnulib-tool.
10925         Handle mode 'macosx' through invocations of 'otool' and
10926         'install_name_tool'.
10927         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
10928         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
10929         'install-reloc' invocation with mode 'macosx'.
10931 2019-02-23  Bruno Haible  <bruno@clisp.org>
10933         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
10934         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
10935         Hurd with glibc >= 2.27.
10937 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10939         nstrftime: merge glibc strftime changes
10940         This incorporates:
10941         2019-02-11 Fix a few whitespace arrangement inconsistencies
10942         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
10943         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
10944         2019-01-11 strftime: use the "L_" macro with character literals
10945         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
10946         callers changed.  Default width of %Ey is now 2.  This is needed
10947         for proper handling of Japanese dates starting on 2019-05-01.
10949 2019-02-19  Bruno Haible  <bruno@clisp.org>
10951         relocatable-prog: Use $ORIGIN trick on more platforms.
10952         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
10953         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
10954         Solaris >= 10, Haiku. But don't use it on Android.
10955         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
10956         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
10958 2019-02-19  Bruno Haible  <bruno@clisp.org>
10960         progreloc: Speed up executable lookup on various platforms.
10961         * lib/progreloc.c: Include <errno.h>.
10962         (safe_read, full_read): New functions.
10963         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
10964         prefer the information from the /proc file system to a PATH search.
10966 2019-02-19  Bruno Haible  <bruno@clisp.org>
10968         progreloc: Simplify code for Android.
10969         * lib/progreloc.c (executable_fd): Don't define on Android.
10970         (maybe_executable, find_executable): Don't use executable_fd on Android.
10972 2019-02-15  Bruno Haible  <bruno@clisp.org>
10974         gnulib-tool: Support --import with just a few tests, not --with-tests.
10975         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
10976         'inctests' when generating files; use 'inctests' only for computing the
10977         transitive closure.
10979 2019-02-14  Bruno Haible  <bruno@clisp.org>
10981         gnulib-tool: Improve handling of multiple --local-dir options.
10982         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
10983         options work.
10984         * gnulib-tool (func_path_prepend): Remove function.
10985         (func_path_foreach): Make IFS handling more robust.
10986         (local_gnulib_path): Collect --local-dir values using func_path_append,
10987         not func_path_prepend.
10988         (func_determine_path_separator): Make IFS handling more robust.
10989         (func_lookup_file_cb): New function.
10990         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
10991         func_lookup_local_file. Apply the patches in the reverse order of their
10992         origin in $local_gnulib_path.
10993         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
10994         * NEWS: Mention that the first --local-dir option is the one with
10995         highest priority.
10997 2019-02-10  Bruno Haible  <bruno@clisp.org>
10999         libtextstyle: New module.
11000         * m4/libtextstyle.m4: New file.
11001         * modules/libtextstyle: New file.
11003 2019-02-05  Bruno Haible  <bruno@clisp.org>
11005         declared.sh: Fix bug with variables of pointer type.
11006         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11007         before the symbol to be omitted if the preceding character is a '*'.
11009 2019-02-04  Bruno Haible  <bruno@clisp.org>
11011         Add script for running tests under valgrind.
11012         * build-aux/run-test: New file, from GNU libunistring.
11013         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11014         as well.
11016 2019-02-04  Bruno Haible  <bruno@clisp.org>
11018         declared.sh: Fix --version output.
11019         * build-aux/declared.sh (func_version): Update package name.
11021 2019-02-03  Bruno Haible  <bruno@clisp.org>
11023         Add script for determining the set of symbols to export from a library.
11024         * build-aux/declared.sh: New file, from GNU libunistring.
11025         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11026         Mention it.
11028 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11030         vla: add commentary about VLA_ELEMS
11031         * lib/vla.h (VLA_ELEMS): Add commentary,
11032         some inspired by Bruno Haible’s proposal in:
11033         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11035         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11036         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11037         assume the C99 signatures for strtod and strtold.  Programs that
11038         require stricter adherence to C99 should also use the strtod and
11039         strtold modules as needed, and we no longer need the
11040         HAVE_C99_STRTOLD macro.
11041         * NEWS: Mention this.
11042         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11043         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11044         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11045         (Files): Remove m4/c-strtod.m4.
11046         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11047         exists.
11049 2019-02-02  Bruno Haible  <bruno@clisp.org>
11051         fma: Improve code style.
11052         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11054 2019-02-02  Colin Watson  <cjwatson@debian.org>
11056         *-map tests: Fix compilation error.
11057         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11058         * tests/test-hash_map.c: Likewise.
11059         * tests/test-linkedhash_map.c: Likewise.
11061 2019-01-31  Bruno Haible  <bruno@clisp.org>
11063         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11064         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11065         GNULIB_defined_strtold_function): New macros.
11066         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11067         (STRTOD): Ignore HAVE_C99_STRTOLD.
11068         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11069         deemed buggy. But do use it on platforms where uselocale exists and is
11070         usable.
11071         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11072         deemed buggy. On platforms where uselocale exists and is usable, use
11073         uselocale and strtod/strtold.
11074         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11075         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11076         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11077         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11078         (Depends-on): Add strtod.
11079         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11080         (Depends-on): Add strtold.
11082 2019-01-31  Bruno Haible  <bruno@clisp.org>
11084         strtod, strtold: Use the locale's decimal point.
11085         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11086         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11087         (parse_number): Add a radixchar argument. Use it instead of '.'.
11088         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11089         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11090         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11091         * tests/test-strtod1.c: New file.
11092         * tests/test-strtod1.sh: New file.
11093         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11094         locale-fr.m4 and its dependencies.
11095         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11096         (Makefile.am): Arrange to compile test-strtod1.c and run
11097         test-strtod1.sh.
11098         * tests/test-strtold1.c: New file.
11099         * tests/test-strtold1.sh: New file.
11100         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11101         locale-fr.m4 and its dependencies.
11102         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11103         (Makefile.am): Arrange to compile test-strtold1.c and run
11104         test-strtold1.sh.
11106 2019-01-31  Bruno Haible  <bruno@clisp.org>
11108         strtod, strtold tests: Simplify tests.
11109         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11110         * tests/test-strtold.c (main): Likewise.
11112 2019-01-31  Bruno Haible  <bruno@clisp.org>
11114         strtod, strtold: Avoid unnecessary rounding errors.
11115         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11116         decimal to DOUBLE conversion.
11118 2019-01-31  Bruno Haible  <bruno@clisp.org>
11120         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11121         * lib/strtod.c (STRTOD): When there is an extra character after the
11122         exponent marker 'p', reparse the number.
11123         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11124         * doc/posix-functions/strtold.texi: Likewise.
11126 2019-01-29  Bruno Haible  <bruno@clisp.org>
11128         strtold: Add tests.
11129         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11130         * modules/strtold-tests: New file.
11132 2019-01-29  Bruno Haible  <bruno@clisp.org>
11134         strtold: New module.
11135         * lib/stdlib.in.h (strtold): New declaration.
11136         * lib/strtold.c: New file.
11137         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11138         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11139         USE_LDEXP): New macros.
11140         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11141         USE_LONG_DOUBLE.
11142         (underlying_strtod): Remove function. Replace with some macros.
11143         Re-add the code for a missing underlying function that was removed on
11144         2013-02-19.
11145         * m4/strtold.m4: New file.
11146         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11147         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11148         REPLACE_STRTOLD.
11149         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11150         REPLACE_STRTOLD.
11151         * modules/strtold: New file.
11152         * doc/posix-functions/strtold.texi: Document the new module.
11154 2019-01-29  Bruno Haible  <bruno@clisp.org>
11156         strtod: Fix compilation error on IRIX 6.5.
11157         * modules/strtod (Depends-on): Add 'math'.
11159 2019-01-28  Bruno Haible  <bruno@clisp.org>
11161         Fix build error when building a shared libunistring on Android.
11162         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11163         (main): Add 'volatile', to defeat a GCC optimization that would
11164         eliminate the reference.
11165         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11166         (main): Add 'volatile', to defeat a GCC optimization that would
11167         eliminate the reference.
11168         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11169         (main): Add 'volatile', to defeat a GCC optimization that would
11170         eliminate the reference.
11171         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11172         (main): Add 'volatile', to defeat a GCC optimization that would
11173         eliminate the reference.
11175 2019-01-27  Bruno Haible  <bruno@clisp.org>
11177         Avoid build errors due to wrong references between modules.
11178         * lib/uninorm/canonical-decomposition.c: Include
11179         "uninorm/decomposition-table.h", not "decomposition-table.h".
11180         * lib/uninorm/decomposition.c: Likewise.
11181         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11182         not "decompose-internal.h".
11183         * lib/uninorm/u16-normalize.c: Likewise.
11184         * lib/uninorm/u32-normalize.c: Likewise.
11185         * lib/uninorm/uninorm-filter.c: Likewise.
11186         * lib/uninorm/nfkc.c: Likewise.
11187         * lib/uninorm/nfkd.c: Likewise.
11188         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11189         "caseprop.h".
11190         * lib/unicase/u8-ct-totitle.c: Likewise.
11191         * lib/unicase/u8-prefix-context.c: Likewise.
11192         * lib/unicase/u8-suffix-context.c: Likewise.
11193         * lib/unicase/u16-casemap.c: Likewise.
11194         * lib/unicase/u16-ct-totitle.c: Likewise.
11195         * lib/unicase/u16-prefix-context.c: Likewise.
11196         * lib/unicase/u16-suffix-context.c: Likewise.
11197         * lib/unicase/u32-casemap.c: Likewise.
11198         * lib/unicase/u32-ct-totitle.c: Likewise.
11199         * lib/unicase/u32-prefix-context.c: Likewise.
11200         * lib/unicase/u32-suffix-context.c: Likewise.
11201         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11202         "unicasemap.h".
11203         * lib/unicase/u8-toupper.c: Likewise.
11204         * lib/unicase/u8-ct-tolower.c: Likewise.
11205         * lib/unicase/u8-ct-toupper.c: Likewise.
11206         * lib/unicase/u16-tolower.c: Likewise.
11207         * lib/unicase/u16-toupper.c: Likewise.
11208         * lib/unicase/u16-ct-tolower.c: Likewise.
11209         * lib/unicase/u16-ct-toupper.c: Likewise.
11210         * lib/unicase/u32-tolower.c: Likewise.
11211         * lib/unicase/u32-toupper.c: Likewise.
11212         * lib/unicase/u32-ct-tolower.c: Likewise.
11213         * lib/unicase/u32-ct-toupper.c: Likewise.
11214         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11215         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11216         * lib/unicase/u16-ct-casefold.c: Likewise.
11217         * lib/unicase/u32-ct-casefold.c: Likewise.
11219 2019-01-27  Bruno Haible  <bruno@clisp.org>
11221         gperf: Fix error when this module is required by some test module.
11222         * modules/gperf (Applicability): Set to 'all'.
11224 2019-01-27  Bruno Haible  <bruno@clisp.org>
11226         tmpfile: Add support for Android.
11227         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11228         works.
11229         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11230         Android.
11231         * modules/tmpfile (Depends-on): Add 'stdbool'.
11232         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11233         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11235 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11237         bitsetv: allow free on NULL.
11238         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11240 2019-01-27  Bruno Haible  <bruno@clisp.org>
11242         test-framework-sh: Improve maintainability.
11243         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11245 2019-01-27  Bruno Haible  <bruno@clisp.org>
11247         tests: Don't assume that /tmp exists.
11248         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11249         * tests/test-copy-acl-1.sh: Likewise.
11250         * tests/test-file-has-acl-1.sh: Likewise.
11251         * tests/test-copy-file-1.sh: Likewise.
11253 2019-01-27  Bruno Haible  <bruno@clisp.org>
11255         tests: Accommodate a shell that is not in /bin/sh.
11256         * tests/init.sh (setup_): Set srcdir and builddir.
11257         (BOURNE_SHELL): New variable.
11258         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11259         * modules/file-has-acl-tests (Depends-on): Likewise.
11260         * modules/copy-file-tests (Depends-on): Likewise.
11261         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11262         scripts through $BOURNE_SHELL.
11263         * tests/test-set-mode-acl-2.sh: Likewise.
11264         * tests/test-copy-acl-1.sh: Likewise.
11265         * tests/test-copy-acl-2.sh: Likewise.
11266         * tests/test-file-has-acl-1.sh: Likewise.
11267         * tests/test-file-has-acl-2.sh: Likewise.
11268         * tests/test-copy-file-1.sh: Likewise.
11269         * tests/test-copy-file-2.sh: Likewise.
11270         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11271         invoker.
11272         * tests/test-copy-acl.sh (builddir): Likewise.
11273         * tests/test-file-has-acl.sh (builddir): Likewise.
11274         * tests/test-copy-file.sh (builddir): Likewise.
11275         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11276         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11277         * tests/test-vc-list-files-git.sh: Likewise.
11279 2019-01-27  Bruno Haible  <bruno@clisp.org>
11281         tests: Fix some "unused variable" warnings.
11282         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11283         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11284         * tests/test-striconveh.c (main): Move some variable into the
11285         '#if HAVE_ICONV'.
11286         * tests/test-striconveha.c (main): Likewise.
11287         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11288         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11289         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11290         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11291         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11292         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11293         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11294         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11295         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11296         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11297         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11298         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11299         * tests/test-tsearch.c (main): Move some variable into the
11300         '#if HAVE_INITSTATE'.
11302 2019-01-27  Bruno Haible  <bruno@clisp.org>
11304         unigbrk/uc-grapheme-breaks: Fix build failure.
11305         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11306         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11308 2019-01-27  Bruno Haible  <bruno@clisp.org>
11310         mountlist: Merge two .m4 files.
11311         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11312         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11313         * m4/ls-mntd-fs.m4: Remove file.
11314         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11316 2019-01-27  Bruno Haible  <bruno@clisp.org>
11318         tests: Enable Linux specific tests on Android.
11319         * tests/test-flock.c (main): Treat Android like Linux.
11320         * tests/test-openat-safer.c (main): Likewise.
11322 2019-01-27  Bruno Haible  <bruno@clisp.org>
11324         relocatable-prog: Use Linux code on Android.
11325         * lib/progreloc.c: Treat Android like Linux.
11327 2019-01-26  Bruno Haible  <bruno@clisp.org>
11329         getloadavg: Add support for Android.
11330         * lib/getloadavg.c: Treat Android like Linux.
11332 2019-01-26  Bruno Haible  <bruno@clisp.org>
11334         vma-iter: Add support for Android.
11335         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11336         * lib/vma-iter.c: Treat Android like Linux.
11337         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11339 2019-01-26  Bruno Haible  <bruno@clisp.org>
11341         fts: Optimize on Android.
11342         * lib/fts.c: Treat Android like Linux.
11344 2019-01-26  Bruno Haible  <bruno@clisp.org>
11346         fts: Add support for Android.
11347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11348         defined by this module and the ones in libc.
11349         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11351 2019-01-26  Bruno Haible  <bruno@clisp.org>
11353         mountlist: Use Linux code on Android.
11354         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11355         (unescape_tab, read_file_system_list): Enable Linux code on Android
11356         as well.
11357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11358         and endmntent.
11359         * modules/mountlist (Depends-on): Add 'getline'.
11361 2019-01-26  Bruno Haible  <bruno@clisp.org>
11363         localename tests: Fix test failure on Android.
11364         * modules/localename-tests (Depends-on): Add 'setlocale'.
11366 2019-01-26  Bruno Haible  <bruno@clisp.org>
11368         mountlist: Port better to Android.
11369         * lib/mountlist.c (MOUNTED): Redefine on Android.
11370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11371         Android.
11373 2019-01-26  Bruno Haible  <bruno@clisp.org>
11375         striconveh: Fix use of uninitialized iconv_t.
11376         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11377         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11378         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11380 2019-01-26  Bruno Haible  <bruno@clisp.org>
11382         nonblocking-socket-tests: Fix test failure on Android 4.3.
11383         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11384         also on Android.
11386 2019-01-26  Bruno Haible  <bruno@clisp.org>
11388         sh-filename: Add support for Android 4.3.
11389         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11391 2019-01-26  Bruno Haible  <bruno@clisp.org>
11393         ptsname_r: Work around bug on Android 4.3.
11394         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11395         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11396         correct.
11397         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11398         is defined, just fix the return value.
11399         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11400         The behaviour of musl libc is nothing to be "fixed", since it is
11401         compliant with the next POSIX standard.
11403 2019-01-26  Bruno Haible  <bruno@clisp.org>
11405         ttyname_r: Work around bug on Android 4.3.
11406         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11407         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11408         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11409         * doc/posix-functions/ttyname.texi: Likewise.
11411 2019-01-25  Bruno Haible  <bruno@clisp.org>
11413         getprogname: Port to Android 4.3.
11414         * lib/getprogname.c (getprogname): On Android, take only the last
11415         component of __progname.
11417 2019-01-25  Bruno Haible  <bruno@clisp.org>
11419         wcrtomb: Work around bug on Android 4.3.
11420         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11421         the C locale.
11422         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11423         which does not have the 'wctomb' function.
11424         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11425         * tests/test-wcrtomb.c (main): Accept argument '5'.
11426         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11428 2019-01-25  Bruno Haible  <bruno@clisp.org>
11430         setlocale: Work around bug on Android 4.3.
11431         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11432         the "C" locale.
11433         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11434         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11436 2019-01-24  Bruno Haible  <bruno@clisp.org>
11438         memchr: Work around bug on Android <= 5.0.
11439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11440         * doc/posix-functions/memchr.texi: Mention the Android bug.
11442 2019-01-24  Bruno Haible  <bruno@clisp.org>
11444         random: Fix compilation error on Android 4.3.
11445         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11446         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11447         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11448         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11449         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11451         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11452         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11453         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11454         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11455         REPLACE_INITSTATE, REPLACE_SETSTATE.
11456         * doc/posix-functions/random.texi: Correct the description of the
11457         situation on Android.
11458         * doc/posix-functions/srandom.texi: Likewise.
11459         * doc/posix-functions/rand.texi: Likewise.
11460         * doc/posix-functions/srand.texi: Likewise.
11462 2019-01-24  Bruno Haible  <bruno@clisp.org>
11464         mbtowc: Fix compilation error on Android 4.3.
11465         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11466         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11467         HAVE_MBTOWC.
11468         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11469         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11470         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11471         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11472         * doc/posix-functions/mbtowc.texi: Mention the change.
11474 2019-01-24  Bruno Haible  <bruno@clisp.org>
11476         fdatasync: Fix compilation error on Android 4.3.
11477         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11478         test whether fdatasync() exists.
11480 2019-01-24  Bruno Haible  <bruno@clisp.org>
11482         unlinkat: Fix compilation error on Android 4.3.
11483         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11484         also on Android.
11485         * doc/posix-functions/unlinkat.texi: Mention the issue.
11487 2019-01-24  Bruno Haible  <bruno@clisp.org>
11489         renameat: Fix compilation error on Android 4.3.
11490         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11491         * doc/posix-functions/renameat.texi: Mention the issue.
11493 2019-01-24  Bruno Haible  <bruno@clisp.org>
11495         fchownat: Fix compilation error on Android 4.3.
11496         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11497         use.
11498         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11499         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11500         * doc/posix-functions/fchownat.texi: Mention the issue.
11502 2019-01-23  Bruno Haible  <bruno@clisp.org>
11504         gnulib-tool: Support running testdirs on Android.
11505         * build-aux/test-driver.diff: New file.
11506         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11507         build-aux/test-driver after running automake.
11509 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11511         relocatable-prog: avoid warnings from Automake
11512         * modules/relocatable-prog: Don't declare PHONY dependencies in
11513         Automake conditionals.
11515 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11517         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11518         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11520 2019-01-23  Bruno Haible  <bruno@clisp.org>
11522         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11523         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11524         preceding -Wl,--as-needed option. Don't check whether the linker
11525         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11527 2019-01-23  Bruno Haible  <bruno@clisp.org>
11529         thread: Force linking with -lpthread, even when --as-needed is in use.
11530         Reported by Richard W.M. Jones <rjones@redhat.com> in
11531         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11532         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11534 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11535             Bruno Haible  <bruno@clisp.org>
11537         relocatable: avoid compiler warnings (-Wshadow)
11538         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11539         to avoid name collisions with global variables.
11541 2019-01-22  Bruno Haible  <bruno@clisp.org>
11543         vasnprintf: Don't use %n on Android.
11544         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11545         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11546         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11548 2019-01-22  Bruno Haible  <bruno@clisp.org>
11550         *printf: Support cross-compilation to Android.
11551         * m4/printf.m4: Add cross-compilation guesses for Android.
11553 2019-01-21  Bruno Haible  <bruno@clisp.org>
11555         diacrit: Mark deprecated.
11556         * modules/diacrit (Status, Notice): Mark as deprecated.
11557         * NEWS: Mention it.
11559 2019-01-20  Bruno Haible  <bruno@clisp.org>
11561         rintl: Override broken implementation on NetBSD.
11562         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11563         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11564         REPLACE_RINTL.
11565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11566         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11567         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11568         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11570 2019-01-20  Bruno Haible  <bruno@clisp.org>
11572         log10l: Work around inaccurate implementation on NetBSD.
11573         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11574         * lib/log10l.c: Comment out too simplistic override.
11575         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11577 2019-01-20  Bruno Haible  <bruno@clisp.org>
11579         logl: Work around inaccurate implementation on NetBSD.
11580         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11581         * lib/logl.c: Comment out unused code.
11582         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11584 2019-01-20  Bruno Haible  <bruno@clisp.org>
11586         expm1l: Work around inaccurate implementation on NetBSD.
11587         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
11588         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
11589         REPLACE_EXPM1L.
11590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
11591         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
11592         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
11593         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
11595 2019-01-20  Bruno Haible  <bruno@clisp.org>
11597         expl: Work around inaccurate implementation on NetBSD.
11598         * lib/math.in.h (expl): Test also REPLACE_EXPL.
11599         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
11600         REPLACE_EXPL.
11601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
11602         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
11603         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
11604         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
11606 2019-01-20  Bruno Haible  <bruno@clisp.org>
11608         exp2l: Work around inaccurate implementation on NetBSD.
11609         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
11610         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
11612 2019-01-20  Bruno Haible  <bruno@clisp.org>
11614         floor, floorl: Avoid autoconf warnings.
11615         * modules/floor (configure.ac): Use AC_REQUIRE.
11616         * modules/floorl (configure.ac): Likewise.
11618 2019-01-20  Bruno Haible  <bruno@clisp.org>
11620         Defeat current GCC optimizations in math autoconf tests.
11621         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
11622         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11623         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11624         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11625         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11626         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11627         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11628         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11629         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11630         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11631         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11632         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11633         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11634         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11635         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11636         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11637         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
11638         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11639         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11640         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11641         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11642         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11643         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11644         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11645         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11646         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11647         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11648         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11649         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11650         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11651         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11652         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11653         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11656         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11657         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11658         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11660 2019-01-19  Pádraig Brady  <P@draigBrady.com>
11662         gettext: support disabling use of VLAs
11663         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
11665 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11667         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
11668         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
11670 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11672         fcntl: Fix syntax error (regression from 2018-10-05).
11673         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11675 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11677         relocatable: improve documentation.
11678         * doc/relocatable-maint.texi (Supporting Relocation): For
11679         substitutions performed by config.status, we need more variables
11680         (for instance datarootdir defaults to '${prefix}/share' so we need
11681         prefix).
11683 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11685         backup: update dependencies
11686         * modules/backup-rename (Depends-on): It now depends on opendirat
11687         instead of opendir.  It also uses stdint, and xalloc-oversized.
11688         But no longer dirfd.
11689         * modules/backupfile (Depends-on): Add xalloc-oversized.
11691 2019-01-13  Bruno Haible  <bruno@clisp.org>
11693         getcwd: Fix test failure when building on a Linux 9p file system.
11694         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
11695         EINVAL from mkdir like ENAMETOOLONG.
11696         * tests/test-getcwd.c (test_long_name): Likewise.
11698 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
11700         Fix typos found by codespell.
11701         * lib/*.[hc]: Fix typos in comments.
11702         * pygnulib/*.py: Fix typos in error messages and comments.
11704 2019-01-12  Bruno Haible  <bruno@clisp.org>
11706         doc: Fix documentation about container data types.
11707         Reported by Werner Lemberg <wl@gnu.org>.
11708         * doc/containers.texi (Container data types): Fix typo.
11710 2019-01-10  Bruno Haible  <bruno@clisp.org>
11712         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
11713         Reported by Reuben Thomas <rrt@sc3d.org>.
11714         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
11716 2019-01-06  Bruno Haible  <bruno@clisp.org>
11718         maintainer-makefile: Make the configure.ac section optional.
11719         * top/maint.mk (GREP, SED): Define if not defined.
11721 2019-01-06  Bruno Haible  <bruno@clisp.org>
11723         localename: Assume setlocale function.
11724         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
11725         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
11727 2019-01-06  Bruno Haible  <bruno@clisp.org>
11729         doc: Add documentation about container data types.
11730         * doc/containers.texi: New file.
11731         * doc/gnulib.texi (Particular Modules): Include it.
11733 2019-01-06  Bruno Haible  <bruno@clisp.org>
11735         doc: Update documentation about 'progname' module.
11736         * doc/progname.texi: Rename from doc/error.texi. Change node name and
11737         title. Rewrite.
11738         * doc/gnulib.texi (Particular Modules): Update.
11740 2019-01-06  Bruno Haible  <bruno@clisp.org>
11742         doc: Document the xstdopen and *-safer modules.
11743         * doc/xstdopen.texi: New file.
11744         * doc/gnulib.texi (Particular Modules): Include it.
11746 2019-01-06  Bruno Haible  <bruno@clisp.org>
11748         xstdopen: Add tests.
11749         * tests/test-xstdopen.c: New file.
11750         * tests/test-xstdopen.sh: New file.
11751         * modules/xstdopen-tests: New file.
11753         xstdopen: New module.
11754         * lib/xstdopen.h: New file.
11755         * lib/xstdopen.c: New file.
11756         * modules/xstdopen: New file.
11758 2019-01-06  Bruno Haible  <bruno@clisp.org>
11760         stdopen: Fix compilation error with IRIX cc.
11761         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
11763 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11765         xfreopen need not include stdio--.h
11766         * lib/xfreopen.c: Do not include stdio--.h.
11768         xfreopen need not depend on freopen-safer
11769         * modules/xfreopen (Depends-on):
11770         Depend on freopen, not freopen-safer.
11772         stdopen: modernize and simplify
11773         * lib/stdopen.c: Update copyright date
11774         Do not include sys/types.h; no longer needed these days.
11775         (stdopen): Use C99-style decl in loop.  Return int errno
11776         value, rather than just a bool.  Do not worry about fd mismatches,
11777         since the caller cares only if 0, 1, 2 are occupied.
11778         * lib/stdopen.h: No need to include <stdbool.h>.
11779         * m4/stdopen.m4: Remove.
11780         * modules/stdopen: New file.
11782         stdopen: copy from last use in coreutils
11783         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
11784         New files, taken from their last commit in coreutils
11785         2007-07-23T12:35:58Z!jim@meyering.net
11786         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
11788 2019-01-05  Bruno Haible  <bruno@clisp.org>
11790         argp: Don't pass an invalid argument to dgettext().
11791         Reported by He X <xw897002528@gmail.com>.
11792         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
11793         dgettext().
11795 2019-01-05  Bruno Haible  <bruno@clisp.org>
11797         argp: Don't pass an invalid argument to dgettext().
11798         Reported by He X <xw897002528@gmail.com>.
11799         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
11800         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
11801         dgettext().
11803 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11805         stdioext: port to newer 32-bit Android
11806         Problem reported by Tom Yan in:
11807         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
11808         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
11809         (fp_) [__ANDROID__]: Use it.
11811 2019-01-04  Bruno Haible  <bruno@clisp.org>
11813         lock: Fix link error with --enable-threads=pth.
11814         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
11815         Mark as weak.
11817 2019-01-04  Bruno Haible  <bruno@clisp.org>
11819         Fix link errors in unit tests.
11820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11821         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
11822         * modules/array-map-tests (Makefile.am): Link test-array_map against
11823         libintl.
11824         * modules/array-set-tests (Makefile.am): Link test-array_set against
11825         libintl.
11826         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
11827         libintl.
11828         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
11829         libintl.
11830         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
11831         against libintl.
11832         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
11833         against libintl.
11835 2019-01-04  Bruno Haible  <bruno@clisp.org>
11837         Fix incorrect 'Link' sections.
11838         * modules/regex (Link): Mention the link requirement of module 'lock'.
11839         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
11841 2019-01-04  Bruno Haible  <bruno@clisp.org>
11843         Fix some 'Link' sections.
11844         * modules/c-stack (Link): Add link directive from the 'gettext-h'
11845         dependency.
11846         * modules/getaddrinfo (Link): Likewise.
11848 2019-01-04  Bruno Haible  <bruno@clisp.org>
11850         Remove redundant 'Link' sections.
11851         * modules/canon-host (Link): Remove section.
11852         * modules/timevar (Link): Likewise.
11854 2019-01-04  Bruno Haible  <bruno@clisp.org>
11856         Remove incorrect 'Link' sections.
11857         * modules/acl (Link): Remove section. Use combined 'Link' sections from
11858         the dependencies instead.
11859         * modules/crypto/md5 (Link): Likewise.
11860         * modules/crypto/sha1 (Link): Likewise.
11861         * modules/crypto/sha256 (Link): Likewise.
11862         * modules/crypto/sha512 (Link): Likewise.
11863         * modules/faccessat (Link): Likewise.
11864         * modules/fdutimensat (Link): Likewise.
11865         * modules/iconv_open-utf (Link): Likewise.
11866         * modules/propername (Link): Likewise.
11867         * modules/qacl (Link): Likewise.
11868         * modules/unicodeio (Link): Likewise.
11869         * modules/utimecmp (Link): Likewise.
11870         * modules/utimensat (Link): Likewise.
11871         * modules/xstriconv (Link): Likewise.
11872         * modules/xstriconveh (Link): Likewise.
11874 2019-01-04  Bruno Haible  <bruno@clisp.org>
11876         gnulib-tool: New option --extract-recursive-link-directive.
11877         * gnulib-tool (func_usage): Document the new options
11878         --extract-recursive-dependencies, --extract-recursive-link-directive.
11879         (func_verify_module): Document output variables.
11880         (func_get_dependencies_recursively): New function.
11881         (func_get_link_directive_recursively): New function.
11882         Use them to implement the new options
11883         --extract-recursive-dependencies, --extract-recursive-link-directive.
11884         * doc/gnulib-tool.texi (Link-time requirements): New section.
11886 2019-01-04  Bruno Haible  <bruno@clisp.org>
11888         Clarify meaning of 'Link' section in module description.
11889         * doc/gnulib.texi (Module description): Clarify the meaning of the
11890         'Link' section versus the one of the dependencies.
11891         * NEWS: Mention the change.
11893 2019-01-04  Bruno Haible  <bruno@clisp.org>
11895         pselect: Fix module description.
11896         * modules/pselect (Link): Put one link option per line.
11898 2019-01-04  Bruno Haible  <bruno@clisp.org>
11900         cosl: Fix module description.
11901         * modules/cosl (Link): Fix typo.
11902         * modules/mathl (configure.ac): Likewise.
11904 2019-01-04  Bruno Haible  <bruno@clisp.org>
11906         c-xvasprintf: Fix module dependencies.
11907         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
11909 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
11911         bootstrap: die when some submodules are not initialized
11912         * build-aux/bootstrap: Make sure all submodules are initialized.
11914 2019-01-04  Bruno Haible  <bruno@clisp.org>
11916         bitsetv: Fix module dependencies.
11917         * lib/bitsetv.c: Include xalloc.h.
11918         * modules/bitsetv (Depends-on): Add 'xalloc'.
11920 2019-01-04  Bruno Haible  <bruno@clisp.org>
11922         xmemdup0: Remove redundant code.
11923         * lib/xmemdup0.h (xalloc_die): Remove declaration.
11925 2019-01-04  Bruno Haible  <bruno@clisp.org>
11927         backupfile: Fix module dependencies.
11928         * modules/backupfile (Depends-on): Add 'xalloc'.
11930 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11932         bitset, crypto/gc: fix conflicts with Solaris 11
11933         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
11934         avoid clash with Solaris 11 <sys/bitset.h>.
11935         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
11936         with Solaris 11 <xorg/gc.h>.
11938 2019-01-04  Bruno Haible  <bruno@clisp.org>
11940         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
11941         Reported by Andy Fiddaman <andy@omniosce.org>.
11942         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
11944 2019-01-03  Eric Blake  <eblake@redhat.com>
11946         maintainer-makefile: fix typo in previous patch
11947         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
11948         of Roman's work.
11950 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
11952         maintainer-makefile: prefer $(GREP) over grep
11953         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
11954         defined.
11955         * top/maint.mk: Use it everywhere.
11957         maintainer-makefile: split long argument lines
11958         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
11959         it would be too long for exec limits on BSD.
11961 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11963         mkfifo: bring back HAVE_MKFIFO macro
11964         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
11965         Problem reported by Andrew Janke in:
11966         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
11968 2018-12-21  Bruno Haible  <bruno@clisp.org>
11970         Assume Autoconf >= 2.63.
11971         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
11972         versions < 2.60.
11974 2018-12-21  Bruno Haible  <bruno@clisp.org>
11976         memcmp: Mention the clang bug.
11977         * tests/test-memcmp.c: Add comment about a known test failure.
11978         * doc/posix-functions/memcmp.texi: Mention the clang bug.
11980 2018-12-20  Jim Meyering  <meyering@fb.com>
11982         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
11983         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
11984           echo '123-x'|LC_ALL=C grep -E '.\bx'
11985         The goal is to revert the first, but reverting it requires to restore
11986         the function deleted in the second. I ran this to restore the deleted
11987         function:
11988           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
11989             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
11990             | patch -R -p1
11991         * lib/dfa.c (charclass_context): Restore deleted function.
11992         Reverting the primary commit removes this change:
11993         dfa: Simplify a building state
11994         * lib/dfa.c (build_state): Simplify a building state.
11996 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11998         version-etc: allow zero authors
11999         * lib/version-etc.c (version_etc_arn): If no authors are given,
12000         omit authorship info instead of dumping core.
12002 2018-12-19  Bruno Haible  <bruno@clisp.org>
12004         lchown tests: Be more permissive regarding errno values.
12005         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12006         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12007         alternative to ENOSYS.
12008         * modules/lchown-tests (Depends-on): Add 'errno'.
12009         * modules/fchownat-tests (Depends-on): Likewise.
12011 2018-12-18  Bruno Haible  <bruno@clisp.org>
12013         duplocale: Avoid test failure on AIX 7.
12014         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12015         (configure.ac): Invoke gt_FUNC_USELOCALE.
12016         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12017         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12018         works.
12020 2018-12-18  Bruno Haible  <bruno@clisp.org>
12022         localename: Fix test failure on AIX 7.
12023         Reported by Assaf Gordon in
12024         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12025         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12026         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12027         instead of ac_cv_func_uselocale.
12028         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12029         HAVE_USELOCALE.
12030         * lib/localename-table.h: Likewise.
12031         * lib/localename-table.c: Likewise.
12032         * tests/test-localename.c: Likewise.
12033         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12035 2018-12-18  Bruno Haible  <bruno@clisp.org>
12037         localename: Update comments regarding Cygwin.
12038         * lib/localename.c: Update comment.
12039         * doc/posix-functions/uselocale.texi: Update platforms list.
12040         * doc/posix-functions/newlocale.texi: Likewise.
12041         * doc/posix-functions/duplocale.texi: Likewise.
12042         * doc/posix-functions/freelocale.texi: Likewise.
12044 2018-12-16  Bruno Haible  <bruno@clisp.org>
12046         c-stack: Fix for Linux/sparc.
12047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12048         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12050 2018-12-16  Bruno Haible  <bruno@clisp.org>
12052         localename: Avoid test failure on some glibc systems.
12053         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12054         Unset environment variables that might disturb the first setlocale call,
12055         and verify that this setlocale call succeeds.
12057 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12059         random: Fix build error on native Windows (regression from 2018-06-21).
12060         * lib/random.c (__srandom, __initstate, __setstate, __random,
12061         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12062         to the symbols without '__' prefix.
12064 2018-12-16  Bruno Haible  <bruno@clisp.org>
12066         obstack, libc-config: Support HP-UX cc in C99 mode.
12067         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12068         compiler, even when in C99 mode.
12069         * lib/cdefs.h (__flexarr): Likewise.
12070         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12072 2018-12-16  Bruno Haible  <bruno@clisp.org>
12074         localename: Fix test failure on OpenBSD >= 6.2.
12075         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12076         locale system. Define HAVE_FAKE_LOCALES in this case.
12077         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12078         HAVE_USELOCALE.
12079         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12080         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12081         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12082         platforms list.
12083         * doc/posix-functions/newlocale.texi: Likewise.
12084         * doc/posix-functions/duplocale.texi: Update platforms list.
12085         * doc/posix-functions/freelocale.texi: Likewise.
12087 2018-12-16  Bruno Haible  <bruno@clisp.org>
12089         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12090         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12091         of the test, on platforms without <monetary.h>.
12093 2018-12-16  Bruno Haible  <bruno@clisp.org>
12095         localename: Update comments.
12096         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12098 2018-12-15  Jim Meyering  <meyering@fb.com>
12100         regex: fix indentation
12101         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12103 2018-12-15  Bruno Haible  <bruno@clisp.org>
12105         openat-safer tests: Avoid test failure on NetBSD 8.
12106         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12107         on Linux.
12109 2018-12-15  Jim Meyering  <meyering@fb.com>
12111         regex: work around a bug in glibc-2.27 and prior
12112         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12113         assertion for /0|()0|\1|0/.
12114         * tests/test-regex.c (main): Add the same test here.
12116 2018-12-15  Bruno Haible  <bruno@clisp.org>
12118         localename: Fix use of uninitialized shell variable.
12119         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12120         gt_cv_locale_solaris114 always before use. Remove assignment without
12121         effect.
12123 2018-12-15  Bruno Haible  <bruno@clisp.org>
12125         dfa tests: Avoid test failure on Alpine Linux.
12126         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12127         command found on Alpine Linux.
12129 2018-12-15  Jim Meyering  <meyering@fb.com>
12131         dfa: avoid new warnings from gcc
12132         These would prevent building with -Werror and a Dec snapshot of gcc.
12133         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12134         Rename each inner instance to "p".
12135         (charclass_context): Remove unused static function.
12137 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12139         mkdir-p: improve diagnostic for FUSE mounts
12140         Problem reported by Niklas Hambüchen in:
12141         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12142         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12143         errno to mkdir errno if the stat errno is likely more interesting.
12145 2018-12-14  Bruno Haible  <bruno@clisp.org>
12147         hash-map: Add tests.
12148         * tests/test-hash_map.c: New file.
12149         * modules/hash-map-tests: New file.
12151         linkedhash-map: Add tests.
12152         * tests/test-linkedhash_map.c: New file.
12153         * modules/linkedhash-map-tests: New file.
12155         array-map: Add tests.
12156         * tests/test-array_map.c: New file.
12157         * modules/array-map-tests: New file.
12159         xmap: New module.
12160         * lib/gl_xmap.h: New file.
12161         * lib/gl_xmap.c: New file.
12162         * modules/xmap: New file.
12164         hash-map: New module.
12165         * lib/gl_hash_map.h: New file.
12166         * lib/gl_hash_map.c: New file.
12167         * modules/hash-map: New file.
12169         linkedhash-map: New module.
12170         * lib/gl_linkedhash_map.h: New file.
12171         * lib/gl_linkedhash_map.c: New file.
12172         * lib/gl_anyhash1.h: Update comments.
12173         * lib/gl_anyhash2.h: Likewise.
12174         * modules/linkedhash-map: New file.
12176         array-map: New module.
12177         * lib/gl_array_map.h: New file.
12178         * lib/gl_array_map.c: New file.
12179         * modules/array-map: New file.
12181         map: New module.
12182         * lib/gl_map.h: New file.
12183         * lib/gl_map.c: New file.
12184         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12185         conflict with gl_map.h.
12186         * modules/map: New file.
12188 2018-12-13  Bruno Haible  <bruno@clisp.org>
12190         select tests: Avoid test failure on Cygwin.
12191         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12193 2018-12-13  Bruno Haible  <bruno@clisp.org>
12195         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12196         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12198 2018-12-13  Bruno Haible  <bruno@clisp.org>
12200         localeconv tests: Avoid test failure on Cygwin.
12201         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12202         'mon_grouping' tests.
12204 2018-12-11  Bruno Haible  <bruno@clisp.org>
12206         omap: Don't dispose the old value when the function returns it.
12207         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12208         here.
12209         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12210         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12211         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12212         here.
12214         array-omap, avltree-omap, rbtree-omap: Tweak style.
12215         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12216         false.
12217         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12219         rbtree-omap: Add tests.
12220         * tests/test-rbtree_omap.c: New file.
12221         * modules/rbtree-omap-tests: New file.
12223         avltree-omap: Add tests.
12224         * tests/test-avltree_omap.c: New file.
12225         * modules/avltree-omap-tests: New file.
12227         array-omap: Add tests.
12228         * tests/test-array_omap.c: New file.
12229         * modules/array-omap-tests: New file.
12231         xomap: New module.
12232         * lib/gl_xomap.h: New file.
12233         * lib/gl_xomap.c: New file.
12234         * modules/xomap: New file.
12236         rbtree-omap: New module.
12237         * lib/gl_rbtree_omap.h: New file.
12238         * lib/gl_rbtree_omap.c: New file.
12239         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12240         Parameterize.
12241         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12242         * modules/rbtree-omap: New file.
12243         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12244         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12246         avltree-omap: New module.
12247         * lib/gl_avltree_omap.h: New file.
12248         * lib/gl_avltree_omap.c: New file.
12249         * lib/gl_avltree_ordered.h: Code moved to here from
12250         lib/gl_avltree_oset.c. Parameterize.
12251         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12252         * lib/gl_anytree_omap.h: New file.
12253         * modules/avltree-omap: New file.
12254         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12255         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12257         array-omap: New module.
12258         * lib/gl_array_omap.h: New file.
12259         * lib/gl_array_omap.c: New file.
12260         * modules/array-omap: New file.
12262         omap: New module.
12263         * lib/gl_omap.h: New file.
12264         * lib/gl_omap.c: New file.
12265         * modules/omap: New file.
12267 2018-12-11  Bruno Haible  <bruno@clisp.org>
12269         hash-set, linkedhash-set: Reduce code duplication.
12270         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12271         lib/gl_anyhash_set1.h.
12272         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12273         lib/gl_anyhash_set2.h. Parameterize.
12274         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12275         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12276         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12277         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12278         * lib/gl_rbtreehash_list.c: Likewise.
12279         * lib/gl_linkedhash_list.c: Likewise.
12280         (hash_resize_after_add): Remove function.
12281         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12282         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12283         * gl_hash_set.c: Likewise.
12284         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12285         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12286         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12287         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12288         * modules/hash-set (Files, Makefile.am): Likewise.
12290 2018-12-11  Bruno Haible  <bruno@clisp.org>
12292         array-set: Optimize.
12293         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12294         outside the loop, not inside the loop.
12296 2018-12-11  Bruno Haible  <bruno@clisp.org>
12298         times: Fix tests.
12299         * tests/test-times.c (doublecmp): Implement a total order.
12301 2018-12-11  Bruno Haible  <bruno@clisp.org>
12303         array-set, linkedhash-set, hash-set: Fix tests.
12304         * tests/test-array_set.c (cmp_objects_in_array): New function.
12305         (check_equals): Use it.
12306         * tests/test-hash_set.c: Likewise.
12307         * tests/test-linkedhash_set.c: Likewise.
12309 2018-12-08  Bruno Haible  <bruno@clisp.org>
12311         Fix comments.
12312         * lib/gl_list.h (gl_list_free): Clarify what it does.
12313         * lib/gl_oset.h (gl_oset_free): Likewise.
12314         * lib/gl_set.h (gl_set_free): Likewise.
12315         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12316         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12317         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12318         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12320 2018-12-03  Bruno Haible  <bruno@clisp.org>
12322         hash-set: Add tests.
12323         * tests/test-hash_set.c: New file.
12324         * modules/hash-set-tests: New file.
12326         linkedhash-set: Add tests.
12327         * tests/test-linkedhash_set.c: New file.
12328         * modules/linkedhash-set-tests: New file.
12330         array-set: Add tests.
12331         * tests/test-array_set.c: New file.
12332         * modules/array-set-tests: New file.
12334         xset: New module.
12335         * lib/gl_xset.h: New file.
12336         * lib/gl_xset.c: New file.
12337         * modules/xset: New file.
12339         hash-set: New module.
12340         * lib/gl_hash_set.h: New file.
12341         * lib/gl_hash_set.c: New file.
12342         * modules/hash-set: New file.
12344         linkedhash-set: New module.
12345         * lib/gl_linkedhash_set.h: New file.
12346         * lib/gl_linkedhash_set.c: New file.
12347         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12348         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12349         * lib/gl_anyhash_primes.h: New file, extracted from
12350         lib/gl_anyhash_list2.h.
12351         * lib/gl_anyhash_list2.h: Include it.
12352         (primes, next_prime): Remove definitions.
12353         * modules/linkedhash-set: New file.
12354         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12355         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12356         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12357         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12358         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12359         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12361         array-set: New module.
12362         * lib/gl_array_set.h: New file.
12363         * lib/gl_array_set.c: New file.
12364         * modules/array-set: New file.
12366         set: New module.
12367         * lib/gl_set.h: New file.
12368         * lib/gl_set.c: New file.
12369         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12370         gl_set.h.
12371         * modules/set: New file.
12373 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12375         bison: don't force the Yacc mode
12376         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12377         errors when Bison features are used in the grammar file.  Some of
12378         these features (such as %expect) were flagged non-yacc recently.  Most
12379         of the time, -y is actually used to please Automake's ylwrap which
12380         expects the output to be y.tab.c.
12381         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12383 2018-12-01  Bruno Haible  <bruno@clisp.org>
12385         gnupload: Document short options.
12386         * build-aux/gnupload (usage): Document the short options.
12388 2018-11-28  Ben Elliston  <bje@gnu.org>
12390         gnupload: Support option -h as alias of --help.
12391         * build-aux/gnupload: Support -h.
12393 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12395         memrchr: port better to clang
12396         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12397         longword *, to pacify clang -Wcast-align (Bug#33544).
12399 2018-11-29  Eric Blake  <eblake@redhat.com>
12401         docs: mention printf %m considerations
12402         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12403         is not portable, and is easy enough to work around.
12404         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12405         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12406         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12407         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12408         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12409         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12410         * doc/posix-functions/printf.texi (printf): Likewise.
12411         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12412         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12413         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12414         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12415         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12416         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12417         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12418         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12419         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12420         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12421         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12422         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12424 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12426         bitset: rename ebitset/expandable.* as tbitset/table.*
12427         See
12428         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12429         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12430         * lib/bitset/table.h, lib/bitset/table.c: these.
12431         Rename all the ebitset* symbols as tbitset*.
12432         Adjust dependencies.
12434 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12436         bitset: check the operations
12437         * tests/test-bitset.c (bitset_random): New.
12438         Use it.
12439         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12441 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12443         bitset: properly use false/true instead of 0/1 for Booleans
12444         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12445         0/1, as Booleans.
12447 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12449         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12450         For consistency with the name of the file.
12451         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12452         * lib/bitset/stats.c, lib/bitset/vector.c
12453         (BITSET_VARRAY): Rename as...
12454         (BITSET_VECTOR): this.
12456 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12458         strerror_r-posix: memmove, not memcpy
12459         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12460         since the source and destination might overlap in the call
12461         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12462         Simplify.
12464 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12466         bitsetv: new module
12467         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12469 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12471         bitset: add tests and doc
12472         First stabs at providing a documentation and test for the bitset
12473         module.
12474         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12476 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12478         bitset: new module
12479         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12480         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12481         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12482         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12483         * lib/bitset/vector.h, modules/bitset:
12484         New.
12486 2018-11-23  Bruno Haible  <bruno@clisp.org>
12488         localename: Fix gettext test failures on mingw.
12489         * lib/localename.c (gl_locale_name_posix): Convert the result of
12490         gl_locale_name_environ to XPG syntax.
12492 2018-11-23  Karl Berry  <karl@freefriends.org>
12494         * config/srclistvars.txt,
12495         * config/srclist.txt: remove all gettext references;
12496         the gettext maintainers will sync as needed.
12498 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12500         mktime: add libc-config dependency
12501         I missed this when we synced from glibc.
12502         * modules/mktime (Depends-on): Add libc-config.
12504 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12506         longlong: fix comment typo
12507         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12509 2018-11-11  Bruno Haible  <bruno@clisp.org>
12511         havelib: Remove the need to include asm-underscore.m4.
12512         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12513         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12514         gl_HOST_CPU_C_ABI.
12515         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12516         (Depends-on): Remove host-cpu-c-abi.
12518 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12520         parse-datetime: simplify test for mktime failure
12521         * lib/parse-datetime.y (mktime_ok): Simplify.
12522         Remove args TZ and T; no longer needed.  Callers changed.
12524         posixtm: simplify test for mktime failure
12525         * lib/posixtm.c (posixtime): Simplify.
12527         nstrftime: simplify test for mktime failure
12528         * lib/nstrftime.c (__strftime_internal): Simplify.
12530 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12532         gnulib-common.m4: port _Noreturn to C++
12533         Problem reported by Akim Demaille in:
12534         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12535         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12536         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12537         version.
12538         * lib/_Noreturn.h: Match gnulib-common.
12540 2018-10-30  Bruno Haible  <bruno@clisp.org>
12542         gnu-make: Fix for NetBSD 8 'make'.
12543         Reported by Reuben Thomas in
12544         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12545         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12546         output, ignoring exit codes.
12548 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12550         maintainer-makefile: fix syntax-check rule for "same.h"
12551         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12552         for 'same_nameat', too.
12554 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12556         havelib: fix nested ‘configure’ chatter
12557         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12558         AC_CACHE_CHECK calls, which resulted in confusing output like
12559         “checking for the common suffixes of directories in the library
12560         search path... checking for 64-bit host... no lib,lib”.
12562         backupfile: tweak for better code
12563         * lib/backupfile.c: Sort include directives, and remove
12564         unnecessary <limits.h> include.
12565         (FALLTHROUGH): New macro, copied from other modules.
12566         (backupfile_internal): Use it to avoid code duplication.
12567         This lets GCC 8.2.1 generate better code by inlining the
12568         call to check_extension.
12570 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12572         backupfile: new dir_fd args
12573         New module opendirat with code taken from fts.
12574         Use this module to let backupfile use a directory file descriptor.
12575         * NEWS: Document the incompatible change.
12576         * lib/backup-find.c (find_backup_file_name):
12577         * lib/backup-rename.c (backup_file_rename):
12578         New arg DIR_FD.
12579         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12580         (SIZE_MAX): Remove.
12581         Include opendirat.h rather than dirent--.h.
12582         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12583         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12584         (backupfile_internal): New arg DIR_FD.  All callers changed.
12585         * lib/fts.c: Include opendirat.h.
12586         (opendirat): Move to opendirat.c.
12587         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
12588         * modules/backupfile (Depends-on): Remove dirfd, opendir.
12589         Add opendirat.
12590         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
12591         Add opendirat.
12593 2018-10-23  Bruno Haible  <bruno@clisp.org>
12595         localename: Simplify support for per-thread locales on Solaris 11.4.
12596         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
12597         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
12598         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
12599         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
12600         specific code.
12601         * lib/localename-table.h: Update comments.
12602         * lib/localename-table.c: Update comments.
12603         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
12604         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
12605         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
12606         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
12607         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
12608         HAVE_NAMELESS_LOCALES here.
12609         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
12610         m4/intlsolaris.m4.
12611         * modules/gettext (Files): Likewise.
12613 2018-10-22  Bruno Haible  <bruno@clisp.org>
12615         std-gnu11: Support Autoconf versions < 2.64.
12616         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
12617         when _AC_DO_LIMIT does not exist.
12619 2018-10-22  Bruno Haible  <bruno@clisp.org>
12621         Assume Autoconf >= 2.63.
12622         * DEPENDENCIES: Mention the requirement.
12624         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
12625         (func_get_filelist): Don't list m4/onceonly.m4 any more.
12626         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
12627         * m4/onceonly.m4: Remove file.
12629         * m4/openmp.m4: Remove file.
12630         * modules/openmp (Files): Remove m4/openmp.m4.
12632         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
12633         htmldir, dvidir, pdfdir, psdir, localedir.
12634         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
12636         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
12637         Autoconf < 2.60.
12638         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
12639         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
12641         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
12642         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
12643         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
12645         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
12646         exists.
12647         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
12649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
12650         Autoconf < 2.61.
12652         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
12653         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
12654         Autoconf >= 2.52.
12656         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
12657         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
12658         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
12660 2018-10-22  Bruno Haible  <bruno@clisp.org>
12662         Assume Automake >= 1.11.
12663         * m4/configmake.m4: Update comments.
12664         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
12665         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
12666         of 'eval'.
12667         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
12668         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
12669         requires Automake >= 1.11.
12671 2018-10-22  Bruno Haible  <bruno@clisp.org>
12673         localename: Fix typo in comment.
12674         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
12676 2018-10-22  Bruno Haible  <bruno@clisp.org>
12678         Fix failure of 'gnulib-tool --create-testdir' with all modules.
12679         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
12681 2018-10-21  Bruno Haible  <bruno@clisp.org>
12683         locale: Ease integration with GNU libintl.
12684         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
12685         GNULIB_defined_freelocale): New macros.
12687 2018-10-21  Bruno Haible  <bruno@clisp.org>
12689         localename: Fine-tune support for per-thread locales on Solaris 11.4.
12690         * lib/localename-table.h: New file, extracted from lib/localename.c.
12691         * lib/localename-table.c: Likewise.
12692         * lib/localename.c: Include localename-table.h.
12693         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
12694         locale_hash_function instead of pointer_hash.
12695         * modules/localename (Files): Add lib/localename-table.h,
12696         lib/localename-table.c.
12697         (lib_SOURCES): Add localename-table.c.
12698         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
12699         for Solaris 11.4 locale system only on Solaris. Test for it
12700         independently whether getlocalename_l exists.
12701         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
12702         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
12703         HAVE_NAMELESS_LOCALES.
12704         * modules/gettext (Files): Add m4/intlsolaris.m4.
12706 2018-10-21  Bruno Haible  <bruno@clisp.org>
12708         Small update from gettext.
12709         * m4/intl.m4: Update from gettext:
12710         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
12711         mode on AIX.
12712         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
12713         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
12715 2018-10-16  Bruno Haible  <bruno@clisp.org>
12717         mountlist: Remove support for Cray with UNICOS 9.
12718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12719         MOUNTED_LISTMNTENT.
12720         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
12722 2018-10-16  Bruno Haible  <bruno@clisp.org>
12724         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
12725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
12726         STAT_STATFS2_FS_DATA.
12727         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
12728         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12729         MOUNTED_GETMNT.
12730         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
12731         * lib/getloadavg.c (decstation): Remove definition and case.
12732         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
12733         * lib/getgroups.c: Likewise.
12734         * doc/posix-functions/getgroups.texi: Likewise.
12735         * lib/time.in.h: Update comments.
12737 2018-10-16  Bruno Haible  <bruno@clisp.org>
12739         getloadavg: Remove support for ConvexOS.
12740         * lib/getloadavg.c: Remove convex case.
12742 2018-10-16  Bruno Haible  <bruno@clisp.org>
12744         getloadavg: Remove support for Sony NEWS.
12745         * lib/getloadavg.c: Remove sony_news case.
12747 2018-10-16  Bruno Haible  <bruno@clisp.org>
12749         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
12750         * lib/fsusage.c: Remove _SEQUENT_ case.
12751         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12752         * lib/mountlist.c: Don't test for MNTTABNAME.
12753         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
12754         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
12755         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
12756         * lib/stat-size.h: Don't mention the Sequent bug.
12757         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
12759 2018-10-16  Bruno Haible  <bruno@clisp.org>
12761         fsusage: Remove support for AIX 3.
12762         * lib/fsusage.c: Remove code for AIX 3.
12763         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
12765 2018-10-16  Bruno Haible  <bruno@clisp.org>
12767         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
12768         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
12769         * lib/fsusage.c: Remove code for AIX PS/2.
12770         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
12771         * lib/getloadavg.c: Likewise.
12773 2018-10-16  Bruno Haible  <bruno@clisp.org>
12775         getloadavg: Remove support for HP-UX on m68k.
12776         * lib/getloadavg.c: Remove hp9000s300 case.
12778 2018-10-16  Bruno Haible  <bruno@clisp.org>
12780         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
12781         * lib/fsusage.c: Remove DOLPHIN case.
12782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12783         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
12785 2018-10-16  Bruno Haible  <bruno@clisp.org>
12787         getloadavg: Remove support for Alliant FX/2800.
12788         * lib/getloadavg.c: Remove alliant case.
12790 2018-10-16  Bruno Haible  <bruno@clisp.org>
12792         getloadavg: Remove support for tek4300.
12793         * lib/getloadavg.c: Remove tek4300 case.
12795 2018-10-16  Bruno Haible  <bruno@clisp.org>
12797         getloadavg: Remove support for Ardent.
12798         * lib/getloadavg.c: Remove ardent case.
12800 2018-10-16  Bruno Haible  <bruno@clisp.org>
12802         mountlist: Remove support for SVR2.
12803         Reported by Andrew Borodin <aborodin@vmail.ru> in
12804         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
12805         * lib/mountlist.c: Remove MOUNTED_FREAD case.
12806         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12807         MOUNTED_FREAD.
12809 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12811         libc-config: merge from glibc
12812         * lib/cdefs.h (__glibc_has_attribute): New macro.
12814         regex: depend on libc-config
12815         * modules/regex (Depends-on): Add libc-config.
12816         This is needed after the recent autoupdate from glibc.
12818 2018-10-14  Bruno Haible  <bruno@clisp.org>
12820         localename: Add support for per-thread locales on Solaris 11.4.
12821         * lib/locale.in.h (newlocale, freelocale): New declarations.
12822         (duplocale): Declare also when the 'localename' module requests it.
12823         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
12824         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
12825         (struniq): Update.
12826         (struct locale_categories_names, struct locale_hash_node): New types.
12827         (LOCALE_HASH_TABLE_SIZE): New constant.
12828         (locale_hash_table, locale_lock): New variables.
12829         (pointer_hash, get_locale_t_name): New functions.
12830         (newlocale, duplocale, freelocale): New overridden functions.
12831         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
12832         * m4/intlsolaris.m4: New file.
12833         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
12834         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
12835         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
12836         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
12837         declared.
12838         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
12839         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
12840         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
12841         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
12842         * modules/localename (Files): Add intlsolaris.m4.
12843         (Depends-on): Add 'locale'.
12844         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
12845         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
12846         the signatures.
12848 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
12850         timevar: use gethrxtime to get wall clock time
12851         clock_gettime is not portable.  gethrxtime takes the best available
12852         option to get the wall clock time, including clock_gettime (monotonic
12853         clock), and gettime (non monotonic).
12854         Also, using xtime_t instead of float preserves the precision.
12855         Suggested by Bruno Haible.
12856         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
12857         * modules/timevar (Depends-on): We need gethrxtime.
12858         We no longer use times().
12859         (Link): Update.
12860         * lib/timevar.h (timevar_time_def): Use xtime_t.
12861         * lib/timevar.c (set_to_current_time): Use gethrxtime.
12862         (timevar_print): Instead of checking whether the timings themselves
12863         are large enough for the timevar to be printed, check the percentages.
12865 2018-10-14  Bruno Haible  <bruno@clisp.org>
12867         wcsnrtombs: Work around Solaris 11.4 bug.
12868         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
12869         macro.
12870         (gl_FUNC_WCSNRTOMBS): Invoke it.
12871         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
12873 2018-10-14  Bruno Haible  <bruno@clisp.org>
12875         mbsnrtowcs: Work around Solaris 11.4 bug.
12876         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
12877         macro.
12878         (gl_FUNC_MBSNRTOWCS): Invoke it.
12879         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
12881 2018-10-14  Bruno Haible  <bruno@clisp.org>
12883         doc: Update for Solaris 11.4.
12884         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
12885         mention Solaris 11.4.
12886         * m4/printf.m4: Update comments about Solaris.
12887         * m4/log.m4: Likewise.
12888         * m4/log10.m4: Likewise.
12889         * m4/logb.m4: Likewise.
12890         * m4/logbf.m4: Likewise.
12891         * m4/logbl.m4: Likewise.
12892         * m4/rename.m4: Likewise.
12893         * m4/wcrtomb.m4: Likewise.
12894         * m4/hostent.m4: Likewise.
12895         * m4/servent.m4: Likewise.
12897 2018-10-14  Bruno Haible  <bruno@clisp.org>
12899         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
12900         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
12901         pointer.
12902         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
12903         pointer.
12904         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
12905         pointer.
12906         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
12907         pointer.
12908         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
12909         pointer.
12911 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12913         bootstrap: fix wget command for po files.
12914         * build-aux/bootstrap (po_download_command_format): Fix comment,
12915         and adjust callers.
12917 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12919         timevar: improve the output format
12920         Suggested by Bruno Haible.
12921         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
12922         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
12923         wall, since its resolution is much higher.
12925 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
12927         timevar: expect that getrusage is available.
12928         Don't keep both times and getrusage as backend: both are guaranteed by
12929         gnulib, a single one suffices.  Using getrusage is open to possibly
12930         tracking other types of resources in the future.
12931         * modules/timevar (Depends-on): Add getrusage.
12932         (configure.ac): Remove gl_TIMEVAR.
12933         (Files): Remove m4/timevar.m4.
12934         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
12935         * lib/timevar.h (timevar_enabled): Clarify documentation.
12936         * lib/timevar.c: Remove all the code about times.
12937         Remove all the CPP guards about getrusage: expect it to be present
12938         (courtesy of gnulib).
12940 2018-10-12  Bruno Haible  <bruno@clisp.org>
12942         mountlist: Improve support for Solaris in 64-bit mode.
12943         Reported by David Wood <David.Wood@deshaw.com> in
12944         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
12945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
12946         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
12947         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
12949 2018-10-12  Bruno Haible  <bruno@clisp.org>
12951         mountlist: Add support for Minix.
12952         Reported by Assaf Gordon in
12953         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
12954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
12955         AC_CHECK_FUNCS to check for 'getmntinfo'.
12956         * lib/mountlist.c: Update comments.
12958 2018-10-12  Bruno Haible  <bruno@clisp.org>
12960         Make better use of Autoconf.
12961         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
12962         * m4/manywarnings.m4: Likewise.
12963         * m4/manywarnings-c++.m4: Likewise.
12964         * m4/socklen.m4: Likewise.
12965         * m4/sockpfaf.m4: Likewise.
12966         * m4/stdarg.m4: Likewise.
12967         * m4/visibility.m4: Likewise.
12968         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
12969         indentation.
12970         * m4/ls-mntd-fs.m4: Likewise.
12972 2018-10-11  Bruno Haible  <bruno@clisp.org>
12974         mountlist: Modernize platform lists.
12975         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
12976         platforms, deemphasizing the obsolete ones.
12977         * lib/mountlist.c: Likewise.
12979 2018-10-11  Bruno Haible  <bruno@clisp.org>
12981         getprogname: Add support for 32-bit programs on HP-UX.
12982         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
12983         try the similar functions 32-bit programs on 64-bit HP-UX.
12985 2018-10-11  Bruno Haible  <bruno@clisp.org>
12987         getprogname: Work around program name truncation when possible.
12988         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
12989         possibly use pst_cmd instead.
12991 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12993         fts: cleanup after FTS_NOATIME removal
12994         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
12995         (FTS_STOP): Shrink to minimal values.  We don’t need to
12996         worry about binary compatibility in Gnulib, and the old way
12997         of doing things had a hole in the user options that caused
12998         FTS_OPTIONMASK to not work as desired.
13000 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13002         fts: remove FTS_NOATIME
13003         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13004         We cannot guarantee that O_NOATIME works: e.g. openat fails
13005         with EPERM if the effective user ID of the caller does not match
13006         the owner of the file and the caller is not privileged.
13007         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13008         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13009         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13010         (FTS_OPTIONMASK): Adjust.
13011         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13012         (fd_ring_check): Likewise.
13014 2018-10-08  Bruno Haible  <bruno@clisp.org>
13016         csharpcomp*, csharpexec*: Remove support for pnet.
13017         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13018         HAVE_CSCC.
13019         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13020         Don't test HAVE_CSCC.
13021         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13022         (compile_csharp_class): Don't invoke it.
13023         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13024         HAVE_ILRUN.
13025         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13026         Don't test HAVE_ILRUN.
13027         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13028         (execute_csharp_program): Don't invoke it.
13029         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13030         any more.
13032 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13034         renameatu: prefer renameat2 to syscall
13035         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13036         Use renameat2 instead of syscall (Bug#32796).
13037         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13039 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13041         bootstrap, gnulib-tool: use https instead of insecure rsync
13042         * build-aux/bootstrap (download_po_files, po_download_command_format):
13043         Don't try using rsync; always use wget over https to fetch PO files.
13044         * gnulib-tool (func_import): Likewise.
13045         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13047 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13049         bootstrap, gnulib-tool: correct the translations wget command
13050         * build-aux/bootstrap (po_download_command_format2): Restrict
13051         recursion to a single level.
13052         * gnulib-tool (func_import): Likewise.
13053         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13055 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13057         doc: the gnulib snapshots are not maintained
13058         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13060 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13062         timevar: add to lib_SOURCES
13063         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13065 2018-10-07  Bruno Haible  <bruno@clisp.org>
13067         dirent: Update documentation.
13068         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13070 2018-10-05  Bruno Haible  <bruno@clisp.org>
13072         strpbrk: Make it possible to namespace the defined symbol.
13073         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13075 2018-10-05  Bruno Haible  <bruno@clisp.org>
13077         strcspn: Make it possible to namespace the defined symbol.
13078         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13080 2018-10-05  Bruno Haible  <bruno@clisp.org>
13082         raise: Make it possible to namespace the defined symbol.
13083         * lib/raise.c (raise): Undefine only after the replacement function has
13084         been defined.
13085         (raise): Renamed from rpl_raise.
13086         (raise_nothrow): Move to the end of the compilation unit.
13088 2018-10-05  Bruno Haible  <bruno@clisp.org>
13090         memcmp: Make it possible to namespace the defined symbol.
13091         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13093 2018-10-05  Bruno Haible  <bruno@clisp.org>
13095         explicit_bzero: Make it possible to namespace the defined symbol.
13096         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13097         glibc.
13099 2018-10-05  Bruno Haible  <bruno@clisp.org>
13101         mkdir-p: Depend on 'mkdir'.
13102         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13104 2018-10-05  Bruno Haible  <bruno@clisp.org>
13106         tempname: Depend on 'mkdir'.
13107         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13108         at <https://savannah.gnu.org/bugs/?33379>.
13109         * modules/tempname (Depends-on): Add 'mkdir'.
13111 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13113         timevar: rely on gnulib modules for time portability.
13114         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13115         * m4/timevar.m4: Don't check for clock_t and struct tms,
13116         guaranteed by gnulib.
13117         * lib/timevar.h: Use extern "C" protection.
13118         Include <stdio.h> for FILE.
13119         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13120         they are guaranteed by gnulib.
13121         Remove uses of clock as (now useless) fallback.
13123 2018-10-04  Bruno Haible  <bruno@clisp.org>
13125         sh-filename: New module.
13126         * m4/sh-filename.m4: New file.
13127         * modules/sh-filename: New file.
13128         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13129         "/bin/sh".
13130         * tests/test-posix_spawn1.c (main): Likewise.
13131         * tests/test-posix_spawn2.c (main): Likewise.
13132         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13133         is_envjavac_gcj43): Likewise.
13134         * lib/javaexec.c (execute_java_class): Likewise.
13135         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13136         * modules/posix_spawnp-tests (Depends-on): Likewise.
13137         * modules/javacomp (Depends-on): Likewise.
13138         * modules/javaexec (Depends-on): Likewise.
13140 2018-10-04  Bruno Haible  <bruno@clisp.org>
13142         spawn-pipe tests: Avoid test failure on native Windows.
13143         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13144         that fd 2 is closed.
13146 2018-10-04  Bruno Haible  <bruno@clisp.org>
13148         fcntl: Make it possible to namespace the defined symbol.
13149         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13150         been defined.
13151         (fcntl): Renamed from rpl_fcntl.
13152         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13153         from fcntl.
13154         (klibc_fcntl): Move to the end of the compilation unit.
13156 2018-10-02  Bruno Haible  <bruno@clisp.org>
13158         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13159         * tests/test-vasnprintf.c (test_function): Change the test added on
13160         2018-09-23 to check only the 18 most significant digits.
13162         vasnprintf tests: Avoid test failure on Cygwin.
13163         * tests/test-vasnprintf.c (test_function): Change the test added on
13164         2018-09-23 to check only the 42 most significant digits.
13166 2018-10-01  Bruno Haible  <bruno@clisp.org>
13168         mkostemp, mkostemps: Update documentation.
13169         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13170         * doc/glibc-functions/mkostemps.texi: Likewise.
13172 2018-10-01  Tom Tromey  <tom@tromey.com>
13174         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13175         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13176         on OS X.
13178 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13180         hmac-*: refactor to remove repetitive code
13181         * lib/hmac.c: A new parameterized single implementation.
13182         * lib/hmac-md5.c: Define parameters and include implementation.
13183         * lib/hmac-sha1.c: Likewise.
13184         * lib/hmac-sha256.c: Likewise.
13185         * lib/hmac-sha512.c: Likewise.
13186         * modules/crypto/hmac-md5: Reference the new implementation file.
13187         * modules/crypto/hmac-sha1: Likewise.
13188         * modules/crypto/hmac-sha256: Likewise.
13189         * modules/crypto/hmac-sha512: Likewise.
13190         * tests/test-hmac-md5.c: Refactor common code to a single function.
13191         * tests/test-hmac-sha1.c: Likewise.
13192         * tests/test-hmac-sha256.c: Likewise.
13193         * tests/test-hmac-sha512.c: Likewise.
13195 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13197         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13198         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13199         key length to that output by sha512, not the blocksize.
13200         Otherwise uninitialized data from the stack
13201         is used when computing the hash.
13202         * tests/test-hmac-sha512.c: Add a shortened key test case.
13203         Reported at https://github.com/coreutils/gnulib/pull/5
13205 2018-09-30  Bruno Haible  <bruno@clisp.org>
13207         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13208         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13209         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13210         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13211         'unsigned int' before comparison with an unsigned value.
13213 2018-09-30  Bruno Haible  <bruno@clisp.org>
13215         grantpt: Remove unnecessary dependency.
13216         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13218 2018-09-30  Bruno Haible  <bruno@clisp.org>
13220         timevar: Small tweaks.
13221         * lib/timevar.h: Fix comments. Add parameter names to function
13222         declarations.
13223         * lib/timevar.c: Include timevar.h immediately after config.h.
13224         * lib/timevar.def: Fix comments.
13225         * modules/timevar (Maintainer): List Akim Demaille.
13227 2018-09-30  Bruno Haible  <bruno@clisp.org>
13229         timevar: Include documentation in gnulib manual.
13230         * doc/timevar.texi: Change node and section name to 'Profiling of
13231         program phases'.
13232         In the code snippets, tweak the #includes and use GNU coding style.
13233         * doc/gnulib.texi: Include timevar.texi.
13235 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13237         timevar: import from Bison.
13238         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13239         New files.
13240         * lib/timevar.def: New file.
13241         * doc/timevar.texi: New file.
13243 2018-09-26  Bruno Haible  <bruno@clisp.org>
13245         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13246         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13247         * lib/javacomp.c (default_target_version): Likewise.
13249 2018-09-26  Bruno Haible  <bruno@clisp.org>
13251         javacomp-script, javacomp: Add support for Java 11.
13252         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13253         target-version 11.
13254         * lib/javaversion.h: Update comments.
13255         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13256         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13257         TARGET_VERSION_BOUND, target_version_index,
13258         corresponding_classfile_version): Accept source_version 11 and
13259         target_version 11.
13260         * lib/javacomp.h: Update comments accordingly.
13262 2018-09-23  Bruno Haible  <bruno@clisp.org>
13264         vasnprintf: Fix heap memory overrun bug.
13265         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13266         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13267         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13268         memory.
13269         * tests/test-vasnprintf.c (test_function): Add another test.
13271 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13273         maint: mktime.c now shared with glibc
13274         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13275         are now the same in Gnulib and glibc.
13277         mktime: fix _LIBC typo
13278         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13280 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13282         dfa: optimization for state merge
13283         * lib/dfa.c (merge2): New function.
13284         (merge_nfa_state): Use it.
13286 2018-09-18  Jim Meyering  <meyering@fb.com>
13288         dfa: trivial comment fix: s/is/if/
13289         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13291 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13293         dfa: use more-informative function name
13294         * lib/dfa.c (maybe_disable_superset_dfa):
13295         Rename from dfautf8noss.  Use change.
13297         dfa: tweak allocation performance
13298         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13299         Prefer ptrdiff_t for indexes some more.
13300         Use char for flags, as it’s wide enough.
13301         Allocate queue and flags together, with one malloc call.
13302         No need to use xnmalloc since the multiplication and
13303         addition cannot overflow (it’s already been checked by
13304         earlier allocation).  Prefer memset to open-coding.
13306         dfa: prune states as we go
13307         * lib/dfa.c (prune): Remove.
13308         dfa: reorder enum for efficiency
13309         (merge_nfa_state): Prune as we go instead of at the end.
13310         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13312         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13313         of the enumeration to make it easier for GCC to generate
13314         efficient code by using fewer comparisons to check for
13315         ranges of values.
13316         (atom): Take advantage of the reordering.
13318 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13320         dfa: optimize alternation in NFA
13321         Even when similar states exist in alternation, the DFA treats them
13322         as separate items, which may complicate the transition in NFA and
13323         cause slowdown.  This change assembles the states into one.  For
13324         example, ab|ac is changed into a(b|c).  This change speeds-up
13325         matching for many branched patterns.  For example, grep speeds up
13326         more than 30× in:
13328           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13329           time -p env LC_ALL=C grep -vf in in
13331         * lib/dfa.c (prune): New function.
13332         (merge_nfa_state): New function.  It merges similar NFA states.
13333         (dfaoptimize): New function.  It seeks merged and removed nodes.
13334         (dfaanalyze): Call new function.
13335         (dfautf8noss): Change name from dfaoptimize because of addition of new
13336         function.
13337         (dfacomp): Update caller.
13339         dfa: simplify initial state
13340         Simplifying the initial state enables easier optimization of the NFA.
13341         * lib/dfa.c (enum token): Add new element BEG.
13342         (prtok): Adjust due to adding element BEG.
13343         (dfaparse): Put BEG at a head of tokens.
13344         (state_index): Adjust due to adding element BEG.
13345         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13346         build initial state.
13347         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13349 2018-09-18  Bruno Haible  <bruno@clisp.org>
13351         file-has-acl: Fix test failure on Cygwin 2.9.
13352         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13353         * lib/acl-internal.h: Likewise.
13354         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13355         * lib/acl-internal.c: Update comments regarding Cygwin.
13356         * lib/acl_entries.c: Likewise.
13357         * lib/file-has-acl.c: Likewise.
13358         (file_has_acl): For Cygwin, use a different way to determine whether
13359         the "default" ACL of a directory is nontrivial.
13360         * lib/get-permissions.c: Update comments regarding Cygwin.
13361         * lib/set-permissions.c: Likewise.
13363 2018-09-18  Bruno Haible  <bruno@clisp.org>
13365         stat-time tests: Fix test failure on Cygwin.
13366         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13368 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13370         doc: OS X 10.11 lacked ns time functions
13371         According to <https://github.com/zeromq/libzmq/issues/2175>,
13372         nanosecond-resolution timestamp functions were introduced
13373         in macOS 10.12, so document the last version (OS X 10.11)
13374         where they were absent.
13376         gettime: nanotime never existed
13377         Problem reported by Bruno Haible in:
13378         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13379         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13380         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13382 2018-09-18  Bruno Haible  <bruno@clisp.org>
13384         doc: Update statement about target platforms.
13385         Reported by Simon Sobisch.
13386         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13387         restrictions on MSVC versions.
13389 2018-09-18  Bruno Haible  <bruno@clisp.org>
13391         posix_spawn tests: Fix link error on 64-bit Cygwin.
13392         * tests/test-posix_spawn1.c (environ): Remove declaration.
13393         * tests/test-posix_spawn2.c (environ): Likewise.
13394         * tests/test-posix_spawn3.c (environ): Likewise.
13395         * tests/test-posix_spawn4.c (environ): Likewise.
13396         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13397         * modules/posix_spawnp-tests (Depends-on): Likewise.
13399 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13401         timespec: new function current_timespec
13402         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13403         and don’t worry about it failing on a CLOCK_REALTIME arg.
13404         POSIX requires it to succeed and I don’t know of any
13405         counterexamples where the fallbacks would work.
13406         (current_timespec): New function, taken from Emacs.  It is more
13407         convenient than gettime, and can help register allocation.
13408         * lib/timespec.h: Include arg-nonnull.h.
13409         (current_timespec): New declaration.
13410         (gettime, settime): Declare args to be nonnull.
13411         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13413 2018-09-16  Bruno Haible  <bruno@clisp.org>
13415         setlocale: Improve locale handling on macOS 10.12 or newer.
13416         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13417         gl_locale_name_canonicalize.
13418         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13419         and LC_MESSAGES.
13420         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13422 2018-09-16  Bruno Haible  <bruno@clisp.org>
13424         Update list of locale names with scripts on macOS.
13425         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13426         match Mac OS X 10.13 and recent glibc.
13428 2018-09-16  Bruno Haible  <bruno@clisp.org>
13430         gettext: Use newer macOS APIs when possible.
13431         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13432         CFLocaleCopyPreferredLanguages.
13434 2018-09-16  Bruno Haible  <bruno@clisp.org>
13436         localename: Revisit macOS specific code.
13437         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13438         Fix comments about Mac OS X versions.
13440 2018-09-15  Bruno Haible  <bruno@clisp.org>
13442         setlocale: Improve support for locales not supported by libc.
13443         Reported by Dapeng Gao <peter@dpgao.cc> at
13444         <https://savannah.gnu.org/bugs/?54479>.
13445         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13446         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13447         to be set is not supported by libc: Emit warnings instead of failing.
13449 2018-09-15  Bruno Haible  <bruno@clisp.org>
13451         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13452         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13453         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13454         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13456         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13457         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13458         * doc/glibc-functions/strcasestr.texi: Likewise.
13460 2018-09-14  Bruno Haible  <bruno@clisp.org>
13462         doc: Fix bottom of top-level page.
13463         Reported by Akim Demaille <akim.demaille@gmail.com> in
13464         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13465         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13466         mode.
13467         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13468         accordingly.
13470 2018-09-12  Bruno Haible  <bruno@clisp.org>
13472         Add test case from a recent glibc bug.
13473         * tests/test-strstr.c (main): Add test of long needle.
13474         * tests/test-strcasestr.c (main): Likewise.
13475         * tests/test-c-strstr.c (main): Likewise.
13476         * tests/test-c-strcasestr.c (main): Likewise.
13477         * tests/test-memmem.c (main): Likewise.
13479 2018-09-12  Bruno Haible  <bruno@clisp.org>
13481         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13482         * tests/test-c-strstr.c (main): Add the same tests here as well.
13484 2018-09-12  Bruno Haible  <bruno@clisp.org>
13486         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13487         * tests/test-memmem.c (main): Free haystack.
13488         * tests/test-strcasestr.c (main): Likewise.
13489         * tests/test-c-strcasestr.c (main): Likewise.
13491 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13493         xstrtol: fix missing-TYPE_SIGNED typo
13494         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13496 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13498         timespec: fix resolution confusion
13499         In normal usage, clock resolution is given in seconds, but the
13500         code was mistakenly using inverse seconds and calling it
13501         “resolution”.  Fix this, partly by renaming two identifiers.
13502         The old names will be kept for a bit, to ease transition.
13503         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13504         New constants, replacing TIMESPEC_RESOLUTION and
13505         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13506         All uses changed.
13508 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13510         mktime: simplify in prep for glibc merge
13511         * lib/mktime.c, lib/timegm.c [_LIBC]:
13512         Include mktime-internal.h (a small file just for glibc)
13513         instead of using a typedef.
13515 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13517         intprops: minor clarification of code
13518         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13519         Use _GL_INT_CONVERT rather than reinventing it.
13521 2018-09-07  Bruno Haible  <bruno@clisp.org>
13523         Fix a comment.
13524         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13526 2018-09-07  Bruno Haible  <bruno@clisp.org>
13528         posix_spawn_file_actions_addchdir: Add tests.
13529         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13530         * tests/test-posix_spawn4.c: New file.
13531         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13533 2018-09-07  Bruno Haible  <bruno@clisp.org>
13535         posix_spawn_file_actions_addchdir: New module.
13536         Suggested by Eric Blake in
13537         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13538         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13539         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13540         union member 'chdir_action'.
13541         * lib/spawn_faction_addchdir.c: New file.
13542         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13543         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13544         HAVE_WORKING_POSIX_SPAWN.
13545         * lib/spawn_faction_adddup2.c: Likewise.
13546         * lib/spawn_faction_addopen.c: Likewise.
13547         * m4/posix_spawn_faction_addchdir.m4: New file.
13548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13549         'posix_spawn_file_actions_addchdir' is present and whether
13550         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13551         instead of HAVE_WORKING_POSIX_SPAWN.
13552         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13553         posix_spawn_file_actions_addchdir is declared.
13554         (gl_SPAWN_H_DEFAULTS): Initialize
13555         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13556         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13557         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13558         * modules/spawn (Makefile.am): Substitute
13559         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13560         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13561         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13562         * modules/posix_spawn_file_actions_addchdir: New file.
13563         * modules/posix_spawn_file_actions_addclose (Depends-on,
13564         configure.ac): Test also REPLACE_POSIX_SPAWN.
13565         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13566         configure.ac): Likewise.
13567         * modules/posix_spawn_file_actions_addopen (Depends-on,
13568         configure.ac): Likewise.
13569         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13570         signature.
13571         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13572         * doc/posix-functions/posix_spawnp.texi: Likewise.
13574 2018-09-06  Bruno Haible  <bruno@clisp.org>
13576         stddef: Override max_align_t on NetBSD 8.0/x86.
13577         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13578         the value of __alignof__ (max_align_t).
13579         * doc/posix-headers/stddef.texi: Mention the issue.
13581 2018-09-06  Bruno Haible  <bruno@clisp.org>
13583         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13584         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13585         system fcntl.
13586         * doc/posix-functions/fcntl.texi: Document the issue.
13588 2018-09-06  Bruno Haible  <bruno@clisp.org>
13590         count-trailing-zeros tests: Rely on limits-h module.
13591         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
13592         definition.
13593         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
13595 2018-09-06  Bruno Haible  <bruno@clisp.org>
13597         count-leading-zeros tests: Rely on limits-h module.
13598         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
13599         definition.
13600         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
13602 2018-09-06  Bruno Haible  <bruno@clisp.org>
13604         count-one-bits tests: Rely on limits-h module.
13605         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
13606         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
13608 2018-09-06  Bruno Haible  <bruno@clisp.org>
13610         xstrtoll: Rely on limits-h module.
13611         * lib/xstrtol.c: Don't include intprops.h.
13612         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13613         * modules/xstrtol (Depends-on): Remove 'intprops'.
13614         * modules/xstrtoll (Depends-on): Add 'limits-h'.
13616 2018-09-06  Bruno Haible  <bruno@clisp.org>
13618         strtoll, strtoull: Rely on limits-h module.
13619         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
13620         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13621         * modules/strtoll (Depends-on): Add limits-h.
13622         * modules/strtoull (Depends-on): Likewise.
13624 2018-09-06  Bruno Haible  <bruno@clisp.org>
13626         intprops tests: Fix compilation error with pre-C99 compiler.
13627         * tests/test-intprops.c (verify_stmt): New macro.
13628         (VERIFY, main): Use it.
13630 2018-09-06  Bruno Haible  <bruno@clisp.org>
13632         limits-h: Provide numerical limits macros.
13633         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
13634         IRIX and for GCC.
13635         (WORD_BIT, LONG_BIT): Define.
13636         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
13637         <limits.h> does not define LLONG_MAX or WORD_BIT.
13638         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
13639         TYPE_MAXIMUM): New macros, from intprops.h.
13640         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
13641         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
13642         provides.
13644 2018-09-05  Bruno Haible  <bruno@clisp.org>
13646         fcntl: Don't access nonexistent optional argument.
13647         Reported by Frank Busse <f.busse@imperial.ac.uk> in
13648         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
13649         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
13650         don't consume an argument. For actions that take an 'int' argument,
13651         consume an 'int' argument.
13653 2018-09-05  Eric Blake  <eblake@redhat.com>
13655         doc: mention environ pitfall
13656         * doc/posix-functions/environ.texi (environ): Assigning NULL to
13657         environ is a glibc extension.
13659 2018-09-03  Bruno Haible  <bruno@clisp.org>
13661         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
13662         Reported by Antoine Luong <antoine.luong@c-s.fr> in
13663         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
13664         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
13665         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
13666         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
13668 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13670         mktime: fix unlikely race+overflow bug
13671         Problem reported by Alexandre Oliva in:
13672         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
13673         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
13674         to avoid an unlikely race if the compiler delays a load and
13675         if this cascades into a signed integer overflow.
13677 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13679         mktime, timegm: simplify glibc time64_t
13680         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
13681         Now long int, not time_t, since long int is the longstanding type
13682         for this in glibc and there is no need to change it even if time_t
13683         becomes 64 bits - even int would do, though this would be a change
13684         to the glibc generated code.  When this change is merged into
13685         glibc, it should simplify the time_t vs time64_t situation.
13687         mktime, timegm: simplify merge to glibc
13688         Move code around to make a merge to glibc easier to audit.
13689         This should not change behavior.
13690         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13691         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13692         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13693         simplify later conditionals; default the others to zero.  In uses
13694         of these conditionals, explicitly spell out how _LIBC affects
13695         things, so it’s easier to review from a glibc viewpoint.
13696         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13697         compartmentalize tzset issues.  Move system-dependent tzsettish
13698         code here from mktime.
13699         (mktime): Move tzsettish code to my_tzset, and move
13700         localtime_offset to within mktime so that it doesn’t
13701         need a separate ifdef.
13703 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13705         intprops: avoid evaluation of some expressions
13706         This makes EXPR_SIGNED (e) easier to use, as it no longer
13707         evaluates the expression E.  Formerly, E was required to be free
13708         of side effects.
13709         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
13710         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
13711         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
13713 2018-08-23  Bruno Haible  <bruno@clisp.org>
13715         getcwd: Add cross-compilation guesses.
13716         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
13717         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
13718         Based on a patch by Paul Eggert.
13719         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
13720         guesses for all GNU systems.
13722 2018-08-19  Bruno Haible  <bruno@clisp.org>
13724         glob-h: Formalize side effects from other modules.
13725         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
13726         * m4/glob.m4 (gl_GLOB): Invoke it.
13728         fnmatch-h: Formalize side effects from other modules.
13729         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
13730         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
13732         limits-h: Formalize side effects from other modules.
13733         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
13734         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
13736 2018-08-19  Bruno Haible  <bruno@clisp.org>
13738         getpass: Move declaration to <unistd.h>.
13739         * lib/unistd.in.h (getpass): New declaration.
13740         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
13741         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
13742         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
13743         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
13744         On glibc systems, don't set REPLACE_GETPASS to 1.
13745         * modules/getpass (Depends-on): Add 'unistd'.
13746         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
13747         (Include): Specify <unistd.h> instead of "getpass.h".
13748         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
13749         (configure.ac): Sync with the configure.ac section of modules/getpass.
13750         (Include): Specify <unistd.h> instead of "getpass.h".
13751         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
13752         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
13753         REPLACE_GETPASS.
13754         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
13755         REPLACE_GETPASS.
13756         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
13757         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
13758         and musl.
13759         * NEWS: Mention the change.
13761 2018-08-19  Bruno Haible  <bruno@clisp.org>
13763         glob: Fix over-optimization due to attribute __nonnull__.
13764         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
13766 2018-08-19  Bruno Haible  <bruno@clisp.org>
13768         glob: Fix another compilation error when glob.h is not replaced.
13769         Reported by Reuben Thomas <rrt@sc3d.org> in
13770         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
13771         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
13772         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
13774 2018-08-18  Bruno Haible  <bruno@clisp.org>
13776         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
13777         Reported by Reuben Thomas <rrt@sc3d.org> in
13778         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
13779         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
13780         in config.h.
13782 2018-08-18  Bruno Haible  <bruno@clisp.org>
13784         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
13785         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
13786         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
13787         Solution proposed by Eli Zaretskii.
13788         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
13789         * lib/gettimeofday.c (GetProcAddress): Likewise.
13790         * lib/link.c (GetProcAddress): Likewise.
13791         * lib/physmem.c (GetProcAddress): Likewise.
13792         * lib/poll.c (GetProcAddress): Likewise.
13793         * lib/select.c (GetProcAddress): Likewise.
13794         * lib/stat-w32.c (GetProcAddress): Likewise.
13796 2018-08-18  Bruno Haible  <bruno@clisp.org>
13798         glob: Fix another compilation error when glob.h is not replaced.
13799         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
13800         * lib/globfree.c: Include <libc-config.h>.
13802 2018-08-18  Bruno Haible  <bruno@clisp.org>
13804         glob: Fix compilation error when glob.h is not replaced.
13805         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
13806         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
13807         * lib/glob_pattern_p.c: Include <libc-config.h>.
13808         * modules/glob (Depends-on): Add libc-config.
13810 2018-08-18  Bruno Haible  <bruno@clisp.org>
13812         scratch_buffer: Add tests.
13813         * tests/test-scratch-buffer.c: New file.
13814         * modules/scratch_buffer-tests: New file.
13816 2018-08-18  Bruno Haible  <bruno@clisp.org>
13818         scratch_buffer: Fix include file.
13819         Reported by Reuben Thomas <rrt@sc3d.org> in
13820         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
13821         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
13822         double-inclusion guard.
13824 2018-08-18  Bruno Haible  <bruno@clisp.org>
13826         glob-h: Revert Paul Eggert's revert.
13827         * m4/glob_h.m4: Revert to previous state.
13828         * modules/glob-h: Likewise.
13830 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13832         glob-h: always build glob.h
13833         This works around a problem reported by Reuben Thomas in:
13834         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
13835         This workaround always builds glob.h, even on platforms that
13836         do not need it; perhaps this could be improved someday.
13837         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
13838         is always created now.
13839         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
13841 2018-08-13  Bruno Haible  <bruno@clisp.org>
13843         monetary: Simplify m4 code.
13844         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
13845         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
13847 2018-08-13  Bruno Haible  <bruno@clisp.org>
13849         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
13850         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
13851         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
13852         and by Paul J. Lucas <paul@lucasmail.org> in
13853         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
13854         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
13856 2018-08-11  Bruno Haible  <bruno@clisp.org>
13858         setlocale: Trivial simplification.
13859         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
13861 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13863         verify: port 'assume' to traditional tools
13864         * lib/verify.h (assume): Port better to Oracle Studio 12.6
13865         and other tools that use /*NOTREACHED*/ comments.
13867 2018-08-10  Bruno Haible  <bruno@clisp.org>
13869         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
13870         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13871         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
13872         'fnmatch-gnu' is in use.
13874 2018-08-07  Bruno Haible  <bruno@clisp.org>
13876         glob-h: Add tests.
13877         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
13878         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
13879         tests/test-glob-h.c.
13880         * modules/glob-h-tests: New file.
13881         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
13882         conditions.
13883         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
13884         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
13886 2018-08-07  Bruno Haible  <bruno@clisp.org>
13888         glob-h: New module.
13889         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
13890         replacements.
13891         * lib/glob.c: Include <config.h>.
13892         * m4/glob_h.m4: New file.
13893         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
13894         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
13895         REPLACE_GLOB_PATTERN_P as appropriate.
13896         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
13897         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
13898         * modules/glob-h: New file.
13899         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
13900         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
13901         lstat, sys_stat. Change conditions.
13902         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
13903         REPLACE_GLOB_PATTERN_P. Set module indicator.
13904         (Makefile.am): Remove code that is moved to glob-h.
13905         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
13906         * modules/posixcheck (Depends-on): Add glob-h.
13908 2018-08-06  Bruno Haible  <bruno@clisp.org>
13910         Force generation of substitute .h file when C++ support is enabled.
13911         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
13912         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
13913         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
13914         FNMATCH_H to non-empty.
13915         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
13916         ICONV_H to non-empty.
13917         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
13918         MONETARY_H to non-empty.
13919         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
13920         non-empty.
13922 2018-08-06  Bruno Haible  <bruno@clisp.org>
13924         fnmatch-h: Fix test compilation error on mingw (regression from today).
13925         * lib/fnmatch.in.h: Fix conditions.
13927 2018-08-06  Bruno Haible  <bruno@clisp.org>
13929         sys_resource: Relicense under LGPLv2+.
13930         John Malmberg's approval is in
13931         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
13932         * modules/sys_resource (License): Change to LGPLv2+.
13934 2018-08-06  Bruno Haible  <bruno@clisp.org>
13936         fnmatch-h: Add tests.
13937         * tests/test-fnmatch-h.c: New file.
13938         * modules/fnmatch-h-tests: New file.
13939         * tests/test-fnmatch-h-c++.cc: New file.
13940         * modules/fnmatch-h-c++-tests: New file.
13942 2018-08-06  Bruno Haible  <bruno@clisp.org>
13944         fnmatch-h: New module.
13945         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
13946         replacements.
13947         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
13948         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
13949         'posixcheck' warning.
13950         * m4/fnmatch_h.m4: New file.
13951         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
13952         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
13953         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
13954         as appropriate.
13955         * modules/fnmatch-h: New file.
13956         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
13957         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
13958         conditions.
13959         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
13960         indicator.
13961         (Makefile.am): Remove code that is moved to fnmatch-h.
13962         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
13963         REPLACE_FNMATCH.
13964         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
13965         * modules/posixcheck (Depends-on): Add fnmatch-h.
13967 2018-08-06  Bruno Haible  <bruno@clisp.org>
13969         Enable more C++ tests.
13970         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
13971         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
13972         * modules/strings-tests (Depends-on): Add strings-c++-tests.
13973         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
13974         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
13976 2018-08-06  Bruno Haible  <bruno@clisp.org>
13978         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
13979         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
13980         getopt.h.
13981         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
13983 2018-08-05  Bruno Haible  <bruno@clisp.org>
13985         utime-h: Generate header file when module 'posixcheck' is in use.
13986         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
13987         UTIME_H to non-empty.
13989 2018-08-05  Bruno Haible  <bruno@clisp.org>
13991         monetary: Generate header file when module 'posixcheck' is in use.
13992         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
13993         use, set MONETARY_H to non-empty.
13995 2018-08-05  Bruno Haible  <bruno@clisp.org>
13997         iconv-h: Generate header file when module 'posixcheck' is in use.
13998         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
13999         set ICONV_H to non-empty.
14001 2018-08-05  Bruno Haible  <bruno@clisp.org>
14003         Optimize the "checking whether ... is declared without a macro" checks.
14004         Suggested by Paul Eggert in
14005         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14006         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14007         Gnulib module 'posixcheck' is not in use.
14009 2018-08-05  Bruno Haible  <bruno@clisp.org>
14011         iconv-h: Enable 'posixcheck' warnings.
14012         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14013         iconv_open.
14014         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14016 2018-08-05  Bruno Haible  <bruno@clisp.org>
14018         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14019         * m4/extern-inline.m4: Add more comments.
14020         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14021         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14022         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14024 2018-08-04  Bruno Haible  <bruno@clisp.org>
14026         New module 'posixcheck'.
14027         * modules/posixcheck: New file.
14028         * m4/posixcheck.m4: New file.
14029         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14030         (Which modules?): Reference it.
14032 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14034         dfa: fix memory leak
14035         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14037 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14039         ieee754-h: new module
14040         It looks like Emacs can use this for some NaN processing.
14041         Emacs uses it only on double NaNs so it should be safe.
14042         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14043         * config/srclist.txt: Mention ieee754.h in a comment.
14044         * doc/glibc-headers/ieee754.texi (ieee754.h):
14045         Gnulib now has a substitute that should work
14046         except for long double and for non-IEEE platforms.
14047         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14048         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14050 2018-07-27  Bruno Haible  <bruno@clisp.org>
14052         iswcntrl: Mention minor problem on macOS.
14053         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14055 2018-07-26  Colin Watson  <cjwatson@debian.org>
14057         bootstrap, gnulib-tool: fix translations rsync
14058         Previously, we created files such as $pobase/Makefile.in.in and then the
14059         subsequent rsync would immediately delete them.
14060         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14061         non-.po files in target directory when rsyncing translations.
14062         * gnulib-tool (func_import): Likewise.
14063         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14065 2018-07-25  Jim Meyering  <meyering@fb.com>
14067         bootstrap: reinstate definition fo gnulib_mk.
14068         That variable is used at least by cppi.
14069         * build-aux/bootstrap (gnulib_mk): Restore definition.
14070         This reverts the deletion from v0.1-1844-gc66dba9ba.
14072 2018-07-23  Bruno Haible  <bruno@clisp.org>
14074         doc: For module names, use texinfo markup @code{} or @samp{}.
14075         * doc/alloca.texi: Mark gnulib module names with @code.
14076         * doc/alloca-opt.texi: Likewise.
14077         * doc/quote.texi: Likewise.
14078         * doc/posix-functions/freopen.texi: Likewise.
14079         * doc/posix-functions/open.texi: Likewise.
14080         * doc/posix-functions/readlink.texi: Likewise.
14081         * doc/posix-functions/readlinkat.texi: Likewise.
14082         * doc/posix-functions/stdout.texi: Likewise.
14083         * doc/posix-functions/stderr.texi: Likewise.
14084         * doc/posix-functions/unlink.texi: Likewise.
14085         * doc/posix-functions/unlinkat.texi: Likewise.
14086         * doc/posix-functions/utime.texi: Likewise.
14087         * doc/posix-functions/utimensat.texi: Likewise.
14088         * doc/posix-functions/utimes.texi: Likewise.
14089         * doc/posix-headers/stdint.texi: Likewise.
14090         * doc/glibc-functions/futimesat.texi: Likewise.
14091         * doc/glibc-functions/lutimes.texi: Likewise.
14092         * doc/glibc-functions/memmem.texi: Likewise.
14094 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14096         doc: Avoid some overfull lines in the TeX output.
14097         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14098         @example.
14099         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14100         newline before the long URL.
14101         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14102         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14103         Add line breaks in code snippets.
14105 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14107         hard-locale: simplify by removing hard-locale.m4
14108         * m4/hard-locale.m4: Remove.
14109         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14110         (configure.ac): Do not call gl_HARD_LOCALE.
14112         gnulib-tool: limit line length for git send-email
14113         * gnulib-tool (func_import): Break actioncmd log line
14114         into multiple lines.
14116 2018-07-16  Bruno Haible  <bruno@clisp.org>
14118         ffs: Ensure declaration on mingw.
14119         Reported by Daniel P. Berrangé <berrange@redhat.com>
14120         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14121         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14122         also declared.
14124 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14126         regex-tests: add dependency
14127         * modules/regex-tests (Depends-on): Add gettext-h.
14128         This is needed given the recent changes to regex,
14129         which no longer depends on gettext-h.
14131 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14133         regex: now in sync with glibc
14134         * config/srclist.txt: Gnulib and glibc regex code
14135         are synchronized again.
14137 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14139         renameatu: rename from renameat2
14140         It's looking like Glibc will add a renameat2 function
14141         that is incompatible with Gnulib renameat2; see:
14142         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14143         To help avoid future confusion, rename renameat2 to something else.
14144         Use the name 'renameatu', as the Gnulib function is close to the
14145         Glibc function.  Perhaps someday there will also be a renameat2
14146         Gnulib module, which mimicks the future glibc renameat2, but that
14147         can wait as nobody seems to need such a module now.
14148         * NEWS: Mention this.
14149         * lib/renameatu.c: Rename from lib/renameat2.c.
14150         * lib/renameatu.h: Rename from lib/renameat2.h.
14151         * modules/renameatu: Rename from modules/renameat2.
14152         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14153         All uses of "renameat2" in identifiers or file name
14154         changed to "renameatu", except for two instances in
14155         lib/renameatu.c that deal with the Linux kernel's
14156         renameat2 syscall.
14158 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14160         gnulib-tool: minor tweaks for --gnu-make
14161         * gnulib-tool: Do not allow --gnu-make in test modes,
14162         since they all require automake.
14163         (func_emit_lib_Makefile_am): Don’t emit automake comment
14164         if --gnu-make.
14166         regex: work around conditional-dependencies glitch
14167         * modules/regex (Depends-on): Add langinfo.
14168         Without this change, I had problems building an experimental
14169         version of GNU Emacs.  The symptom of the bug was a message
14170         ‘./configure: line 12726: test: =: unary operator expected’.
14171         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14172         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14173         was unset.  Although gl_FUNC_NL_LANGINFO has
14174         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14175         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14176         --conditional-dependencies sometimes arranges for the
14177         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14178         code.  Since the regex code includes <langinfo.h> it should be
14179         depending on the langinfo module anyway, and this happens to work
14180         around the bug, so install that as a workaround for now.  To
14181         reproduce the original problem, run the following shell script on
14182         the version of Gnulib just before this patch was installed.
14183                 rm -fr foo
14184                 mkdir foo
14185                 cat >foo/configure.ac <<'EOF'
14186                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14187                 gl_EARLY
14188                 gl_INIT
14189                 AC_OUTPUT
14190                 EOF
14191                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14192                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14193                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14194                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14195                 cd foo
14196                 aclocal -I m4
14197                 autoconf
14198                 ./configure --with-included-regex
14200 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14202         wchar: fix bug when checking for ‘inline’
14203         I discovered this when looking into using the regex module
14204         with Emacs.
14205         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14206         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14207         conftest1.c and conftest2.c but these files were not created.
14208         As far as I can see, this check never worked and nobody reported
14209         it until now, which is a bit worrisome.
14211 2018-06-30  Jim Meyering  <meyering@fb.com>
14213         bootstrap: s/--option val/--option=val/
14214         * build-aux/bootstrap (gnulib_tool_options): Change the
14215         spelling of "--option val" pairs to "--option=val", for
14216         aesthetics, and also so that this file no longer triggers
14217         a common help2man syntax-check warning when copied into
14218         projects like grep, gzip, etc.
14220 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14222         manywarnings: omit -Wswitch-default
14223         This should make things more consistent, as we already ignore
14224         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14225         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14226         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14227         Add -Wswitch-default.
14228         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14229         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14230         Remove -Wswitch-default.
14232         regex: revert most trimming
14233         Problems reported by Bruno Haible in:
14234         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14235         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14236         and wctype back in.  lock because regex users shouldn’t
14237         need to know that regex needs locking, and the rest because
14238         gnulib-tool should ordinarily ignore them anyway.
14240 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14242         regex: trim module dependencies
14243         * modules/regex (Depends-on): Remove gettext-h and lock,
14244         since the regex code should work OK without these modules,
14245         and Emacs uses it that way.  Also remove memcmp, memmove,
14246         and wctype, as these modules are obsolete and should not be
14247         needed any more.
14249 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14251         regex: glibc does not use intprops.h
14252         Maybe we can talk glibc into using intprops.h someday, but
14253         now doesn’t seem to be a good time.
14254         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14255         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14256         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14258 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14260         regex: port to recently proposed glibc regex merge
14261         This patch is inspired by Adhemerval Zanella's recent proposal
14262         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14263         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14264         the glibc side, without keeping Gnulib portable.
14265         * lib/regex.h: Fix a problem with glibc installed-header checking,
14266         as follows:
14267         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14268         (_Restrict_arr_): Prefer __restrict_arr if defined,
14269         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14270         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14271         (build_wcs_upper_buffer, build_upper_buffer)
14272         (re_string_translate_buffer, re_string_context_at):
14273         Move decls here from lib/regex_internal.h, for glibc internal tests.
14274         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14275         glibc BZ #18496.
14276         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14277         -Wunused-value.
14278         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14279         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14280         (bitset_mask): Now static inline, and without any __attribute__
14281         ((unused)) decoration, for glibc internal tests.
14283 2018-06-25  Bruno Haible  <bruno@clisp.org>
14285         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14286         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14287         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14288         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14289         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14290         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14291         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14292         / -lthread / -lpth does not get optimized away by a preceding
14293         --as-needed option.
14295 2018-06-25  Bruno Haible  <bruno@clisp.org>
14297         Continue to use spaces for indentation, not tabs.
14298         * MODULES.html.sh: Untabify.
14299         * doc/regex.texi: Likewise.
14300         * lib/acl-internal.c: Likewise.
14301         * lib/dfa.c: Likewise.
14302         * lib/exclude.c: Likewise.
14303         * lib/exclude.h: Likewise.
14304         * lib/get-permissions.c: Likewise.
14305         * lib/gettimeofday.c: Likewise.
14306         * lib/parse-datetime.y: Likewise.
14307         * lib/pselect.c: Likewise.
14308         * lib/set-permissions.c: Likewise.
14309         * lib/time.in.h: Likewise.
14310         * m4/canonicalize.m4: Likewise.
14311         * m4/gc.m4: Likewise.
14312         * m4/gnulib-common.m4: Likewise.
14313         * m4/pthread_sigmask.m4: Likewise.
14314         * m4/vararrays.m4: Likewise.
14315         * tests/test-digest.h: Likewise.
14316         * tests/test-fcntl-h.c: Likewise.
14317         * tests/test-timespec.c: Likewise.
14318         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14320 2018-06-25  Bruno Haible  <bruno@clisp.org>
14322         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14323         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14324         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14325         -Wjump-misses-init.
14327 2018-06-25  Jim Meyering  <meyering@fb.com>
14329         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14330         * lib/acl-internal.h (free_permission_context): Remove that
14331         attribute directive.  Otherwise, it would provoke this from GCC 9:
14332         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14333           returning 'void' [-Werror=attributes]
14335 2018-06-24  Jim Meyering  <meyering@fb.com>
14337         parse-datetime: accommodate gcc-4.8.5
14338         Bruno Haible reported the build failure in
14339         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14340         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14341         on declaration of new local.
14343 2018-06-24  Bruno Haible  <bruno@clisp.org>
14345         af_alg: Fail in continuable manner on Linux/powerpc64le.
14346         Reported by Assaf Gordon <assafgordon@gmail.com>
14347         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14348         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14349         byte send() as the first round.
14351 2018-06-24  Bruno Haible  <bruno@clisp.org>
14353         af_alg: Fix state of stream after sendfile() succeeds.
14354         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14355         the stream is correctly positioned afterwards.
14356         * modules/crypto/af_alg (Depends-on): Add fflush.
14357         * tests/test-digest.h (test_digest_on_files): Verify that after the
14358         operation the stream is positioned at end of file.
14360 2018-06-24  Jim Meyering  <meyering@fb.com>
14362         canon-host: take GCC9's advice rather than ignoring warning
14363         Pádraig Brady suggested not to ignore this GCC9 advice.
14364         * lib/canon-host.c: Undo preceding change.
14365         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14367         parse-datetime.y: avoid spurious GCC 9 warning
14368         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14369         a function local prior to the first "goto fail".  The prior use would
14370         evoke this:
14371         parse-datetime.y: In function 'parse_datetime2':
14372         parse-datetime.y:1791:19: error: jump skips variable initialization \
14373           [-Werror=jump-misses-init]
14374         parse-datetime.y:2385:2: note: label 'fail' defined here
14375         parse-datetime.y:188:43: note: '({anonymous})' declared here
14376         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14378         canon-host.c: avoid spurious GCC 9 warning
14379         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14381         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14382         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14383         * m4/manywarnings.m4: Remove them.
14384         Otherwise, building coreutils, I would see this:
14385         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14386         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14387         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14388           which is also used by default
14389         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14391 2018-06-24  Bruno Haible  <bruno@clisp.org>
14393         af_alg tests: Add another test.
14394         * tests/test-digest.h (test_digest_on_files): Also check a large file
14395         with a skipped header.
14396         * tests/test-md5.c: Include macros.h.
14397         * tests/test-sha1.c: Likewise.
14398         * tests/test-sha256.c: Likewise.
14399         * tests/test-sha512.c: Likewise.
14400         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14401         * modules/crypto/sha1-tests (Files): Likewise.
14402         * modules/crypto/sha256-tests (Files): Likewise.
14403         * modules/crypto/sha512-tests (Files): Likewise.
14405 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14407         maint: clarify comments about sticky EOF
14408         * lib/af_alg.c: Be more direct that we can't
14409         assume stickiness of EOF for portability reasons.
14410         * lib/md5.c: Clarify that this isn't just a glibc issue.
14411         * lib/sha1.c: Likewise.
14412         * lib/sha256.c: Likewise.
14413         * lib/sha512.c: Likewise.
14415 2018-06-24  Bruno Haible  <bruno@clisp.org>
14417         af_alg: Comment and style improvements.
14418         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14419         (afalg_buffer, afalg_stream): Improve comments.
14421 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14423         af_alg: disable kernel hash functions by default
14424         All the kernel routines were seen to be significantly slower
14425         with these relatively recent components on an i3-2310M system:
14426           kernel-4.10.6-200.fc25.x86_64
14427           openssl-1.0.2m-1.fc25.x86_64
14428         sha1 was nearly twice as slow in the kernel for example.
14429         Further considerations why this should not be the default, at:
14430         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14432         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14433         * m4/gl-openssl.m4: Tweak accordingly.
14435 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14437         af_alg: avoid hangs when reading from streams
14438         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14439         and thus avoid doing a fread() when feof() is set.
14440         * lib/md5.c: Ensure feof() is called before fread().
14441         * lib/sha1.c: Likewise.
14442         * lib/sha256.c: Likewise.
14443         * lib/sha512.c: Likewise.
14445 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14447         af_alg: fix error handling when hash not returned
14448         * lib/af_alg.c (afalg_stream): Handle the case where we've
14449         successfully written data to the kernel in the read/write loop,
14450         but the kernel doesn't respond with the hash.
14452 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14454         libc-config: merge from glibc
14455         * lib/cdefs.h (__inline, __restrict):
14456         Copy from current glibc.  This fixes glibc bug 17721,
14457         which Gnulib had already fixed in a different way.
14458         (__nonnull): Lessen the distance from glibc by using the
14459         glibc definition inside an ‘#ifndef __nonnull’.
14460         (__attribute_nonstring__): New macro, copied from
14461         current glibc.
14462         * lib/libc-config.h (__attribute_nonstring__): New undef.
14463         (__restrict): Remove; workaround no longer needed.
14464         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14465         support more compilers than the glibc __inline can.
14467 2018-06-24  Bruno Haible  <bruno@clisp.org>
14469         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14470         * lib/mbrtowc.c (enc_t): New enum type.
14471         (locale_enc, locale_enc_cached): New functions.
14472         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14473         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14474         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14475         instead.
14476         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14477         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14478         * modules/wcwidth (configure.ac): Invoke it.
14480 2018-06-24  Bruno Haible  <bruno@clisp.org>
14482         wchar-single: Fix test failure in wcwidth tests.
14483         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14484         skip the tests in the C locale.
14486 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14488         crypto: mention --without-linux-crypto in --with-openssl --help
14489         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14490         routines take precedence in --with-openssl help output.
14492 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14494         wchar-single: a new module to enable optimizations in wchar replacements
14495         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14496         GNULIB_WCHAR_SINGLE is enabled.
14497         * lib/wcwidth.c (wcwidth): Likewise.
14499 2018-06-23  Bruno Haible  <bruno@clisp.org>
14501         libc-config: Fix conflict with FreeBSD include files.
14502         * lib/cdefs.h (__nonnull): Remove definition.
14503         * lib/libc-config.h (__nonnull): Remove undefinition.
14505 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14507         random_r: do not crash if state is unaligned
14508         Problem reported by Bruce Korb in:
14509         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14510         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14511         with 'cc -O2 -xmemalign=8s'.
14512         * lib/random_r.c: Include string.h, for memcpy.
14513         (get_int32, set_int32): New functions.
14514         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14515         Use them to avoid assumption that state pointer is aligned.
14516         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14517         * tests/test-random_r.c (test_failed): New function.
14518         (main): Use it, to test for alignment bugs.
14520         random_r: omit unnecessary include
14521         * lib/random_r.c: Do not include limits.h.
14523         random, random_r: merge from glibc
14524         * lib/random.c, lib/random_r.c:
14525         Include libc-config.h if !_LIBC, not config.h unilaterally.
14526         * lib/random.c:
14527         Do not include stdint.h or time.h; not needed.
14528         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14529         (unsafe_state): Rename from generator.  All uses changed.
14530         Use C99-style initializers.
14531         (__random, __srandom, __initstate, __setstate): Rename from
14532         non-underscored version, but define it to non-underscored version
14533         on Gnulib.  Add a lock.
14534         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14535         Likewise.
14536         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14537         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14538         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14539         (__random_r): Use uint32 to fix glibc bug 17343.
14540         * modules/random, modules/random_r (Depends-on): Add libc-config.
14541         Depend on stdint only if $HAVE_RANDOM = 0.
14543 2018-06-19  Jim Meyering  <meyering@fb.com>
14545         README-release: also run any check-very-expensive tests
14546         * top/README-release: Adjust instructions so they run the
14547         check-very-expensive tests when there is such a target.
14549 2018-06-18  Bruno Haible  <bruno@clisp.org>
14551         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14552         * m4/pthread_rwlock_rdlock.m4: Add comment.
14553         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14554         are reader-preferring in glibc.
14555         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14556         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14558 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14560         crypto: use byteswap
14561         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14562         * lib/sm3.c: Include <byteswap.h>.
14563         (SWAP): Use its macros rather than reinventing the wheel.
14564         * modules/crypto/md4, modules/crypto/md5-buffer:
14565         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14566         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14567         (Depends-on): Add byteswap.
14569 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14571         gendocs.sh: fix support for legacy --texi2html
14572         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14573         to the default makeinfo invocation.
14574         Reported by Bruce Korb
14576 2018-06-17  Bruno Haible  <bruno@clisp.org>
14578         gettext po infrastructure: Update from current gettext git.
14579         Reported by Akim Demaille <akim@lrde.epita.fr>.
14580         * build-aux/po/Makefile.in.in: Update from current gettext git.
14581         * build-aux/po/remove-potcdate.sin: Likewise.
14582         * config/srclist.txt: Temporarily disable sync for these files.
14584 2018-06-17  Bruno Haible  <bruno@clisp.org>
14586         getloadavg: Return 0 on Windows without Cygwin.
14587         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
14589 2018-06-17  Paul Smith  <psmith@gnu.org>
14591         getloadavg: Allow building on Windows without Cygwin
14592         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
14593         * m4/getloadavg.m4: Check for unistd.h.
14595 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14597         Port crypto/af_alg to GCC 4.8.4
14598         Problem reported by Peter Simons in:
14599         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
14600         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
14602 2018-05-27  Colin Watson  <cjwatson@debian.org>
14604         bootstrap: document source fetching in --help
14605         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
14607 2018-04-09  Colin Watson  <cjwatson@debian.org>
14609         bootstrap: allow non-submodule control of gnulib
14610         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
14611         bootstrap.conf when fetching gnulib using "git clone" or via
14612         GNULIB_SRCDIR.
14614 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14616         crypto: omit stream ops Emacs doesn’t need
14617         * lib/md5.c (md5_stream):
14618         * lib/sha1.c (sha1_stream):
14619         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
14620         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
14621         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
14622         defined.  Emacs needs this, as it does not use the stream
14623         operations and doesn’t need all the af_alg stuff we’ve recently
14624         added.  Perhaps a similar change is needed to the other crypto
14625         modules, but this patch changes only those needed for Emacs.
14626         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
14627         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
14628         New modules, used by Emacs.
14629         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
14630         * modules/crypto/sha512: Rewrite to depend on the new modules.
14632 2018-05-20  Pádraig Brady  <P@draigBrady.com>
14634         fts: avoid a memory leak edge case
14635         * lib/fts.c (fts_open): Set an appropriate fts_level
14636         so that an immediate fts_close() will free the allocation.
14637         * tests/test-fts.c (fts_dealloc): Add a test case which
14638         will trigger under valgrind or address sanitizer.
14639         Fixes https://bugs.gnu.org/31439
14641 2018-05-20  Bruno Haible  <bruno@clisp.org>
14643         wcwidth tests: Fix link error.
14644         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
14645         $(LIBUNISTRING).
14647 2018-05-20  Bruno Haible  <bruno@clisp.org>
14649         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
14650         * modules/regex (Files): Add m4/glibc21.m4.
14652 2018-05-20  Bruno Haible  <bruno@clisp.org>
14654         localcharset: Optimize.
14655         * lib/localcharset.c (alias_table): Comment out no-op mappings for
14656         platforms where these don't matter. This reduces the table size,
14657         which in turn reduces the lookup time.
14659 2018-05-19  Bruno Haible  <bruno@clisp.org>
14661         localcharset: Map the locale encodings found in newer OSes.
14662         * lib/localcharset.c (alias_table): Add mapping for locale encodings
14663         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
14664         IRIX 6.5, Minix 3.3.
14665         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
14667 2018-05-19  Bruno Haible  <bruno@clisp.org>
14669         localcharset: Move mapping tables into the code. Use a binary search.
14670         * lib/localcharset.h: Document the GNU canonical names for character
14671         encodings here.
14672         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
14673         relocatable.h, configmake.h.
14674         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
14675         macros.
14676         (charset_aliases): Remove variable.
14677         (get_charset_aliases): Remove function.
14678         (struct table_entry): New type.
14679         (alias_table, locale_table): New constants.
14680         (locale_charset): Use the alias_table or locale_table to get the
14681         canonicalized encoding name.
14682         * lib/config.charset: Remove file.
14683         * lib/ref-add.sin: Remove file.
14684         * lib/ref-del.sin: Remove file.
14685         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
14686         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
14687         * modules/localcharset (Notice): Remove.
14688         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
14689         glibc21.m4.
14690         (Depends-on): Remove configmake.
14691         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
14692         (Makefile.am): Simplify.
14693         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
14695 2018-05-19  Bruno Haible  <bruno@clisp.org>
14697         localcharset: Add a manual test.
14698         * tests/test-localcharset.c: New file.
14699         * modules/localcharset-tests: New file.
14701 2018-05-19  Bruno Haible  <bruno@clisp.org>
14703         localcharset: Remove support for obsolete platforms.
14704         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
14705         Mac OS X 10.2. Comment out dubious entry for Solaris.
14707 2018-05-19  Jim Meyering  <meyering@fb.com>
14709         gnupload: adjust comment
14710         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
14711         more likely we'll remove the just-added code in a year or two.
14713 2018-05-19  Bruno Haible  <bruno@clisp.org>
14715         gnupload: Fix "gpg-agent is not available in this session" error.
14716         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
14718 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14720         crypto/af_alg: fix --help
14721         * m4/af_alg.m4: Avoid spurious newline in --help output.
14723 2018-05-13  Bruno Haible  <bruno@clisp.org>
14725         nl_langinfo: Fix compilation error on Android.
14726         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
14727         INT_CURR_SYMBOL, etc. only if these items are defined.
14729 2018-05-13  Bruno Haible  <bruno@clisp.org>
14731         truncate: Fix compilation error on Android.
14732         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
14733         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
14734         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
14735         HAVE_TRUNCATE.
14736         * modules/truncate: Likewise.
14737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
14738         not HAVE_TRUNCATE.
14739         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
14740         HAVE_TRUNCATE.
14741         * doc/posix-functions/truncate.texi: Mention the issue.
14743 2018-05-13  Bruno Haible  <bruno@clisp.org>
14745         pthread: Fix compilation error on Android.
14746         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
14747         recursive inclusion of this file.
14749 2018-05-13  Bruno Haible  <bruno@clisp.org>
14751         posix_spawn: Fix compilation error on Android.
14752         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
14753         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
14754         (posix_spawn_file_actions_t): Consider also the case
14755         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
14757 2018-05-13  Bruno Haible  <bruno@clisp.org>
14759         tsearch: Move from K&R C to ANSI C.
14760         * lib/tsearch.c (tfind): Convert definition to ANSI C.
14762 2018-05-13  Bruno Haible  <bruno@clisp.org>
14764         tsearch: Fix compilation error on Android.
14765         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
14766         is 0.
14767         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
14768         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
14769         GNULIB_defined_tsearch is true.
14770         (twalk): Define only if GNULIB_defined_twalk is true.
14771         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
14772         is 0.
14773         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
14774         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
14775         * modules/search (Makefile.am): Substitute HAVE_TWALK.
14777 2018-05-13  Bruno Haible  <bruno@clisp.org>
14779         imaxdiv: Fix compilation error on Android.
14780         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
14781         is not defined.
14782         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
14783         HAVE_DECL_IMAXDIV, is 0.
14784         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
14785         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
14787 2018-05-13  Bruno Haible  <bruno@clisp.org>
14789         Support selective inclusion mechanism of recent mingw.org header files.
14790         Reported by Eli Zaretskii <eliz@gnu.org>.
14791         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
14792         __need_ssize_t, or __need_time_t is defined, just include the system's
14793         <sys/types.h>.
14794         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
14795         include the system's <locale.h>.
14797 2018-05-13  Bruno Haible  <bruno@clisp.org>
14799         Avoid compilation error due to 'mmap' on Android.
14800         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
14801         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
14802         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
14803         Undefine on Android.
14805 2018-05-13  Bruno Haible  <bruno@clisp.org>
14807         Add cross-compilation guesses for Linux systems without glibc.
14808         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
14809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14810         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14811         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14812         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14813         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14814         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14815         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14816         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14817         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
14818         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14819         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14820         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14821         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14823         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14824         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14825         * m4/utimens.m4 (gl_UTIMENS): Likewise.
14827 2018-05-13  Bruno Haible  <bruno@clisp.org>
14829         getpagesize: Fix compilation error on Android.
14830         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
14831         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
14832         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
14833         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
14834         HAVE_GETPAGESIZE accordingly.
14835         * modules/getcwd (Files): Add m4/getpagesize.m4.
14837 2018-05-13  Bruno Haible  <bruno@clisp.org>
14839         tcgetsid: Fix compilation error on Android.
14840         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
14841         AC_CHECK_FUNC.
14843 2018-05-13  Bruno Haible  <bruno@clisp.org>
14845         getpass: Fix configure test for Android.
14846         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
14847         AC_CHECK_FUNC.
14849 2018-05-13  Bruno Haible  <bruno@clisp.org>
14851         ffs: Fix compilation error on Android.
14852         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
14854 2018-05-13  Bruno Haible  <bruno@clisp.org>
14856         mkfifo: Fix compilation error on Android.
14857         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
14858         AC_CHECK_FUNC.
14860 2018-05-13  Bruno Haible  <bruno@clisp.org>
14862         c-strtod: Fix configure test for Android.
14863         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
14864         AC_CHECK_FUNC.
14866 2018-05-13  Bruno Haible  <bruno@clisp.org>
14868         random: Fix compilation error on Android.
14869         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
14870         AC_CHECK_FUNC.
14872 2018-05-13  Bruno Haible  <bruno@clisp.org>
14874         grantpt: Fix compilation error on Android.
14875         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
14876         AC_CHECK_FUNC.
14878 2018-05-13  Bruno Haible  <bruno@clisp.org>
14880         stdioext: Fix compilation errors with newer Android headers.
14881         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
14882         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
14883         fallbacks for Android.
14884         * lib/fpending.c: Update comments.
14885         * lib/fpurge.c: Likewise.
14886         * lib/freadable.h: Likewise.
14887         * lib/freadable.c: Likewise.
14888         * lib/freadahead.c: Likewise.
14889         * lib/freading.h: Likewise.
14890         * lib/freadptr.c: Likewise.
14891         * lib/fseterr.c: Likewise.
14892         * lib/fwritable.h: Likewise.
14893         * lib/fwritable.c: Likewise.
14894         * lib/fwriting.h: Likewise.
14895         * lib/fwriting.c: Likewise.
14897 2018-05-13  Bruno Haible  <bruno@clisp.org>
14899         doc: Add info about Android versions 2.0 to 8.1.
14900         * doc/**/*.texi: Add info about functions in all released versions of
14901         Bionic.
14903 2018-05-12  Bruno Haible  <bruno@clisp.org>
14905         fseeko: On mingw, don't use the hidden function _fseeki64.
14906         Reported by Eli Zaretskii <eliz@gnu.org>.
14907         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
14908         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
14910 2018-05-12  Bruno Haible  <bruno@clisp.org>
14912         glob: Choose 'dirent_type' in a way that works better on mingw.
14913         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
14914         * lib/glob.c (dirent_type): Define as uint_fast32_t.
14916 2018-05-12  Bruno Haible  <bruno@clisp.org>
14918         execute, spawn-pipe: Avoid warning about redefining 'close'.
14919         Reported by Eli Zaretskii <eliz@gnu.org>.
14920         * lib/execute.c: Undefine 'close' before redefining it.
14921         * lib/spawn-pipe.c: Likewise.
14923 2018-05-12  Bruno Haible  <bruno@clisp.org>
14925         nanosleep: Avoid test failure on mingw when it has nanosleep.
14926         Reported by Eli Zaretskii <eliz@gnu.org>.
14927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
14928         If it does not exist, use a simpler test program that does not call
14929         alarm().
14931 2018-05-10  Bruno Haible  <bruno@clisp.org>
14933         lock, cond, thread, tls: Use a different symbol as libpthread witness.
14934         Reported by Devin Hussey <husseydevin@gmail.com>.
14935         Based on a patch by Paul Eggert.
14936         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
14937         as witness of libpthread.
14938         * lib/glthread/cond.h (pthread_in_use): Likewise.
14939         * lib/glthread/thread.h (pthread_in_use): Likewise.
14940         * lib/glthread/tls.h (pthread_in_use): Likewise.
14942 2018-05-10  Bruno Haible  <bruno@clisp.org>
14944         cond tests: Fix compilation error on Solaris.
14945         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
14946         macro.
14948 2018-05-10  Bruno Haible  <bruno@clisp.org>
14950         doc: Add partial info about Android 4.3.
14951         * doc/*-functions/*.texi: Add info about functions that were added
14952         to Bionic between Android 4.3 and Android 9.0.
14954 2018-05-10  Bruno Haible  <bruno@clisp.org>
14956         doc: Add info about Android 9.0.
14957         * doc/**/*.texi: Add info about functions and headers in Bionic from
14958         Android 9.0.
14960 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14962         af_alg: fix my typo in afalg_buffer
14963         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
14964         (afalg_stream): Simplify and avoid the need for a runtime test
14965         at the end.
14967         af_alg: recover better from crypto failures
14968         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
14969         input stream is seekable, by repositioning the stream back to
14970         where it was, possibly by just calling sendfile with an offset
14971         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
14972         cases, which lets our callers try again with user-mode code.
14973         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
14974         instead of on fflush and lseek.
14976         af_alg: distiguish I/O errors better
14977         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
14978         not -EIO, if it’s OK for the caller to try again with user-mode code.
14979         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
14980         some other error number) if fflush fails, as the caller should not
14981         try again that case.
14983         af_alg: avoid gotos
14984         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
14985         gotos, as they were a source of unreliability and made the code a
14986         bit harder to follow.
14988         af_alg: don’t leak file descriptors into children
14989         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
14990         This code should be compiled only on recent GNU/Linux platforms
14991         so we shouldn’t have to also depend on the accept4 module.
14993         af_alg: coalesce socket creation
14994         * lib/af_alg.c (alg_socket): New function.
14995         (afalg_buffer, afalg_stream): Use it.  This avoids some
14996         code duplication and gotos.
14998         af_alg: fix file descriptor leak
14999         * lib/af_alg.c (afalg_stream): Close leak.
15001         af_alg: Pacify --enable-gcc-warnings on GCC 8
15002         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15003         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15005 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15007         af_alg: Pacify --enable-gcc-warnings
15008         Problem reported by Assaf Gordon in:
15009         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15010         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15011         gcc -Wjump-misses-init.
15012         * lib/sha512.c (shaxxx_stream): Now static.
15014 2018-05-06  Bruno Haible  <bruno@clisp.org>
15016         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15017         * lib/af_alg.h (afalg_buffer): New declaration.
15018         * lib/af_alg.c (afalg_buffer): New function.
15020 2018-05-06  Bruno Haible  <bruno@clisp.org>
15022         af_alg: Avoid warnings.
15023         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15024         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15026 2018-05-06  Bruno Haible  <bruno@clisp.org>
15028         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15029         * tests/bench-digest.h: New file.
15030         * tests/bench-md5.c: New file.
15031         * tests/bench-sha1.c: New file.
15032         * tests/bench-sha224.c: New file.
15033         * tests/bench-sha256.c: New file.
15034         * tests/bench-sha384.c: New file.
15035         * tests/bench-sha512.c: New file.
15036         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15037         tests/bench-digest.h.
15038         (Depends-on): Add getrusage, gettimeofday.
15039         (Makefile.am): Add variables to build bench-md5.
15040         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15041         tests/bench-digest.h.
15042         (Depends-on): Add getrusage, gettimeofday.
15043         (Makefile.am): Add variables to build bench-sha1.
15044         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15045         tests/bench-sha256.c, tests/bench-digest.h.
15046         (Depends-on): Add getrusage, gettimeofday.
15047         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15048         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15049         tests/bench-sha512.c, tests/bench-digest.h.
15050         (Depends-on): Add getrusage, gettimeofday.
15051         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15053 2018-05-06  Bruno Haible  <bruno@clisp.org>
15055         af_alg: Fix a resource leak.
15056         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15057         New local variable 'result'.
15059 2018-05-06  Bruno Haible  <bruno@clisp.org>
15061         af_alg: Fix bug with streams that are not at position 0.
15062         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15063         assume that the stream is positioned at position 0.
15064         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15065         of the stream.
15066         * lib/md5.h (md5_stream): Likewise.
15067         * lib/sha1.h (sha1_stream): Likewise.
15068         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15069         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15070         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15072         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15073         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15074         stream that is not positioned at the beginning.
15076 2018-05-06  Bruno Haible  <bruno@clisp.org>
15078         af_alg: Add configure option to enable/disable use of Linux crypto API.
15079         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15080         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15081         USE_LINUX_CRYPTO_API.
15082         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15083         * lib/af_alg.c: Likewise.
15085 2018-05-06  Bruno Haible  <bruno@clisp.org>
15087         Followup to 'af_alg: New module.'.
15088         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15089         * modules/crypto/sha1 (Depends-on): Likewise.
15090         * modules/crypto/sha256 (Depends-on): Likewise.
15091         * modules/crypto/sha512 (Depends-on): Likewise.
15093 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15095         crypto/{md5,sha1,sha256,sha512}: simplify
15096         * lib/md5.c (md5_stream):
15097         * lib/sha1.c (sha1_stream):
15098         * lib/sha256.c (shaxxx_stream):
15099         Simplify, partly by assuming C99.
15100         * lib/sha256.c (shaxxx_stream):
15101         New function, which implements both sha256 and sha224.
15102         Simplify, partly by assuming C99.
15103         (sha256_stream, sha224_stream):
15104         Use it to avoid code duplication, removing a FIXME.
15105         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15106         Likewise.
15108         af_alg: Improve comments.
15109         * lib/af_alg.h: Use imperatives and tighten up wording.
15111 2018-05-05  Bruno Haible  <bruno@clisp.org>
15113         af_alg: Improve comments.
15114         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15116 2018-05-05  Bruno Haible  <bruno@clisp.org>
15118         af_alg: New module.
15119         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15120         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15121         * lib/md5.c: Include "af_alg.h" unconditionally.
15122         (md5_stream): Invoke afalg_stream unconditionally.
15123         * lib/sha1.c: Include "af_alg.h" unconditionally.
15124         (sha1_stream): Invoke afalg_stream unconditionally.
15125         * lib/sha256.c: Include "af_alg.h" unconditionally.
15126         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15127         * lib/sha512.c: Include "af_alg.h" unconditionally.
15128         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15129         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15130         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15131         * modules/crypto/af_alg: New file.
15132         * modules/crypto/md5 (Files): Remove files that are now in the
15133         'crypto/af_alg' module.
15134         (Depends-on): Add crypto/af_alg.
15135         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15136         (Makefile.am): Don't mention af_alg.c here.
15137         * modules/crypto/sha1 (Files): Remove files that are now in the
15138         'crypto/af_alg' module.
15139         (Depends-on): Add crypto/af_alg.
15140         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15141         (Makefile.am): Don't mention af_alg.c here.
15142         * modules/crypto/sha256 (Files): Remove files that are now in the
15143         'crypto/af_alg' module.
15144         (Depends-on): Add crypto/af_alg.
15145         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15146         (Makefile.am): Don't mention af_alg.c here.
15147         * modules/crypto/sha512 (Files): Remove files that are now in the
15148         'crypto/af_alg' module.
15149         (Depends-on): Add crypto/af_alg.
15150         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15151         (Makefile.am): Don't mention af_alg.c here.
15153 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15155         crypto tests: pacify GCC
15156         * tests/test-digest.h (test_digest_on_files):
15157         Don’t assume digest size fits in int (!).
15159         af_alg: minor style improvements
15160         * lib/af_alg.c (afalg_stream): Prefer C99 style
15161         decl-after-statement, since we’re already assuming C99.  Clarify
15162         by strengthening the bind test and omit unnecessary assignment.
15164 2018-05-05  Bruno Haible  <bruno@clisp.org>
15166         af_alg: Fix bug on empty files.
15167         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15168         stream is empty.
15170 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15172         sys-limits.h: new file for crypto and safe I/O
15173         * lib/af_alg.c: Include sys-limits.h.
15174         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15175         (afalg_stream): Also reject negative sizes for sendfile; they
15176         should not happen and the code is a bit cleaner and faster this way.
15177         * lib/safe-read.c: Include sys-limits.h.
15178         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15179         * lib/sys-limits.h: New file, with values and commentary derived
15180         from the old safe-read.c and from GNU Emacs sysdep.c.
15181         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15182         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15183         Add lib/sys-limits.h to Files section.
15185 2018-05-05  Bruno Haible  <bruno@clisp.org>
15187         af_alg: Improve function signature.
15188         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15189         * lib/af_alg.c (afalg_stream): Likewise.
15190         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15192 2018-05-05  Bruno Haible  <bruno@clisp.org>
15194         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15195         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15196         * modules/crypto/sha1 (Depends-on): Likewise.
15197         * modules/crypto/sha256 (Depends-on): Likewise.
15198         * modules/crypto/sha512 (Depends-on): Likewise.
15200 2018-05-05  Bruno Haible  <bruno@clisp.org>
15202         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15203         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15204         * modules/crypto/sha1 (Depends-on): Likewise.
15205         * modules/crypto/sha256 (Depends-on): Likewise.
15206         * modules/crypto/sha512 (Depends-on): Likewise.
15208 2018-05-05  Bruno Haible  <bruno@clisp.org>
15210         af_alg: Add documentation.
15211         * lib/af_alg.h: Add comments.
15213 2018-05-05  Bruno Haible  <bruno@clisp.org>
15215         sha512: Add tests.
15216         * tests/test-sha512.c: New file.
15217         * modules/crypto/sha512-tests: New file.
15219 2018-05-05  Bruno Haible  <bruno@clisp.org>
15221         sha256: Add tests.
15222         * tests/test-sha256.c: New file.
15223         * modules/crypto/sha256-tests: New file.
15225 2018-05-05  Bruno Haible  <bruno@clisp.org>
15227         sha1 tests: Add test for sha1_stream.
15228         * tests/test-sha1.c: Include test-digest.h.
15229         (main): Invoke test_digest_on_files on 'sha1_stream'.
15230         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15232 2018-05-05  Bruno Haible  <bruno@clisp.org>
15234         md5 tests: Add test for md5_stream.
15235         * tests/test-digest.h: New file.
15236         * tests/test-md5.c: Include test-digest.h.
15237         (main): Invoke test_digest_on_files on 'md5_stream'.
15238         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15240 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15242         md5sum: Use AF_ALG when available.
15243         * lib/md5.c: Include af_alg.h.
15244         (md5_stream): Use afalg_stream when available.
15245         * modules/crypto/md5 (Files): Add the af_alg files.
15246         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15247         (Makefile.am): Add af_alg.c.
15249 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15251         sha512sum: Use AF_ALG when available.
15252         * lib/sha512.c: Include af_alg.h.
15253         (sha512_stream, sha384_stream): Use afalg_stream when available.
15254         * modules/crypto/sha512 (Files): Add the af_alg files.
15255         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15256         (Makefile.am): Add af_alg.c.
15258 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15260         sha256sum: Use AF_ALG when available.
15261         * lib/sha256.c: Include af_alg.h.
15262         (sha256_stream, sha224_stream): Use afalg_stream when available.
15263         * modules/crypto/sha256 (Files): Add the af_alg files.
15264         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15265         (Makefile.am): Add af_alg.c.
15267 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15269         sha1sum: Use AF_ALG when available.
15270         * lib/af_alg.h: New file.
15271         * lib/af_alg.c: New file.
15272         * lib/sha1.c: Include af_alg.h.
15273         (sha1_stream): Use afalg_stream when available.
15274         * m4/linux-if-alg.m4: New file.
15275         * modules/crypto/sha1 (Files): Add the new files.
15276         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15277         (Makefile.am): Add af_alg.c.
15279 2018-05-05  Bruno Haible  <bruno@clisp.org>
15281         all: Replace more http URLs by https URLs.
15282         * lib/localename.c: Use https: URL.
15283         * lib/timespec.h: Likewise.
15285 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15287         maint: port more modules to GCC 8
15288         * lib/dirname.h (base_name):
15289         * lib/exclude.h (new_exclude):
15290         * lib/xstrndup.h (xstrndup):
15291         Add malloc attribute.
15292         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15293         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15294         This pacifies GCC 8.
15295         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15296         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15298 2018-05-03  Bruno Haible  <bruno@clisp.org>
15300         Simplify code. Drop support for Borland C++ on Windows.
15301         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15302         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15303         'defined _WIN32'.
15304         * lib/canonicalize-lgpl.c: Likewise.
15305         * lib/classpath.c: Likewise.
15306         * lib/clean-temp.c: Likewise.
15307         * lib/csharpexec.c: Likewise.
15308         * lib/ctime.c: Likewise.
15309         * lib/dosname.h: Likewise.
15310         * lib/dup2.c: Likewise.
15311         * lib/errno.in.h: Likewise.
15312         * lib/error.c: Likewise.
15313         * lib/euidaccess.c: Likewise.
15314         * lib/execute.c: Likewise.
15315         * lib/fcntl.in.h: Likewise.
15316         * lib/fcntl.c: Likewise.
15317         * lib/filename.h: Likewise.
15318         * lib/findprog.c: Likewise.
15319         * lib/flock.c: Likewise.
15320         * lib/fopen.c: Likewise.
15321         * lib/freopen.c: Likewise.
15322         * lib/fstat.c: Likewise.
15323         * lib/fsync.c: Likewise.
15324         * lib/gc-gnulib.c: Likewise.
15325         * lib/get-rusage-data.c: Likewise.
15326         * lib/getaddrinfo.c: Likewise.
15327         * lib/getdelim.c: Likewise.
15328         * lib/getdtablesize.c: Likewise.
15329         * lib/gethostname.c: Likewise.
15330         * lib/getlogin.c: Likewise.
15331         * lib/getlogin_r.c: Likewise.
15332         * lib/getopt.c: Likewise.
15333         * lib/getpagesize.c: Likewise.
15334         * lib/getpass.c: Likewise.
15335         * lib/getrusage.c: Likewise.
15336         * lib/gettimeofday.c: Likewise.
15337         * lib/glob.c: Likewise.
15338         * lib/inttypes.in.h: Likewise.
15339         * lib/isapipe.c: Likewise.
15340         * lib/javaexec.c: Likewise.
15341         * lib/link.c: Likewise.
15342         * lib/localcharset.c: Likewise.
15343         * lib/localename.h: Likewise.
15344         * lib/localename.c: Likewise.
15345         * lib/localtime.c: Likewise.
15346         * lib/lseek.c: Likewise.
15347         * lib/mbsinit.c: Likewise.
15348         * lib/mkdir.c: Likewise.
15349         * lib/msvc-nothrow.h: Likewise.
15350         * lib/nanosleep.c: Likewise.
15351         * lib/nl_langinfo.c: Likewise.
15352         * lib/nonblocking.c: Likewise.
15353         * lib/nproc.c: Likewise.
15354         * lib/open.c: Likewise.
15355         * lib/openpty.c: Likewise.
15356         * lib/pathmax.h: Likewise.
15357         * lib/pipe-filter-aux.c: Likewise.
15358         * lib/pipe-filter-gi.c: Likewise.
15359         * lib/pipe-filter-ii.c: Likewise.
15360         * lib/pipe.c: Likewise.
15361         * lib/pipe2.c: Likewise.
15362         * lib/poll.c: Likewise.
15363         * lib/popen.c: Likewise.
15364         * lib/posix_openpt.c: Likewise.
15365         * lib/printf-parse.c: Likewise.
15366         * lib/progreloc.c: Likewise.
15367         * lib/putenv.c: Likewise.
15368         * lib/read.c: Likewise.
15369         * lib/relocatable.c: Likewise.
15370         * lib/rename.c: Likewise.
15371         * lib/same-inode.h: Likewise.
15372         * lib/secure_getenv.c: Likewise.
15373         * lib/select.c: Likewise.
15374         * lib/sethostname.c: Likewise.
15375         * lib/setlocale.c: Likewise.
15376         * lib/sigaction.c: Likewise.
15377         * lib/sigprocmask.c: Likewise.
15378         * lib/sleep.c: Likewise.
15379         * lib/spawn-pipe.h: Likewise.
15380         * lib/spawn-pipe.c: Likewise.
15381         * lib/spawni.c: Likewise.
15382         * lib/stat-time.h: Likewise.
15383         * lib/stat-w32.c: Likewise.
15384         * lib/stat.c: Likewise.
15385         * lib/stdio.in.h: Likewise.
15386         * lib/stdio-impl.h: Likewise.
15387         * lib/stdio-read.c: Likewise.
15388         * lib/stdio-write.c: Likewise.
15389         * lib/stdlib.in.h: Likewise.
15390         * lib/strerror_r.c: Likewise.
15391         * lib/strftime-fixes.c: Likewise.
15392         * lib/sys_stat.in.h: Likewise.
15393         * lib/sys_types.in.h: Likewise.
15394         * lib/sys_wait.in.h : Likewise.
15395         * lib/system-quote.h: Likewise.
15396         * lib/system-quote.c: Likewise.
15397         * lib/tmpdir.c: Likewise.
15398         * lib/tzset.c: Likewise.
15399         * lib/uname.c: Likewise.
15400         * lib/unistd.in.h: Likewise.
15401         * lib/utime.in.h: Likewise.
15402         * lib/utime.c: Likewise.
15403         * lib/utimecmp.c: Likewise.
15404         * lib/utimens.c: Likewise.
15405         * lib/vasnprintf.c: Likewise.
15406         * lib/vma-iter.h: Likewise.
15407         * lib/vma-iter.c: Likewise.
15408         * lib/wait-process.c: Likewise.
15409         * lib/wcsftime.c: Likewise.
15410         * lib/wctype.in.h: Likewise.
15411         * lib/write.c: Likewise.
15412         * tests/nap.h: Likewise.
15413         * tests/test-cloexec.c: Likewise.
15414         * tests/test-dup-safer.c: Likewise.
15415         * tests/test-dup2.c: Likewise.
15416         * tests/test-dup3.c: Likewise.
15417         * tests/test-fcntl.c: Likewise.
15418         * tests/test-get-rusage-data.c: Likewise.
15419         * tests/test-getaddrinfo.c: Likewise.
15420         * tests/test-getlogin.h: Likewise.
15421         * tests/test-isatty.c: Likewise.
15422         * tests/test-localename.c: Likewise.
15423         * tests/test-mbrtowc-w32.c: Likewise.
15424         * tests/test-nonblocking.c: Likewise.
15425         * tests/test-nonblocking-pipe-main.c: Likewise.
15426         * tests/test-nonblocking-socket-main.c: Likewise.
15427         * tests/test-nonblocking-socket.h: Likewise.
15428         * tests/test-pipe.c: Likewise.
15429         * tests/test-pipe2.c: Likewise.
15430         * tests/test-poll.c: Likewise.
15431         * tests/test-pthread_sigmask1.c: Likewise.
15432         * tests/test-select.h: Likewise.
15433         * tests/test-sethostname2.c: Likewise.
15434         * tests/test-sigprocmask.c: Likewise.
15435         * tests/test-spawn-pipe-child.c: Likewise.
15436         * tests/test-stat-time.c: Likewise.
15437         * tests/test-system-quote-main.c: Likewise.
15438         * tests/test-utimens-common.h: Likewise.
15439         * tests/test-wcrtomb-w32.c: Likewise.
15440         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15441         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15442         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15443         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15444         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15445         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15446         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15448         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15449         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15450         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15451         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15452         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15453         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15454         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15455         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15457 2018-05-02  Bruno Haible  <bruno@clisp.org>
15459         localename: Fix test failures on mingw.
15460         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15461         native Windows.
15462         (gl_locale_name_posix): Move code specific to native Windows here.
15463         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15464         Accept result without charset suffix, as it appears on mingw.
15466 2018-04-28  Paul Smith  <psmith@gnu.org>
15468         bootstrap: Avoid gnulib operations if not needed
15469         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15470         Set $gnulib_extra_files early so it can be overridden in .conf.
15471         Remove redundant --import flag from $gnulib_tool_options.
15472         Set $use_gnulib to false if no gnulib modules or files are needed.
15473         If $use_gnulib is false, don't do anything related to gnulib.
15474         A lot of this is just whitespace (indentation) changes.
15476 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15478         manywarnings: port to GCC 8.0
15479         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15480         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15481         fact that the GCC help message now mentions operands for
15482         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15483         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15484         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15485         and -Wunused-const-variable.
15486         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15487         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15488         -Wmissing-attributes, -Wmultistatement-macros,
15489         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15490         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15492 2018-04-24  Bruno Haible  <bruno@clisp.org>
15494         sys_socket: Make SO_REUSEPORT available across platforms.
15495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15496         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15497         * doc/posix-headers/sys_socket.texi: Mention the issue.
15498         * tests/test-poll.c (SO_REUSEPORT): Remove.
15499         * tests/test-select.h: Include <sys/socket.h>.
15500         (SO_REUSEPORT): Remove.
15501         * modules/select-tests (Depends-on): Add 'sys_socket'.
15503 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15505         localcharset: short-circuit the search for an alias on a Mac
15506         * lib/localcharset.c (get_charset_aliases): Add a tautological
15507         UTF-8 entry to speed up the search for this case.
15508         Most machines default to a UTF-8 locale nowadays, so begin the
15509         list of aliases with a dummy UTF-8 entry so it will be found
15510         immediately and a time-consuming search through the rest of
15511         the list is avoided.
15513 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15515         fts: add comment
15516         * lib/fts.c (fts_build): Explain why ==, not >.
15517         See remark by Bernhard Voelker in:
15518         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15520         fts: fix bug in find across filesystems
15521         This fixes a bug I introduced last summer.
15522         Problem reported by Kamil Dudka in:
15523         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15524         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15525         (leaf_optimization):
15526         New arg for file descriptor.  All callers changed.
15527         (fts_build): Check for whether inodes should be sorted
15528         before closing the directory.
15530 2018-04-07  Bruno Haible  <bruno@clisp.org>
15532         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15533         Reported by Genki Sky <sky@genki.is>.
15534         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15535         version 0.9.10 or newer.
15536         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15537         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15538         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15539         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15540         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15542 2018-04-07  Bruno Haible  <bruno@clisp.org>
15544         execute: Update comment.
15545         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15547 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15549         fts: treat CIFS like NFS
15550         Problem reported by Kamil Dudka in:
15551         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15552         * lib/fts.c (S_MAGIC_CIFS): New macro.
15553         (dirent_inode_sort_may_be_useful, leaf_optimization):
15554         Treat CIFS like NFS.
15556 2018-03-28  Bruno Haible  <bruno@clisp.org>
15558         c-stack: Fix possible build failure on some platforms.
15559         * lib/c-stack.c (die): Define whenever this function is referenced.
15561 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15563         time_rz: fix workaround for Mac OS X 10.6 infloop
15564         Problems reported by Charles A. Roelli (Bug#27736#117).
15565         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15566         Also, discard output, which clutters the 'configure' log.
15568 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15570         havelib: port to Solaris 10 /bin/sh
15571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15572         instead of '! test EXPR'.
15574 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15576         time_rz: work around Mac OS X 10.6 infloop
15577         * doc/posix-functions/localtime.texi:
15578         * doc/posix-functions/localtime_r.texi: Mention the bug.
15579         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15580         better to fix localtime and localtime_r instead, but that would be
15581         more work and is not needed to fix the Emacs problem.
15582         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15584 2018-03-24  Jim Meyering  <meyering@fb.com>
15586         test-version-etc.sh: don't use diff directly: use init.sh's compare
15587         We'd rather not sacrifice readable "diff -u" output even for
15588         "diff -c" output (not supported by busybox) or for even less
15589         readable ed-style "diff" output.  So use init.sh's compare function
15590         * tests/test-version-etc.sh: Source init.sh and add "." to path.
15591         Remove "./" from invocation of test-version-etc, so we use path.
15592         And s/diff/compare/.
15593         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
15594         to get init.sh.
15595         Prompted by Eric Blake's comments in
15596         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
15598 2018-03-24  Bruno Haible  <bruno@clisp.org>
15600         javacomp-script, javacomp: Add support for Java 10.
15601         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
15602         target-version 10.
15603         * lib/javaversion.h: Update comments.
15604         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15605         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15606         TARGET_VERSION_BOUND, target_version_index,
15607         corresponding_classfile_version): Accept source_version 10 and
15608         target_version 10.
15609         * lib/javacomp.h: Update comments accordingly.
15611 2018-03-24  Bruno Haible  <bruno@clisp.org>
15613         javacomp-script, javacomp: Update comments.
15614         * m4/javacomp.m4: Update comments regarding gcj.
15615         * lib/javacomp.h: Likewise.
15617 2018-03-24  Bruno Haible  <bruno@clisp.org>
15619         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
15620         * lib/javaversion.h: Update comments.
15621         * lib/javacomp.h: Likewise.
15622         * lib/javacomp.c (default_target_version, source_version_index,
15623         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
15624         "1.9".
15625         (TARGET_VERSION_BOUND): Bump to 9.
15626         (target_version_index, corresponding_classfile_version): Recognize "9"
15627         instead of "1.9".
15628         (get_source_version_for_javac): New function.
15629         (is_envjavac_nongcj_usable, is_javac_usable): Add
15630         source_version_for_javac argument.
15631         (compile_java_class): Determine and pass source_version_for_javac.
15632         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
15633         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
15634         appropriate.
15636 2018-03-23  Jim Meyering  <meyering@fb.com>
15638         test-version-etc.sh: port to diff without -c
15639         * tests/test-version-etc.sh: Don't use diff's -c option.
15640         This caused spurious test failure on Alpine Linux, which
15641         uses busybox's diff. Reported by Assaf Gordon in
15642         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
15644 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15646         c-stack: port to recent GCC build
15647         Problem reported by The Fireplace (Bug#30913).
15648         * lib/c-stack.c (die): Define only if used.
15650 2018-03-20  Bruno Haible  <bruno@clisp.org>
15652         euidaccess: Port to native Windows.
15653         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
15654         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
15656 2018-03-19  Bruno Haible  <bruno@clisp.org>
15658         javacomp: Add support for Java 7, 8, 9.
15659         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15660         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15661         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
15662         and target_version 1,7, 1.8, 1.9.
15663         * lib/javacomp.h: Update comments accordingly.
15665 2018-03-19  Bruno Haible  <bruno@clisp.org>
15667         javacomp-script: Add support for Java 9.
15668         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
15669         target-version 1.9.
15671 2018-03-16  Bruno Haible  <bruno@clisp.org>
15673         glob: Don't compile replacements on recent glibc systems.
15674         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
15675         REPLACE_GLOB is 0, include the system's <glob.h> and use
15676         _GL_CXXALIAS_SYS.
15677         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
15678         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
15679         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
15680         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
15681         Remove snippet/warn-on-use.
15682         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
15683         (Makefile.am): Create glob.h always. Update list of substitutions in
15684         glob.h. Don't depend on $(WARN_ON_USE_H).
15686 2018-03-16  Bruno Haible  <bruno@clisp.org>
15688         glob: Fix link error on native Windows.
15689         * modules/glob (Depends-on): Add 'lstat'.
15691 2018-03-15  Bruno Haible  <bruno@clisp.org>
15693         glob: Fix compilation error in C++ mode.
15694         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
15696 2018-03-15  Bruno Haible  <bruno@clisp.org>
15698         host-cpu-c-abi: Support for RISC-V CPU.
15699         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
15700         riscv32 and riscv64 ABIs.
15701         References:
15702         https://github.com/riscv/riscv-toolchain-conventions
15703         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
15704         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
15706 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15708         fflush: be more paranoid about libio.h change
15709         Suggested by Eli Zaretskii in:
15710         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
15711         * lib/fbufmode.c (fbufmode):
15712         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15713         (disable_seek_optimization, rpl_fflush):
15714         * lib/fpending.c (__fpending):
15715         * lib/fpurge.c (fpurge):
15716         * lib/freadable.c (freadable):
15717         * lib/freadahead.c (freadahead):
15718         * lib/freading.c (freading):
15719         * lib/freadptr.c (freadptr):
15720         * lib/freadseek.c (freadptrinc):
15721         * lib/fseeko.c (fseeko):
15722         * lib/fseterr.c (fseterr):
15723         * lib/fwritable.c (fwritable):
15724         * lib/fwriting.c (fwriting):
15725         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
15727 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15729         maint: write-file-hooks -> before-save-hook
15730         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
15731         it's time to use the recommended replacement.
15732         Problem reported by Glenn Morris in:
15733         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
15734         * build-aux/announce-gen, build-aux/bootstrap:
15735         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
15736         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
15737         * build-aux/gnu-web-doc-update, build-aux/gnupload:
15738         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
15739         * build-aux/update-copyright, build-aux/useless-if-before-free:
15740         * build-aux/vc-list-files:
15741         Update hook usage for files where Gnulib is the canonical source.
15743 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15745         binary-io: pacify gcc -Wunused-parameter
15746         Problem reported by Reuben Thomas in:
15747         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
15748         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
15749         Use _GL_UNUSED where appropriate.
15751         fflush: adjust to glibc 2.28 libio.h removal
15752         Problem reported by Daniel P. Berrangé in:
15753         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
15754         * lib/fbufmode.c (fbufmode):
15755         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15756         (disable_seek_optimization, rpl_fflush):
15757         * lib/fpending.c (__fpending):
15758         * lib/fpurge.c (fpurge):
15759         * lib/freadable.c (freadable):
15760         * lib/freadahead.c (freadahead):
15761         * lib/freading.c (freading):
15762         * lib/freadptr.c (freadptr):
15763         * lib/freadseek.c (freadptrinc):
15764         * lib/fseeko.c (fseeko):
15765         * lib/fseterr.c (fseterr):
15766         * lib/fwritable.c (fwritable):
15767         * lib/fwriting.c (fwriting):
15768         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
15769         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
15770         Define if not already defined.
15772 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
15774         environ: fix link error on 32-bit Cygwin
15775         Problem reported for GNU Emacs by Ken Brown in:
15776         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
15777         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
15779 2018-02-24  Bruno Haible  <bruno@clisp.org>
15781         mbrtowc tests: Fix regression on glibc.
15782         Reported by Bernhard Voelker.
15783         * tests/test-mbrtowc.c (main): Fix expected value of wc.
15785 2018-02-24  Bruno Haible  <bruno@clisp.org>
15787         striconveha, uniconv/*: Avoid test failures on musl libc.
15788         * tests/iconvsupport.c: New file.
15789         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
15790         does not support the ISO-2022-JP-2 encoding.
15791         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15792         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15793         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15794         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15795         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15796         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15797         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
15798         (Makefile.am): Link test-striconveha with iconvsupport.o.
15799         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
15800         tests/iconvsupport.c.
15801         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
15802         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
15803         tests/iconvsupport.c.
15804         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
15805         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
15806         tests/iconvsupport.c.
15807         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
15808         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
15809         tests/iconvsupport.c.
15810         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
15811         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
15812         tests/iconvsupport.c.
15813         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
15814         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
15815         tests/iconvsupport.c.
15816         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
15818 2018-02-24  Bruno Haible  <bruno@clisp.org>
15820         localename: Add support for musl libc.
15821         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
15822         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
15823         on Linux platforms which define NL_LOCALE_NAME.
15825 2018-02-24  Bruno Haible  <bruno@clisp.org>
15827         mbrtowc tests: Don't make assumptions about the charset the C locale.
15828         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
15829         particular mapping in the C locale.
15831 2018-02-24  Bruno Haible  <bruno@clisp.org>
15833         ptsname_r: Don't expect that this function sets errno.
15834         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
15835         from ptsname_r().
15836         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
15838 2018-02-23  Bruno Haible  <bruno@clisp.org>
15840         xmalloca: pacify gcc -Wbad-function-cast
15841         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
15843 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15845         nl_langinfo: pacify gcc -Wunused-function
15846         * lib/nl_langinfo.c (ctype_codeset): Do not define if
15847         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
15848         this case.  Without this change, I got a diagnostic when building
15849         coreutils on Fedora 27 with gcc 7.3.1 20180130.
15851         same: pacify gcc -Wunused-variable
15852         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
15853         Omit unused variable.
15855         malloca: pacify gcc -Wbad-function-cast
15856         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
15857         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
15858         To pacify GCC, I had to cast alloca’s result to some type other
15859         than void * before casting that to uintptr_t.
15861 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15863         utimecmp: new function utimecmpat
15864         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
15865         Do not include utimens.h.
15866         (utimecmpat): New function, generalizing utimecmp.
15867         (utimecmp): Now a thin layer around utimecmpat.
15868         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
15869         utimensat instead of on lstat and utimens.
15871         same: new function same_nameat
15872         * lib/same.c: Include fcntl.h.
15873         * lib/same.c (same_nameat): New function, generalizing same_name.
15874         (same_name): Now a thin layer around same_nameat.
15875         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
15876         * modules/same (Depends-on): Depend on fstatat, openat.
15878 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
15880         warnings: Add support for Objective C.
15881         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
15882         macro.
15884 2018-02-17  Bruno Haible  <bruno@clisp.org>
15886         lock: Fix test-once1 crash on FreeBSD11.
15887         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
15888         'pthread_create', not 'pthread_cancel'.
15890 2018-02-17  Bruno Haible  <bruno@clisp.org>
15892         lock: Add test of gl_once.
15893         * tests/test-once.c: New file.
15894         * modules/lock-tests (Files): Add it.
15895         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
15897 2018-02-17  Bruno Haible  <bruno@clisp.org>
15899         thread: Fix compilation error on IRIX.
15900         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
15901         needed; include it outside the C++ extern "C" {} block.
15902         * doc/posix-headers/pthread.texi: Mention the problem with
15903         pthread_atfork on IRIX.
15905 2018-02-04  Bruno Haible  <bruno@clisp.org>
15907         nl_langinfo: Override the system's nl_langinfo() when needed.
15908         Reported by Jim Meyering.
15909         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
15910         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
15912 2018-02-04  Bruno Haible  <bruno@clisp.org>
15914         signal-h, monetary, strings: Fix build failure in some cases.
15915         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15916         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
15917         as delimiter in sed command, not '|'.
15918         * modules/monetary (Makefile.am): Likewise.
15919         * modules/strings (Makefile.am): Likewise.
15921 2018-02-03  Jim Meyering  <meyering@fb.com>
15923         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
15924         * top/maint.mk (sc_file_system): Don't complain about
15925         "/proc/filesystems".
15927 2018-02-03  Bruno Haible  <bruno@clisp.org>
15929         stdlib: Fix compilation error on OpenIndiana.
15930         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
15931         <sys/time.h>.
15932         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15933         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15935 2018-02-03  Bruno Haible  <bruno@clisp.org>
15937         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
15938         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
15939         and use $EGREP instead of 'grep -E'.
15940         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
15941         'grep -E'.
15943 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15945         malloca: Add a compile-time verification.
15946         * lib/malloca.c (small_t): Verify that it is wide enough.
15947         * modules/malloca (Depends-on): Add verify.
15949 2018-02-02  Bruno Haible  <bruno@clisp.org>
15951         malloca: Add an argument check.
15952         Suggested by Paul Eggert.
15953         * lib/malloca.c (freea): Check against an invalid argument.
15955 2018-02-02  Bruno Haible  <bruno@clisp.org>
15957         localename: Add support for OpenIndiana.
15958         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
15959         Solaris 11 variants with uselocale() but without getlocalename_l().
15961 2018-02-02  Bruno Haible  <bruno@clisp.org>
15963         malloca, xmalloca: Make multithread-safe.
15964         Reported by Florian Weimer <fweimer@redhat.com>.
15965         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
15966         * lib/malloca.h (malloca): In the stack allocation case, return a
15967         pointer that is a multiple of 2 * sa_alignment_max.
15968         (sa_increment): Remove enum item.
15969         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
15970         a pointer that is a multiple of 2 * sa_alignment_max.
15971         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
15972         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
15973         HASH_TABLE_SIZE, mmalloca_results): Remove.
15974         (small_t): New type.
15975         (mmalloca, free): Rewritten.
15976         * lib/malloca.valgrind: Remove file.
15977         * modules/malloca (Files): Remove it.
15978         (Depends-on): Remove verify.
15980 2018-01-31  Bruno Haible  <bruno@clisp.org>
15982         environ: Fix link error on 64-bit Cygwin.
15983         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
15984         __declspec(dllimport) attribute.
15985         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
15987 2018-01-30  Bruno Haible  <bruno@clisp.org>
15989         get-rusage-data: Add support for Minix 3.
15990         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
15992 2018-01-30  Bruno Haible  <bruno@clisp.org>
15994         vma-iter: Add support for Minix 3.
15995         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
15996         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
15998 2018-01-27  Bruno Haible  <bruno@clisp.org>
16000         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16001         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16003         _HPUX_ALT_XOPEN_SOCKET_API.
16004         * modules/accept (Depends-on): Add 'extensions'.
16005         * modules/getpeername (Depends-on): Likewise.
16006         * modules/getsockname (Depends-on): Likewise.
16007         * modules/getsockopt (Depends-on): Likewise.
16008         * modules/recvfrom (Depends-on): Likewise.
16009         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16010         * doc/posix-functions/getpeername.texi: Likewise.
16011         * doc/posix-functions/getsockname.texi: Likewise.
16012         * doc/posix-functions/getsockopt.texi: Likewise.
16013         * doc/posix-functions/recvfrom.texi: Likewise.
16015 2018-01-27  Bruno Haible  <bruno@clisp.org>
16017         getsockname tests: More tests.
16018         * tests/test-getsockname.c (open_server_socket): New function, mostly
16019         copied from test-poll.c.
16020         (main): Check that getsockname fills in addr.
16021         * modules/getsockname-tests (Depends-on): Add the necessary
16022         dependencies.
16023         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16025 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16027         manywarnings: fix maintainer comment
16028         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16029         it does not mistakenly think that ‘-1)’ is an option.
16031 2018-01-26  Bruno Haible  <bruno@clisp.org>
16033         langinfo: Fix last commit.
16034         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16035         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16037 2018-01-24  Bruno Haible  <bruno@clisp.org>
16039         langinfo, nl_langinfo: Add support for alternative month names.
16040         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16041         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16042         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16043         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16044         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16045         * doc/posix-functions/nl_langinfo.texi: Likewise.
16047 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16049         Merge strftime.c changes from glibc
16050         This incorporates:
16051         2017-11-14 [BZ #10871] Implement alternative month names
16052         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16053         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16054         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16055         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16056         Use locale_t, not __locale_t.
16057         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16058         (__strftime_internal): Add support for alternate months.
16060 2018-01-23  Bruno Haible  <bruno@clisp.org>
16062         doc: Mention another prerequisite for using Gnulib.
16063         Reported at <https://stackoverflow.com/questions/48378214/>.
16064         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16065         AC_CONFIG_HEADERS.
16067 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16069         build: GuixSD doesn't have /bin/bash
16070         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16072 2018-01-21  Bruno Haible  <bruno@clisp.org>
16074         Avoid test failures on Microsoft Windows Subsystem for Linux.
16075         * tests/test-fcntl.c (main): Allow a different errno.
16076         * tests/test-rename.h (test_rename): Likewise.
16077         * tests/test-renameat.c (main): Likewise.
16078         * tests/test-renameat2.c (main): Likewise.
16080 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16082         filenamecat: make base a suffix of result
16083         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16084         (mfile_name_concat): Always make BASE a suffix of the result, as
16085         cp expects this.  To implement this, separate with '.' instead of
16086         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16087         * tests/test-filenamecat.c (main): Adjust tests to match
16088         current behavior.  Check that BASE_IN_RESULT points to
16089         a copy of BASE and is a suffix of the resultk, and that DIR
16090         is a prefix of the result that is no longer than the prefix
16091         indicated by BASE_IN_RESULT.
16093 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16095         update-copyright: Handle use of ©
16096         * build-aux/update-copyright ($circle_c_re): Update regex to
16097         handle use of © in headers.
16099 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16101         Fix -Wundef warning in user-included header lib/cdefs.h.
16102         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16104 2018-01-04  Bruno Haible  <bruno@clisp.org>
16106         pthread_sigmask: Avoid compilation error on mingw.
16107         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16108         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16109         macro.
16111 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16113         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16114         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16115         Suggested by Bob Proulx (Bug#29968).
16116         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16118 2018-01-02  Eric Blake  <eblake@redhat.com>
16120         stat-time: silence -Wunused-parameter regression
16121         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16122         Prefer attribute over cast-to-void.
16123         (stat_time_normalize): Mark st as potentially unused.
16125 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16127         test-framework-sh: avoid netstat
16128         Problem reported by Kristýna Streitová (Bug#29947).
16129         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16130         deprecated on SuSE and it's not that important anyway.
16132 2018-01-01  Jim Meyering  <meyering@fb.com>
16134         update-copyright: add code to handle more special cases
16135         After running "make update-copyright" this year, five files
16136         required additional manual changes.  Automate those adjustments
16137         for next year.
16138         * Makefile (_year_and_prev): Define.
16139         (update-copyright): Add perl commands to induce this year's post-
16140         update-copyright adjustments.
16142 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16144         version-etc: new year
16145         * build-aux/gendocs.sh (version):
16146         * doc/gendocs_template:
16147         * doc/gendocs_template_min:
16148         * doc/gnulib.texi:
16149         * lib/version-etc.c (COPYRIGHT_YEAR):
16150         Update copyright dates by hand in templates and the like.
16152         maint: fix 'make update-copyright'
16153         * Makefile (update-copyright): Adjust to 2016-11-23 change
16154         to config/srclist-update, which changed the format of srclist.txt.
16156 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16158         chdir-safer: remove this module
16159         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16160         * NEWS: Document removal.
16161         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16162         * modules/chdir-safer: Remove these files.
16164 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16166         Add cross-compilation results for GNU/Hurd.
16167         * m4/calloc.m4: Add GNU/Hurd guess.
16168         * m4/cbrtl.m4: Likewise.
16169         * m4/ceil.m4: Likewise.
16170         * m4/ceilf.m4: Likewise.
16171         * m4/ceill.m4: Likewise.
16172         * m4/chown.m4: Likewise.
16173         * m4/duplocale.m4: Likewise.
16174         * m4/exp2l.m4: Likewise.
16175         * m4/expm1.m4: Likewise.
16176         * m4/fchdir.m4: Likewise.
16177         * m4/floor.m4: Likewise.
16178         * m4/floorf.m4: Likewise.
16179         * m4/fmod.m4: Likewise.
16180         * m4/fmodf.m4: Likewise.
16181         * m4/fmodl.m4: Likewise.
16182         * m4/getcwd.m4: Likewise.
16183         * m4/getgroups.m4: Likewise.
16184         * m4/gettimeofday.m4: Likewise.
16185         * m4/hypot.m4: Likewise.
16186         * m4/hypotf.m4: Likewise.
16187         * m4/hypotl.m4: Likewise.
16188         * m4/link-follow.m4: Likewise.
16189         * m4/link.m4: Likewise.
16190         * m4/linkat.m4: Likewise.
16191         * m4/log.m4: Likewise.
16192         * m4/log10.m4: Likewise.
16193         * m4/log10f.m4: Likewise.
16194         * m4/log1p.m4: Likewise.
16195         * m4/log1pf.m4: Likewise.
16196         * m4/log1pl.m4: Likewise.
16197         * m4/log2.m4: Likewise.
16198         * m4/log2f.m4: Likewise.
16199         * m4/logf.m4: Likewise.
16200         * m4/lstat.m4: Likewise.
16201         * m4/malloc.m4: Likewise.
16202         * m4/mbrlen.m4: Likewise.
16203         * m4/mbrtowc.m4: Likewise.
16204         * m4/mkdir.m4: Likewise.
16205         * m4/mkfifo.m4: Likewise.
16206         * m4/mknod.m4: Likewise.
16207         * m4/mkstemp.m4: Likewise.
16208         * m4/modf.m4: Likewise.
16209         * m4/modff.m4: Likewise.
16210         * m4/modfl.m4: Likewise.
16211         * m4/printf.m4: Likewise.
16212         * m4/pselect.m4: Likewise.
16213         * m4/ptsname.m4: Likewise.
16214         * m4/putenv.m4: Likewise.
16215         * m4/readlink.m4: Likewise.
16216         * m4/realloc.m4: Likewise.
16217         * m4/remainder.m4: Likewise.
16218         * m4/remainderf.m4: Likewise.
16219         * m4/remainderl.m4: Likewise.
16220         * m4/rmdir.m4: Likewise.
16221         * m4/round.m4: Likewise.
16222         * m4/roundf.m4: Likewise.
16223         * m4/roundl.m4: Likewise.
16224         * m4/select.m4: Likewise.
16225         * m4/setenv.m4: Likewise.
16226         * m4/signbit.m4: Likewise.
16227         * m4/sleep.m4: Likewise.
16228         * m4/stat.m4: Likewise.
16229         * m4/strerror.m4: Likewise.
16230         * m4/strtok_r.m4: Likewise.
16231         * m4/symlink.m4: Likewise.
16232         * m4/symlinkat.m4: Likewise.
16233         * m4/trunc.m4: Likewise.
16234         * m4/truncf.m4: Likewise.
16235         * m4/truncl.m4: Likewise.
16236         * m4/tzset.m4: Likewise.
16237         * m4/ungetc.m4: Likewise.
16238         * m4/usleep.m4: Likewise.
16239         * m4/wcwidth.m4: Likewise.
16241 2017-12-28  Bruno Haible  <bruno@clisp.org>
16243         gnulib-tool: Make --conditional-dependencies work better.
16244         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16245         * gnulib-tool (Options): Don't reject the combination of
16246         --conditional-dependencies with --with-tests.
16247         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16248         Don't reference $modules.
16249         (func_import, func_create_testdir): Pass it.
16251 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16253         regex: use re_malloc etc. consistently
16254         Problem and original patch reported by Arnold Robbins in:
16255         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16256         * lib/regcomp.c (re_comp):
16257         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16258         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16260 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16261             Paul Eggert  <eggert@cs.ucla.edu>
16263         glob: Silence warning about void pointer arithmetic.
16264         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16265         arithmetic.
16267 2017-12-15  Bruno Haible  <bruno@clisp.org>
16269         spawn-pipe: Silence a clang warning.
16270         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16271         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16272         in this file.
16274 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16276         explicit_bzero: port to macOS + Clang 9.0.0
16277         Problem reported by Marcus Johnson (Bug#29658).
16278         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16279         Don’t use asm.
16281 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16283         doc: Improve explanation of supporting relocatable libraries.
16284         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16285         properly how to build the relocatable module for
16286         libraries. (Method and example code from Bruno Haible.)
16288 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16290         doc: Use better texinfo tags in a few cases.
16291         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16292         instead of @samp in a few places.
16294 2017-12-11  Bruno Haible  <bruno@clisp.org>
16296         unistr/base: Update comment.
16297         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16299 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16301         test-faccessat.c: unlink temp file to avoid subsequent test failure
16302         * tests/test-faccessat.c: Remove the file to avoid failure
16303         to open the file on subsequent runs due to being created
16304         with no permissions.
16306 2017-12-10  Bruno Haible  <bruno@clisp.org>
16308         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16309         * doc/gnulib-tool.texi (Modified build rules): New node.
16311 2017-12-10  Bruno Haible  <bruno@clisp.org>
16313         doc: Tweak wording.
16314         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16315         "binaries".
16317 2017-12-05  Sam Steingold  <sds@gnu.org>
16318             Bruno Haible  <bruno@clisp.org>
16320         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16321         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16322         AC_EGREP_CPP pattern.
16324 2017-12-03  Bruno Haible  <bruno@clisp.org>
16326         all: Replace more http URLs by https URLs.
16327         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16328         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16329         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16330         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16332 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16334         Port better to CentOS 5
16335         Problems reported by Tom G. Christensen in:
16336         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16337         * doc/glibc-functions/strverscmp.texi (strverscmp):
16338         Document strverscmp bug with glibc 2.9 and earlier.
16339         * doc/posix-functions/tzset.texi (tzset):
16340         Document that TZ with angle brackets is POSIX-2001 and later.
16341         * tests/test-nstrftime.c: Include unistd.h.
16342         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16343         (TZ): Use it to skip tests with angle brackets in TZ,
16344         for older systems.
16346         stat: add missing module dependencies
16347         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16348         Add stat-time.
16350 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16352         stat: fix compilation failure on macOS Sierra
16353         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16354         https://savannah.gnu.org/bugs/?52546
16355         * lib/stat.c: Add missing include of stat-time.h.
16357 2017-11-28  Jim Meyering  <meyering@fb.com>
16359         test-faccessat.c: correct BASE definition to avoid parallel test failure
16360         * tests/test-faccessat.c (BASE): Define using this file's name, not
16361         that of test-lstat.c.  Using the latter caused this test to fail
16362         sometimes when run concurrently with test-lstat.
16364 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16366         unicase: fix VPATH build
16367         * modules/unicase/special-casing (Makefile.am): Ensure that the
16368         base directory is created when generating
16369         unicase/special-casing.h.
16371 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16373         libunistring: update to Unicode 9.0.0
16374         * lib/gen-uni-tables.c (fill_properties): Recognize
16375         Sentence_Terminal and Prepended_Concatenation_Mark.
16376         (is_property_default_ignorable_code_point): Exclude U+08E2.
16377         (fill_arabicshaping): Allow missing whitespace when parsing;
16378         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16379         (output_blocks): Increase the element size of the level1 table to
16380         accommodate more blocks.
16381         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16382         Update each class according to the standard.
16383         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16384         E_Base_GAZ characters.
16385         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16386         Glue_After_Zwj, and E_Base_GAZ characters.
16387         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16388         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16389         enum value.
16390         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16391         value.
16392         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16393         LBP_ZWJ, LBP_EB, and LBP_EM.
16394         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16395         enum value.
16396         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16397         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16398         declaration.
16399         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16400         (uniwbrk_table): Implement WB14.
16401         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16402         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16403         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16404         uc-is-grapheme-break.
16405         * modules/unigbrk/uc-grapheme-breaks: New module.
16406         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16407         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16408         enum value.
16409         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16410         * lib/unigbrk/u-grapheme-breaks.h: New file.
16411         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16412         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16413         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16414         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16415         29.
16416         * tests/unigbrk/test-uc-gbrk-prop.c
16417         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16418         GBP_GAZ, and GBP_EBG.
16419         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16420         * tests/unigbrk/test-uc-is-grapheme-break.c
16421         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16422         GBP_GAZ, and GBP_EBG.
16423         (main): Skip unsupported rules involving 3 or more characters,
16424         namely GB10, GB12, and GB13.
16425         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16426         * all generated files under lib/uni* and tests/uni*: Regenerate.
16427         * all the affected modules: Bump version.
16429 2017-11-26  Bruno Haible  <bruno@clisp.org>
16431         strfmon_l: Fix compilation error with glibc 2.5.
16432         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16433         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16434         * lib/monetary.in.h: Include also <locale.h>.
16436 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16438         posixtm: remove PDS_LEADING_YEAR
16439         This changes the API slightly, in a hopefully-innocuous way.
16440         Without this change the code had undefined behavior when a
16441         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16442         Problem reported by Pádraig Brady in:
16443         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16444         * NEWS: Mention this.
16445         * lib/posixtm.c (posix_time_parse): Treat the absence of
16446         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16447         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16448         present, but define it as zero, for compatibility with existing
16449         source code).  All other PDS_* values moved up.
16450         * tests/test-posixtm.c (LY): New macro.
16451         (T): Use it.  Do not expect a particular numeric encoding
16452         for PDS_CENTURY etc.
16454 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16456         stat: work around Solaris bug with tv_nsec < 0
16457         * doc/posix-functions/fstat.texi (fstat):
16458         * doc/posix-functions/fstatat.texi (fstatat):
16459         * doc/posix-functions/lstat.texi (lstat):
16460         * doc/posix-functions/stat.texi (stat):
16461         Mention Solaris 11 bug.
16462         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16463         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16464         * lib/lstat.c (rpl_lstat):
16465         * lib/stat.c (rpl_stat):
16466         Normalize resulting timestamps.
16467         * lib/fstatat.c (normal_fstatat): New function.
16468         (rpl_fstatat): Use it.
16469         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16470         (stat_time_normalize): New function.
16471         * m4/fstat.m4 (gl_FUNC_FSTAT):
16472         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16473         * m4/lstat.m4 (gl_FUNC_LSTAT):
16474         * m4/stat.m4 (gl_FUNC_STAT):
16475         Replace on Solaris.
16476         * modules/fstat (Depends-on):
16477         * modules/fstatat (Depends-on):
16478         Add stat-time.
16479         * modules/stat-time (Depends-on): Add errno, intprops.
16481 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16483         regex: merge from glibc
16484         * lib/regcomp.c (init_word_char): Add comments.
16486 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16488         regex: merge from glibc
16489         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16490         * lib/regex_internal.h (internal_function): Remove.
16491         All uses removed.
16493 2017-11-20  Bruno Haible  <bruno@clisp.org>
16495         crypto/gc-sm3: Fix buffer overrun.
16496         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16497         Reported by Coverity.
16499 2017-11-12  Jim Meyering  <meyering@fb.com>
16501         maint: shorten https://lists.gnu.org/archive/html/... links
16502         Each /archive/html/ part can be replace with /r/.
16503         Run this to induce the change:
16504         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16505         * ChangeLog: Perform that substitution.
16506         * Makefile: Likewise.
16507         * STATUS-libposix: Likewise.
16508         * build-aux/bootstrap: Likewise.
16509         * doc/maintain.texi: Likewise.
16510         * gnulib-tool: Likewise.
16511         * lib/allocator.h: Likewise.
16512         * lib/argp-ba.c: Likewise.
16513         * lib/argp-pv.c: Likewise.
16514         * lib/canon-host.c: Likewise.
16515         * lib/canonicalize-lgpl.c: Likewise.
16516         * lib/float.in.h: Likewise.
16517         * lib/fstat.c: Likewise.
16518         * lib/getdelim.c: Likewise.
16519         * lib/getprogname.c: Likewise.
16520         * lib/glthread/thread.h: Likewise.
16521         * lib/intprops.h: Likewise.
16522         * lib/mbsrtowcs-state.c: Likewise.
16523         * lib/safe-read.c: Likewise.
16524         * lib/signal.in.h: Likewise.
16525         * lib/stat.c: Likewise.
16526         * lib/stdbool.in.h: Likewise.
16527         * lib/stdio-impl.h: Likewise.
16528         * lib/stdio.in.h: Likewise.
16529         * lib/sysexits.in.h: Likewise.
16530         * lib/timespec.h: Likewise.
16531         * lib/wcsrtombs-state.c: Likewise.
16532         * m4/alloca.m4: Likewise.
16533         * m4/extern-inline.m4: Likewise.
16534         * m4/fstatat.m4: Likewise.
16535         * m4/gnulib-common.m4: Likewise.
16536         * m4/lib-ignore.m4: Likewise.
16537         * m4/printf.m4: Likewise.
16538         * m4/regex.m4: Likewise.
16539         * m4/stat-size.m4: Likewise.
16540         * m4/std-gnu11.m4: Likewise.
16541         * m4/stdbool.m4: Likewise.
16542         * m4/sys_types_h.m4: Likewise.
16543         * m4/threadlib.m4: Likewise.
16544         * m4/vararrays.m4: Likewise.
16545         * pygnulib/GLImport.py: Likewise.
16546         * tests/test-exp.h: Likewise.
16547         * tests/test-exp2.h: Likewise.
16548         * tests/test-expm1.h: Likewise.
16549         * tests/test-fflush2.c: Likewise.
16550         * tests/test-getopt_long.h: Likewise.
16551         * tests/test-intprops.c: Likewise.
16552         * tests/test-log.h: Likewise.
16553         * tests/test-log10.h: Likewise.
16554         * tests/test-log1p.h: Likewise.
16555         * tests/test-log2.h: Likewise.
16556         * tests/test-printf-posix.h: Likewise.
16557         * tests/test-regex.c: Likewise.
16558         * tests/test-snprintf-posix.h: Likewise.
16559         * tests/test-sprintf-posix.h: Likewise.
16560         * tests/test-stdalign.c: Likewise.
16561         * tests/test-stdbool.c: Likewise.
16562         * tests/test-vasnprintf-posix.c: Likewise.
16563         * tests/test-vasprintf-posix.c: Likewise.
16564         * top/maint.mk: Likewise.
16566 2017-11-12  Bruno Haible  <bruno@clisp.org>
16568         faccessat: Make the last change more robust.
16569         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16570         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16572 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16574         faccessat: port to macOS (Bug#29231)
16575         macOS faccessat has the same bug that lstat does: if the file
16576         name ends in '/' it ignores the trailing slash.
16577         Problem reported for Emacs by Vincent Zhang.
16578         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16579         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16580         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16581         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16582         Include "unistd.h" after defining it.
16583         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16584         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16585         Handle in the usual way.
16586         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
16587         lstat dereferences symlinks, since faccessat is likely to
16588         have the same problem.
16589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
16590         * modules/faccessat (Depends-on): Add fstatat.
16591         Depend if REPLACE_FACCESSAT is 1, too.
16592         (configure.ac): Link if REPLACE_FACCESSAT is 1.
16593         * modules/faccessat-tests (Depends-on): Add symlink.
16594         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
16595         * tests/test-faccessat.c (main): Test for the bug.
16597 2017-11-11  Bruno Haible  <bruno@clisp.org>
16599         getprogname: Fix compilation error on IRIX.
16600         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
16601         'namesize'.
16603 2017-11-11  Bruno Haible  <bruno@clisp.org>
16605         year2038: Tweak last patch.
16606         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
16608 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16610         year2038: be more insistent about 64-bit time_t
16611         Applications requiring access to arbitrary files should not be
16612         built with 32-bit time_t on hosts that have 64-bit timestamps,
16613         as this can lead to real trouble at runtime.
16614         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
16615         Check on all systems, not just MinGW.  Use a heuristic involving
16616         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
16617         output a failure or just a warning, to make it more likely that
16618         builders will select 64-bit time_t.
16620 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16622         havelib: fix typo in previous change
16623         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
16625         Don’t use AC_EGREP_CPP if affected by CFLAGS
16626         * m4/float_h.m4 (gl_FLOAT_H):
16627         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
16628         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
16629         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
16630         * m4/year2038.m4 (gl_YEAR2038):
16631         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
16632         likely to be affected by the choice of CFLAGS, since CFLAGS are
16633         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
16634         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
16636         fstatat: pacify GCC on unusual platform
16637         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
16638         Omit, as it’s unused in this case.
16640 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16642         timespec: prefer ‘assume’ to ‘assure’
16643         This avoids some runtime tests.  The rest of the module makes
16644         similar assumptions and there is little point to testing here.
16645         * lib/timespec.h: Include verify.h instead of assure.h.
16646         (timespec_cmp): Use ‘assume’, not ‘assure’.
16647         Also, remove an unnecessary cast to ‘int’, as lots of other
16648         code in this module now causes -Wconversion to complain, and
16649         this is a problem with -Wconversion not with the code.
16651         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
16653         Port recent gnulib-tool change to Dash
16654         * gnulib-tool (func_create_testdir): Don't assume that the shell
16655         retokenizes after expanding "$@" inside the call to
16656         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
16658 2017-10-27  Jim Meyering  <meyering@fb.com>
16660         timespec.h: use "assure" to avoid a spurious warning
16661         * lib/timespec.h: Include "assure.h" and use it to help
16662         gcc7's -Wstrict-overflow avoid a false positive warning
16663         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
16664         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
16665         * modules/timespec (Depends-on): Add assure.
16667 2017-10-29  Bruno Haible  <bruno@clisp.org>
16669         Avoid several test failures with traditional locales on Haiku.
16670         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
16671         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
16672         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
16673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
16674         LOCALE_ZH_CN=none.
16676 2017-10-29  Bruno Haible  <bruno@clisp.org>
16678         strerror_r-posix: Fix behaviour and test failure on Haiku.
16679         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
16680         are positive. Work around return value 0 instead of ERANGE on Haiku.
16681         For unknown error numbers, use a format string consistent with perror().
16682         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
16683         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
16684         are positive.
16686 2017-10-29  Bruno Haible  <bruno@clisp.org>
16688         get-rusage-data: Avoid crash on Haiku.
16689         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
16691 2017-10-29  Bruno Haible  <bruno@clisp.org>
16693         get-rusage-as: Avoid crash on Haiku.
16694         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
16696 2017-10-29  Bruno Haible  <bruno@clisp.org>
16698         ilogbl: Ensure replacement on Haiku.
16699         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
16700         REPLACE_ILOGBL if ilogbl does not work.
16701         (gl_FUNC_ILOGBL_WORKS): New macro.
16702         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
16703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
16704         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
16705         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
16706         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
16708 2017-10-29  Bruno Haible  <bruno@clisp.org>
16710         expl: Ensure replacement on Haiku.
16711         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
16712         zero.
16713         * doc/posix-functions/expl.texi: Mention the Haiku problem.
16715 2017-10-29  Bruno Haible  <bruno@clisp.org>
16717         math: Fix test failure on Haiku.
16718         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
16719         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
16720         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16721         * doc/posix-headers/math.texi: Mention the Haiku problem.
16723 2017-10-29  Bruno Haible  <bruno@clisp.org>
16725         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
16726         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
16727         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
16729 2017-10-29  Bruno Haible  <bruno@clisp.org>
16731         crypto/*: Verify that the header file is self-contained.
16732         * tests/test-gc-*.c: Include the module's header file immediately after
16733         <config.h>.
16734         * tests/test-hmac-*.c: Likewise.
16735         * tests/test-arcfour.c: Likewise.
16736         * tests/test-arctwo.c: Likewise.
16737         * tests/test-des.c: Likewise.
16738         * tests/test-md2.c: Likewise.
16739         * tests/test-md4.c: Likewise.
16740         * tests/test-md5.c: Likewise.
16741         * tests/test-rijndael.c: Likewise.
16742         * tests/test-sha1.c: Likewise.
16743         * tests/test-sm3.c: Likewise.
16745 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16746             Bruno Haible  <bruno@clisp.org>
16748         crypto/gc: fix build failure with -Werror=suggest-attribute=const
16749         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
16751 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16753         New module: crypto/gc-sm3
16754         * lib/gc.h: Declare SM3-related stuffs.
16755         * lib/gc-gnulib.c: Support sm3 in internal functions.
16756         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
16757         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
16758         * modules/crypto/gc-sm3: Define gc-sm3 module.
16759         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
16760         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
16761         * MODULES.html.sh: List gc-sm3 module.
16763 2017-10-29  Bruno Haible  <bruno@clisp.org>
16765         random, random_r: Mention different prototypes on Haiku.
16766         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
16767         * doc/glibc-functions/random_r.texi: Likewise.
16768         * doc/glibc-functions/initstate_r.texi: Likewise.
16769         * doc/glibc-functions/setstate_r.texi: Likewise.
16771 2017-10-28  Bruno Haible  <bruno@clisp.org>
16773         posix_spawn: Avoid spurious message in configure output.
16774         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
16775         'cmp' command.
16777 2017-10-28  Bruno Haible  <bruno@clisp.org>
16779         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
16780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
16781         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
16783 2017-10-28  Bruno Haible  <bruno@clisp.org>
16785         ioctl: Override non-POSIX declaration on Haiku.
16786         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
16787         * lib/sys_ioctl.in.h: Add comment about Haiku.
16788         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
16789         * doc/glibc-headers/sys_ioctl.texi: Likewise.
16791 2017-10-28  Bruno Haible  <bruno@clisp.org>
16793         crypto/sm3: Add overview documentation to the .h file.
16794         * lib/sm3.h: Add comments.
16796 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16798         New module: crypto/sm3
16799         This new module can be used to compute SM3 message digest of files or
16800         memory blocks according to the specification GM/T 004-2012
16801         Cryptographic Hash Algorithm SM3, published by State Cryptography
16802         Administration, China.
16803         The official SM3 cryptographic hash algorithm specification is
16804         available at
16805         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
16806         * lib/sm3.h: Declare the APIs of sm3 module.
16807         * lib/sm3.c: Implement SM3 hash algorithm.
16808         * m4/sm3.m4: m4 file for sm3 module.
16809         * modules/crypto/sm3: Define sm3 module.
16810         * tests/test-sm3.c: Implement SM3 test case.
16811         * modules/crypto/sm3-tests: Define sm3 test module.
16812         * MODULES.html.sh: List sm3 module.
16814 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16816         gc-libgcrypt: fix undefined enum type in switch statement
16817         Resolve the following build failure:
16818         lib/gc-libgcrypt.c: In function 'gc_hash_open':
16819         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
16820         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
16821              case 0:
16822              ^~~~
16823         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
16824         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
16826 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16828         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
16829         Resolve the following build failure:
16830         lib/gc-libgcrypt.c: In function 'gc_hash_read':
16831         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
16832         in signedness [-Werror=pointer-sign]
16833             digest = gcry_md_read (ctx->gch, 0);
16834                    ^
16835         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
16837 2017-10-26  Bruno Haible  <bruno@clisp.org>
16839         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
16840         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
16841         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
16843 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16845         glob: fix another heap buffer overflow
16846         Problem reported by Tim Rühsen in:
16847         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
16848         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
16850 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16852         quotearg: pacify compiler re unsigned
16853         * lib/quotearg.c (quotearg_n_options):
16854         Rewrite to avoid diagnostic from overly-picky compiler.
16855         Problem reported by Sami Kerola in:
16856         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
16858         glob: fix heap buffer overflow
16859         * lib/glob.c (glob): Fix off-by-one error introduced into
16860         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
16861         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
16862         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
16863         Fix suggested by Bruno Haible.
16865 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16867         glob: pacify fuzzer for mempcpy
16868         Problem reported by Tim Rühsen in:
16869         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
16870         * lib/glob.c (glob): Do not pass NULL to mempcpy.
16872 2017-10-12  Bruno Haible  <bruno@clisp.org>
16874         doc: Fix syntax error (regression from 2017-10-03).
16875         * doc/posix-functions/strncpy.texi: Fix syntax error.
16877 2017-10-12  Bruno Haible  <bruno@clisp.org>
16879         doc: Update for Solaris 11.3.
16880         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
16881         mention Solaris 11.3.
16882         * m4/log2.m4: Fix comments.
16883         * m4/log2f.m4: Likewise.
16884         * m4/printf.m4: Update comments.
16885         * m4/rename.m4: Likewise.
16886         * m4/strncat.m4: Likewise.
16888         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
16890 2017-10-10  Bruno Haible  <bruno@clisp.org>
16892         doc: Improve doc about ioctl.
16893         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
16894         prototype.
16896 2017-10-09  Bruno Haible  <bruno@clisp.org>
16898         wcwidth: Don't use obsolete syntax of 'test'.
16899         Reported by Eric Blake.
16900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
16901         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
16903 2017-10-09  Bruno Haible  <bruno@clisp.org>
16905         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
16906         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
16907         and Daniel P. Berrange <berrange@redhat.com>.
16908         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
16909         on glibc systems. The getopt-pfx-core.h file declares exactly what
16910         unistd.h needs, nothing more.
16912 2017-10-08  Bruno Haible  <bruno@clisp.org>
16914         vma-iter: Improve support for FreeBSD.
16915         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
16916         vma_iterate.
16917         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
16919 2017-10-08  Bruno Haible  <bruno@clisp.org>
16921         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
16922         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
16924 2017-10-07  KO Myung-Hun  <komh@chollian.net>
16926         test-framework-sh: Fix 'invalid path dir' error.
16927         On OS/2, a path separator is ';' not ':'. And ':' is used as a
16928         separator between a drive letter and directory parts.
16929         As a result, an absolute path such as x:/path/to/dir on OS/2 is
16930         treated as an invalid path dir.
16931         * tests/init.sh (PATH_SEPARATOR): Set at startup.
16932         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
16933         instead of hard coded ':'.
16935 2017-10-07  Bruno Haible  <bruno@clisp.org>
16937         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
16938         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
16939         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
16940         (rof_open): On Linux, do multiple read() calls and make sure
16941         MIN_LEFTOVER bytes are left when read() returns.
16943 2017-10-07  Bruno Haible  <bruno@clisp.org>
16945         vma-iter: Improve support for GNU/Hurd.
16946         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
16947         API, not the /proc file system.
16949 2017-10-07  Bruno Haible  <bruno@clisp.org>
16951         test-framework-sh: Don't require bash on Windows and OS/2.
16952         Reported by KO Myung-Hun.
16953         * tests/test-init.sh: Use 'shopt' only when running in bash.
16955 2017-10-06  KO Myung-Hun  <komh@chollian.net>
16957         wcwidth: check a macro version of wcwidth () as well
16958         * lib/wchar.in.h: Revert commit from 2016-01-14.
16959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
16961 2017-10-06  Bruno Haible  <bruno@clisp.org>
16963         getopt-posix: Clarify copyright header.
16964         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
16965         * lib/getopt-pfx-core.h: Likewise.
16966         * lib/getopt-pfx-ext.h: Likewise.
16967         * lib/getopt-cdefs.in.h: Likewise.
16969 2017-10-03  Bruno Haible  <bruno@clisp.org>
16971         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
16972         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
16973         gl_HOST_CPU_C_ABI.
16975 2017-10-03  Bruno Haible  <bruno@clisp.org>
16977         doc: warn about misuse of strncpy and wcsncpy.
16978         * doc/posix-functions/strcpy.texi: Describe requirements on prior
16979         memory allocation.
16980         * doc/posix-functions/wcscpy.texi: Likewise.
16981         * doc/posix-functions/strncpy.texi: Describe what this function is not
16982         useful for.
16983         * doc/posix-functions/wcsncpy.texi: Likewise.
16985 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16987         fsuage: fix typo in previous change
16988         * lib/fsusage.c: Remove stray include of full-read.h.
16989         Problem reported by Sam Steingold for macOS (Bug#28669).
16991 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
16993         fsusage: remove SVR2 support
16994         SVR2 was obsolete by 1986 and is no longer supported by anybody,
16995         and its code was getting in the way of use of this module by
16996         Emacs, which has its own ‘read’ function anyway.
16997         * lib/fsusage.c: Do not include sys/filsys.h.
16998         (get_fs_usage): Remove SVR2-specific code.
16999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17000         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17001         * modules/fsusage (Depends-on): Do not depend on full-read.
17003         Simplify autoupdate of licenses
17004         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17005         place.
17007 2017-10-01  Bruno Haible  <bruno@clisp.org>
17009         vma-iter: Add support for GNU/Hurd.
17010         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17011         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17013 2017-09-30  Bruno Haible  <bruno@clisp.org>
17015         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17016         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17017         fail when module 'largefile' is in use.
17018         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17019         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17020         Don't test HAVE_SYS_PROCFS_H.
17022 2017-09-30  Bruno Haible  <bruno@clisp.org>
17024         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17025         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17026         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17027         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17029 2017-09-30  Bruno Haible  <bruno@clisp.org>
17031         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17032         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17033         scope of local variables.
17035 2017-09-28  Bruno Haible  <bruno@clisp.org>
17037         string: code style
17038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17039         substitutable variables.
17040         * modules/string (Makefile.am): Likewise.
17042 2017-09-26  Bruno Haible  <bruno@clisp.org>
17044         uniname/uniname-tests: Tighten code.
17045         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17046         local variables into one.
17048 2017-09-26  Bruno Haible  <bruno@clisp.org>
17050         vma-iter: Improvements for Linux and BSD platforms.
17051         - Add support for DragonFly BSD.
17052         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17053         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17054         Read the entire file into memory in a single system call.
17055         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17056         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17058 2017-09-26  Bruno Haible  <bruno@clisp.org>
17060         vma-iter: Provide the protection flags on FreeBSD.
17061         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17062         skip three fields between the addresses and the protection flags.
17064 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17066         glob: remove bogus extern decl
17067         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17068         extern declaration.  Problem reported by Adhemerval Zanella in:
17069         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17071 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17073         uniname/uniname-tests: integer overflow fix
17074         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17075         Check for integer overflow.
17077         duplocale-tests: fix unlikely crash
17078         * tests/test-duplocale.c (get_locale_dependent_values):
17079         Don’t crash with absurdly long month names.
17081         maint: fix overflow checking in nap.h
17082         * modules/chown-tests:
17083         * modules/fchownat-tests, modules/fdutimensat-tests:
17084         * modules/futimens-tests, modules/lchown-tests:
17085         * modules/stat-time-tests, modules/utime-tests:
17086         * modules/utimens-tests, modules/utimensat-tests:
17087         Depend on intprops.
17088         * tests/nap.h: Include intprops.h.
17089         (diff_timespec): Handle overflow properly.
17091         sys_types: update URL
17092         * m4/sys_types_h.m4: Use https: URL.
17094         parse-datetime: fix dependency
17095         * modules/parse-datetime (Depends-on): Depend
17096         on nstrftime, not strftime.
17098         parse-datetime, posixtm: avoid uninit access
17099         * lib/parse-datetime.y (parse_datetime2):
17100         * lib/posixtm.c (posixtime):
17101         Do not access uninitialized storage, even though the resulting
17102         value is never used.
17104 2017-09-25  Bruno Haible  <bruno@clisp.org>
17106         vma-iter: Improvements for BSD platforms.
17107         - Add support for GNU/kFreeBSD.
17108         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17109         - Speed up on OpenBSD.
17110         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17111         (vma_iterate_bsd): New function.
17112         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17113         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17114         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17115         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17117 2017-09-23  Bruno Haible  <bruno@clisp.org>
17119         strfmon_l: New module.
17120         * modules/strfmon_l: New file.
17121         * lib/strfmon_l.c: New file.
17122         * m4/strfmon_l.m4: New file.
17123         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17124         * modules/strfmon_l-tests: New file.
17125         * tests/test-strfmon_l.c: New file.
17127         monetary: New module.
17128         * modules/monetary: New file.
17129         * lib/monetary.in.h: New file.
17130         * m4/monetary_h.m4: New file.
17131         * doc/posix-headers/monetary.texi: Mention the new module.
17132         * modules/monetary-tests: New file.
17133         * tests/test-monetary.c: New file.
17134         * modules/monetary-c++-tests: New file.
17135         * tests/test-monetary-c++.cc: New file.
17136         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17138 2017-09-23  Bruno Haible  <bruno@clisp.org>
17140         duplocale tests: Fix test crash on Linux/x86.
17141         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17142         locale from the current thread before freeing it.
17144 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17146         mktime: port to OpenVMS
17147         Problem reported by John E. Malmberg in:
17148         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17149         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17151 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17153         manywarnings: port to GCC on 64-bit MS-Windows
17154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17155         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17156         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17158 2017-09-13  Bruno Haible  <bruno@clisp.org>
17160         all: Replace many more http URLs by https URLs. Update stale URLs.
17161         * users.txt: Remove mention of 'newts'.
17162         * lib/localename.c: Update comment about LANG_SOTHO.
17164 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17166         all: Replace many http URLs by https URLs.
17168 2017-09-12  Bruno Haible  <bruno@clisp.org>
17170         doc: Prefer https URLs where possible.
17171         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17172         * doc/ld-output-def.texi: Remove unavailable URL.
17174 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17176         maintainer-makefile: FTP -> HTTPS
17177         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17178         of FTP, which is planned to be decommissioned on 2017-11-01.
17180 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17182         libc-config: Fix __GNUC_PREREQ macro.
17183         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17184         __GNUC_MINOR.
17186 2017-09-09  Bruno Haible  <bruno@clisp.org>
17188         gnulib-tool: Simplify commit from 2015-08-20.
17189         * gnulib-tool (func_add_or_update): Remove local variable
17190         is_binary_file.
17192 2017-09-08  Bruno Haible  <bruno@clisp.org>
17194         stddef: Avoid conflict with system-defined max_align_t.
17195         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17196         Reported by Werner Lemberg <wl@gnu.org> in
17197         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17198         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17199         (max_align_t): Define as a macro.
17200         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17201         definitions of rpl_max_align_t in different copies of gnulib-generated
17202         <stddef.h>.
17204 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17206         libc-config: port to MSVC
17207         Problems reported by Gisle Vanem in:
17208         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17209         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17210         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17211         * m4/__inline.m4: New file.
17212         * modules/libc-config (Files): Add it.
17213         (Depends-on): Use it.
17215         glob: Use enum for __glob_pattern_type result
17216         From a patch proposed by Adhemerval Zanella in:
17217         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17218         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17219         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17220         * lib/glob_internal.h (__glob_pattern_type):
17221         * lib/glob.c (glob):
17222         * lib/glob_pattern_p.c (__glob_pattern_p):
17223         Use them.
17225         glob: fix for use in glibc
17226         Problem reported by Adhemerval Zanella in:
17227         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17228         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17229         Do not redefine if _LIBC.
17231 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17233         glob: fix bugs with long login names
17234         Problem reported by Adhemerval Zanella in:
17235         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17236         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17237         (glob): Use the same scratch buffer for both getlogin_r and
17238         getpwnam_r.  Don’t require preallocation of the login name.  This
17239         simplifies storage allocation, and corrects the handling of
17240         long login names.
17242 2017-09-02  Bruno Haible  <bruno@clisp.org>
17244         dirent: Update doc.
17245         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17247 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17249         glob: fix getpwnam_r errno typo
17250         * lib/glob.c (glob): Fix longstanding misuse of errno after
17251         getpwnam_r, which returns an error number rather than setting
17252         errno.
17254         glob: fix typo in recent change
17255         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17256         Fix recently-introduced typo.
17258 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17260         glob: don't save and restore errno unnecessarily
17261         * lib/glob.c (glob): Don't save and restore errno
17262         merely because we have getpwnam_r.
17264         glob: don't assume getpwnam_r
17265         * lib/glob.c (glob): Port recent patches to platforms
17266         lacking getpwnam_r.
17268         scratch_buffer: don’t use private glibc API
17269         Suggested by Florian Weimer in:
17270         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17271         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17272         * lib/scratch_buffer_grow.c: Rename to
17273         lib/malloc/scratch_buffer_grow.c.
17274         * lib/scratch_buffer_grow_preserve.c: Rename to
17275         lib/malloc/scratch_buffer_grow_preserve.c.
17276         * lib/scratch_buffer_set_array_size.c: Rename to
17277         lib/malloc/scratch_buffer_set_array_size.c.
17278         * lib/scratch_buffer.h: New file.
17279         * modules/scratch_buffer (Files, Makefile.am):
17280         Adjust to source-file renaming.
17282 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17284         glob: use scratch_buffer instead of extend_alloca
17285         Much of the lib/glob.c part of this patch comes from a glibc patch
17286         proposed by Adhemerval Zanella in:
17287         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17288         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17289         included via glob.h, does this for us now.
17290         (__set_errno): Remove, as libc-config does this for us now.
17291         Include <scratch_buffer.h>.
17292         (GETPW_R_SIZE_MAX): Remove.
17293         (glob): Use struct scratch_buffer instead of extend_alloca.
17294         * lib/glob.in.h: Include libc-config.h rather than
17295         including <sys/cdefs.h> conditionally.
17296         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17297         (__glibc_unlikely, __restrict, weak_alias):
17298         Remove, as libc-config does this for us now.
17299         * m4/glob.m4 (gl_PREREQ_GLOB):
17300         Remove sys/cdefs.h tests; no longer needed.
17301         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17302         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17304         scratch_buffer: new module
17305         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17306         * lib/scratch_buffer_grow_preserve.c:
17307         * lib/scratch_buffer_set_array_size.c:
17308         New files, copied from glibc with very minor changes that can be
17309         copied back.
17310         * modules/scratch_buffer: New file.
17312         libc-config: new module
17313         * MODULES.html.sh: Add libc-config.
17314         * lib/cdefs.h: New file, copied from the GNU C Library with very
17315         minor changes that can be copied back.
17316         * lib/libc-config.h, modules/libc-config: New files.
17318 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17320         glob: match dangling symlinks
17321         This fixes a bug I inadvertently introduced to Gnulib when I
17322         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17323         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17324         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17325         * doc/posix-functions/glob.texi: Update list of affected platforms.
17326         * lib/glob.c (__lstat64): New macro.
17327         (is_dir): New function.
17328         (glob, glob_in_dir): Match symlinks even if they are dangling.
17329         (link_stat, link_exists_p): Remove.  All uses removed.
17330         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17331         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17332         * modules/glob-tests (Depends-on): Add symlink.
17333         * tests/test-glob.c: Include errno.h, unistd.h.
17334         (BASE): New macro.
17335         (main): Test dangling symlinks, if symlinks are supported.
17337         glob, backupfile: inode 0 is a valid inode number
17338         * doc/posix-functions/readdir.texi (readdir):
17339         * doc/posix-headers/dirent.texi (dirent.h):
17340         Document more readdir portability issues.
17341         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17342         (numbered_backup): Don’t treat inode 0 any differently from
17343         other inode values.
17344         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17345         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17346         All uses removed.
17347         * modules/glob (Depends-on): Remove d-ino.
17349         glob: simplify symlink detection
17350         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17351         uint8_t, as C99 does not require uint8_t.
17352         (struct readdir_result): Use it.  Do not define skip_entry unless
17353         it is needed; this saves a byte on platforms lacking d_ino.
17354         (readdir_result_type, readdir_result_skip_entry):
17355         New functions, replacing ...
17356         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17357         ... these functions, which were removed.  This makes the callers
17358         easier to read.  All callers changed.
17359         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17361 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17363         fts-tests: tag as a longrunning-test so not included by default
17364         * modules/fts-tests: This test takes about 20s on current systems,
17365         and uses about 285M of space on ext4.
17367 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17369         renameat2: fix compilation on alpine linux
17370         * m4/renameat.m4: Check for <linux/fs.h> presence.
17371         * lib/renameat2.h: Only include <linux/fs.h> if present.
17372         Reported by Assaf Gordon on Alpine Linux.
17374 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17376         glob: try to port recent changes to MS-Windows
17377         Problem reported by Bruno Haible in:
17378         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17379         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17380         * lib/glob.in.h (__glob_pattern_p): ... to here.
17382 2017-08-24  Eric Blake  <eblake@redhat.com>
17384         warnings: fix compilation with old autoconf
17385         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17386         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17387         AC_DEFUN.
17388         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17389         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17391 2017-08-24  Bruno Haible  <bruno@clisp.org>
17393         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17394         * modules/glob (Depends-on): Add c99.
17396 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17398         glob: fix typo that broke platforms lacking d_ino
17399         This typo also hurt performance on GNU/Linux and similar hosts.
17400         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17401         in previous change.
17403 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17405         glob: merge from glibc with Zanella glob changes
17406         Merge glob from glibc, with changes for glob proposed
17407         by Adhemerval Zanella in the thread starting here:
17408         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17409         plus some fixes for this merge.
17410         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17411         New files, ported from glibc.
17412         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17413         with __restrict.
17414         (__size_t): Remove.  All uses replaced by size_t.
17415         (size_t): Define by defining __need_size_t and including <stddef.h>.
17416         This should work even in non-glibc platforms, where any name
17417         pollution is OK.
17418         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17419         (struct stat64): Don’t worry about __GLOB_GNULIB.
17420         (glob, globfree, glob_pattern_p): Remove macros for
17421         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17422         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17423         but set errno.
17424         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17425         removed since the glibc behavior works on null pointers.
17426         Do not include stdio.h; old SunOS is irrelevant now.
17427         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17428         Include glob_internal.h.
17429         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17430         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17431         worked only coincidentally.
17432         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17433         Remove macros; now done in glob.in.h.
17434         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17435         (glob): Properly initialize glob structure with
17436         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17437         Remove old code using SHELL since Bash no longer
17438         uses this.
17439         (glob, prefix_array): Separate MS code better.
17440         (glob, glob_in_dir): Use C99 decls before statements when glibc
17441         does.
17442         (glob_in_dir): Remove old Amiga and VMS code.
17443         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17444         separate files.
17445         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17446         (__glibc_unlikely):
17447         Move here from glob.c.
17448         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17449         (weak_alias): New macro.
17450         (__size_t): Remove.  All uses replaced by size_t.
17451         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17452         * modules/glob (Files): Add +lib/glob_internal.h,
17453         lib/glob_pattern_p.c, lib/globfree.c.
17454         (Depends-on): Remove snippet/arg-nonnull.
17456 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17458         glob: port to clang's Undefined Sanitizer
17459         Problem reported by Tim Rühsen in:
17460         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17461         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17462         (glob_in_dir): Do not rely on undefined behavior in accessing
17463         struct members beyond their bounds.  Use a flexible array member
17464         instead.
17466 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17468         vc-list-files: port to Solaris 10
17469         * build-aux/vc-list-files: Don't assume test -e works.
17471 2017-08-21  Karl Berry  <karl@freefriends.org>
17473         * doc/posix-functions/srandom.texi (srandom): typo }.
17475 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17477         git-version-gen: port to Solaris 10
17478         Problem reported by Dagobert Michelsen in:
17479         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17480         * build-aux/git-version-gen (v_from_git):
17481         Use expr instead of shell substitution.
17483 2017-08-19  Bruno Haible  <bruno@clisp.org>
17485         host-cpu-c-abi: Improve detection of MIPS ABI.
17486         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17487         _MIPS_SIM.
17489 2017-08-17  Bruno Haible  <bruno@clisp.org>
17491         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17492         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17494 2017-08-17  Bruno Haible  <bruno@clisp.org>
17496         float: Fix LDBL_MIN value on FreeBSD/x86.
17497         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17499 2017-08-17  Bruno Haible  <bruno@clisp.org>
17501         random: Fix test compilation failure on Cygwin 1.5.25.
17502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17503         HAVE_DECL_SETSTATE.
17504         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17505         declared.
17506         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17507         HAVE_DECL_SETSTATE.
17508         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17509         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17510         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17511         * doc/posix-functions/random.texi: Likewise.
17512         * doc/posix-functions/setstate.texi: Likewise.
17513         * doc/posix-functions/srandom.texi: Likewise.
17515 2017-08-16  Bruno Haible  <bruno@clisp.org>
17517         stdnoreturn: Fix test compilation failure on Cygwin.
17518         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17519         <stdnoreturn.h> replacement.
17520         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17521         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17523 2017-08-16  Bruno Haible  <bruno@clisp.org>
17525         thread: Fix conflict with pthread_sigmask module.
17526         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17527         it's defined as a macro.
17528         * modules/thread (Depends-on): Add pthread_sigmask.
17530 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17532         rename: port better to NetBSD
17533         * doc/posix-functions/rename.texi (rename): NetBSD 7
17534         does not have the link-count bug.
17535         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17536         broken merely because rename ("a", "b") removes "a" when the two
17537         names are hard links to the same file.
17539 2017-08-16  Bruno Haible  <bruno@clisp.org>
17541         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17542         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17543         the target file names with '$(srcdir)/'.
17544         * modules/unicase/locale-language (Makefile.am): Likewise.
17545         * modules/unicase/special-casing (Makefile.am): Likewise.
17546         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17547         * modules/unictype/category-byname (Makefile.am): Likewise.
17548         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17549         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17550         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17551         * modules/unictype/property-byname (Makefile.am): Likewise.
17552         * modules/unictype/scripts (Makefile.am): Likewise.
17553         * modules/uninorm/composition (Makefile.am): Likewise.
17555 2017-08-16  Bruno Haible  <bruno@clisp.org>
17557         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17558         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17559         value for OpenBSD.
17561 2017-08-16  Bruno Haible  <bruno@clisp.org>
17563         rename, renameat: Update doc regarding NetBSD.
17564         * doc/posix-functions/rename.texi: Clarify that when using
17565         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17566         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17567         version.
17569 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17571         renameat2: port better to macOS
17572         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17574         futimens: don’t assume struct timespec layout
17575         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17576         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17577         * tests/test-fdutimensat.c (main):
17578         * tests/test-futimens.h (test_futimens):
17579         * tests/test-lutimens.h (test_lutimens):
17580         * tests/test-utimens.h (test_utimens):
17581         * tests/test-utimensat.c (main):
17582         Don’t assume that struct timespec is a two-member structure in
17583         tv_sec, tv_nsec order.  Although this is true on all platforms we
17584         know about, POSIX does not guarantee it.
17586         rename: document+test NetBSD rename
17587         Test failure reported by Bruno Haible in:
17588         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
17589         This is an area where NetBSD is better-behaved than POSIX,
17590         so allow the NetBSD behavior in tests.
17591         * doc/posix-functions/rename.texi:
17592         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
17593         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
17595 2017-08-15  Bruno Haible  <bruno@clisp.org>
17597         renameat: Ensure declaration in <stdio.h> on NetBSD.
17598         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
17599         * doc/posix-functions/renameat.texi: Mention this problem.
17601 2017-08-15  Bruno Haible  <bruno@clisp.org>
17603         duplocale: Work around NetBSD 7.0 bug.
17604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
17605         * lib/duplocale.c: Add comment about NetBSD problem.
17606         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
17608 2017-08-15  Bruno Haible  <bruno@clisp.org>
17610         duplocale tests: Verify use with *_l functions.
17611         * modules/duplocale-tests (configure.ac): Test for uselocale and
17612         some *_l functions.
17613         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
17614         from main.
17615         (get_locale_dependent_values_from, test_with_locale_parameter): New
17616         functions.
17617         (main): Test both test_with_uselocale and test_with_locale_parameter.
17619 2017-08-15  Bruno Haible  <bruno@clisp.org>
17621         extensions: Enable NetBSD specific extensions.
17622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
17624 2017-08-14  Bruno Haible  <bruno@clisp.org>
17626         open, openat: Update doc about O_CLOEXEC.
17627         * doc/posix-functions/open.texi: More concrete list of platforms.
17628         * doc/posix-functions/openat.texi: Likewise.
17630 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17632         open: support O_CLOEXEC
17633         * NEWS, doc/posix-functions/open.texi:
17634         * doc/posix-functions/openat.texi: Document this.
17635         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
17636         (GNULIB_defined_O_CLOEXEC): New symbol.
17637         * lib/open.c: Include cloexec.h.
17638         (open): Support O_CLOEXEC.
17639         * lib/openat.c: Include cloexec.h.
17640         (rpl_openat): Support O_CLOEXEC.
17641         * lib/popen-safer.c: Do not include cloexec.h.
17642         (open_noinherit): Remove.
17643         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
17644         * lib/save-cwd.c: Do not include cloexec.h.
17645         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
17646         * m4/open-cloexec.m4: New file.
17647         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
17648         Replace 'open' if O_CLOEXEC is not present.
17649         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
17650         Replace 'openat' if O_CLOEXEC is not present.
17651         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
17652         * modules/open (Files): Add m4/open-cloexec.m4.
17653         (Depends-on): Depend on cloexec if replacing 'open'.
17654         * modules/openat (Files): Add m4/open-cloexec.m4.
17655         (Depends-on): Depend on cloexec if replacing openat.
17656         * modules/popen-safer (Depends-on): Remove cloexec.
17657         * modules/save-cwd (Depends-on): Remove cloexec, and add
17658         fd-safer-flag and 'open'.
17660 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17662         reallocarray: minor fixes
17663         * doc/glibc-functions/reallocarray.texi: Update version numbers.
17664         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
17665         * modules/reallocarray (License): Change from GPL to LGPL.
17666         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
17667         Indent properly and don't use tabs.
17669 2017-08-13  Darshit Shah  <darnir@gnu.org>
17671         reallocarray: New module
17672         reallocarray is a new function in glibc 2.26 to safely allocate an array
17673         of memory locations with integer overflow protection.
17674         * MODULES.html.sh: Add reallocarray.
17675         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
17676         * lib/reallocarray.c: New file to implement module reallocarray.
17677         * lib/stdlib.in.h: Add function declarations for reallocarray.
17678         * m4/reallocarray.m4: New file.
17679         * m4/stdlib_h.m4: Declare reallocarray.
17680         * modules/reallocarray: New file.
17681         * modules/reallocarray-test: New file.
17682         * modules/stdlib: Coerce stdlib.h to export reallocarray.
17683         * tests/test-reallocarray.c: New test.
17685 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17687         dirent-safer: fix cloexec race
17688         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
17689         (opendir_safer): Use F_DUPFD_CLOEXEC.
17690         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
17691         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
17692         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
17693         instead of dup_safer.
17695         fts: fix cloexec races
17696         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
17697         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
17698         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
17699         (fd_ring_check): Set cloexec flag on new file descriptors.
17700         (fts_build, fd_ring_check): While we’re at it, make sure the
17701         resulting file descriptor is not 0, 1, or 2, since that is easy.
17703 2017-08-11  Bruno Haible  <bruno@clisp.org>
17705         fts tests: Fix link error.
17706         Reported by Tom G. Christensen in
17707         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
17708         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
17710 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17712         fts: port recent changes to CentOS 6
17713         Problem reported by Tom G. Christensen in:
17714         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
17715         * lib/fts.c (fsword): New type.
17716         (struct dev_type, filesystem_type): Use it.
17717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
17718         Also, check for f_type only if fstatfs and sys/vfs.h work.
17720 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17722         tempname: do not depend on secure_getenv
17723         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
17724         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
17725         * modules/tempname (Depends-on): Remove secure_getenv.
17727 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
17729         extensions: add _OPENBSD_SOURCE
17730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
17732 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
17733             Bruno Haible  <bruno@clisp.org>
17735         manywarnings: Add support for C++.
17736         * build-aux/g++-warning.spec: New file.
17737         * m4/manywarnings-c++.m4: New file.
17738         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
17739         redirects to manywarnings-c++.m4.
17740         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
17742 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17744         git-version-gen: another fix for tags with "-"
17745         * build-aux/git-version-gen: Improve fix for tags containing "-".
17746         Suggested by Markus Armbruster in:
17747         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
17749 2017-08-06  Bruno Haible  <bruno@clisp.org>
17751         warnings, manywarnings: Add support for multiple languages, not just C.
17752         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
17753         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
17754         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
17755         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
17756         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
17757         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
17758         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
17759         of the current language. If C++ is the current language, modify
17760         WARN_CXXFLAGS instead of WARN_CFLAGS.
17761         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
17762         gl_MANYWARN_ALL_GCC.
17763         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
17765 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
17767         git-version-gen: Fix for tags containing '-'
17769         Really old versions of git-describe (before v1.5.0, Feb 2007)
17770         don't have the number of commits in their long format output,
17771         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
17772         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
17773         recognizes both patterns, and normalizes the old format to the new one.
17775         Unfortunately, this normalization code gets confused when the tag
17776         contains '-'.  Reproducer:
17778             $ git-tag -m test v0.2-rc1
17779             $ build-aux/git-version-gen .tarball-version; echo
17780             build-aux/git-version-gen: WARNING: git rev-list failed
17781             UNKNOWN
17783         We take exact tag "v0.2-rc1" for the old format, extract the presumed
17784         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
17785         commits since tha tag.  Fails, because tag "v0.2" does not exist.
17787         * git-version-gen: We could perhaps drop support for versions from
17788         more than a decade ago.  But tightening the pattern match is easy
17789         enough, so do that.  Still breaks when you use version tags ending in
17790         something matching -g????, but you arguably get what you deserve then.
17792 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17794         valgrind-tests: use ls, and cache
17795         * m4/valgrind-tests.m4: Test ls, not bash.
17796         Problem reported by Reuben Thomas.
17797         Also, cache the result so that it can be overridden.
17799 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
17801         manywarnings: port to 64-bit GCC builds of Emacs
17802         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
17803         object size rather than hardwiring 2147483647.  This is needed to
17804         build GNU Emacs, which has one conditional (and used
17805         only-in-theory) call to malloc with a literal greater than
17806         2147483647.
17808 2017-08-04  Bruno Haible  <bruno@clisp.org>
17810         Relax the license of some modules with no runtime code.
17811         * modules/std-gnu11 (License): Set to 'unlimited'.
17812         * modules/c99 (License): Likewise.
17813         Reported by Reuben Thomas <rrt@sc3d.org>.
17814         * modules/d-ino (License): Set to 'LGPL'.
17815         * modules/host-os (License): Likewise.
17816         * modules/longlong (License): Likewise.
17818 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
17820         renameat2: port to RHEL 7 + NFS
17821         * lib/renameat2.c (renameat2) [SYS_renameat2]:
17822         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
17823         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
17825 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17827         renameat2: port to non-renameat platforms
17828         Problem reported for MSVC-2015 by Gisle Vanem in:
17829         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
17830         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
17831         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
17833 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17835         manywarnings: port to 32-bit GCC bug
17836         Problem reported by Pino Toscano in:
17837         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
17838         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
17839         not 2**63 - 1, to work around the following GCC bug:
17840         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
17842 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
17844         backupfile: new function to validate backup suffix
17845         * lib/backupfile.c (set_simple_backup_suffix): New function.
17846         (backupfile_internal): Use it.
17848         canonicalize: fix EOVERFLOW commentary
17849         Problem reported by Bruno Haible in:
17850         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
17851         * lib/canonicalize.c (canonicalize_filename_mode):
17852         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
17854         Don't interpret EOVERFLOW to mean nonexistence
17855         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
17856         may be EOVERFLOW; this is likely more useful than reporting the
17857         stat errno.
17858         * lib/glob.c (link_stat): Rename from link_exists2_p and
17859         return -1/0 instead of 0/1.  Caller changed.
17860         * lib/glob.c (link_exists_p):
17861         * lib/renameat2.c (rename_noreplace, renameat2):
17862         * lib/tempname.c (try_nocreate):
17863         If errno == EOVERFLOW then the directory entry exists, so do not
17864         act as if it does not exist.
17866         backup-rename: new module
17867         It is like backupfile, except it avoids some race conditions,
17868         and it does not output to stderr or exit.
17869         * MODULES.html.sh: Add backup-rename.
17870         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
17871         * modules/backup-rename: New files.
17872         * lib/backupfile.c: Turn this into an internals file, which
17873         contains code common to backupfile and backup_rename.  Include
17874         backupfile-internal.h instead of backupfile.h.  Do not include
17875         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
17876         renameat2.h and fcntl.h.
17877         (BACKUP_NOMEM): New constant.
17878         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
17879         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
17880         (backupfile_internal): Rename from find_backup_file_name.
17881         Support new arg RENAME.
17882         (backup_args, backup_types, get_version, xget_version):
17883         Move to lib/backup-find.c.
17884         * lib/backupfile.h (backup_file_rename): New decl.
17885         * modules/backupfile (Files): Add lib/backup-internal.h,
17886         lib/backup-find.c.
17887         (Depends-on): Add dirfd, fcntl, renameat2.
17888         (lib_SOURCES): Add backup-find.c.
17890         renameat2: port better to older Solaris
17891         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
17892         Add goto to use a label, to silence picky compilers.
17894         fts-tests: port to gcc -Wwrite-strings
17895         * tests/test-fts.c (base, base_d): New static vars.
17896         (argv, remove_tree, main): Use them.
17898 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
17900         relocatable-lib{,-lgpl}: improve documentation
17901         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
17902         Various other updates.
17904 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
17905             Bruno Haible  <bruno@clisp.org>
17907         relocatable-lib{,-lgpl}: add Valgrind suppressions
17908         * lib/relocatable.valgrind: New file.
17909         * modules/relocatable-lib (Files): Add relocatable.valgrind.
17910         * modules/relocatable-lib-lgpl: Likewise.
17912 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
17914         relocatable: Make the license on the sources the GPL.
17915         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
17916         LGPL, which was a special case so that the relocatable source files
17917         could be used without gnulib-tool, to GPL. They can still be used under
17918         the LGPL, using the --lgpl option to gnulib-tool.
17920 2017-07-30  Bruno Haible  <bruno@clisp.org>
17922         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
17923         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
17924         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
17925         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
17926         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
17928 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
17930         faccessat: document AT_SYMLINK_NOFOLLOW issue
17931         * doc/posix-functions/faccessat.texi: Modernize platform list.
17932         Document AT_SYMLINK_NOFOLLOW limitation.
17934         renameat2: port to Solaris 10
17935         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
17936         with AT_SYMLINK_NOFOLLOW (which is not portable).
17937         (renameat): Undef before using, to avoid endless recursion when
17938         the replacement renameat calls renameat2 which calls the
17939         replacement renameat.
17940         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
17941         * modules/renameat2 (Depends-on): Remove faccessat.
17942         * modules/renameat-tests (test_renameat_LDADD):
17943         * modules/renameat2-tests (test_renameat2_LDADD):
17944         Remove $(LIB_EACCESS).
17946         renameat2: new module
17947         Although the Linux syscall renameat2 is not in glibc (yet?), it is
17948         useful to have access to its RENAME_NOREPLACE flag.
17949         * MODULES.html.sh (func_all_modules): Add renameat2.
17950         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
17951         * modules/renameat2-tests, tests/test-renameat2.c: New files.
17952         * lib/renameat.c (renameat): Move most of the implementation
17953         to renameat2, and just call renameat2.
17954         * modules/renameat (Files): Remove lib/at-func2.c.
17955         (Depends-on): Depend only on renameat2.
17956         (Include): Remove <fcntl.h>.
17957         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
17958         since renameat (via renameat2) might use faccessat.
17960 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
17962         vc-list-files: Adjust the script to support git worktrees
17963         * build-aux/vc-list-files: Require existence, not directory.
17965 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17967         doc: bring MODULES.html.sh up to date
17968         Somehow a few months ago we stopped updating MODULES.html.sh.
17969         I don’t recall explicitly deciding this, so I updated it now.
17970         Alternatively I suppose we could remove it.
17971         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
17972         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
17973         truncate, utime, utime-h, windows-stat-inodes,
17974         windows-stat-override, windows-stat-timespec, year2038.  Sort.
17976 2017-07-26  Jim Meyering  <meyering@fb.com>
17978         fprintftime: fix build-break caused by recent renaming
17979         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
17980         "strftime.c".
17981         * modules/fprintftime: Depend directly on nstrftime.
17983 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17985         regex: work with GCC7's -Werror=implicit-fallthrough=
17986         * lib/regex_internal.h (FALLTHROUGH): New macro.
17987         * lib/regcomp.c (peek_token_bracket, parse_expression):
17988         * lib/regexec.c (check_node_accept): Use it.
17990 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17992         fts: simplify fts_build
17993         * lib/fts.c (fts_build): Simplify, and be lazier about
17994         calling leaf_optimization.
17996         fts: three levels of leaf optimization
17997         * lib/fts.c (enum leaf_optimization): New type with three values.
17998         (S_MAGIC_AFS): New macro.  Sort them.
17999         (leaf_optimization): Rename from leaf_optimization_applies, and
18000         return enum leaf_optimization instead of bool.  All uses changed.
18001         Add cases for unknown type and for AFS.
18002         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18004         fts: cache dirent_inode_sort_may_be_useful too
18005         * lib/fts.c (struct dev_type): New struct.
18006         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18007         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18008         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18009         Now takes FTSENT const *, not int.  All uses changed.  Use
18010         filesystem_type to cache.
18011         (link_count_optimize_ok): Remove.  Caller changed to use
18012         leaf_optimization_applies, which now uses shared cache.
18014         fts: introduce MIN_DIR_NLINK
18015         * lib/fts.c (MIN_DIR_NLINK): New constant.
18016         Use it instead of 2, whenever we are talking about link counts.
18018         fts: nlink_t signedness fixups
18019         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18020         so that root need not be a special case later.
18021         (fts_read): Remove now-redundant test for fts_level.
18022         Do not assume that nlink_t is signed.
18023         (fts_build): Remove useless decrement of nlinks.
18024         (fts_stat): Avoid unlikely signed integer overflow later, if
18025         nlink_t is signed.
18027         fts-tests: new module
18028         * modules/fts-tests, tests/test-fts.c: New files.
18030 2017-07-23  Bruno Haible  <bruno@clisp.org>
18032         Rename module 'strftime' to 'nstrftime'.
18033         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18034         * lib/nstrftime.c: Renamed from lib/strftime.c.
18035         * modules/nstrftime: Renamed from modules/strftime.
18036         (Files, Makefile.am): Update.
18037         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18038         Fix comment.
18039         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18040         (Files, Makefile.am): Update.
18041         * modules/strftime: New file, an obsolete indirection.
18042         * doc/posix-functions/strftime.texi: Update reference.
18043         * config/srclist.txt: Update info.
18044         * NEWS: Mention the change.
18046 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18048         malloca: Silence a warning from clang's memory sanitizer.
18049         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18050         (freea): Use it.
18052 2017-07-18  Bruno Haible  <bruno@clisp.org>
18054         host-cpu-c-abi: Fix detection of MIPS ABI.
18055         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18056         ABI, not the CPU instruction set.
18058 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18060         explicit_bzero: new module
18061         The explicit_bzero function has been added to glibc.
18062         This module is intended to supports its use in GNU programs.
18063         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18064         * m4/explicit_bzero.m4, modules/explicit_bzero:
18065         New files.
18066         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18067         * lib/string.in.h (explicit_bzero): Declare.
18068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18069         * modules/string (string.h): Substitute its vars.
18071 2017-07-16  Bruno Haible  <bruno@clisp.org>
18073         threadlib: Support static linking.
18074         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18075         set gl_cv_have_weak to 'no'.
18077 2017-07-16  Bruno Haible  <bruno@clisp.org>
18079         unicase/locale-language: Fix link dependencies.
18080         * modules/unicase/locale-language (Link): New section.
18081         * modules/unicase/locale-language-tests (Makefile.am): Link
18082         test-locale-language program with $(LIBTHREAD).
18084 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18086         sys_socket: Add support for OpenVMS.
18087         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18088         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18090 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18092         sys_resource: Add support for OpenVMS.
18093         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18094         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18096 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18097             Bruno Haible  <bruno@clisp.org>
18099         math: Add support for OpenVMS.
18100         * lib/math.in.h [__VMS]: Include <fp.h>.
18101         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18103 2017-07-15  Bruno Haible  <bruno@clisp.org>
18105         getdtablesize: Add minimal support for OpenVMS.
18106         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18107         * modules/getdtablesize (Description): Fix.
18108         * lib/getdtablesize.c: Fix comment.
18109         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18110         getdtablesize() function, even though the test fails.
18111         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18112         limitation on OpenVMS.
18114 2017-07-13  Bruno Haible  <bruno@clisp.org>
18116         Revisit cross-compilation guesses.
18117         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18119 2017-07-13  Bruno Haible  <bruno@clisp.org>
18121         Improve cross-compilation guesses for native Windows.
18122         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18123         Windows.
18124         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18126         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18127         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18128         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18129         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18130         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18131         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18132         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18133         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18134         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18135         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18136         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18137         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18138         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18139         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18140         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18142         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18143         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18144         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18145         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18146         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18147         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18148         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18149         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18150         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18151         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18153         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18154         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18156         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18157         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18158         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18159         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18160         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18161         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18162         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18163         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18164         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18166         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18167         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18168         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18169         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18170         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18171         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18172         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18173         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18174         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18175         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18176         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18177         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18178         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18179         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18180         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18181         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18182         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18183         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18185         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18186         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18187         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18188         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18190         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18191         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18192         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18193         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18194         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18195         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18196         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18197         * m4/regex.m4 (gl_REGEX): Likewise.
18198         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18199         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18200         gl_FUNC_REMAINDERF_WORKS): Likewise.
18201         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18202         gl_FUNC_REMAINDERL_WORKS): Likewise.
18203         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18204         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18205         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18206         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18209         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18210         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18211         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18212         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18213         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18214         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18215         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18216         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18217         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18218         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18219         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18220         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18221         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18222         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18223         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18224         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18225         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18226         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18227         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18229         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18230         Likewise.
18231         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18232         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18233         Windows. Enable also on Autoconf 2.70.
18234         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18235         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18236         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18237         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18238         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18239         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18240         for native Windows.
18241         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18242         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18244 2017-07-13  Bruno Haible  <bruno@clisp.org>
18246         Improve cross-compilation guesses for native Windows.
18247         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18248         Windows.
18249         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18250         memchr.m4.
18251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18253 2017-07-13  Bruno Haible  <bruno@clisp.org>
18255         Improve cross-compilation guesses for native Windows.
18256         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18257         native Windows.
18258         (gl_FUNC_FFLUSH): Update accordingly.
18259         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18260         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18262 2017-07-11  Bruno Haible  <bruno@clisp.org>
18264         More systematic m4 quoting and indentation.
18265         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18267         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18269         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18270         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18271         gl_WINSIZE_IN_PTEM): Likewise.
18272         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18273         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18274         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18275         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18276         Correct indentation.
18277         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18278         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18279         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18281         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18282         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18284 2017-07-10  Bruno Haible  <bruno@clisp.org>
18286         round, roundf: Avoid compiler warning in configure test.
18287         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18288         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18290 2017-07-10  Bruno Haible  <bruno@clisp.org>
18292         getlogin tests: Avoid #ifdefs when sharing code between modules.
18293         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18294         * modules/getlogin-tests (Files): Likewise. Remove
18295         tests/test-getlogin_r.c.
18296         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18297         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18298         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18299         getlogin().
18301 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18303         getlogin: don’t assume one name per uid
18304         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18305         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18306         (ttyname): Remove test.
18307         * modules/getlogin_r-tests (ttyname): Remove test.
18308         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18309         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18310         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18311         getlogin rather than getlogin_r.  This avoids code duplication.
18312         (main): Use isatty and fstat rather than ttyname and stat.
18313         Use getpwnam instead of getpwuid, to be portable to test platforms
18314         that have multiple login names for the same uid.
18316 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18317             Bruno Haible  <bruno@clisp.org>
18319         glob: Fix more memory leaks.
18320         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18321         returning.
18322         Reported by Tim Rühsen.
18324 2017-07-10  Bruno Haible  <bruno@clisp.org>
18326         Make sure $host and $host_os are defined when used.
18327         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18328         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18329         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18330         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18331         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18333         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18334         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18335         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18336         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18337         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18339         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18340         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18341         m4_ifdef block.
18343 2017-07-09  Bruno Haible  <bruno@clisp.org>
18345         *printf: Fix cross-compilation guess for Solaris.
18346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18347         2010-12-21.
18349 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18350             Bruno Haible  <bruno@clisp.org>
18352         vasnprintf: port to macOS 10.13
18353         Problem reported by comex in:
18354         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18355         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18357 2017-07-06  Bruno Haible  <bruno@clisp.org>
18359         imaxdiv tests: Fix logic.
18360         * tests/test-imaxdiv.c (main): Use == instead of =.
18361         Reported by Coverity.
18363 2017-07-06  Bruno Haible  <bruno@clisp.org>
18365         uninorm/filter: Fix use-after-free bug.
18366         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18367         sortbuf == filter->sortbuf invariant.
18368         Reported by Coverity.
18370 2017-07-06  Bruno Haible  <bruno@clisp.org>
18372         glob: Fix more memory leaks.
18373         * lib/glob.c (glob): Free dirname before returning.
18374         Reported by Coverity and Tim Rühsen.
18376 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18378         parse-datetime: fix uninit var bug
18379         Reported by Bruno Haible in:
18380         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18381         * lib/parse-datetime.y (parse_datetime2): Do not use
18382         uninitialized.
18384 2017-07-05  Bruno Haible  <bruno@clisp.org>
18386         doc: Update for MSVC 14.
18387         * doc/posix-headers/*.texi: Add info about MSVC 14.
18388         * doc/posix-functions/*.texi: Likewise.
18389         * doc/pastposix-functions/*.texi: Likewise.
18390         * doc/glibc-headers/*.texi: Likewise.
18391         * doc/glibc-functions/*.texi: Likewise.
18393 2017-07-05  Bruno Haible  <bruno@clisp.org>
18395         sched: Fix build failure on native Windows (regression from 2017-06-19).
18396         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18398 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18400         stdioext: Port to OpenVMS.
18401         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18402         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18403         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18404         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18405         * lib/fpurge.c (fpurge): Likewise.
18406         * lib/freadable.c (freadable): Likewise.
18407         * lib/freadahead.c (freadahead): Likewise.
18408         * lib/freading.c (freading): Likewise.
18409         * lib/freadptr.c (freadptr): Likewise.
18410         * lib/freadseek.c (freadseek): Likewise.
18411         * lib/fseeko.c (fseeko): Likewise.
18412         * lib/fseterr.c (fseterr): Likewise.
18413         * lib/fwritable.c (fwriteable): Likewise.
18414         * lib/fwriting.c (fwriting): Likewise.
18416 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18418         glob: Declare variables at the very start of their scope.
18419         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18420         its separate scope, so the functions will compile on Haiku.
18422 2017-07-01  Bruno Haible  <bruno@clisp.org>
18424         logbl: Work around a glibc bug on PowerPC64LE.
18425         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18426         numbers.
18427         * doc/posix-functions/logbl.texi: Update.
18429 2017-06-29  Bruno Haible  <bruno@clisp.org>
18431         stat, fstat: Compile stat-w32.c only on platforms that need it.
18432         Suggested by Paul Eggert.
18433         * modules/stat (configure.ac): Request stat-w32.o only on native
18434         Windows.
18435         * modules/fstat (configure.ac): Likewise.
18437 2017-06-25  Bruno Haible  <bruno@clisp.org>
18439         stat: Improve last change.
18440         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18442 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18444         stat: port to xlc 12.01
18445         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18446         12.01 complains "Compilation unit is empty."
18448 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18450         xalloc-oversized: port to icc
18451         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18452         __builtin_mul_overflow if ICC is defined, as this results in
18453         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18454         20170213.
18456 2017-06-19  Bruno Haible  <bruno@clisp.org>
18458         classpath: Avoid including config.h twice, as it produces warnings.
18459         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18460         * lib/classpath.h: Conditionalize the include of config.h.
18462 2017-06-19  Bruno Haible  <bruno@clisp.org>
18463             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18465         sched: Fix compilation failure on OpenVMS.
18466         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18467         test whether <pthread.h> exists and defines struct sched_param.
18468         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18470 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18472         diffseq: port to GCC 7 with --enable-gcc-warnings
18473         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18474         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18475         not complain about big_snake being defined but not used.
18477 2017-06-15  Bruno Haible  <bruno@clisp.org>
18479         gettext-h: Update theoretical condition for use of variable size arrays.
18480         Reported by Paul Eggert.
18481         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18482         to include the theoretical condition for availability of variable size
18483         arrays, if we could trust the value of __STDC_VERSION__.
18485 2017-06-12  Bruno Haible  <bruno@clisp.org>
18487         Relicense some modules under LGPLv2+.
18488         Daiki Ueno's approval is in
18489         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18490         * modules/uniwidth/base (License): Change to LGPLv2+.
18491         * modules/uniwidth/width (License): Likewise.
18493 2017-06-11  Bruno Haible  <bruno@clisp.org>
18495         localename: Fix test failure on DragonFly BSD.
18496         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18497         like FreeBSD.
18499 2017-06-11  Bruno Haible  <bruno@clisp.org>
18501         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18502         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18503         * lib/float.in.h: Likewise.
18504         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18506 2017-06-11  Bruno Haible  <bruno@clisp.org>
18508         gnulib-tool: Clean up after autotools.
18509         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18510         useless directory left over by the Autotools.
18512 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18514         getopt-posix: port to glibc 2.25.90
18515         Problem reported by Daniel P. Berrange in:
18516         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18517         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18518         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18519         #undef if __GETOPT_PREFIX is defined.
18521 2017-06-11  Bruno Haible  <bruno@clisp.org>
18523         strtod-obsolete: Fix license.
18524         * modules/strtod-obsolete (License): Change to LGPL.
18526 2017-06-10  Jim Meyering  <meyering@fb.com>
18528         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18529         * lib/savewd.c (FALLTHROUGH): Define.
18530         (savewd_save, savewd_restore): Use this, rather than a comment,
18531         whenever one switch case falls through into the next.
18533 2017-06-08  Bruno Haible  <bruno@clisp.org>
18535         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18536         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18537         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18538         case.
18540 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18542         doc: remove robots, add prereqs
18543         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18544         builds.  Simon's robot site does not seem to be up, so remove
18545         mentions of it for now.
18547 2017-06-08  Bruno Haible  <bruno@clisp.org>
18549         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18550         * gnulib-tool (func_symlink_target): New function, extracted from
18551         func_symlink.
18552         (func_symlink, func_symlink_if_changed): Use it.
18554 2017-06-08  Bruno Haible  <bruno@clisp.org>
18556         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18557         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18559 2017-06-07  Bruno Haible  <bruno@clisp.org>
18561         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18562         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18563         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18564         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18565         override, pass 2 arguments to getcwd, not 3.
18567 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18569         same-inode: port better to VMS 8.2 and later
18570         Problem reported by John E. Malmberg in:
18571         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18572         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18573         Use the usual POSIX definition.
18574         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18576 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18578         error: fix POSIX violation for va_end
18579         Problem reported by Bruno Haible in:
18580         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18581         * lib/error.c (error_tail): Do not call va_end here.
18582         (error, error_at_line): Call it here instead.
18584 2017-05-28  Bruno Haible  <bruno@clisp.org>
18586         c-strtod: Make it usable in C++ mode.
18587         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
18589 2017-05-25  Jim Meyering  <meyering@fb.com>
18591         quotearg: fix compilation failure due to FALLTHROUGH misuse
18592         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
18593         macro back to /* fall through */ comment.  The macro can apply only
18594         to a following case statement.  Reported by Assaf Gordon.
18596 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18598         intprops: port to recent icc
18599         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
18600         but does not support __builtin_add_overflow etc.
18601         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
18602         Define to 0.
18604 2017-05-23  Karl Berry  <karl@freefriends.org>
18606         * config/srclist.txt (iconv.m4): sync broken, comment out
18607         until (hopefully) the next gettext release.
18609 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
18611         Remove repeated words in comments.
18613 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18615         fallthrough: reinstate a FALLTHROUGH instance in quotearg
18616         quotearg.c: Reinstate this instance which is significant
18617         when the if branch is not taken.
18619 2017-05-21  Bruno Haible  <bruno@clisp.org>
18621         gnulib-tool: Add options to create hard links.
18622         * gnulib-tool (func_usage): Document options --hardlink,
18623         --local-hardlink, --more-hardlinks.
18624         (func_symlink): Renamed from func_ln.
18625         (func_symlink_if_changed): Renamed from func_ln_if_changed.
18626         (func_hardlink): New function.
18627         (copymode, lcopymode): New variables.
18628         (symbolic, lsymbolic): Remove variables.
18629         (Options): Implement options --hardlink, --local-hardlink,
18630         --more-hardlinks.
18631         (func_should_link): Renamed from func_should_symlink. Set copyaction.
18632         (func_add_file, func_update_file): Update invocation of
18633         func_should_link. Invoke func_hardlink when appropriate.
18634         (func_import): Update comments.
18635         (func_create_testdir): Update invocation of func_should_link. Invoke
18636         func_hardlink when appropriate.
18637         Finally, invoke 'git update-index --refresh' to mitigate the effects of
18638         the hard links on git.
18640 2017-05-20  Bruno Haible  <bruno@clisp.org>
18642         argp: Simplify bit manipulation.
18643         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
18644         on a signed integer type.
18646 2017-05-20  Bruno Haible  <bruno@clisp.org>
18648         Avoid wrong configure results with gcc -fsanitize=address.
18649         This completes the work done on 2016-02-06 on this topic.
18650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
18651         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18653         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18654         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
18655         returning.
18656         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18657         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
18658         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18660         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18661         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18662         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
18663         free allocated memory before returning.
18664         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
18666         objects before returning.
18667         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
18668         returning.
18670 2017-05-20  Bruno Haible  <bruno@clisp.org>
18672         gnulib-tool: Don't create hard links between gnulib and its testdirs.
18673         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
18675 2017-05-20  Bruno Haible  <bruno@clisp.org>
18677         argp, tsearch tests: Fix file list.
18678         * modules/argp-tests (Files): Add tests/macros.h.
18679         * modules/tsearch-tests (Files): Likewise.
18681 2017-05-20  Bruno Haible  <bruno@clisp.org>
18683         getopt-posix tests: Remove redundant include.
18684         * tests/test-getopt.h: Don't include "macros.h". It's already included
18685         by tests/test-getopt-main.h.
18687 2017-05-19  Jim Meyering  <meyering@fb.com>
18689         dfa: two small simplifications
18690         * lib/dfa.c (build_state): Avoid repeating longer expressions.
18692 2017-05-18  Jim Meyering  <meyering@fb.com>
18694         fallthrough: update for GCC 7/8
18695         * lib/quotearg.c (FALLTHROUGH): New macro.
18696         Use it whenever one switch case falls through into the next,
18697         replacing "/* Fall through */" comments.  This exposed one
18698         instance of an unwarranted "fall through" comment: unwarranted
18699         because it preceded a "goto" label not a case statement.
18700         * lib/freopen-safer.c (freopen_safer): Likewise.
18701         * lib/fts.c (leaf_optimization_applies): Likewise.
18702         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18703         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
18704         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
18705         tests/macros.h for the definition.
18706         * tests/test-argp.c (group1_parser): Likewise.
18707         * tests/test-getopt.h (getopt_loop): Likewise.
18709 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18711         argp: fix shift bug
18712         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
18713         behavior on shift overflow, caught by gcc -fsanitize=undefined.
18715         argp: fix pointer-subtraction bug
18716         * lib/argp-help.c (hol_append): Don’t subtract pointers to
18717         different arrays, as this can run afoul of -fcheck-pointer-bounds.
18718         See the thread containing Bruno Haible’s report in:
18719         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
18721 2017-05-19  Bruno Haible  <bruno@clisp.org>
18723         printf-posix tests: Avoid test failure with "gcc --coverage".
18724         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18725         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
18726         than 5000000.
18727         * tests/test-fprintf-posix2.c (main): Likewise.
18729 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18731         closeout: don’t close stderr when sanitizing
18732         * NEWS: Document this.
18733         * lib/closeout.c (__has_feature): New macro, if not already defined.
18734         (SANITIZE_ADDRESS): New constant.
18735         (close_stdout): Don’t close stderr if sanitizing addresses.
18737 2017-05-19  Bruno Haible  <bruno@clisp.org>
18739         get-rusage-data tests: Avoid failure on Linux/glibc.
18740         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
18741         on glibc systems.
18743 2017-05-18  Bruno Haible  <bruno@clisp.org>
18745         localename: Include necessary header files on Cygwin.
18746         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
18747         where NL_LOCALE_NAME is defined.
18749 2017-05-18  Bruno Haible  <bruno@clisp.org>
18751         gettext: Update macros from gettext git.
18752         * m4/intldir.m4: Require Autoconf >= 2.60.
18753         * m4/progtest.m4: Fix typos in copyright notice.
18755 2017-05-18  Bruno Haible  <bruno@clisp.org>
18757         copy-file tests: Fix link error (regression from 2017-05-01).
18758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18759         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
18760         $(LIB_CLOCK_GETTIME).
18762 2017-05-18  Bruno Haible  <bruno@clisp.org>
18764         unicase/special-casing: Fix incompatibility with gperf-3.0.4
18765         (regression from 2017-02-13).
18766         * lib/unicase/special-casing.in.h: Renamed from
18767         lib/unicase/special-casing.h.
18768         * modules/unicase/special-casing (Files): Add
18769         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
18770         (Makefile.am): Add rule for generating unicase/special-casing.h.
18771         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
18772         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
18773         not "special-casing.h".
18774         * lib/unicase/u*.c: Likewise.
18776 2017-05-17  Bruno Haible  <bruno@clisp.org>
18778         README: Don't ask people to read a TeXinfo file.
18779         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18780         * README: Tell people how to read the HTML formatted manual.
18782 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
18784         parse-datetime: Fix memleak
18785         * lib/parse-datetime.y (parse_datetime2): Cleanup on
18786         localtime_rz() failure.
18788 2017-05-16  Bruno Haible  <bruno@clisp.org>
18790         javacomp: Fix handle leak.
18791         Found by Coverity.
18792         * lib/javacomp.c (get_classfile_version): Close fd before returning.
18794 2017-05-16  Bruno Haible  <bruno@clisp.org>
18796         relocate: Make it easier to reclaim allocated memory.
18797         * lib/relocatable.h (relocate2): New declaration/macro.
18798         * lib/relocatable.c (relocate2): New function.
18799         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
18800         relocate2 function.
18801         * lib/localcharset.c (relocate2): Define fallback.
18802         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
18803         allocated memory.
18804         * lib/javaversion.c (relocate2): Define fallback.
18805         (javaexec_version): Invoke relocate2 instead of relocate. Free the
18806         allocated memory.
18808 2017-05-16  Bruno Haible  <bruno@clisp.org>
18810         relocate: Simplify EMX specific code.
18811         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
18812         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
18814 2017-05-16  Bruno Haible  <bruno@clisp.org>
18816         sigpipe tests: Fix file list.
18817         * modules/sigpipe-tests (Files): Add tests/macros.h.
18819 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18821         manywarnings: update for GCC 7
18822         * build-aux/gcc-warning.spec:
18823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18824         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
18825         requires a non-comment fallthrough attribute.  This is a bit
18826         cleaner than the comment versions.
18827         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
18828         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
18829         Use it whenever one switch case falls through into the next.
18830         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
18831         Use FALLTHROUGH macro.
18833 2017-05-15  Bruno Haible  <bruno@clisp.org>
18835         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
18836         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
18837         @ALLOCA@, not @LTALLOCA@.
18839 2017-05-15  Bruno Haible  <bruno@clisp.org>
18841         sys_select: Avoid "was expanded before it was required" warning.
18842         * modules/sys_select (configure.ac): Require, not invoke,
18843         gl_HEADER_SYS_SELECT.
18845 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18847         gnulib-tool: improve GNU Make debugging
18848         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
18849         Report autoconf diagnostics when it fails, in the output makefile.
18851 2017-05-14  Bruno Haible  <bruno@clisp.org>
18853         stat-time tests: Improve comment.
18854         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
18856 2017-05-14  Bruno Haible  <bruno@clisp.org>
18858         same-inode: Adapt for windows-stat-inodes.
18859         * lib/same-inode.h: Include <sys/types.h>.
18860         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
18861         * modules/same-inode (Depends-on): Add sys_types.
18863 2017-05-14  Bruno Haible  <bruno@clisp.org>
18865         windows-stat-inodes: New module.
18866         * m4/windows-stat-inodes.m4: New file.
18867         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
18868         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
18869         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
18870         (_GL_WINDOWS_STAT_INODES): New macro.
18871         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
18872         (GetFileInformationByHandleExFunc): New variable.
18873         (initialize): Initialize it.
18874         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
18875         st_ino appropriately.
18876         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
18877         a fallback, because it does not provide st_dev and st_ino values.
18878         * modules/fstat (Depends-on): Add 'verify'.
18879         * modules/windows-stat-inodes: New file.
18880         * doc/windows-stat-inodes.texi: New file.
18881         * doc/gnulib.texi: Include it.
18882         * doc/posix-headers/sys_stat.texi: Mention the new module.
18884 2017-05-14  Bruno Haible  <bruno@clisp.org>
18886         stat-time tests: Workaround for native Windows.
18887         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
18888         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
18889         New variables.
18890         (initialize_filenames): New function.
18891         (main): Invoke it.
18892         (cleanup, prepare_test): Update.
18894 2017-05-14  Bruno Haible  <bruno@clisp.org>
18896         stat-time: Adapt for windows-stat-timespec.
18897         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
18898         entire st_ctim field.
18900 2017-05-13  Jim Meyering  <meyering@fb.com>
18902         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
18903         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
18904         file that uses the assume macro, claiming that verify.h is unused.
18906 2017-05-13  Bruno Haible  <bruno@clisp.org>
18908         Use symbolic values for _WIN32_WINNT.
18909         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
18910         * lib/sethostname.c (_WIN32_WINNT): Likewise.
18912 2017-05-13  Bruno Haible  <bruno@clisp.org>
18914         year2038: New module.
18915         * m4/year2038.m4: New file.
18916         * modules/year2038: New file.
18917         * doc/year2038.texi: New file.
18918         * doc/gnulib.texi: Include it.
18920 2017-05-13  Bruno Haible  <bruno@clisp.org>
18922         largefile: Simplify.
18923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
18924         of _GL_WINDOWS_64_BIT_ST_SIZE.
18926 2017-05-13  Bruno Haible  <bruno@clisp.org>
18928         largefile: Improve and document.
18929         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
18930         the mingw headers already define 'stat' appropriately.
18931         * modules/largefile (Description): Clarify.
18932         * doc/largefile.texi: New file.
18933         * doc/gnulib.texi: Include it.
18934         * doc/posix-headers/sys_types.texi: Update.
18936 2017-05-13  Bruno Haible  <bruno@clisp.org>
18938         truncate: New module.
18939         * lib/unistd.in.h (truncate): New declaration.
18940         * lib/truncate.c: New file.
18941         * m4/truncate.m4: New file.
18942         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
18943         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
18944         REPLACE_TRUNCATE.
18945         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
18946         HAVE_TRUNCATE, REPLACE_TRUNCATE.
18947         * modules/truncate: New file.
18948         * tests/test-unistd-c++.cc (truncate): Test signature.
18949         * doc/posix-functions/truncate.texi: Mention the new module.
18951         * tests/test-truncate.c: New file.
18952         * modules/truncate-tests: New file.
18954 2017-05-13  Bruno Haible  <bruno@clisp.org>
18956         windows-stat-timespec: New module.
18957         * modules/windows-stat-timespec: New file.
18958         * m4/windows-stat-timespec.m4: New file.
18959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
18960         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
18961         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
18962         fields st_atim, st_mtim, st_ctim.
18963         (st_atime, st_mtime, st_ctime): Define as macros.
18964         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
18965         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
18966         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
18967         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
18968         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
18969         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
18970         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
18971         FILETIME to 'struct timespec', not 'time_t'.
18972         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
18973         FILETIME to 'struct timespec', not 'time_t'.
18974         * lib/stat-time.h (STAT_TIMESPEC): Define also if
18975         _GL_WINDOWS_STAT_TIMESPEC.
18976         * doc/windows-stat-timespec.texi: New file.
18977         * doc/gnulib.texi: Include it.
18979 2017-05-13  Bruno Haible  <bruno@clisp.org>
18981         windows-stat-override: New module.
18982         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
18983         definition. Define GNULIB_defined_struct_stat.
18984         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
18985         link error if this symbol is used and the corresponding module is not
18986         in use.
18987         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
18988         GNULIB_OVERRIDES_STRUCT_STAT.
18989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18990         GNULIB_OVERRIDES_STRUCT_STAT.
18991         * modules/sys_stat (Makefile.am): Substitute
18992         GNULIB_OVERRIDES_STRUCT_STAT.
18993         * modules/windows-stat-override: New file.
18995 2017-05-13  Bruno Haible  <bruno@clisp.org>
18997         fstat: Fix module dependency conditions.
18998         * modules/fstat (Depends-on): Fix typo.
19000 2017-05-13  Bruno Haible  <bruno@clisp.org>
19002         stat, fstat: Complete removal of old native Windows code.
19003         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19004         * lib/fstat.c: Likewise.
19005         * lib/stat-w32.c: Likewise.
19007 2017-05-13  Bruno Haible  <bruno@clisp.org>
19009         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19010         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19012 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19014         getopt-posix: port to mingw
19015         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19016         Problem reported by Daniel P. Berrage in:
19017         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19019 2017-05-11  Bruno Haible  <bruno@clisp.org>
19021         gettimeofday: Increase precision on mingw.
19022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19023         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19024         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19025         GetSystemTimePreciseAsFileTime based implementation always.
19026         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19027         mingw.
19029 2017-05-11  Bruno Haible  <bruno@clisp.org>
19031         poll: Fix confusion between SOCKETs and FDs on native Windows.
19032         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19033         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19035 2017-05-11  Bruno Haible  <bruno@clisp.org>
19037         doc: Clarify doc about socket functions on native Windows.
19038         This reworks doc that was added on 2008-09-29.
19039         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19040         clearer wording.
19041         * doc/posix-functions/accept.texi: Use clearer wording.
19042         * doc/posix-functions/bind.texi: Likewise.
19043         * doc/posix-functions/connect.texi: Likewise.
19044         * doc/posix-functions/getpeername.texi: Likewise.
19045         * doc/posix-functions/getsockname.texi: Likewise.
19046         * doc/posix-functions/getsockopt.texi: Likewise.
19047         * doc/posix-functions/ioctl.texi: Likewise.
19048         * doc/posix-functions/listen.texi: Likewise.
19049         * doc/posix-functions/recv.texi: Likewise.
19050         * doc/posix-functions/recvfrom.texi: Likewise.
19051         * doc/posix-functions/send.texi: Likewise.
19052         * doc/posix-functions/sendto.texi: Likewise.
19053         * doc/posix-functions/setsockopt.texi: Likewise.
19054         * doc/posix-functions/shutdown.texi: Likewise.
19055         * doc/posix-functions/socket.texi: Likewise.
19057 2017-05-10  Bruno Haible  <bruno@clisp.org>
19059         poll: Fix link error on native Windows.
19060         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19062 2017-05-10  Bruno Haible  <bruno@clisp.org>
19064         time: Fix missing initialization of HAVE_TIMEZONE_T.
19065         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19066         here...
19067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19068         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19069         gl_HEADER_SYS_TIME_H_DEFAULTS.
19070         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19071         (configure.ac): Remove useless quoting.
19073 2017-05-10  Bruno Haible  <bruno@clisp.org>
19075         Implement a way to opt out from MSVC support, part 2.
19076         * modules/msvc-inval (Include): Document recommended idiom.
19077         * modules/msvc-nothrow (Include): Likewise.
19079         Implement a way to opt out from MSVC support.
19080         This is useful for Emacs.
19081         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19082         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19083         * lib/error.c: Likewise.
19084         * lib/fcntl.c: Likewise.
19085         * lib/flock.c: Likewise.
19086         * lib/fstat.c: Likewise.
19087         * lib/fsync.c: Likewise.
19088         * lib/ioctl.c: Likewise.
19089         * lib/isapipe.c: Likewise.
19090         * lib/lseek.c: Likewise.
19091         * lib/nonblocking.c: Likewise.
19092         * lib/poll.c: Likewise.
19093         * lib/select.c: Likewise.
19094         * lib/sockets.h: Likewise.
19095         * lib/sockets.c: Likewise.
19096         * lib/stdio-read.c: Likewise.
19097         * lib/stdio-write.c: Likewise.
19098         * lib/utimens.c: Likewise.
19099         * lib/w32sock.h: Likewise.
19100         * lib/w32spawn.h: Likewise.
19101         * tests/test-cloexec.c: Likewise.
19102         * tests/test-dup-safer.c: Likewise.
19103         * tests/test-dup2.c: Likewise.
19104         * tests/test-dup3.c: Likewise.
19105         * tests/test-fcntl.c: Likewise.
19106         * tests/test-pipe.c: Likewise.
19107         * tests/test-pipe2.c: Likewise.
19108         * lib/ftruncate.c: Likewise.
19109         (chsize_nothrow): Renamed from chsize.
19110         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19111         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19112         * lib/close.c: Likewise.
19113         * lib/dup.c: Likewise.
19114         * lib/fclose.c: Likewise.
19115         * lib/raise.c: Likewise.
19116         * tests/test-fgetc.c: Likewise.
19117         * tests/test-fputc.c: Likewise.
19118         * tests/test-fread.c: Likewise.
19119         * tests/test-fwrite.c: Likewise.
19120         * lib/getdtablesize.c: Likewise.
19121         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19122         * lib/isatty.c: Don't include msvc-inval.h if
19123         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19124         Include <io.h> as an alternative to msvc-nothrow.h.
19125         * lib/read.c: Likewise.
19126         * lib/write.c: Likewise.
19127         * lib/dup2.c: Likewise.
19128         (dup2_nothrow): New function.
19129         (ms_windows_dup2): Use it.
19130         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19131         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19132         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19133         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19134         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19135         * m4/read.m4 (gl_FUNC_READ): Likewise.
19136         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19137         * doc/windows-without-msvc.texi: New file.
19138         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19139         section.
19141 2017-05-10  Bruno Haible  <bruno@clisp.org>
19143         wait-process: Adjust native Windows support.
19144         * lib/wait-process.c: Use the usual condition for recognizing a native
19145         Windows platform.
19147 2017-05-10  Bruno Haible  <bruno@clisp.org>
19149         doc: New chapter "Native Windows Support".
19150         * doc/gnulib.texi (Native Windows Support): New chapter.
19151         * doc/windows-libtool.texi: Small wording changes.
19152         * doc/windows-sockets.texi: Small wording and formatting changes.
19154 2017-05-10  Bruno Haible  <bruno@clisp.org>
19156         doc: Move section "Library version handling".
19157         * doc/gnulib.texi: Move section "Library version handling"
19158         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19160 2017-05-10  Bruno Haible  <bruno@clisp.org>
19162         doc: Move section "Running self-tests under valgrind".
19163         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19164         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19166 2017-05-10  Bruno Haible  <bruno@clisp.org>
19168         doc: New chapter "Build Infrastructure Modules".
19169         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19171 2017-05-10  Bruno Haible  <bruno@clisp.org>
19173         Prepare for reordering sections in the manual.
19174         * doc/gnulib.texi: Move several sections to separate files. Include
19175         these files.
19176         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19177         * doc/obsolete.texi: Likewise.
19178         * doc/extra-tests.texi: Likewise.
19179         * doc/transversal.texi: Likewise.
19180         * doc/namespace.texi: Likewise.
19181         * doc/check-version.texi: Likewise.
19182         * doc/windows-sockets.texi: Likewise.
19183         * doc/windows-libtool.texi: Likewise.
19184         * doc/licenses-texi.texi: Likewise.
19185         * doc/build-automation.texi: Likewise.
19186         * doc/c-locale.texi: Likewise.
19188 2017-05-10  Bruno Haible  <bruno@clisp.org>
19190         Fix instructions how to update manual on www.gnu.org.
19191         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19193 2017-05-09  Bruno Haible  <bruno@clisp.org>
19195         tzset: Expand comment about TZ problem on native Windows.
19196         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19197         Paul Eggert.
19198         * lib/ctime.c (rpl_ctime): Likewise.
19199         * lib/localtime.c (rpl_localtime): Likewise.
19200         * lib/mktime.c (mktime): Likewise.
19201         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19202         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19204 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19206         intprops: don’t depend on ‘verify’
19207         Problem reported by Ævar Arnfjörð Bjarmason in:
19208         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19209         * lib/intprops.h: Do not include verify.h, and move compile-time
19210         checks from here ...
19211         * tests/test-intprops.c (main): ... to here, if they’re not here
19212         already.  Check widths of other standard integer types.
19213         * modules/intprops (Depends-on): Remove ‘verify’.
19215 2017-05-07  Bruno Haible  <bruno@clisp.org>
19217         utimens: On native Windows, support 100ns resolution also if fd < 0.
19218         * lib/utime.in.h: Include <time.h>.
19219         (_gl_utimens_windows): New declaration.
19220         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19221         (utime): Invoke it.
19222         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19223         instead of utime.
19224         * modules/utime (Depends-on): Add 'time'.
19226 2017-05-07  Bruno Haible  <bruno@clisp.org>
19228         utimens: Improve error code on native Windows.
19229         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19230         error code EACCES, not EINVAL.
19232 2017-05-07  Bruno Haible  <bruno@clisp.org>
19234         utime: Handle more Windows error codes.
19235         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19236         Based on explanations by Billy O'Neal.
19238 2017-05-05  Bruno Haible  <bruno@clisp.org>
19240         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19241         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19242         union.
19243         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19244         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19245         value of cipher->IV.
19247 2017-05-05  Bruno Haible  <bruno@clisp.org>
19249         wctype-h-c++-tests: Update.
19250         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19252 2017-05-05  Bruno Haible  <bruno@clisp.org>
19254         wchar-c++-tests: Update.
19255         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19257 2017-05-05  Bruno Haible  <bruno@clisp.org>
19259         utime-h-c++-tests: New module.
19260         * tests/test-utime-h-c++.cc: New file.
19261         (utime): Declare, missing since 2017-04-30.
19262         * modules/utime-h-c++-tests: New file.
19264 2017-05-05  Bruno Haible  <bruno@clisp.org>
19266         unistd-c++-tests: Update.
19267         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19268         (read): Declare, missing since 2011-04-15.
19269         (sethostname): Declare, missing since 2011-12-03.
19271 2017-05-05  Bruno Haible  <bruno@clisp.org>
19273         time-c++-tests: Update.
19274         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19275         (localtime, gmtime): Declare, missing since 2017-04-30.
19276         (ctime): Declare, missing since 2017-04-30.
19277         (strftime): Declare, missing since 2017-04-30.
19278         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19279         2015-07-24.
19281 2017-05-05  Bruno Haible  <bruno@clisp.org>
19283         sys_resource-c++-tests: New module.
19284         * tests/test-sys_resource-c++.cc: New file.
19285         (getrusage): Declare, missing since 2012-04-13.
19286         * modules/sys_resource-c++-tests: New file.
19288 2017-05-05  Bruno Haible  <bruno@clisp.org>
19290         strings-c++-tests: New module.
19291         * tests/test-strings-c++.cc: New file.
19292         (ffs): Declare, missing since 2011-07-12.
19293         * modules/strings-c++-tests: New file.
19295 2017-05-05  Bruno Haible  <bruno@clisp.org>
19297         string-c++-tests: Update.
19298         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19299         (ffsll): Declare, missing since 2011-07-15.
19301 2017-05-05  Bruno Haible  <bruno@clisp.org>
19303         stdlib-c++-tests: Update.
19304         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19305         2011-10-18.
19306         (ptsname_r): Declare, missing since 2011-11-07.
19307         (qsort_r): Declare, missing since 2014-08-29.
19308         (random, srandom, initstate, setstate): Declare, missing since
19309         2012-01-14.
19310         (secure_getenv): Declare, missing since 2013-02-05.
19312 2017-05-05  Bruno Haible  <bruno@clisp.org>
19314         stdio-c++-tests: Update.
19315         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19317 2017-05-05  Bruno Haible  <bruno@clisp.org>
19319         signal-h-c++-tests: Update.
19320         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19322 2017-05-05  Bruno Haible  <bruno@clisp.org>
19324         math-c++-tests: Update.
19325         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19326         (fma): Declare, missing since 2011-10-17.
19327         (fmal): Declare, missing since 2011-10-17.
19329 2017-05-05  Bruno Haible  <bruno@clisp.org>
19331         locale-c++-tests: Update.
19332         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19333         2012-03-25.
19335 2017-05-05  Bruno Haible  <bruno@clisp.org>
19337         inttypes-c++-tests: New module.
19338         * tests/test-inttypes-c++.cc: New file.
19339         (strtoimax): Declare, missing since 2012-01-05.
19340         (strtoumax): Declare, missing since 2012-01-05.
19341         * modules/inttypes-c++-tests: New file.
19343 2017-05-05  Bruno Haible  <bruno@clisp.org>
19345         dirent-c++-tests: Update.
19346         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19347         (rewinddir): Declare, missing since 2011-09-13.
19348         (dirfd): Declare, missing since 2010-03-08.
19350 2017-05-04  Bruno Haible  <bruno@clisp.org>
19352         argp: Fix mistake in 2017-04-23 commit.
19353         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19354         assume that strerror_r returns 'int', not 'char *'.
19356 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19358         argp: Fix typo.
19359         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19361 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19363         utimens: port to Emacs + MS-Windows
19364         Skip the new MS-Windows-specific code if Emacs.
19365         * lib/utimens.c [EMACS_CONFIGUATION]:
19366         Avoid new MS-Windows-specific code.
19367         (USE_SETFILETIME): New macro.
19368         (fdutimens): Use it.
19370 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19372         tzset: update doc for TZ problems on MS-Windows
19373         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19374         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19375         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19376         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19377         * doc/posix-functions/wcsftime.texi:
19378         Mention some issues with TZ under MS-Windows.
19380 2017-05-01  Bruno Haible  <bruno@clisp.org>
19382         copy-file: Fix build error on mingw.
19383         * modules/copy-file (Depends-on): Add 'close'.
19385 2017-05-01  Bruno Haible  <bruno@clisp.org>
19387         tzset: Work around TZ problem on native Windows.
19388         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19389         Windows, set REPLACE_TZSET to 1.
19390         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19391         invoke '_tzset' instead of 'tzset'.
19392         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19394         * modules/time_rz (Depends-on): Add tzset.
19395         * lib/time_rz.c (tzset): Remove fallback definition.
19396         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19398 2017-05-01  Bruno Haible  <bruno@clisp.org>
19400         mktime: Fix dependencies.
19401         * modules/mktime (Depends-on): Add 'time'.
19403 2017-05-01  Bruno Haible  <bruno@clisp.org>
19405         New module 'localtime-buffer', split off from module 'gettimeofday'.
19406         * lib/localtime-buffer.h: New file.
19407         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19408         * lib/time.in.h (tzset): New declaration.
19409         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19410         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19411         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19412         moved to lib/localtime-buffer.c or lib/tzset.c.
19413         * m4/localtime-buffer.m4: New file.
19414         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19415         HAVE_TZSET, REPLACE_TZSET.
19416         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19417         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19418         gl_LOCALTIME_BUFFER_NEEDED.
19419         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19420         since 2007-01-18.
19421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19422         tzset.
19423         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19424         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19425         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19426         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19427         * modules/localtime-buffer: New file.
19428         * modules/time (Depends-on): Remove 'gettimeofday'.
19429         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19430         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19431         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19432         (Files): Add lib/tzset.c.
19433         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19434         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19435         gl_TIME_MODULE_INDICATOR.
19436         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19438 2017-05-01  Bruno Haible  <bruno@clisp.org>
19440         copy-file: Preserve sub-second time stamps.
19441         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19442         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19443         transport the time stamps from the original file to the destination
19444         file.
19445         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19446         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19447         utime-h.
19449 2017-05-01  Bruno Haible  <bruno@clisp.org>
19451         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19452         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19453         also on MSVC.
19454         Reported by Eli Zaretskii <eliz@gnu.org>.
19456 2017-05-01  Bruno Haible  <bruno@clisp.org>
19458         wchar: Fix compilation error with the original mingw.org mingw.
19459         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19460         <stddef.h> instead.
19461         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19462         gl_WCTYPE_H.
19463         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19464         gl_TYPE_WINT_T_PREREQ instead.
19465         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19466         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19467         Reported by Eli Zaretskii <eliz@gnu.org>.
19469 2017-04-30  Bruno Haible  <bruno@clisp.org>
19471         utimecmp: Add support for native Windows.
19472         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19474 2017-04-30  Bruno Haible  <bruno@clisp.org>
19476         utimens: Add support for native Windows.
19477         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19478         (fdutimens): Provide a native Windows implementation, like utime.c with
19479         added tv_nsec support.
19480         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19481         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19483 2017-04-30  Bruno Haible  <bruno@clisp.org>
19485         wcsftime: New module.
19486         * lib/wchar.in.h (wcsftime): New declaration.
19487         * lib/wcsftime.c: New file.
19488         * m4/wcsftime.m4: New file.
19489         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19490         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19491         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19493         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19494         * modules/wcsftime: New file.
19495         * doc/posix-functions/wcsftime.texi: Mention the new module.
19497 2017-04-30  Bruno Haible  <bruno@clisp.org>
19499         strftime-fixes: New module.
19500         * lib/time.in.h (strftime): New declaration.
19501         * lib/strftime-fixes.c: New file.
19502         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19503         (gl_FUNC_STRFTIME): Remove macro.
19504         * m4/strftime-fixes.m4: New file.
19505         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19506         REPLACE_STRFTIME.
19507         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19508         REPLACE_STRFTIME.
19509         * modules/strftime-fixes: New file.
19510         * doc/posix-functions/strftime.texi: Mention the new module.
19512 2017-04-30  Bruno Haible  <bruno@clisp.org>
19514         mktime: Work around TZ problem on native Windows.
19515         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19516         from the native Windows workaround.
19517         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19518         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19519         'guessing no'.
19520         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19521         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19522         NEED_MKTIME_WINDOWS.
19523         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19524         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19525         NEED_MKTIME_INTERNAL.
19526         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19527         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19528         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19529         not REPLACE_MKTIME.
19530         * doc/posix-functions/mktime.texi: Mention the native Windows
19531         workaround.
19533 2017-04-30  Bruno Haible  <bruno@clisp.org>
19535         localtime: New module.
19536         * lib/time.in.h (localtime): Declare also if requested by module
19537         'localtime'.
19538         * lib/localtime.c: New file.
19539         * m4/localtime.m4: New file.
19540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19541         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19542         * modules/localtime: New file.
19543         * doc/posix-functions/localtime.texi: Mention the new module.
19545 2017-04-30  Bruno Haible  <bruno@clisp.org>
19547         ctime: New module.
19548         * lib/time.in.h (ctime): New declaration.
19549         * lib/ctime.c: New file.
19550         * m4/ctime.m4: New file.
19551         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19552         REPLACE_CTIME.
19553         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19554         * modules/ctime: New file.
19555         * doc/posix-functions/ctime.texi: Mention the new module.
19557 2017-04-30  Bruno Haible  <bruno@clisp.org>
19559         gettimeofday: Provide higher resolution on native Windows.
19560         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19561         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19562         (initialize): Initialize it.
19563         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19564         'struct timeval'. Don't use _ftime().
19565         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19566         <sys/timeb.h> and _ftime.
19568 2017-04-30  Bruno Haible  <bruno@clisp.org>
19570         Document the problem with the Cygwin environment variable TZ.
19571         * doc/posix-functions/tzset.texi: Add note about TZ.
19572         * doc/posix-functions/ctime.texi: Likewise.
19573         * doc/posix-functions/localtime.texi: Likewise.
19574         * doc/posix-functions/mktime.texi: Likewise.
19575         * doc/posix-functions/strftime.texi: Likewise.
19576         * doc/posix-functions/wcsftime.texi: Likewise.
19577         * doc/pastposix-functions/ftime.texi: Likewise.
19579 2017-04-30  Bruno Haible  <bruno@clisp.org>
19581         utime-tests: New module.
19582         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19583         * tests/test-utimens-common.h: Include <sys/stat.h>.
19584         * modules/utime-tests: New file.
19586 2017-04-29  Bruno Haible  <bruno@clisp.org>
19588         utime: New module.
19589         * lib/utime.in.h: Add comment for snippets.
19590         (utime): New declaration.
19591         * lib/utime.c: New file.
19592         * m4/utime.m4: New file.
19593         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
19594         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
19595         REPLACE_UTIME.
19596         * modules/utime-h (Depends-on): Add snippets.
19597         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
19598         Insert snippets.
19599         * modules/utime: New file.
19600         * doc/posix-functions/utime.texi: Mention the new module.
19602 2017-04-29  Bruno Haible  <bruno@clisp.org>
19604         utime-h: Modernize handling of 'struct utimbuf'.
19605         * lib/utime.in.h: Include next <utime.h> if it exists.
19606         (utimbuf): Define to _utimbuf on native Windows.
19607         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
19608         Set UTIME_H on native Windows.
19609         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
19610         * modules/utime-h (Depends-on): Add include_next.
19611         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
19612         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
19614         * lib/utimens.c (utimbuf): Remove fallback definition.
19615         * m4/utimens.m4 (gl_UTIMENS): Don't require
19616         gl_CHECK_TYPE_STRUCT_UTIMBUF.
19617         * m4/utimbuf.m4: Remove file.
19618         * modules/utimens (Files): Remove m4/utimbuf.m4.
19620 2017-04-29  Bruno Haible  <bruno@clisp.org>
19622         Make use of module 'utime-h'.
19623         * modules/copy-file (Depends-on): Add utime-h.
19624         * lib/copy-file.c: Assume that <utime.h> exists.
19625         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
19627         * modules/utimens (Depends-on): Add utime-h.
19628         * lib/utimens.c: Assume that <utime.h> exists.
19630 2017-04-29  Bruno Haible  <bruno@clisp.org>
19632         utime-h: New module.
19633         * m4/utime_h.m4: New file.
19634         * lib/utime.in.h: New file.
19635         * modules/utime-h: New file.
19636         * doc/posix-headers/utime.texi: Mention the new module.
19638         * tests/test-utime-h.c: New file.
19639         * modules/utime-h-tests: New file.
19641 2017-04-30  Bruno Haible  <bruno@clisp.org>
19643         Fix a few typos.
19644         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
19645         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
19646         * doc/posix-functions/fstat.texi: Fix a plural typo.
19647         * doc/posix-functions/stat.texi: Likewise.
19648         * m4/include_next.m4: Update comments.
19650 2017-04-29  Bruno Haible  <bruno@clisp.org>
19652         error: Fix mistake in 2017-04-23 commit.
19653         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
19654         assume that strerror_r returns 'int', not 'char *'.
19656 2017-04-29  Bruno Haible  <bruno@clisp.org>
19658         stat: Fix time_t values and other problems on native Windows platforms.
19659         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
19660         implementations of stat().
19661         * lib/stat.c: Include filename.h instead of dosname.h. Include
19662         malloca.h, stat-w32.h.
19663         (is_unc_root): New function.
19664         (rpl_stat): New implementation for native Windows. Remove
19665         REPLACE_FUNC_STAT_DIR code.
19666         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
19667         Don't define REPLACE_FUNC_STAT_DIR.
19668         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
19669         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19670         (Depends-on): Remove dosname. Add filename, malloca.
19671         (configure.ac): Also compile lib/stat-w32.c.
19673 2017-04-29  Bruno Haible  <bruno@clisp.org>
19675         fstat: Fix time_t values on native Windows platforms.
19676         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
19677         * lib/stat-w32.h: New file.
19678         * lib/stat-w32.c: New file.
19679         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
19680         stat-w32.h instead.
19681         (fstat_nothrow): Remove function.
19682         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
19683         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
19684         always.
19685         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
19686         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19687         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
19688         (configure.ac): Also compile lib/stat-w32.c.
19690 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19692         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
19693         Problem reported by Assaf Gordon and Gavin Smith in:
19694         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
19695         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
19696         #define this, too.
19698 2017-04-29  Bruno Haible  <bruno@clisp.org>
19700         strerror_r-posix: Fixes for MSVC 14.
19701         * lib/strerror_r.c: Include <stdarg.h>.
19702         (strerror_r): Provide error messages for errno values 100...140.
19703         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
19705 2017-04-28  Bruno Haible  <bruno@clisp.org>
19707         noreturn: New module.
19708         * lib/noreturn.h: New file.
19709         * modules/noreturn: New file.
19710         * tests/test-noreturn.c: New file.
19711         * modules/noreturn-tests: New file.
19712         * tests/test-noreturn-c++.cc: New file.
19713         * modules/noreturn-c++-tests: New file.
19715 2017-04-27  Bruno Haible  <bruno@clisp.org>
19717         wctype-h: Fix compilation error with the original mingw.org mingw.
19718         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
19719         HAVE_CRTDEFS_H.
19720         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
19721         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19722         <stddef.h> instead.
19723         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
19725 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19727         nap.h: Fix compilation on non windows platforms
19728         * tests/nap.h: Move misplaced endif.
19730 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19731         and Paul Eggert  <eggert@cs.ucla.edu>
19733         time_rz: fix heap buffer overflow vulnerability
19734         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
19735         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
19736         whether there is enough buffer space available, thus avoiding
19737         the problematic promotion of signed to unsigned causing an invalid
19738         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
19739         the start of the buffer.
19740         * tests/test-parse-datetime.c (main): Add a test case written by
19741         Paul Eggert, which overwrites enough of the heap so that
19742         standard glibc will fail with "free(): invalid pointer"
19743         without the patch applied.
19745 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19747         xalloc: add missing integer overflow check
19748         * lib/xalloc.h (x2nrealloc): Also check for multiplication
19749         overflow when P is null.
19751 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19753         parse-datetime: make it standalone
19754         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
19755         (_GL_ATTRIBUTE_FORMAT): New macro.
19756         These are needed to get './gnulib-tool --test parse-datetime' to work.
19758 2017-04-23  Bruno Haible  <bruno@clisp.org>
19760         nap.h: Port to native Windows.
19761         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
19762         use nap_fd instead. On native Windows, close and reopen nap_fd.
19763         (nap_works): Don't compare the ctimes, because on native Windows, these
19764         are the creation times.
19765         (nap): Update.
19767 2017-04-23  Bruno Haible  <bruno@clisp.org>
19769         nap.h: Fix logic.
19770         * tests/nap.h (nap): Avoid signed integer overflow in loop.
19772 2017-04-23  Bruno Haible  <bruno@clisp.org>
19774         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
19775         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
19776         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
19777         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
19778         * lib/argp-help.c (__argp_failure): Likewise.
19780 2017-04-23  Bruno Haible  <bruno@clisp.org>
19782         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
19783         * m4/strerror_r.m4: Revert changes since 2016-10-16.
19784         * lib/strerror_r.c: Likewise.
19786 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
19788         Target a C99 subset, not a C89 subset
19789         For many years Gnulib has targeted C89 and has resisted using C99
19790         features, as some Gnulib-using programs still wanted to target
19791         C89.  As this no longer seems to be the case, relax the porting
19792         requirements to allow some C99 features.  This is merely a change
19793         to the documentation, to give other Gnulib developers a chance to
19794         weigh in on the topic.
19795         * doc/extern-inline.texi (extern inline):
19796         * doc/gnulib-readme.texi (Portability guidelines):
19797         * doc/gnulib-tool.texi (Initial import):
19798         * doc/gnulib.texi (Header files):
19799         Modernize to talk about C99 and C11 instead of C89 and C99.
19800         * doc/gnulib-readme.texi (Portability guidelines):
19801         Now a section, not merely a subsection, so that it
19802         can be split up.  Modernize a bit.
19803         (C language versions, C99 features assumed)
19804         (C99 features avoided):
19805         New sections.
19807 2017-04-23  Bruno Haible  <bruno@clisp.org>
19809         doc: New section "Modules that modify the way other modules work".
19810         * doc/gnulib.texi (Modules that modify the way other modules work): New
19811         section.
19813 2017-04-23  Bruno Haible  <bruno@clisp.org>
19815         stat-time: Update comments.
19816         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
19817         * tests/test-utimens-common.h: Add reference regarding st_ctime on
19818         Windows.
19820 2017-04-01  Bruno Haible  <bruno@clisp.org>
19822         glob: Fix more memory leaks.
19823         * lib/glob.c (glob): Free allocated memory before returning.
19824         Reported by Coverity via Tim Rühsen.
19826 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19828         poll: improve fast check for out-of-range NFD
19829         * lib/poll.c: Do not include intprops.h.
19830         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
19831         * modules/poll (Depends-on): Remove intprops.
19833         ftoastr: cite a newer paper
19834         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
19835         instead of Loitsch 2010.
19837 2017-04-22  Bruno Haible  <bruno@clisp.org>
19839         poll: Enable argument check also in the Windows implementation.
19840         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
19841         Reported by Paul Eggert.
19843 2017-04-22  Bruno Haible  <bruno@clisp.org>
19845         getlogin_r: Work around bug in Mac OS X 10.12.
19846         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
19847         bug.
19848         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
19849         given size minus 1, call getlogin_r a second time, on a larger buffer.
19850         * modules/getlogin_r (Depends-on): Add malloca.
19851         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
19853 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19855         parse-datetime: fix %z and prefer signed int
19856         %z problem reported by Pádraig Brady in:
19857         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
19858         While fixing it, I decided to prefer signed ints to size_t, as
19859         they are less error-prone (e.g., ubsan catches overflow).
19860         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
19861         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
19862         counts, since signed integers make for better debugging.
19863         (date): Don’t assume %z works in printf formats.
19864         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
19865         sizes of buffers known to be small, e.g., because we’re using snprintf.
19866         (parse_datetime2): Simplify call to debug_mktime_not_ok.
19868 2017-04-22  Bruno Haible  <bruno@clisp.org>
19870         *printf: Work around rounding bug on Mac OS X.
19871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
19872         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
19873         Mac OS X and FreeBSD.
19874         * doc/glibc-functions/*printf.texi: Likewise.
19876 2017-04-22  Bruno Haible  <bruno@clisp.org>
19878         vasnprintf tests: Avoid warnings.
19879         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
19880         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
19881         test.
19883 2017-04-22  Bruno Haible  <bruno@clisp.org>
19885         sys_file tests: Avoid warning.
19886         * tests/test-sys_file.c (main): Add a default clause to the switch
19887         statement.
19889 2017-04-22  Bruno Haible  <bruno@clisp.org>
19891         sethostname: Update doc.
19892         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
19893         Mac OS X.
19895 2017-04-22  Bruno Haible  <bruno@clisp.org>
19897         quotearg tests: Avoid warnings.
19898         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
19899         false.
19901 2017-04-22  Bruno Haible  <bruno@clisp.org>
19903         poll: Enable argument check.
19904         * lib/poll.c: Include intprops.h.
19905         (poll): Check value of nfd correctly.
19906         * modules/poll (Depends-on): Add intprops.
19908 2017-04-22  Bruno Haible  <bruno@clisp.org>
19910         get-rusage-data: Avoid warnings on Mac OS X.
19911         * lib/get-rusage-data.c: On Mac OS X, don't define
19912         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
19913         (get_rusage_data) [Mac OS X]: Just return 0.
19915 2017-04-22  Bruno Haible  <bruno@clisp.org>
19917         xbinary-io: Fix build error.
19918         * modules/xbinary-io (Depends-on): Add gettext-h.
19919         * lib/xbinary-io.c: Include gettext.h and define _().
19920         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
19921         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
19923 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19925         parse-datetime: overflow and debug cleanups
19926         This long patch was triggered by this bug report from Ruediger Meier:
19927         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
19928         I fixed the bug he noted, then found some others nearby, and then
19929         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
19930         up some of the code to follow GNU standards while I was at it.
19931         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
19932         use c_isdigit.
19933         (EPOCH_YEAR): Remove; unused.
19934         (TM_YEAR_BASE): Now an enum rather than a macro.
19935         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
19936         time zone offset, since timezones now are in terms of seconds and
19937         not minutes.
19938         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
19939         appropriate.  Verify that intmax_t is wide enough.
19940         (time_overflow, time_zone_str): New functions, used to deal
19941         more reliably with overflow.
19942         (dbg_printf): Add printf attribute, to help catch integer width errors.
19943         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
19944         (%union, to_hour, yylex, parse_datetime2):
19945         Use intmax_t instead of long int and/or long_time_t.
19946         All uses changed.
19947         (DBGBUFSIZE): Move earlier.
19948         (relative_time, set_hhmmss, parser_control):
19949         Just use int for nanoseconds and for time zones; that’s wide enough.
19950         (parser_control): Use bool for members like year_seen that can
19951         be booleans instead of counters.  All uses changed.
19952         Remove debug_default_input_timezone; no longer needed.
19953         All uses removed.
19954         (apply_relative_time): Return a bool overflow flag.
19955         All uses changed to check for overflow.
19956         (apply_relative_time, zone, date, relunit, relunit_snumber)
19957         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
19958         Check for integer overflow portably.
19959         (str_days): Use just int for N, as it’s wide enough.
19960         Prefer 2D char arrays to arrays of char * when it looks like
19961         2D is a win on typical platforms.
19962         Prefer snprintf to strncpy/strncat, for simplicity;
19963         all buffers are smaller than INT_MAX so this is safe.
19964         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
19965         (debug_print_current_time): Don’t assume tv_nsec is of type long,
19966         as this is not true on x32.  Output "." before any nanoseconds.
19967         (debug_print_current_time, parse_datetime2):
19968         Output local zones using a more-consistent format.
19969         (debug_print_current_time, date, parse_datetime2):
19970         (main) [TEST]:
19971         Don’t assume time_t is the same width as long.
19972         (print_rel_part): New function, replacing ...
19973         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
19974         (debug_print_relative_time): Use bool for boolean.
19975         (local_zone): dsts_seen now counts only tDST instances.
19976         (date): Fix printf of size_t to use %z.  Do not assume numeric
19977         tokens have negative values merely because the context suggests
19978         a syntax with "-" separating tokens.
19979         (time_zone_hhmm): Return bool success indicator, which checks for
19980         overflow.  Store result into PC->time_zone instead.  All callers
19981         changed.
19982         (tm_year_str): New function.  Return a bool success indicator and
19983         store the result into a buffer.  All callers changed.  Output the
19984         numerically correct string even if adding 1900 to the year would
19985         overflow.
19986         (to_tm_year): New function, replacing the old to_year.  All
19987         callers changed.
19988         (tm_diff): Sync with glibc.
19989         (lookup_word): Use to_uchar instead of doing it by hand.
19990         (TZBUFSIZE): Now local to the only function that needs it.
19991         (debug_strfdatetime): Simplify now that time zones are int seconds.
19992         (debug_strfdate): Work even if tm_year + 1900 would overflow.
19993         (get_effective_timezone): Remove.  All uses removed.
19994         (parse_datetime2): Use fprintf in pieces instead of snprintfing
19995         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
19996         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
19997         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
19998         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
19999         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20000         * modules/parse-datetime (Depends-on): Add inttypes.
20002 2017-04-21  Bruno Haible  <bruno@clisp.org>
20004         gettext-h: Avoid -Wundef warning.
20005         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20006         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20007         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20009 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20011         error: Avoid "function declaration isn't a prototype" warning.
20012         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20014 2017-04-21  Bruno Haible  <bruno@clisp.org>
20016         vasnprintf: Fix for MSVC 14.
20017         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20018         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20019         of !HAVE_SNPRINTF_RETVAL_C99.
20021 2017-04-21  Bruno Haible  <bruno@clisp.org>
20023         mbrtowc tests: Fix test failures on MSVC 14.
20024         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20025         behaviour for invalid input.
20027 2017-04-21  Bruno Haible  <bruno@clisp.org>
20029         mbsinit: Fix for MSVC 14.
20030         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20031         implementation that is in sync with mbrtowc.c. On other platforms, use
20032         an adequate ad-hoc implementation.
20034 2017-04-21  Bruno Haible  <bruno@clisp.org>
20036         Fix test-mbrtowc5.sh failure on native Windows.
20037         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20038         "C".
20040 2017-04-21  Bruno Haible  <bruno@clisp.org>
20042         Avoid accidental use of native Windows APIs on Cygwin.
20043         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20044         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20045         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20047 2017-04-20  Bruno Haible  <bruno@clisp.org>
20049         Remove red warnings from the generated MODULES.html.
20050         * modules/fcntl (Description): Disambiguate function references.
20051         * modules/getcwd-lgpl (Description): Likewise.
20052         * modules/hostent (Description): Likewise.
20053         * modules/servent (Description): Likewise.
20054         * modules/tempname (Description): Likewise.
20056 2017-04-20  Bruno Haible  <bruno@clisp.org>
20058         verify tests: Fix spurious failure with parallel make.
20059         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20060         EXTRA_PROGRAMS.
20061         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20062         * tests/test-verify-try.c: New file.
20063         * modules/verify-tests (Files): Add it.
20064         (EXTRA_PROGRAMS): Add test-verify-try.
20065         (MOSTLYCLEANFILES): Update accordingly.
20066         Reported by Adam James Stewart <ajstewart@anl.gov>.
20068 2017-04-18  Bruno Haible  <bruno@clisp.org>
20070         vma-iter: Fix compilation error on Solaris 7.
20071         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20072         like on IRIX, OSF/1.
20073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20075 2017-04-18  Bruno Haible  <bruno@clisp.org>
20077         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20078         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20079         included.
20080         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20081         <sys/procfs.h>.
20082         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20083         <sys/procfs.h> cannot be included.
20084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20086 2017-04-18  Bruno Haible  <bruno@clisp.org>
20088         getopt-gnu: Add comments.
20089         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20090         * modules/getopt-gnu (configure.ac): Likewise.
20092 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20094         regex: port better to Solaris 10
20095         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20096         gettext, and this causes a double #define.
20097         Problem reported by Gavin Smith in:
20098         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20099         * lib/regex_internal.h (gettext): #undef before #defining.
20101 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20103         intprops: improve comments
20104         * lib/intprops.h: Improve and shorten commentary.
20105         For the record, if we ever run into a pedantic compiler that
20106         behaves differently from GCC when converting an out-of-range value
20107         to a signed integer, we can work around the problem with something
20108         like the following code, where UCT is the signed counterpart of T
20109         (UCT is sometimes narrower than UT) and all callers are changed
20110         accordingly:
20111         #if __SUNPRO_C <= 0x5120
20112         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20113            ((t) ((ut) (a) op (ut) (b)))
20114         #else
20115         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20116            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20117             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20118                + TYPE_MINIMUM (t)) \
20119             : (t) (uct) ((ut) (a) op (ut) (b)))
20120         #endif
20122 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20124         intprops: try to avoid tickling similar bugs
20125         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20126         needs to be the same width as T; it can be wider.
20127         Change callers so that UT is at least as wide as unsigned int,
20128         as I suspect that this is less likely to run into compiler bugs.
20130         intprops: port to Oracle Studio 12.3 x86
20131         Problem reported by Gavin Smith in:
20132         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20133         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20134         Convert unsigned to signed via the usual rather than the standard way,
20135         to avoid a compiler bug in Oracle Studio 12.3 x86.
20137 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20139         getopt: prefer - to _ in new file names
20140         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20141         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20142         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20143         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20144         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20145         All uses changed.
20147         getopt: port recent getopt changes to macOS
20148         Problem reported by Harald Maier (Bug#26398).
20149         The macOS C compiler uses __nonnull for its own purposes and that
20150         clashes with glibc's __nonnull.
20151         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20152         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20153         * lib/getopt_core.h (getopt):
20154         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20155         Use _GL_ARG_NONNULL, not __nonnull.
20156         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20157         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20158         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20159         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20161 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20163         getopt-gnu: omit some duplicate code
20164         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20165         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20166         gnulib-tool already does this.
20167         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20168         getopt-posix, which we depend on.
20170         getopt-posix: use angle-bracket include
20171         * lib/getopt1.c: Include <config.h>, not "config.h".
20173 2017-04-06  Zack Weinberg  <zackw@panix.com>
20175         getopt: annotate files with relationship to glibc
20177         As the final act in this patchset, adjust the message at the top of
20178         each file to indicate which files are synced with glibc.  (This has
20179         already been done for most of the headers.)
20181         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20182         Mention in top-of-file boilerplate that these files are shared
20183         between glibc and gnulib.
20186         getopt: split up getopt.in.h and eliminate __need_getopt
20188         Over in glibc, all of the __need macros are being phased out in favor
20189         of small headers that declare only the necessary components, as this
20190         is much simpler and less prone to bugs.  As getopt is shared with
20191         glibc, gnulib needs to do the same for __need_getopt.
20193         __need_getopt is misnamed; what it really means is "we want only the
20194         getopt features specified in POSIX, not the GNU extensions".  glibc
20195         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20196         these files can be shared verbatim with gnulib.  The portability
20197         wrapper, on the other hand, they have renounced altogether; glibc's
20198         getopt.h will no longer be shared with gnulib at all.  In exchange,
20199         certain glibc-specific quirks (having to do with __posix_getopt) no
20200         longer need appear in gnulib's headers at all.
20202         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20203         splits up the current gnulib-side portability wrapper into three
20204         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20205         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20206         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20207         unistd.in.h just use them.  All new files are clearly marked with
20208         whether they are shared with glibc.
20210         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20211         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20212         with glibc, and ...
20213         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20214         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20215         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20216         instead of defining __need_getopt and including the full getopt.h.
20218         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20219         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20220         * modules/getopt-posix (Files): Add new headers and sort list.
20221         (Depends-on): No longer need snippet/arg-nonnull.
20222         (Makefile.am): Generate getopt_cdefs.h.
20225         getopt: better handling of ambiguous options
20227         glibc's getopt uses alloca to construct a linked list of possibilities
20228         for an "ambiguous" long option.  In gnulib, malloc should be used
20229         instead.  Providing for both cases complicates things a fair bit.
20231         This patch rewrites ambiguous-option handling to use a boolean vector
20232         instead of a linked list.  There is then only one allocation that
20233         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20234         and in gnulib we define __libc_use_alloca to always be false, so we
20235         don't need ifdefs in the middle of the function.  This should also be
20236         slightly more efficient in the normal case of long options being fully
20237         spelled out -- I think most people aren't even aware they _can_
20238         sometimes abbreviate long options.
20240         One interesting consequence is that the list of possibilities is now
20241         printed in exactly the order they appear in the list of long options,
20242         instead of the first possibility being shuffled to the end.
20244         (The patch looks bigger than it really is because there's a fair bit
20245         of reindentation and code rearrangement.)
20247         * lib/getopt.c: When used standalone, define __libc_use_alloca
20248         as always false and alloca to abort if called.
20249         (process_long_option): Rewrite handling of ambiguous long options
20250         to use a single boolean vector, not a linked list; use
20251         __libc_use_alloca to decide whether to allocate this using alloca.
20254         getopt: refactor long-option handling
20256         There were two copies of the bulk of the code to handle long options.
20257         Now there is only one.
20259         This change temporarily removes the logic to avoid using alloca when
20260         standalone; the next patch in the series will restore it.
20262         * lib/getopt.c (process_long_option): New function split out
20263         from _getopt_internal_r.
20264         (_getopt_internal_r): Replace both copies of the long-option
20265         processing code with calls to process_long_option.
20268         getopt: tidy up _getopt_initialize a bit
20270         _getopt_data.__posixly_correct is completely redundant to
20271         _getopt_data.__ordering, and some work that logically belongs in
20272         _getopt_initialize was being done by _getopt_internal_r, making the
20273         code harder to understand.
20275         As a side effect, getenv will no longer be called if the first
20276         character of the options string is '+' or '-', which is probably a
20277         Good Thing.  (Perhaps we should have a flag character that
20278         specifically asks for the permutation behavior?)
20280         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20281         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20282         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20285         getopt: merge from glibc: repetition reduction
20287         The definitions of the entry point functions 'getopt' and
20288         '__posix_getopt' can be made substantially less repetitive with a
20289         helper macro.
20291         While I was merging the const-correctness changes from gnulib into
20292         glibc I noticed there are still some unnecessary casts in
20293         _getopt_internal_r.
20295         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20296         a macro.  Consistently cast 'argv' to 'char **' when calling
20297         _getopt_internal.
20298         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20301         getopt: clean up error reporting
20303         getopt can print a whole bunch of error messages, and when used
20304         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20305         cancellation point and getopt isn't, and also applying fprintf to a
20306         stream in wide-character mode is not allowed.  So every single error
20307         reporting case has an #ifdef _LIBC block in which it calls internal
20308         libc functions instead.  The counterpart patch series in glibc makes
20309         it possible to simplify all of that down to a set of #defines at the
20310         top of the file; core code is written as if it is safe to just call
20311         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20312         call any *other* stdio functions.)
20314         * lib/getopt.c: When _LIBC is defined, define fprintf to
20315         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20316         to _IO_funlockfile.  When neither _LIBC nor
20317         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20318         funlockfile as no-ops.
20319         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20320         standalone error-printing code can now be used for libc as well.
20321         Add an flockfile/funlockfile pair around one case where the error
20322         message is printed in several chunks.  Don't use fputc.
20325         getopt: fix fencepost error in ambiguous-W-option handling
20327         getopt_long contains an undocumented (AFAICT) feature in which, if you
20328         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20329         treated as equivalent to '--foo'.  This is implemented with a partial
20330         second copy of the code for handling long options, and that code
20331         increments optind one too many times when recovering from an ambiguous
20332         abbreviated option, which can cause the main loop to walk past the end
20333         of argv and crash.
20335         I discovered this while writing a test case that tries to exercise all
20336         of getopt's error reporting paths; I wouldn't be surprised to learn
20337         that this feature is never used by real applications.
20339         * lib/getopt.c (_getopt_internal_r): Don't increment
20340         d->optind a second time when reporting ambiguous -W options.
20343         getopt: clean up getopt.c and getopt1.c file headers
20345         In getopt.c, there is no need to include wchar.h at all, and it is
20346         safe nowadays to assume that stdlib.h does declare getenv (several
20347         other gnulib modules make this assumption).
20349         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20350         by using "" inclusions consistently, and there is no actual need to
20351         include stdlib.h (except in the #ifdef TEST block, where it should be
20352         unconditional), nor to provide a backup definition of NULL at all.
20354         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20355         Move inclusion of stdlib.h to #ifdef TEST block and make
20356         unconditional.  Do not define NULL.
20357         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20358         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20359         * modules/getopt-gnu, modules/getopt-posix: Don't call
20360         gl_PREREQ_GETENV.
20363         getopt: harmonize comments with glibc
20365         The comments explaining how the behavior of 'getopt' varies depending
20366         on whether it's the standalone version and whether there are special
20367         characters at the beginning of the options string were inconsistent
20368         between gnulib and glibc, and also out of sync with the code.
20370         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20373         getopt: remove USE_NONOPTION_FLAGS
20375         getopt includes code to parse an environment variable named
20376         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20377         in decimal); but all of it has been #ifdefed out since 2001, with no
20378         official way to turn it back on.
20380         According to commentary in glibc's config.h.in, bash version 2.0
20381         set this environment variable to indicate argv elements that were
20382         the result of glob expansion and therefore should not be treated
20383         as options, but the feature was "disabled later" because "it
20384         caused problems".  According to bash's CHANGES file, "later" was
20385         release 2.01; it gives no more detail about what the problems
20386         were.
20388         Version 2.0 of bash was released on the last day of 1996, and version
20389         2.01 in June of 1997.  Twenty years later, I think it is safe to
20390         assume that this environment variable isn't coming back.
20392         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20393         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20394         __libc_argc and __libc_argv externs, which were only used by
20395         #ifdef USE_NONOPTION_FLAGS blocks.
20398         getopt: tabify, in preparation for merge with glibc
20400         glibc sticks to the GNU default of indenting with a mix of
20401         8-column tabs and spaces; make the gnulib copy match.
20403         getopt.h is not included because it is *not* going to be merged in its
20404         present form.
20406         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20408 2017-04-02  Bruno Haible  <bruno@clisp.org>
20410         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20411         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20412         like it was done in modules/relocatable-lib on 2011-05-21 and in
20413         modules/relocatable-prog on 2011-08-15.
20414         Reported by Reuben Thomas <rrt@sc3d.org>.
20416 2017-03-31  Bruno Haible  <bruno@clisp.org>
20418         glob: Fix invalid free() call.
20419         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20420         static storage to home_dir.
20421         Reported by Coverity via Tim Rühsen.
20423 2017-03-31  Bruno Haible  <bruno@clisp.org>
20425         glob: Fix memory leaks.
20426         * lib/glob.c (glob): Free allocated memory before returning.
20427         Reported by Coverity via Tim Rühsen.
20429 2017-03-31  Bruno Haible  <bruno@clisp.org>
20431         md5, sha1, sha256, sha512: Add comments regarding correctness.
20432         * lib/md5.h (buflen): Add comments regarding range.
20433         * lib/sha1.h (buflen): Likewise.
20434         * lib/sha256.h (buflen): Likewise.
20435         * lib/sha512.h (buflen): Likewise.
20436         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20437         * lib/sha1.c (sha1_process_bytes): Likewise.
20438         * lib/sha256.c (sha256_process_bytes): Likewise.
20439         * lib/sha512.c (sha512_process_bytes): Likewise.
20440         Reported by Coverity via Tim Rühsen.
20442 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20444         getopt: merge from glibc
20445         This does not change anything substantial; it merely simplifies
20446         hypothetical merges back to glibc.
20447         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20448         Change copyright notice to match what is in glibc.
20449         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20450         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20451         __open_memstream rather than open_memstream and __glibc_likely
20452         instead of __builtin_expect.
20453         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20455 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20457         dfa: make [0-9] faster in non-C locales
20458         Problem reported by John P. Linderman (Bug#26193).
20459         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20460         If both ends of the range are ASCII digits, do not worry about
20461         multi-character collating sequences and the like.  Be consistent
20462         about using isalpha as a precondition for setbit_case_fold_c.
20464 2017-03-19  Bruno Haible  <bruno@clisp.org>
20466         lock: Fix compilation error with HP-UX IA64 cc.
20467         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20468         weak on non-glibc platforms.
20470 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20472         stdalign: tweak version# and test for HP-UX IA64
20473         Problems reported by Bruno Haible in:
20474         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20475         * lib/stdalign.in.h (_Alignas):
20476         * m4/stdalign.m4 (gl_STDALIGN_H):
20477         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20478         used octal (as that is how they document it), but it is decimal in
20479         practice now and the ancient implementations no longer matter.
20480         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20482 2017-03-19  Bruno Haible  <bruno@clisp.org>
20484         vma-iter: Add support for Solaris.
20485         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20486         approach.
20487         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20488         * lib/get-rusage-as.c: Update comment about Solaris.
20489         * lib/get-rusage-data.c: Likewise.
20491 2017-03-19  Bruno Haible  <bruno@clisp.org>
20493         vma-iter: Prefer HP-UX specific API on HP-UX.
20494         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20495         * lib/vma-iter.h: Update.
20496         Just in case HP-UX ever implements mquery().
20498 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20500         stdalign: restore previous behavior for HP-UX IA64
20501         See Bruno Haible's email in:
20502         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20503         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20504         * lib/stdalign.in.h (_Alignas):
20505         Assume the '061200' applies to Itanium, not to PA-RISC.
20506         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20508 2017-03-17  Bruno Haible  <bruno@clisp.org>
20510         stat-time, timespec: Support use of the header files in C++ mode.
20511         * lib/stat-time.h: Add "C" linkage declaration.
20512         * lib/timespec.h: Likewise.
20514 2017-03-17  Bruno Haible  <bruno@clisp.org>
20516         stdalign: Make it work with HP-UX cc.
20517         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20518         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20519         for HP-UX cc.
20521 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20523         flexmember: try to detect HP-UX 11.31 cc bug
20524         Problem reported by Bruno Haible in:
20525         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20526         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20527         Attempt to detect bug in HP-UX 11.31 cc.
20529 2017-03-16  Bruno Haible  <bruno@clisp.org>
20531         stdint: Fix test compilation failure with HP-UX 11 cc.
20532         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20533         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20534         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20535         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20537 2017-03-14  Bruno Haible  <bruno@clisp.org>
20539         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20540         * gnulib-tool (func_modules_transitive_closure_separately): If
20541         testsrelated_modules ends up with no "real" modules, aside from
20542         modules with applicability 'all', set it to empty.
20544 2017-03-14  Bruno Haible  <bruno@clisp.org>
20546         vma-iter: Add support for HP-UX.
20547         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20548         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20549         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20550         * lib/get-rusage-as.c: Update comment about HP-UX.
20551         * lib/get-rusage-data.c: Likewise.
20552         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20554 2017-03-14  Bruno Haible  <bruno@clisp.org>
20556         limits-h: Make it work with HP-UX cc.
20557         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20558         defined.
20560 2017-03-14  Bruno Haible  <bruno@clisp.org>
20562         Fix test failures on DragonFlyBSD.
20563         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20564         * tests/test-select.h (test_bad_fd): Likewise.
20565         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20567 2017-03-14  Bruno Haible  <bruno@clisp.org>
20569         freadahead: Silence warning on DragonFlyBSD.
20570         * lib/freadahead.c (__sreadahead): Declare ourselves.
20572 2017-03-14  Bruno Haible  <bruno@clisp.org>
20574         vma-iter: Add comment about AIX.
20575         * lib/vma-iter.c: Add comment about why this module is not implemented
20576         on AIX.
20578 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20580         snippets: move unadjusted snippet sources to lib
20581         Problem reported by Michal Privoznik in:
20582         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20583         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20584         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20585         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20586         * lib/unused-parameter.h: Rename from
20587         build-aux/snippet/unused-parameter.h.
20588         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
20589         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
20590         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
20591         * modules/snippet/c++defs (Files:, CXXDEFS_H):
20592         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
20593         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
20594         Adjust to file renamings.
20596 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
20598         gnulib-tool: don't automatically distribute files from top/
20599         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
20600         not distribute top/README-release by default, don't distribute files
20601         from top/ unconditionally.
20602         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
20603         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
20605 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20607         gnulib-tool: fix typo in comment output
20608         * gnulib-tool (func_import): Fix typo with previous change.
20610         snippets: work around GNU Make 3.82 VPATH
20611         When using 'gnulib-tool --gnu-make' on Emacs, and building
20612         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
20613         an out-of-source (VPATH) build failed because the sans-copyright
20614         snippet file was not built before the file that used it.
20615         Presumably this is some sort of VPATH thing.  Work around the
20616         problem by using the original snippet, i.e., don’t bother to
20617         remove its copyright notice.
20618         * modules/snippet/_Noreturn, modules/snippet/link-warning:
20619         Don’t assume Automake in comments.  Omit long-incorrect comment.
20620         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
20621         (MOSTLYCLEANFILES):
20622         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
20623         (MOSTLYCLEANFILES):
20624         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
20625         (MOSTLYCLEANFILES):
20626         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
20627         (MOSTLYCLEANFILES):
20628         Remove.
20629         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
20630         * modules/snippet/c++defs (CXXDEFS_H):
20631         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
20632         * modules/snippet/warn-on-use (WARN_ON_USE_H):
20633         Don’t bother to remove the copyright notice; just use the
20634         original snippet as-is.
20636 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20638         gnulib-tool: minor --gnu-make fixups
20639         * gnulib-tool (func_emit_lib_Makefile_am):
20640         Remove useless code that was a blind alley during implementation.
20641         Problem reported by Thien-Thi Nguyen in:
20642         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
20643         (func_import): Note the "--gnu-make" option in the output comment.
20645 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
20647         gnulib-tool: new option --gnu-make
20648         This is for applications like GNU Emacs that use GNU Make
20649         features instead of Automake.
20650         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
20651         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
20652         Do not assume Automake.
20653         * gnulib-tool (func_determine_path_separator)
20654         (func_modules_transitive_closure, func_update_file)
20655         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
20656         (func_import): Add support for --gnu-make.
20658 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20660         gnulib-common.m4: avoid aclocal.m4 bloat
20661         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
20662         Hide AM_PROG_AR from aclocal, so that aclocal does not
20663         install irrelevant macro definitions into aclocal.m4.
20665 2017-03-10  Bruno Haible  <bruno@clisp.org>
20667         vma-iter: Let callers know about error.
20668         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
20669         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
20671 2017-03-05  Bruno Haible  <bruno@clisp.org>
20673         Fix value of LD for 64-bit compilers on AIX.
20674         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
20675         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
20677 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
20679         dtotimespec: simplify
20680         * lib/dtotimespec.c (dtotimespec): Simplify.
20682 2017-03-04  Bruno Haible  <bruno@clisp.org>
20684         test-calloc-gnu: Reenable test also for GCC 7.
20685         * tests/test-calloc-gnu.c (eight): New function.
20686         (main): Don't skip test; use eight() instead.
20688 2017-03-04  Jim Meyering  <meyering@fb.com>
20690         test-calloc-gnu: port to GCC7
20691         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
20692         that attempts to calloc more than SIZE_MAX bytes, because GCC7
20693         and newer would detect that at compilation time.
20695 2017-03-04  Bruno Haible  <bruno@clisp.org>
20697         tests: Avoid compiler warning about uses of null_ptr.
20698         * tests/null-ptr.h: New file.
20699         * tests/test-canonicalize.c: Include null-ptr.h.
20700         (null_ptr): Remove function.
20701         * tests/test-canonicalize-lgpl.c: Likewise.
20702         * tests/test-memmem.c: Likewise.
20703         * tests/test-ptsname_r.c: Likewise.
20704         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
20705         * modules/canonicalize-lgpl-tests: Likewise.
20706         * modules/memmem-tests: Likewise.
20707         * modules/ptsname_r-tests: Likewise.
20708         Reported by Jim Meyering.
20710 2017-03-03  Bruno Haible  <bruno@clisp.org>
20712         doc: Mention Mac OS X deficiencies regarding semaphores.
20713         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
20714         * doc/posix-functions/sem_destroy.texi: Likewise.
20715         * doc/posix-functions/sem_getvalue.texi: Likewise.
20717 2017-03-03  Bruno Haible  <bruno@clisp.org>
20719         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
20720         Reported by Assaf Gordon <assafgordon@gmail.com> via
20721         Pádraig Brady <P@draigBrady.com>.
20722         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
20723         semaphores.
20724         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
20725         (atomic_int_semaphore): New macro.
20727 2017-02-28  Bruno Haible  <bruno@clisp.org>
20729         perror tests: Tweak for z/OS.
20730         Reported by Daniel Richard G. <skunk@iskunk.org>.
20731         * tests/test-perror.sh: Don't fail z/OS style perror output.
20733 2017-02-26  Bruno Haible  <bruno@clisp.org>
20735         nproc: Refactor large function.
20736         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
20737         from num_processors.
20738         (num_processors): In this function, only deal with OMP.
20740 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20742         nproc: adjust handling of OpenMP environment variables
20743         to match the return value from omp_get_num_threads(), i.e.:
20744          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
20745          - Treat 0 as an invalid value and ignore
20746         Also remove the call to omp_get_num_threads() because
20747         it's ineffective without the omp pragmas in place.
20748         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
20749         so that it can be ignored.
20750         (num_processors): Honor OMP_THREAD_LIMIT even without
20751         OMP_NUM_THREADS being set.  Also fix a typo in the environment
20752         variable being checked, from the previous recent commit.
20754 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20756         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
20757         * lib/nproc.c (parse_omp_threads): A new function refactored
20758         from num_processors() to support parsing both of the
20759         above environment variables.
20760         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
20761         to accurately reflect the current OpenMP nesting level.
20762         Also support the OMP_THREAD_LIMIT environment variable
20763         to limit the max value determined from OMP_NUM_THREADS.
20764         * modules/nproc: Depend on minmax header.
20765         Suggested by Oliver Heimlich.
20767 2017-02-25  Bruno Haible  <bruno@clisp.org>
20769         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
20770         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
20772 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20774         ftoastr: port to -Wdouble-promotion
20775         Work around -Wdouble-promotion false alarm in recent GCCs.
20776         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
20777         (ftoastr_snprintf, FTOASTR): Use it.
20779 2017-02-21  Bruno Haible  <bruno@clisp.org>
20781         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
20782         Reported by Rene Saavedra <rennes@openmailbox.org> in
20783         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
20784         * lib/glthread/lock.h: On glibc systems without
20785         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
20786         implementation of rwlocks.
20787         * lib/glthread/lock.c: Likewise.
20789 2017-02-20  Bruno Haible  <bruno@clisp.org>
20791         lock tests: Fix build failure on z/OS.
20792         Reported by Daniel Richard G. <skunk@iskunk.org>.
20793         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
20794         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
20795         exist.
20797 2017-02-19  Bruno Haible  <bruno@clisp.org>
20799         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
20800         This helps when CC=clang.
20801         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
20802         of /usr/bin/gcc.
20804         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
20805         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
20807 2017-02-19  Bruno Haible  <bruno@clisp.org>
20809         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
20810         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
20811         --with-tests --single-configure is specified.
20813 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20815         users.txt: Update links, use HTTPS where possible
20816         * users.txt: Updated to HTTPS where possible,
20817         fixed some links to new locations.
20819 2017-02-16  Bruno Haible  <bruno@clisp.org>
20821         xbinary-io: Fix inlining.
20822         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
20824 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20826         xbinary-io: rename from xsetmode
20827         This patch is taken from suggestions by Bruno Haible in:
20828         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
20829         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
20830         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
20831         not ENOTTY, when it is an inappropriate device.
20832         * lib/binary-io.h (SET_BINARY): Resurrect.
20833         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
20834         (xset_binary_mode_error): Rename from xsetmode_error.
20835         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
20836         (xset_binary_mode): Rename from xsetmode.
20837         All uses changed.
20838         * modules/xbinary-io: Rename from modules/xsetmode.
20839         Update file names.
20840         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
20841         * NEWS: Update to match revised behavior.
20843 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20845         tests: Adjust to recent SET_BINARY change
20846         * tests/test-binary-io.c (main):
20847         * tests/test-binary-io.sh: Remove test for SET_BINARY.
20848         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
20849         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
20850         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
20852         xsetmode: new module
20853         This is to fix a problem noted by Eric Blake.
20854         Code was using xfreopen to change files to binary mode, but this
20855         fails for stdout when in append mode.  Such code should use
20856         xsetmode instead.
20857         * NEWS: Document incompatible changes to binary-io module.
20858         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
20859         New function.
20860         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
20861         (set_binary_mode): New function, which also checks for tty.
20862         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
20864 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20866         headers: fix begin-end typos
20867         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
20868         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
20870         selinux-h: port to PGI 16.10
20871         * lib/se-selinux.in.h: Don't assume that include_next skips over
20872         duplicate -I DIR options.
20874         argp: port to PGI 16.10
20875         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
20877 2017-02-13  Darshit Shah  <darnir@gnu.org>
20879         unicase: Update function protoype to match definition.
20880         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
20881         uses 'size_t' as the datatype for the 'len' parameter in the functions
20882         it generates. Update the prototype specified here to match the newly
20883         generated function.
20885 2017-02-12  Bruno Haible  <bruno@clisp.org>
20887         times test: Avoid gcc warnings on Linux/x32.
20888         * tests/test-times.c (main): Really cast printf arguments from clock_t
20889         to 'long int'.
20891 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20893         glob: port better to emscripten
20894         Problem reported by Bruno Haible in:
20895         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
20896         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
20898 2017-02-11  Bruno Haible  <bruno@clisp.org>
20900         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
20901         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
20902         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
20903         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
20904         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
20905         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
20906         Distinguish hppa64 from hppa.
20908 2017-02-10  Bruno Haible  <bruno@clisp.org>
20910         search: Don't assume that tsearch() exists if 'VISIT' is defined.
20911         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
20912         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
20913         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
20915 2017-02-09  Bruno Haible  <bruno@clisp.org>
20917         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
20918         * doc/gnulib.texi (Libtool and Windows): Recommend
20919         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
20920         Reported by Reuben Thomas <rrt@sc3d.org>.
20922 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20924         stddef-tests: port to SIZE_MAX <= INT_MAX
20925         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
20926         Do not assume that INT_MAX < SIZE_MAX.
20928 2017-02-01  Bruno Haible  <bruno@clisp.org>
20930         lock tests: Fix link error.
20931         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
20932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20934 2017-01-31  Bruno Haible  <bruno@clisp.org>
20936         lock: Fix link error (regression from 2017-01-05).
20937         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
20938         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
20939         pthread_rwlockattr_destroy weak.
20940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20942 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20944         Port to PGI 16.10 x86-64
20945         This patch fixes one real bug in gl_anylinked_list2.h, along with
20946         some minor glitches that are not bugs.  It does not silence PGI’s
20947         thousands of bogus warnings when compiling test-intprops.c.
20948         Fortunately, the warnings do not cause a failure.
20949         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
20950         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
20951         My goodness, PGI goes back a long ways - this predates C89!
20952         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
20953         For example, ASYNCSAFE (const void *) should expand to
20954         ‘const void *volatile’, not to ‘volatile const void *’.
20955         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
20956         * lib/verify.h (verify) [!__GNUC__]:
20957         Use shorter albeit meaningless string to bypass silly compiler limits.
20958         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
20959         * tests/nan.h (NaNf, NaNd, NaNl):
20960         Use static functions to avoid misguided compiler diagnostics.
20961         Is there some reason we don’t use static functions on all platforms?
20963 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20965         parse-datetime: handle timezones reentrantly
20966         This API change was prompted by a report by Pádraig Brady in:
20967         https://bug.debian.org/851934#10
20968         To help fix the bug, make parse_datetime2 more reentrant.
20969         * NEWS: Document this incompatible change.
20970         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
20971         Add two arguments, the timezone and the timezone name.
20972         All callers changed.  If TZ="..." is specified, use it for
20973         calculating defaults.
20974         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
20975         this code should be usable in a library.
20976         (mktime_ok, get_effective_timezone):
20977         Accept timezone arg too.  All callers changed.
20978         (get_tz): Remove.
20979         (get_effective_timezone): Check for failures.
20981 2017-01-20  Eric Blake  <eblake@redhat.com>
20983         localename: port to cygwin 2.6
20984         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
20985         Cygwin.
20986         * modules/localename (Depends-on): Add extensions, since
20987         NL_LOCALE_NAME() is not visible without it.
20989 2017-01-17  Pádraig Brady  <P@draigBrady.com>
20991         parse-datetime: fix dependence on AC_PROG_SED
20992         * modules/parse-datetime: Use `sed` directly like all other modules.
20993         Reported by J William Piggott
20995 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20997         intprops: update doc URLs
20998         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21000 2017-01-16  Bruno Haible  <bruno@clisp.org>
21002         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21003         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21004         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21005         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21006         distinguish s390 and s390x.
21007         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21008         * NEWS: Mention the change regarding 'armel'.
21010 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21012         localeinfo: case_folded_counterparts and WEOF
21013         * NEWS: Document this.
21014         * lib/localeinfo.c (case_folded_counterparts):
21015         First arg is now wint_t, not wchar_t.  This generalizes the
21016         function to also work on WEOF, where it returns 0.
21018         dfa: port to gcc -fsanitize=undefined
21019         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21020         as this runs afoul of gcc -fsanitize=undefined.
21022 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21024         strftime: %z is -00 if unknown
21025         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21026         the caller's responsibility to set 'negative_number'.  All uses changed.
21027         (__strftime_internal): Put '-' before a zero UTC offset if the time
21028         zone abbreviation starts with "-", which is the recently-introduced
21029         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21030         * tests/test-strftime.c: Test for this.
21032 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21034         dfa: port to older GCC
21035         Problem reported by Assaf Gordon in:
21036         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21037         * modules/c99: New module.  This merely attempts to use the latest
21038         C version, which should be enough to solve this particular problem.
21039         The idea is to document which Gnulib modules assume C99 or later.
21040         * modules/dfa (Depends-on): Add it.
21042 2017-01-10  Bruno Haible  <bruno@clisp.org>
21044         Update DEPENDENCIES.
21045         * DEPENDENCIES: List only https URLs. Update recommended version for
21046         autoconf, automake, gperf.
21048 2017-01-10  Jim Meyering  <meyering@fb.com>
21050         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21051         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21052         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21054 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21056         dfa: minor simplification with emptyset
21057         * lib/dfa.c (build_state): Simplify by using emptyset.
21059 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21061         dfa: shrink constraints from 4 bits to 3
21062         * lib/dfa.c (newline_constraint, letter_constraint)
21063         (other_constraint, prev_newline_dependent)
21064         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21065         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21066         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21067         Constraints need only 3 bits, not 4.  Using smaller integers
21068         shrinks the code a bit and makes grep a tad faster on x86-64.
21070         dfa: omit unnecessary ptrdiff_t check
21071         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21072         overflow, since xnmalloc does that now.
21074         dfa: omit unnecessary allocation
21075         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21076         an all-zero follow set works just fine.
21078         dfa: omit unused local
21079         * lib/dfa.c (build_state): Fix up recent change.
21081         maint: remove stray .texi files
21082         Although these were superseded by other files like
21083         doc/posix-functions/ctime.texi, the old files were not removed.
21084         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21086 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21088         getprogname: fix port to IRIX
21089         * lib/getprogname.c (getprogname) [__sgi]:
21090         Don't dump core if malloc returns NULL.
21092         dfa: fix reallocation bug when matching newlines
21093         Problem reported for sed by S. Gilles (Bug#25390).
21094         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21095         (dfastate): Reallocate before moving any newline transition ...
21096         (build_state): ... instead of reallocating here, where it is too late.
21098 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21100         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21101         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21103 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21105         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21106         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21108 2017-01-07  Bruno Haible  <bruno@clisp.org>
21110         stdioext: Port to Minix 3.2 and newer.
21111         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21112         * lib/fseeko.c (fseeko): Likewise.
21113         Reported by Nelson Beebe via Paul Eggert.
21115 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21117         getprogname: port to IRIX
21118         * lib/getprogname.c (getprogname): Port to IRIX.
21119         Based on an idea by Bastien Roucariès at:
21120         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21121         via code from Bruno Haible at:
21122         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21124         localename-tests: port to NetBSD 7
21125         Problem reported by Nelson H. F. Beebe.
21126         * tests/test-localename.c:
21127         Test newlocale and uselocale only if both exist.
21129         glob, intprops, xalloc: work around Clang bug
21130         Work around LLVM bug 16404, which is still not fixed.
21131         https://llvm.org/bugs/show_bug.cgi?id=16404
21132         Problem reported by Nelson H. F. Beebe.
21133         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21134         Remove.
21135         * lib/glob.c (size_add_wrapv):
21136         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21137         * lib/xalloc-oversized.h (xalloc_oversized):
21138         Do not use overflow builtins if Clang.
21140         dfa: fix 'return' typo
21141         Problem reported by Nelson H. F. Beebe.
21142         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21144 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21146         parse-datetime: fix generated paths for coverage files
21147         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21148         within parse-datetime.c, so that gcc generates appropriate .gcno
21149         files, allowing lcov to proceed without error.  Previously it
21150         would error trying to find "lib/lib/parse-datetime.y".
21152 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21154         maint.mk: support parallel execution of coverage
21155         * top/maint.mk (coverage): Run dependencies serially,
21156         thus supporting parallel processing of each one,
21157         particularly build-coverage, which builds and runs tests.
21159 2017-01-05  Bruno Haible  <bruno@clisp.org>
21161         lock tests: Prefer semaphore over mutex.
21162         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21163         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21164         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21165         Suggested by Torvald Riegel <triegel@redhat.com>.
21167 2017-01-05  Bruno Haible  <bruno@clisp.org>
21169         lock: Provide guarantee to avoid writer starvation for rwlocks.
21170         The rationale is: 1) Read-preferring read-write locks are prone to
21171         writer starvation if the number of reader threads multiplied by the
21172         percentage of time they have the lock held is too high. 2) Write-
21173         preferring read-write locks are the only reliable way to avoid this.
21174         3) There have been reports of 'test-lock' hanging on glibc systems
21175         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21176         and glibc indeed implements read-preferring rwlocks by default, see
21177         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21178         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21179         * m4/pthread_rwlock_rdlock.m4: New file.
21180         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21181         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21182         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21183         of rwlock initialization on glibc systems without
21184         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21185         of rwlocks altogether on non-glibc systems without
21186         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21187         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21188         * lib/glthread/lock.c [USE_POSIX_THREADS]
21189         (glthread_rwlock_init_for_glibc): New function.
21190         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21191         comment.
21192         [USE_PTH_THREADS]: New implementation of rwlocks.
21193         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21194         readers.
21195         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21196         (Depends-on): Add 'extensions'.
21197         * tests/test-rwlock1.c: New file.
21198         * lock-tests (Files): Add it.
21199         (Depends-on): Add usleep.
21200         (Makefile.am): Add test-rwlock1 to the tests.
21202 2017-01-05  Bruno Haible  <bruno@clisp.org>
21204         thread: Fix pth port.
21205         * lib/glthread/thread.h (pth_init): Declare weak.
21206         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21207         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21208         function.
21210 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21212         parse-datetime: fix debug message on lone year number
21213         Input dates such as
21214           date -d "Apr 11 22:59:00 2011"
21215         are parsed as date (Apr 11, with default year 2016), then time, then a
21216         number (2011). Based on the combination of previously seen tokens,
21217         'digits_to_date_time' determines 2011 to be a year value.
21218         This fixes the debug messages to correctly show the updated year.
21219         Before:
21220             $ date --debug -d 'Apr 11 22:59:00 2011'
21221             date: parsed date part: (Y-M-D) 2016-04-11
21222             date: parsed time part: 22:59:00
21223             date: parsed number part: today/this/now
21224         After:
21225             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21226             date: parsed date part: (Y-M-D) 2016-04-11
21227             date: parsed time part: 22:59:00
21228             date: parsed number part: year: 2011
21229         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21230         'debug_year_seen' member fields.
21231         (digits_to_date_time): Update 'year_seen' as needed.
21232         (debug_print_current_time): Inform about year updates.
21233         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21235         parse-datetime: fix local timezone debug messages
21236         "Local timezones" are strings that affect only DST relative to the
21237         default timezone. The debug messages in parse-datetime.y printed
21238         wrong information when encountering local timezones.
21239         Examples:
21240         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21241              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21242              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21243         When the default timezone relates to the zone strings, EET/EEST are
21244         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21245         value (0/1, respectively):
21246              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21247              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21248         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21249         was seen, inform about DST change, don't print actual timezone.
21250         (debug_strfdatetime): If local timezone was seen, use default timezone
21251         (and adjust as needed) instead of using incorrect timezone.
21252         (parse_datetime2): Use correct time-zone source string, and adjust
21253         default timezone as needed.
21255         parse-datetime: add debug warning about DST changes
21256         Incorrect date arithmetic due to daylight saving time (DST) are a
21257         common (false) bug report in coreutils.
21258         Detect two such cases and print a warning:
21259         1. year/month/day adjustments (performed on 'struct tm'),
21260            where 'mktime' returns a different isdst value.
21261         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21262            where the result of 'localtime(3)' on the value will return a
21263            different isdst value.
21264         Note: DST changes could be harmless or unnoticeable.
21265         Examples (with 'TZ=America/New_York'):
21266         Unnoticeable: result is 2016-Dec-14
21267            $ date -d '2016-06-15 EDT + 6 months' +%b
21268            Dec
21269         Unnoticeable: result is 2016-Dec-15 11:00:00
21270            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21271            2016-12-15
21272         This is unexpected:
21273            $ date -d '2016-06-01 EDT + 6 months' +%F
21274            2016-11-30
21275         The new debug warnings will show:
21276            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21277            ...
21278            date: warning: daylight saving time changed after date adjustment
21279            ...
21280         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21281         print an appropriate warning message.
21283         parse-datetime: add debug warning about date arithmetic
21284         Date arithmetic are done directly on the fields of 'struct tm',
21285         which can result in invalid dates. Normalization with 'mktime(3)'
21286         will then produce a different date - which might cause unexpected
21287         results.
21288         Examples:
21289           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21290           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21291         Note that date normalization is not inherently wrong and not rejected,
21292         as it has legitimate uses:
21293           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21294         If the user asked to adjust months but 'mday' changed,
21295         or user asked to adjust years but 'month' changed - warn about it.
21296             $ ./src/date --debug -d '2016-10-31 - 1 month'
21297             ...
21298             date: warning: when adding relative months/years, \
21299                            it is recommended to specify the 15th of the month
21300             ...
21301             date: warning: month/year adjustment resulted in shifted dates:
21302             date:      adjusted Y M D: 2016 09 31
21303             date:    normalized Y M D: 2010 10 01
21304             ...
21305         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21306         a warning message. Improve recommendation of when to use 15 of the
21307         month or noon for date arithmetic.
21309         parse-datetime: fix debug message of relative part after timezone
21310         Relative part (e.g '+8 days') after a timezone string was not
21311         reported (was only reported after a timezone number). Due to the
21312         parser's structure, timezone strings with numbers were handled
21313         separately.
21314         before:
21315              # Timezone number + relative part: OK
21316              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21317              ...
21318              date: parsed relative part: -8 day(s)
21319              # Timezone string + relative part: missing
21320              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21321              [ missing message ]
21322         After: messages are printed in both cases.
21323         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21325         parse-datetime: fix incorrect debug message on lone number
21326         A lone number is an absolute value, not a relative time part.
21327         before:
21328            $ date --debug -d '20130101'
21329            date: parsed number part: today/this/now
21330         After:
21331            $ ./src/date --debug -d '20130101'
21332            date: parsed number part: (Y-M-D) 2013-01-01
21333         * lib/parse-datetime.y ('item'/'number' tokens): Call
21334         'debug_print_current_time' instead of 'debug_print_relative_time'.
21336 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21338         doc: modernize for C11 etc.
21339         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21340         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21341         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21343         dfa: prefer functions to FETCH_WC macro
21344         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21345         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21346         wint_t result into DFA->lex.wctok instead of to a separate arg.
21347         All callers changed.  Move more local decls closer to where
21348         they're used.
21350         dfa: narrow more local var scopes
21351         * lib/dfa.c: Move more local decls to be more local.
21353         dfa: remove duplicate assignment
21354         Problem reported by Bruno Haible in:
21355         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21356         * lib/dfa.c (parse_bracket_exp): Simplify.
21358 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21360         dfa: simplify constraint-dependency checking
21361         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21362         (prev_other_constraint): Remove.
21363         (prev_newline_dependent, prev_letter_dependent):
21364         Simplify, to avoid an unnecessary bitwise AND operation.
21366         dfa: prefer functions and constants to macros
21367         * lib/dfa.c: Prefer constants to macros where either will do.
21368         (streq, isasciidigit, newline_constraint)
21369         (letter_constraint, other_constraint, succeeds_in_context)
21370         (prev_newline_constraint, prev_letter_constraint)
21371         (prev_other_constraint, prev_newline_dependent)
21372         (prev_letter_dependent, accepting, accepts_in_context):
21373         Now static functions instead of function-like macros.
21374         Use lower-case names accordingly.  All uses changed.
21376         dfa: narrow more local var scopes
21377         * lib/dfa.c: Move some more local decls down to nearer where
21378         they're needed.
21380 2016-12-31  Jim Meyering  <meyering@fb.com>
21382         dfa: narrow the scope of many local variables
21383         * lib/dfa.c: Now that we are no longer constrained to c89, move
21384         declarations of many variables (often indices) "down" into the
21385         scope(s) where used or to the point of definition.  This is a
21386         no-semantic-change diff.
21388 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21390         version-etc: new year
21391         * build-aux/gendocs.sh (version):
21392         * doc/gendocs_template:
21393         * doc/gendocs_template_min:
21394         * doc/gnulib.texi:
21395         * lib/version-etc.c (COPYRIGHT_YEAR):
21396         Update copyright dates by hand in templates and the like.
21397         * all files: Run 'make update-copyright'.
21399 2016-12-31  Eric Blake  <eblake@redhat.com>
21401         do-release-commit-and-tag: avoid shell syntax error
21402         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21403         contain spaces when rebasing.
21405         maint.mk: hoist gnulib_dir definition earlier
21406         * top/maint.mk (gnulib_dir): Move near top of file.
21408 2016-12-31  Jim Meyering  <meyering@fb.com>
21410         maint.mk: do not always evaluate intprops-related shell
21411         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21412         using gnulib_dir undefined (gnulib_dir is defined later in the
21413         file, which will be fixed separately), and besides, there is no
21414         need to incur the cost of this shell invocation for every single
21415         use of this .mk file.  Reported by Eric Blake in
21416         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21418 2016-12-30  Jim Meyering  <meyering@fb.com>
21420         maint.mk: improve sc_prohibit_intprops_without_use
21421         * top/maint.mk (_intprops_names): Don't hard-code the list of
21422         symbol names.  Instead, derive it on the fly.
21424 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21426         dfa: shorten sbit, success
21427         * lib/dfa.c (struct regex_syntax.sbit):
21428         (struct dfa.success): Use char, not int, for array elements, since
21429         they are all in the range 0..7.
21431         dfa: simplify multibyte_prop etc.
21432         This follows up on a change made when dfa.c was in grep, namely grep
21433         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21434         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21435         That earlier simplification allows for some more simplification
21436         and trimming down here.
21437         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21438         (struct lexer_state): New mamber brack.
21439         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21440         since they must be in the range 0..3 now.
21441         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21442         the brack member now supersedes them.
21443         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21444         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21445         (dfaparse): Remove unnecessary initializations of already-0 storage.
21446         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21447         (dfassbuild): No need to clear sup->mbcsets.
21449         dfa: minor performance tweak
21450         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21452         dfa: wrap charclass inside a struct
21453         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21454         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21455         about 5% faster, where list.txt is generated by 'aspell dump
21456         master | head -n 100000 >list.txt'.  See Bug#22239.
21457         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21458         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21459         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21460         Adjust to this, e.g., by using charclass * rather than charclass.
21461         All callers changed as needed.
21462         (copyset): Remove.  All uses changed to simple assignment.
21463         (parse_bracket_exp): Use zeroset instead of memset.
21465 2016-12-30  Jim Meyering  <meyering@fb.com>
21467         maint.mk: update list of intprops.h symbol names
21468         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21469         This avoids a false failure of the sc_prohibit_intprops_without_use
21470         rule in grep.
21472 2016-12-29  Eric Blake  <eblake@redhat.com>
21474         getopt: fix parallel test failure
21475         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21476         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21477         * tests/test-getopt-main.h (main): Use different file names
21478         in case test-getopt-gnu and test-getopt-posix run in parallel.
21480 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21482         xalloc: x2nrealloc check for ptrdiff_t overflow
21483         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21484         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21486 2016-12-24  Bruno Haible  <bruno@clisp.org>
21488         lock test: Fix performance problem on multi-core machines.
21489         * tests/test-lock.c (USE_VOLATILE): New macro.
21490         (struct atomic_int): New type.
21491         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21492         functions.
21493         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21494         as 'struct atomic_int'.
21495         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21496         reclock_checker_thread, test_recursive_lock): Use the new functions.
21497         Reported by Eric Blake in
21498         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21499         and by Pádraig Brady in
21500         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21502 2016-12-19  Bruno Haible  <bruno@clisp.org>
21504         vma-iter: Fix endless loop on 64-bit Windows.
21505         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21506         'unsigned long'.
21508 2016-12-19  Bruno Haible  <bruno@clisp.org>
21510         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21511         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21512         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21513         Invoke gt_TYPE_WINT_T instead.
21514         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21515         * modules/stdint (Files): Add m4/wint_t.m4.
21516         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21517         * modules/wctype-h (Makefile.am): Likewise.
21518         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21519         not only on MSVC.
21520         * lib/wctype.in.h (wint_t): Likewise.
21522 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21524         getopt-posix-tests: fix Makefile typo
21525         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21526         Fix typo: the last ‘_’ was missing in the name.
21527         I suspect that the typo explains this build failure:
21528         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21529         although I can’t reproduce the problem on Solaris 10 sparc.
21531 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21533         dfa: improve worst-case 'replace' performance
21534         See my note in Bug#22357#71.
21535         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21536         (merge_constrained): New function, which is like
21537         the old 'merge' function, except with a new argument C2.
21538         Simplify the body by avoiding the need for different sections
21539         of code depending on whether one input is exhausted.
21540         (merge): Use the new function.
21541         (delete): Return the constraint of the deleted position,
21542         not the entire position.  Caller changed.
21543         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21545 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21547         dfa: performance improvement for removal of epsilon closure
21548         See Bug#22357#32.
21549         * lib/dfa.c (delete): Use binary search to find deleted index.
21550         (replace): New function.  It replaces a position with the followed set.
21551         (epsclosure): Replace it with a new algorithm.  Update caller.
21553 2016-12-18  Bruno Haible  <bruno@clisp.org>
21555         Split tests for getopt-posix and getopt-gnu.
21556         * tests/test-getopt-posix.c: New file.
21557         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21558         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21559         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21560         GNULIB_TEST_GETOPT_GNU.
21561         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21562         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21563         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21564         * modules/getopt-gnu-tests: New file.
21565         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21567 2016-12-18  Bruno Haible  <bruno@clisp.org>
21569         posix-modules: Add options for specific platforms.
21570         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21571         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21572         Invoke func_tmpdir. Filter out the excludes.
21574 2016-12-18  Bruno Haible  <bruno@clisp.org>
21576         getopt: Fix link error for users of getopt() in <unistd.h>.
21577         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21578         __need_getopt is defined. Undefine all macros before defining them.
21579         * modules/getopt (Include): Clarify that including <unistd.h> is also
21580         OK.
21581         * tests/test-getopt.c: Add comment.
21583 2016-12-17  Bruno Haible  <bruno@clisp.org>
21585         getaddrinfo tests: Avoid compilation error on MSVC.
21586         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
21587         getaddrinfo on native Windows.
21589 2016-12-17  Bruno Haible  <bruno@clisp.org>
21591         getlogin, getlogin_r: Fix link errors on MSVC.
21592         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
21593         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
21594         (Link): New section.
21595         * modules/getlogin_r (Files): Add m4/getlogin.m4.
21596         (configure.ac): Require gl_LIB_GETLOGIN.
21597         (Link): New section.
21598         * NEWS: Mention the new link requirements.
21599         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
21600         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
21602 2016-12-17  Bruno Haible  <bruno@clisp.org>
21604         Un-deprecate the 'progname' module.
21605         * NEWS: Describe the appropriate use-cases of 'progname' versus
21606         'getprogname'. Based on discussion summary at
21607         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
21609 2016-12-17  Bruno Haible  <bruno@clisp.org>
21611         Reorganize NEWS a bit.
21612         * NEWS: Move some not so important changes away from section
21613         "Important Notes".
21615 2016-12-17  Bruno Haible  <bruno@clisp.org>
21617         tanhf: Avoid redefinition error on MSVC.
21618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
21619         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
21620         may be defined as an inline function.
21621         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
21622         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
21624 2016-12-17  Bruno Haible  <bruno@clisp.org>
21626         tanf: Avoid redefinition error on MSVC.
21627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
21628         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
21629         may be defined as an inline function.
21630         * modules/math (Makefile.am): Substitute REPLACE_TANF.
21631         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
21633 2016-12-17  Bruno Haible  <bruno@clisp.org>
21635         sqrtf: Avoid redefinition error on MSVC.
21636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
21637         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
21638         may be defined as an inline function.
21639         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
21640         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
21642 2016-12-17  Bruno Haible  <bruno@clisp.org>
21644         sinhf: Avoid redefinition error on MSVC.
21645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
21646         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
21647         may be defined as an inline function.
21648         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
21649         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
21651 2016-12-17  Bruno Haible  <bruno@clisp.org>
21653         sinf: Avoid redefinition error on MSVC.
21654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
21655         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
21656         may be defined as an inline function.
21657         * modules/math (Makefile.am): Substitute REPLACE_SINF.
21658         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
21660 2016-12-17  Bruno Haible  <bruno@clisp.org>
21662         logf: Avoid redefinition error on MSVC.
21663         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
21664         may be defined as an inline function.
21666 2016-12-17  Bruno Haible  <bruno@clisp.org>
21668         log10l: Avoid redefinition error on MSVC.
21669         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
21670         may be defined as an inline function.
21672 2016-12-17  Bruno Haible  <bruno@clisp.org>
21674         log10f: Avoid redefinition error on MSVC.
21675         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
21676         may be defined as an inline function.
21678 2016-12-17  Bruno Haible  <bruno@clisp.org>
21680         hypotl: Avoid redefinition error on MSVC.
21681         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
21682         may be defined as an inline function.
21684 2016-12-17  Bruno Haible  <bruno@clisp.org>
21686         hypotf: Avoid redefinition error on MSVC.
21687         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
21688         may be defined as an inline function.
21690 2016-12-17  Bruno Haible  <bruno@clisp.org>
21692         fmodl: Avoid redefinition error on MSVC.
21693         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
21694         may be defined as an inline function.
21696 2016-12-17  Bruno Haible  <bruno@clisp.org>
21698         fmodf: Avoid redefinition error on MSVC.
21699         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
21700         may be defined as an inline function.
21702 2016-12-17  Bruno Haible  <bruno@clisp.org>
21704         expf: Avoid redefinition error on MSVC.
21705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
21706         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
21707         may be defined as an inline function.
21708         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
21709         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
21711 2016-12-17  Bruno Haible  <bruno@clisp.org>
21713         coshf: Avoid redefinition error on MSVC.
21714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
21715         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
21716         may be defined as an inline function.
21717         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
21718         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
21720 2016-12-17  Bruno Haible  <bruno@clisp.org>
21722         cosf: Avoid redefinition error on MSVC.
21723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
21724         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
21725         may be defined as an inline function.
21726         * modules/math (Makefile.am): Substitute REPLACE_COSF.
21727         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
21729 2016-12-17  Bruno Haible  <bruno@clisp.org>
21731         atan2f: Avoid redefinition error on MSVC.
21732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
21733         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
21734         may be defined as an inline function.
21735         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
21736         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
21738 2016-12-17  Bruno Haible  <bruno@clisp.org>
21740         atanf: Avoid redefinition error on MSVC.
21741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
21742         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
21743         may be defined as an inline function.
21744         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
21745         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
21747 2016-12-17  Bruno Haible  <bruno@clisp.org>
21749         asinf: Avoid redefinition error on MSVC.
21750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
21751         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
21752         may be defined as an inline function.
21753         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
21754         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
21756 2016-12-17  Bruno Haible  <bruno@clisp.org>
21758         acosf: Avoid redefinition error on MSVC.
21759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
21760         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
21761         may be defined as an inline function.
21762         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
21763         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
21765 2016-12-17  Bruno Haible  <bruno@clisp.org>
21767         Avoid redefinition errors on MSVC.
21768         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
21769         the function may be defined as an inline function.
21770         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
21771         the function may be defined as an inline function.
21773 2016-12-17  Bruno Haible  <bruno@clisp.org>
21775         Avoid redefinition errors on MSVC.
21776         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
21777         * lib/unistd.in.h: Include <stdio.h> when necessary.
21779 2016-12-17  Bruno Haible  <bruno@clisp.org>
21781         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
21782         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
21783         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21784         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
21785         WINT_MAX.
21787 2016-12-17  Bruno Haible  <bruno@clisp.org>
21789         Avoid autoconf warning.
21790         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
21791         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
21793 2016-12-17  Bruno Haible  <bruno@clisp.org>
21795         fpending: Revert workaround against Emacs bug.
21796         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
21797         The Emacs bug is fixed by Eli Zaretskii in
21798         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
21800 2016-12-17  Bruno Haible  <bruno@clisp.org>
21802         getlogin_r tests: Port to mingw.
21803         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
21804         regression introduced on 2014-05-19.
21806 2016-12-17  Bruno Haible  <bruno@clisp.org>
21808         getlogin: Port to newer mingw.
21809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
21810         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
21811         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
21812         HAVE_GETLOGIN.
21813         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
21814         HAVE_GETLOGIN.
21815         * doc/posix-functions/getlogin.texi: Mention the issue.
21816         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
21817         regression introduced on 2014-05-14.
21819 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21821         builtin-expect: improve port to IBM XL C
21822         Problem reported for z/OS by Daniel Richard G. in:
21823         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
21824         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21825         Test for <builtins.h> directly.
21827         builtin-expect: port to IBM XL C
21828         Problem reported for z/OS by Daniel Richard G. in:
21829         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
21830         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21831         Also allow __builtin_expect defined via a standard include file.
21833         regex: fix dependency
21834         Problem reported by Bruno Haible in:
21835         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
21836         * modules/regex: Depend on builtin-expect.
21838         builtin-expect: new module
21839         Fix fnmatch to use it.
21840         Problem reported for z/OS by Daniel Richard G.
21841         * lib/fnmatch.c (__builtin_expect):
21842         * lib/glob.c (__builtin_expect):
21843         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
21844         * lib/memmem.c (__builtin_expect) [!_LIBC]:
21845         * lib/scandir.c (__builtin_expect):
21846         * lib/strstr.c (__builtin_expect) [!_LIBC]:
21847         Remove macro; config.h now does this.
21848         * lib/gl_anytreehash_list1.h (add_to_bucket):
21849         * lib/regex_internal.h (BE):
21850         Assume __builtin_expect.
21851         * m4/builtin-expect.m4, modules/builtin-expect: New files.
21852         * modules/avltreehash-list, modules/fnmatch, modules/glob:
21853         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
21854         * modules/scandir, modules/strstr-simple:
21855         Depend on builtin-expect.
21857 2016-12-15  Bruno Haible  <bruno@clisp.org>
21859         init.sh: Add possibility to not delete temporary files.
21860         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
21861         to yes, don't erase the temporary directory.
21863 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21865         regex: fix integer-overflow bug in never-used code
21866         Problem reported by Clément Pit–Claudel in:
21867         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
21868         * lib/regex_internal.h: Include intprops.h.
21869         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
21870         behavior on integer overflow.
21871         * modules/regex (Depends-on): Add intprops.
21873         fpending: fix port to MinGW on Emacs
21874         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
21875         Problem reported by Eli Zaretskii in:
21876         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
21877         Is Plan 9 still a valid porting target, anyway?
21879 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21881         safe-alloc: use xalloc-oversized
21882         * lib/safe-alloc.c: Include xalloc-oversized.h.
21883         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
21884         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
21886         xalloc: do not exceed PTRDIFF_MAX
21887         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
21888         xalloc_oversized check, since objects larger than PTRDIFF_MAX
21889         bytes have pointer-subtraction problems.
21891         malloca: do not exceed PTRDIFF_MAX
21892         * lib/malloca.h: Include xalloc-oversized.
21893         (nmalloca): Use xalloc_oversized instead of rolling our own.
21894         * modules/malloca (Depends-on):
21895         * modules/relocatable-prog-wrapper (Depends-on):
21896         Add xalloc-oversized.
21898         quotearg: pacify GCC better
21899         * modules/quotearg (Depends-on): Add minmax, stdint.
21900         * lib/quotearg.c: Include minmax.h, stdint.h.
21901         (nslots): Now int, as there seems little point to going to extra
21902         work merely to support the INT_MAX slot, which nobody ever uses.
21903         (quotearg_n_options): Redo size-overflow checks to pacify GCC
21904         and to catch (mostly-theoretical) ptrdiff_t problems too.
21905         This can be done via one comparison.
21907 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21909         xalloc-oversized: check for PTRDIFF_MAX too
21910         This avoids undefined behavior when subtracting pointers to
21911         objects containing more than PTRDIFF_MAX bytes.
21912         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
21913         Also return 1 if the result would exceed PTRDIFF_MAX>
21914         * modules/xalloc-oversized (Depends-on):
21915         Add stdint.
21917         dfa: fix glitches in previous commit
21918         Sorry, I don't know how I managed to commit the wrong version.
21919         * lib/dfa.c (MIN): Move up.
21920         (xpalloc): Now static.
21922         dfa: fix some unlikely integer overflows
21923         I found these while reviewing the recent Coverity-related fix.
21924         This patch changes part of dfa.c to prefer ptrdiff_t instead of
21925         size_t for object counts.  Using ptrdiff_t is the style typically
21926         used in Emacs; although it wastes a sign bit as sizes can never be
21927         negative, it makes -fsanitize=undefined more likely to catch
21928         integer overflows in index calculation, and nowadays the upside is
21929         typically more important than the downside.  Although perhaps the
21930         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
21931         of dfa.c already does, since it uses state_num which is signed),
21932         that is a bigger change and is not needed to fix the bugs I found.
21933         * lib/dfa.c: Include stdint.h and intprops.h.
21934         (TOKEN_MAX): New macro.
21935         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
21936         (charclass_index, parse_bracket_exp, addtok, insert, merge)
21937         (realloc_trans_if_necessary, free_mbdata):
21938         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
21939         This is safe because xpalloc checks that the sizes do not exceed
21940         either SIZE_MAX or PTRDIFF_MAX.
21941         (xpalloc): New function, mostly taken from Emacs.
21942         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
21943         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
21944         (charclass_index): Check for integer overflow in computing
21945         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
21946         added to it later.
21947         (alloc_position_set): Check for integer overflow.  On typical
21948         platforms this check has zero overhead, since the constant
21949         expression is false.
21950         (realloc_trans_if_necessary):
21951         Remove assertion, which I hope Coverity no longer needs.
21953         * modules/dfa (Depends-on): Add intprops, stdint.
21955 2016-12-12  Jim Meyering  <meyering@fb.com>
21957         dfa: add an assertion to avoid coverity false positive
21958         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
21959         warned that "newalloc1 - 2" could overflow.
21961 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
21963         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
21964         * dfa.h (DFA_CASE_FOLD): Remove.
21965         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
21967 2016-12-13  John W. Eaton  <gnu@jweaton.org>
21969         link: fix test to declare use of rename()
21970         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
21971         -Werror=implicit-function-declaration
21973 2016-12-12  Bruno Haible  <bruno@clisp.org>
21975         fpending: Port to native Windows with MSVC.
21976         * lib/fpending.c: Include stdio-impl.h.
21977         (__fpending): Include all known implementations. Err out if it's not
21978         ported.
21979         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
21980         * modules/fpending (Files): Add lib/stdio-impl.h.
21981         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
21983 2016-12-12  Bruno Haible  <bruno@clisp.org>
21985         stdioext: Port to native Windows with MSVC.
21986         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
21987         (struct _gl_real_FILE): New type.
21988         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
21989         Windows.
21990         * lib/fbufmode.c (fbufmode): Add code for native Windows.
21991         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
21992         other SystemV derived implementations.
21993         * lib/fpurge.c (fpurge): Likewise.
21994         * lib/freadable.c (freadable): Likewise.
21995         * lib/freadahead.c (freadahead): Likewise.
21996         * lib/freading.c (freading): Likewise.
21997         * lib/freadptr.c (freadptr): Likewise.
21998         * lib/freadseek.c (freadptrinc): Likewise.
21999         * lib/fseeko.c (fseeko): Likewise.
22000         * lib/fseterr.c (fseterr): Likewise.
22001         * lib/fwritable.c (fwritable): Likewise.
22002         * lib/fwriting.c (fwriting): Likewise.
22003         Reported by Gisle Vanem <gvanem@yahoo.no>.
22005 2016-12-11  Jim Meyering  <meyering@fb.com>
22007         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22008         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22009         to work with most shells, but not with the one provided by many
22010         Solaris 10 systems, so running configure with such a /bin/sh evokes
22011         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22012         Reported by Assaf Gordon in
22013         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22015 2016-12-10  Bruno Haible  <bruno@clisp.org>
22017         threadlib: Optimize out runtime test on Solaris >= 10.
22018         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22019         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22020         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22022 2016-12-10  Bruno Haible  <bruno@clisp.org>
22024         stdint: Update doc about Solaris 9.
22025         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22027 2016-12-09  Bruno Haible  <bruno@clisp.org>
22029         c-ctype tests: Fix link error on Solaris 9.
22030         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22031         Reported at <https://savannah.gnu.org/bugs/?46827>.
22033 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22035         dfa: fix performance bug that recomputes trans
22036         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22037         25 on-demand changes.  The bug caused build_state to reset all
22038         d->trans elements to -2 even when d->trans was already non-null.
22039         Use C99 style decls after statements in this function.
22041         same-inode: port to MinGW
22042         Here st_ino is always 0, so change the definition of SAME_INODE so
22043         that 1 means the two files are the same, 0 with st_ino != 0 means
22044         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22045         reported by Bruno Haible (Bug#25146).
22046         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22047         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22049 2016-12-04  Bruno Haible  <bruno@clisp.org>
22051         javacomp-script: Support Java 7 and 8.
22052         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22053         target-version 1.7, 1.8.
22055 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22057         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22058         GPLv2" rewriting.
22060 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22062         * gnulib-tool (func_import): Adhere to the license guideline when
22063         rewriting the license text to "LGPLv3+ or GPLv2":
22064         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22066 2016-12-02  Bruno Haible  <bruno@clisp.org>
22068         localcharset: Avoid theoretical buffer overrun.
22069         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22070         return value from setlocale if it would lead to a buffer overrun.
22072 2016-12-01  Bruno Haible  <bruno@clisp.org>
22074         Relicense some modules under LGPLv2+.
22075         Kevin Cernekee's approval is in
22076         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22077         * modules/fseterr (License): Change to LGPLv2+.
22078         * modules/mbchar (License): Likewise.
22079         * modules/mbiter (License): Likewise.
22080         * modules/mbsnlen (License): Likewise.
22081         * modules/wcwidth (License): Likewise.
22083 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22085         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22086         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22087         OS/2 kLIBC.
22089 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22091         alphasort, scandir: Port to OS/2 kLIBC
22092         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22093         declaration.
22094         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22096 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22098         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22099         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22100         with '/@unixroot'.
22102 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22104         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22105         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22106         OS/2 kLIBC unless TCPV40HDRS is defined.
22108 2016-11-29  Jim Meyering  <meyering@fb.com>
22110         dfa: avoid new infinite loop
22111         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22112         * lib/dfa.c (dfastate): When constructing a new state table, we could
22113         initially declare that we had found a match, and later find that
22114         constraints eliminate that possibility, yet continue to use the
22115         now stale "matched" indicator.  That would lead to an infinite loop.
22116         The solution is to update "matched" when necessary.
22117         Introduced by commit v0.1-983-g403adf1.
22119 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22121         dfa: avoid match middle in multibyte character
22122         * lib/dfa.c (transit_state): If fails in matching single byte characters
22123         on a state including period expression in non-UTF8 multibyte locales,
22124         skip trailing bytes.
22125         (dfa_supported): Revert previous change.
22127 2016-11-27  Jim Meyering  <meyering@fb.com>
22129         dfa: avoid false match in non-UTF8 multibyte locales
22130         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22131         as "not supported" so that callers will resort to using regex-based
22132         matcher.  This will surely hurt performance, but correctness trumps
22133         performance here, and the affected locales are less and less relevant,
22134         these days.  See grep's bug report https://bugs.gnu.org/24975.
22136 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22138         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22139         * lib/ptsname_r.c: Include the appropriate headers.
22140         [__sun]: Delete sys/sysmacros.h include.
22141         [_AIX || __osf__]: Likewise.
22142         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22144 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22146         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22147         * lib/md4.c (md4_process_bytes): The existing define is made internal
22148         in recent versions of glibc, so also use this new public define.
22149         * lib/md5.c (md5_process_bytes): Likewise.
22150         * lib/sha1.c (sha1_process_bytes): Likewise.
22151         * lib/sha256.c (sha256_process_bytes): Likewise.
22152         * lib/sha512.c (sha512_process_bytes): Likewise.
22154 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22156         maint: use a more standard return from mbrtowc test
22157         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22158         from the test program as this often indicates an
22159         unhandled case in the test program.
22160         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22161         (gl_MBRTOWC_SANITYCHECK): Likewise.
22162         (gl_MBRTOWC_NULL_ARG2): Likewise.
22163         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22165 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22167         freopen: work around glibc bug with closed fd
22168         Work around glibc bug#15589, where freopen mishandles the case
22169         where stdin etc. are already closed.
22170         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22171         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22172         instead of __need_FILE, as the latter does not work with glibc.
22173         Include <fcntl.h>, for open flags.
22174         (rpl_freopen): Work around glibc bug.
22175         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22176         * modules/freopen (Depends-on): Add fcntl-h.
22177         * tests/test-freopen.c (main): Test for bug.
22179 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22181         fnmatch: fix typo introduced on 2016-08-17
22182         This fixes the port to non-GCC compilers that lack __builtin_expect.
22183         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22185         dfa: simplify with new function fillset
22186         * lib/dfa.c (fillset): New function.
22187         Use it for clarity when applicable.
22189         dfa: fix glitches with on-demand states
22190         Also, adjust commentary to better match new code.
22191         Some of these glitches predate the recent change.
22192         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22193         only non-initial states.
22194         (dfastate): Rename locals to better match new roles.
22195         Move them into nested scopes if this is easy.
22196         Omit unnecessary calls to zeroset.
22197         Simplify test for whether to throw in the positions of state 0.
22198         Omit C99-ism (decl after statement) since Gawk still wants C89.
22199         (build_state): Omit unnecessary test and assignment.
22200         Fix some confusion that counted transition tables inaccurately
22201         and could cause a memory leak.
22202         (dfaexec_main): Redo to make it clearer to the compiler that
22203         -1 and -2 are the only negative state numbers here.
22205 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22207         dfa: addition of new state on demand
22208         * src/dfa.c (dfastate): Add argument UC, the current input character.
22209         Fill only a group including the character in transition table.
22210         (realloc_trans_if_necessary): Add the dummy state which means that a
22211         transition table is assigned but the next state is not assigned.
22212         (build_state): Return the next state.  All callers updated.
22213         (transit_state_singlebyte): If we get the dummy state,
22214         fill the transition table.
22215         (dfaexec_main): Handle the dummy state.
22216         (free_mbdata, dfafree): Consider the dummy state.
22218 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22220         srclist: sync with released gettext
22221         * config/srclist.txt: Set "release" option to the files under
22222         $GETTEXT.
22224 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22226         srclist: add "release" option
22227         * config/srclist.txt: Change the format so that the first column
22228         of each line points to the top-level directory of the source
22229         archive.
22230         * config/srclist-update: Accept "release" option that checks files
22231         from the most recently tagged revision in the source archive.
22233 2016-11-21  Bruno Haible  <bruno@clisp.org>
22235         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22236         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22237         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22238         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22239         Inline and remove member function 'rpl ()' of the wrapper struct.
22241 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22243         dfa: fix logic typo
22244         Problem reported by Stephane Chazelas (Bug#24973).
22245         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22246         non-simple locales like fr_FR to be treated as simple.
22248 2016-11-20  Jim Meyering  <meyering@fb.com>
22250         fix test driver leaks: exclude, malloc, realloc
22251         * tests/test-exclude.c (main): Fix trivial leak.
22252         * tests/test-malloc-gnu.c (main): Likewise.
22253         * tests/test-realloc-gnu.c (main): Likewise.
22254         With these changes, grep's tests are now leak free.
22255         I.e., running them with ASAN elicits no failure:
22256           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22257             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22259 2016-11-11  Bruno Haible  <bruno@clisp.org>
22261         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22262         * modules/libunistring: (License): Change from LGPL to
22263         "LGPLv3+ or GPLv2".
22264         * modules/libunistring-optional: Likewise.
22265         * modules/unicase/*: Likewise.
22266         * modules/uniconv/*: Likewise.
22267         * modules/unictype/*: Likewise.
22268         * modules/unigbrk/*: Likewise.
22269         * modules/unilbrk/*: Likewise.
22270         * modules/uniname/*: Likewise.
22271         * modules/uninorm/*: Likewise.
22272         * modules/unistdio/*: Likewise.
22273         * modules/unistr/*: Likewise.
22274         * modules/uniwbrk/*: Likewise.
22275         * modules/uniwidth/*: Likewise.
22277 2016-11-12  Bruno Haible  <bruno@clisp.org>
22279         Relicense some modules under LGPLv2+.
22280         Paul Eggert's approval is in
22281         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22282         Eric Blake's approval is in
22283         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22284         Ludovic Courtès's approval is in
22285         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22286         * modules/isnand-nolibm (License): Change to LGPLv2+.
22287         * modules/isnanf-nolibm (License): Likewise.
22288         * modules/isnanl-nolibm (License): Likewise.
22290 2016-11-19  Bruno Haible  <bruno@clisp.org>
22292         Relicense some modules under LGPLv2+.
22293         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22294         modules/vasnprintf.
22295         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22296         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22297         All other significant changes to the files in lib/ of these modules
22298         are from me.
22299         * modules/memcmp2 (License): Change to LGPLv2+.
22300         * modules/amemxfrm (License): Likewise.
22301         * modules/fpieee (License): Likewise.
22302         * modules/fpucw (License): Likewise.
22303         * modules/frexp-nolibm (License): Likewise.
22304         * modules/frexpl-nolibm (License): Likewise.
22305         * modules/printf-frexp (License): Likewise.
22306         * modules/printf-frexpl (License): Likewise.
22307         * modules/printf-safe (License): Likewise.
22308         * modules/signbit (License): Likewise.
22310 2016-11-17  Bruno Haible  <bruno@clisp.org>
22312         Enable Unicode decoder safety unconditionally.
22313         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22314         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22315         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22316         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22317         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22318         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22319         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22320         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22321         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22322         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22323         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22324         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22325         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22326         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22327         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22328         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22329         * lib/unistr/u32-next.c (u32_next): Likewise.
22330         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22331         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22332         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22333         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22334         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22335         CONFIG_UNICODE_SAFETY tests unconditionally.
22336         * tests/unistr/test-u32-mblen.c (main): Likewise.
22337         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22338         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22339         * tests/unistr/test-u32-next.c (main): Likewise.
22340         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22341         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22342         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22343         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22344         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22345         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22346         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22347         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22348         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22349         * lib/unistr/u16-check.c (u16_check): Update comment.
22350         * NEWS: Mention the changes that callers should be aware of.
22352 2016-11-19  Bruno Haible  <bruno@clisp.org>
22354         relocatable-prog-wrapper: Fix breakage on Cygwin.
22355         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22356         (Depends-on): Remove intprops.
22357         * lib/relocwrapper.c: Update dependency tree.
22358         (strerror): Undefine.
22359         * build-aux/install-reloc (func_create_wrapper): Do not compile
22360         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22362 2016-11-19  Bruno Haible  <bruno@clisp.org>
22364         strerror: Make it compile in C++ mode.
22365         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22367 2016-11-15  Pedro Alves  <palves@redhat.com>
22369         sys_time: add gnulib::timeval for C++
22370         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22371         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22372         timeval macro.
22374 2016-11-14  Pedro Alves  <palves@redhat.com>
22376         snippet/c++defs: fix real-floating arg functions in C++ mode
22377         Also, define isfinite, isinf, isnan, signbit in the gnulib
22378         namespace instead of in the global namespace.
22379         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22380         (_GL_END_NAMESPACE): New.
22381         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22382         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22383         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22384         instead of in the global namespace.
22385         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22386         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22387         of in the global namespace.
22389 2016-11-13  Jim Meyering  <meyering@fb.com>
22391         strftime: don't use __THROW
22392         Each use of __THROW would provoke this from gcc-7-to-be:
22394           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22395             on unit local functions [-Wattributes]
22396           static int iso_week_days (int, int) __THROW;
22397           ^~~~~~
22398         * lib/strftime.c (__THROW): Don't define.
22399         Remove each use of __THROW.
22400         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22401         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22403 2016-11-14  Paul Eggert  <eggert@union>
22405         obstack: port to gcc -fcheck-pointer-bounds
22406         Problem found by 'make check' failure on bleeding-edge coreutils
22407         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22408         6.2.0-5ubuntu12), configured via "./configure
22409         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22410         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22411         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22412         New macro, copied from fts_.h.
22413         (struct _obstack_chunk.contents): Use it.
22415 2016-11-14  Eric Blake  <eblake@redhat.com>
22417         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22418         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22419         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22421 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22423         strptime: fix compile error in recent change
22424         * lib/strptime.c (__strptime_internal): Fix ported code.
22426 2016-11-11  Bruno Haible  <bruno@clisp.org>
22428         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22429         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22430         (func_import): Extend determination of license_incompatibilities.
22431         (func_create_testdir): Extend table of license compatibility. Handle
22432         also the licenses GPLv3+, GPL, LGPLv3+.
22434 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22436         strftime: tune %q
22437         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22439         Merge strftime.c changes from glibc
22440         This incorporates:
22441         2007-10-16 [BZ #5184] Add tzset_called argument
22442         2008-06-13 [BZ #6612] pass reference to tzset_called around
22443         2009-10-30 Implement Burmese language locale for Myanmar
22444         2010-01-09 Add support for XPG7 testing
22445         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22446         2015-10-20 Convert miscellaneous function definitions to prototype style
22447         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22448         it anyway and this lessens the difference between gnulib and glibc.
22449         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22450         (__THROW): Define if standard headers do not.
22451         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22452         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22453         Declare with __THROW.
22454         (__strftime_internal): Rename from strftime_case_. Add arg for
22455         whether tzset is called.  All uses changed.  Call tzset at most
22456         once.  Allow %OC, for Burmese.
22457         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22458         Don't assume values are in range.
22460 2016-11-12  Eric Blake  <eblake@redhat.com>
22462         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22463         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22464         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22465         different value.
22467 2006-11-12  Pedro Alves  <palves@redhat.com>
22469         Fix gnulib C++ namespace support and std::frexp
22470         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22471         _GL_CXXALIASWARN.
22473 2006-11-12  Pedro Alves  <palves@redhat.com>
22475         GNULIB_NAMESPACE::func need not pull in rpl_func
22476         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22477         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22478         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22479         struct instead of a function pointer.
22481 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22483         manywarnings: fix -Wno-missing-field-initializers detection
22484         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22485         to be independent of -Wunused-variable.  I.E. ensure the latter
22486         warning doesn't occur so that detection of the former is accurate.
22488 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22490         strftime,strptime: support %q to represent the quarter
22491         * lib/strftime.c (strftime_case_): Add %q case.
22492         * lib/strptime.c (__strptime_internal): Likewise.
22493         * tests/test-strftime.c (quarter_test): A new test case.
22495 2016-11-03  Eric Blake  <eblake@redhat.com>
22497         bootstrap: Fix get_version() for AIX 5.3
22498         * build-aux/bootstrap (get_version): Factor out sed script, since
22499         indented comments choke AIX 5.3 sed.
22500         Reported-by: Michael Felt <aixtools@gmail.com>
22502 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22504         intprops: port to older XL C
22505         Problem reported by Alexander Samoilov in:
22506         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22507         http://savannah.nongnu.org/bugs/?49448
22508         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22509         Define to 1 only for XL C 12.1 or later, since this bug
22510         occurs in XL C for AIX 6.0 but not in 12.1.
22512 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22514         backupfile: initialize default suffix within the implementation
22515         * lib/backupfile.c (find_backup_file_name): Initialize the
22516         global variable here, to simplify usage, and to only call
22517         getenv() when needed.
22519 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22521         futimens: remove FIXME for old Linux kernels
22522         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22523         this in 2012" FIXME, like that for utimensat.
22525         utimensat: remove FIXME for old Linux kernels
22526         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22527         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22528         this in 2012" FIXME, by assuming the file system bug is absent
22529         unless demonstrated to be present.  We no longer need to worry
22530         about Linux kernel 2.6.32 when building with newer kernels.
22532 2016-10-16  Bruno Haible  <bruno@clisp.org>
22534         qsort_r: Fix macrology for platforms that lack the function.
22535         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22536         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22537         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22538         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22539         not exist.
22540         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22541         the function exists.
22542         * modules/qsort_r: Add comments.
22544 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22546         sys_types: fix Texinfo typos
22547         * doc/glibc-functions/gnu_dev_major.texi:
22548         * doc/glibc-functions/gnu_dev_makedev.texi:
22549         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22551 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22553         getprogname: port to HP-UX
22554         See Bug#24805.
22555         * lib/getprogname.c (getprogname) [__hpux]: Port.
22556         * tests/test-getprogname.c (STREQ) [__hpux]:
22557         Special-case for HP-UX limitations on program name length.
22559 2016-10-20  Bruno Haible  <bruno@clisp.org>
22561         Update doc about target platforms.
22562         * doc/gnulib-intro.texi (Target Platforms): Update list.
22564 2016-10-15  Bruno Haible  <bruno@clisp.org>
22566         opendir, readdir, closedir: Relicense under LGPLv2+.
22567         * modules/opendir (License): Change to LGPLv2+.
22568         * modules/readdir (License): Likewise.
22569         * modules/closedir (License): Likewise.
22571 2016-10-16  Bruno Haible  <bruno@clisp.org>
22573         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22575         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22576         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22577         HAVE_DECL_STRERROR_R.
22579 2016-10-16  Bruno Haible  <bruno@clisp.org>
22581         Make the 'argp' module work without the 'error' module.
22582         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22584 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22586         diffseq: restore TOO_EXPENSIVE heuristic
22587         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
22588         (Bug#24715).  The simplest solution is to restore the
22589         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
22590         using a higher threshold to avoid Bug#16848 on smaller files.
22591         * lib/diffseq.h (struct context): Restore member too_expensive.
22592         (struct partition): Restore members lo_minimal, hi_minimal.
22593         (diag, compareseq): Restore arg find_minimal.  All uses changed.
22594         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
22595         1993 to make 'diff' run faster (but not as well) on large inputs,
22596         but use a threshold of 4096 instead of the old 256.
22597         * lib/fstrcmp.c (strcmp_bounded):
22598         * lib/git-merge-changelog.c (compute_differences):
22599         Adjust to diffseq.h changes.
22601 2016-10-22  Bruno Haible  <bruno@clisp.org>
22603         iconv: Avoid compilation error when bootstrapping GNU libiconv.
22604         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
22605         declaration yet, define ICONV_CONST to empty.
22607 2016-10-15  Bruno Haible  <bruno@clisp.org>
22609         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
22610         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
22611         module.
22613 2016-10-16  Bruno Haible  <bruno@clisp.org>
22615         system-quote tests: Avoid compiler warning on AIX.
22616         * tests/test-system-quote-child.c (fopen): Redefine like the system's
22617         <stdio.h> does.
22619 2016-10-16  Bruno Haible  <bruno@clisp.org>
22621         Fix some "gcc -Wall" warnings.
22622         * tests/test-ffsl.c (main): Use variable x, not i.
22623         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
22624         freopen.
22625         * tests/test-sethostname1.c (main): Explicitly ignore the return value
22626         of sethostname.
22628 2016-10-16  Bruno Haible  <bruno@clisp.org>
22630         gnulib-tool: Make --create-testdir on all modules work again.
22631         * gnulib-tool (func_create_testdir): Don't include the
22632         non-recursive-gnulib-prefix-hack module.
22634 2016-10-21  Daiki Ueno  <ueno@gnu.org>
22636         libunistring: change the maintainer to 'all'
22637         * modules/gen-uni-tables, modules/libunistring:
22638         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
22639         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
22640         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
22641         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
22642         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
22643         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
22644         * modules/uniwidth/*: Change the maintainer to 'all'.
22646 2016-10-16  Bruno Haible  <bruno@clisp.org>
22648         Simplify "configure: checking ..." messages.
22649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
22650         AC_MSG_NOTICE.
22651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22653 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
22655         quotearg-tests: pacify gcc -Wall
22656         Problem reported by Bruno Haible in:
22657         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
22658         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
22659         * tests/test-quotearg.h: ... from here.
22661 2016-10-20  Pádraig Brady  <P@draigBrady.com>
22663         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
22664         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
22665         Needed on Centos <= 4.
22667 2016-10-20  Jim Meyering  <meyering@fb.com>
22669         printf.m4: fix a bug in detecting printf %j support
22670         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
22671         uintmax_t is defined in neither stdint.h nor inttypes.h.
22672         Before, this macro might have mistakenly set
22673         gl_cv_func_printf_sizes_c99=yes on such a system.
22674         Spotted by Zev Weiss.
22676 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22678         sched: substitute HAVE_SYS_CDEFS_H too
22679         Problem reported by Tom G. Christensen in:
22680         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
22681         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
22682         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
22684 2016-10-19  Pádraig Brady  <P@draigBrady.com>
22686         quotearg: never write beyond the returned length
22687         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
22688         scan of the string when we initially encounter a single quote when
22689         shell quoting, so that if we then switch to a more concise quoting method
22690         we will not have written beyond that returned length.
22691         This is significant for sh-quote, which has separate routines
22692         to determine the length and do the actual quoting.
22693         * tests/test-quotearg.h: Reinstate the buffer bounds checking
22694         now that we never write more than the returned length.
22696 2016-10-18  Bruno Haible  <bruno@clisp.org>
22698         getprogname tests: Avoid failure in packages that use libtool.
22699         * tests/test-getprogname.c (main): Strip "lt-" prefix.
22700         Based on a patch by Jim Meyering.
22702 2016-10-16  Bruno Haible  <bruno@clisp.org>
22704         getprogname: Fix test failure on Cygwin. Comments.
22705         * lib/getprogname.h: Add comments.
22706         * lib/getprogname.c: Add comments. Fix #elif indentation.
22707         * tests/test-getprogname.c (main): On Cygwin, expect a result without
22708         ".exe" suffix.
22710 2016-10-16  Bruno Haible  <bruno@clisp.org>
22712         Make sure the libunistring detection rejects older versions with a
22713         known bug.
22714         * modules/unistr/u8-strtok (configure.ac): Bump required version.
22715         * modules/unistr/u16-strtok (configure.ac): Likewise.
22716         * modules/unistr/u32-strtok (configure.ac): Likewise.
22718 2016-10-18  Bruno Haible  <bruno@clisp.org>
22720         sh-quote, system-quote: revert regression of unit test.
22721         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
22722         * tests/test-system-quote-main.c (check_one): Likewise.
22724 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22726         quotearg: fix stale tests
22727         * tests/test-quotearg.c [locale_results]: Add the missing str7
22728         entries to the expected results.
22729         * tests/test-system-quote-main.c (check_one): Don't enforce that we
22730         don't write beyond the returned length, since that's no longer the
22731         case if we switch to a more concise quoting style.
22732         * tests/test-sh-quote.c (check_one): Likewise.
22733         (main): Adjust for the new more concise quoting style.
22734         Reported by Bruno Haible.
22736 2016-10-16  Jim Meyering  <meyering@fb.com>
22738         non-recursive-gnulib-prefix-hack: fix inconsequential typo
22739         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
22740         to "$1".  This macro is always invoked with $1 == lib.
22741         Spotted by Bruno Haible
22743 2016-10-16  Bruno Haible  <bruno@clisp.org>
22745         Fix a test crash.
22746         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
22747         fails.
22749 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22751         test-limits-h: suppress -Woverlength-strings
22752         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
22754 2016-10-15  Bruno Haible  <bruno@clisp.org>
22756         gettime, timespec, utimens: Relicense under LGPL.
22757         * modules/gettime (License): Change to LGPL.
22758         * modules/timespec (License): Likewise.
22759         * modules/utimens (License): Likewise.
22761 2016-10-14  Bruno Haible  <bruno@clisp.org>
22762             Pádraig Brady  <P@draigBrady.com>
22764         canonicalize-lgpl: Support the case path_max > INT_MAX.
22765         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
22766         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
22768 2016-10-13  Jim Meyering  <meyering@fb.com>
22770         getprogname: IBM z/OS: avoid NULL-dereference
22771         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
22772         upon strdup failure.
22774 2016-10-12  Jim Meyering  <meyering@fb.com>
22776         test-stdint: use _GL_VERIFY rather than "verify" for some tests
22777         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
22778         and an abbreviated diagnostic rather than verify with the full one,
22779         because the full-length strings would evoke warnings from gcc with
22780         -Woverlength-strings.
22782 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22784         stdint: port SIZE_MAX to glibc s390
22785         Problem reported by Eric Blake in:
22786         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
22787         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
22788         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
22789         correct type, if possible.
22791 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
22793         getprogname: port to IBM z/OS
22794         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
22796 2016-10-11  Jim Meyering  <meyering@fb.com>
22798         maint: remove stray space after "." in AC_DEFINE comment.
22799         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
22800         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22802 2016-10-05  Jim Meyering  <meyering@fb.com>
22804         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
22805         * lib/long-options.c (parse_long_options): Add a break statement
22806         to avoid this new warning/failure:
22807         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
22808           --create-testdir --dir=/t/x --with-tests --test long-options
22809         ../../gllib/long-options.c: In function 'parse_long_options':
22810         ../../gllib/long-options.c:66:12: error: this statement may \
22811           fall through [-Werror=implicit-fallthrough]
22812                    (*usage_func) (EXIT_SUCCESS);
22813                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
22815 2016-10-05  Jim Meyering  <meyering@fb.com>
22817         utimecmp: avoid new GCC 7 warning from -Wbool-operation
22818         Testing this module would fail when using GCC 7 like this:
22819         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
22820           --dir=/tmp/x --with-tests --test utimecmp
22821         ../../gllib/utimecmp.c: In function ‘utimecmp’:
22822         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
22823           [-Werror=bool-operation]
22824                          time_t s = src_s & ~ (res == 2 * BILLION);
22825                                             ^
22826         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
22827           [-Werror=bool-operation]
22828                src_s &= ~ (res == 2 * BILLION);
22829                         ^
22830         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
22831         Instead, make it explicit that we intend to apply it to 0 or 1.
22833 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22835         dfa: save memory for states
22836         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
22837         states if dfa has a lot of caches.
22839 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
22841         wchar, wctype-h: fix for MinGW 3.22.2
22842         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
22843         special invocation, to fix issues with MinGW 3.22.2 wchar.h
22844         when included from <string.h>.
22845         * lib/wctype.in.h [__MINGW32__]: Add special invocation
22846         convention for MinGW 3.22.2, to solve issues with their
22847         wctype.h when included from <ctype.h>.
22849 2016-10-05  Jim Meyering  <meyering@fb.com>
22851         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
22852         * lib/long-options.c (parse_long_options): Add a break statement
22853         to avoid this new warning/failure:
22854         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
22855           --create-testdir --dir=/t/x --with-tests --test long-options
22856         ../../gllib/long-options.c: In function ‘parse_long_options’:
22857         ../../gllib/long-options.c:66:12: error: this statement may \
22858           fall through [-Werror=implicit-fallthrough]
22859                    (*usage_func) (EXIT_SUCCESS);
22860                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
22862         utimecmp: avoid new GCC 7 warning from -Wbool-operation
22863         Testing this module would fail when using GCC 7 like this:
22864         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
22865           --dir=/tmp/x --with-tests --test utimecmp
22866         ../../gllib/utimecmp.c: In function ‘utimecmp’:
22867         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
22868           [-Werror=bool-operation]
22869                          time_t s = src_s & ~ (res == 2 * BILLION);
22870                                             ^
22871         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
22872           [-Werror=bool-operation]
22873                src_s &= ~ (res == 2 * BILLION);
22874                         ^
22875         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
22876         Instead, make it explicit that we intend to apply it to 0 or 1.
22878 2016-10-03  Pádraig Brady  <P@draigBrady.com>
22880         quotearg: minimize shell quoting using double quotes
22881         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
22882         quote in encountered then use double quotes (c style quoting)
22883         when possible, as it simplifies the quoting.
22884         * tests/test-quotearg-simple.c: Add test cases.
22885         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
22886         for the fact we now may write beyond the returned length.
22888 2016-10-02  Jim Meyering  <meyering@fb.com>
22890         vasnprintf.c: avoid spurious warning from GCC 7
22891         The presence of cpp directives renders this "FALLTHROUGH" comment
22892         ineffective, so does not suppress the -Wimplicit-fallthrough warning
22893         from GCC 7 built from git on 2016-10-02.
22894         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
22895         directives, so that it takes effect once again.  This is clearly
22896         not a proper change, and I will revert it once this bug is fixed:
22897         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
22899 2016-10-01  Jim Meyering  <meyering@fb.com>
22901         getprogname: correct the test for a __progname variable
22902         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
22903         and AC_LINK_IFELSE to check for a global __progname.  If found,
22904         define HAVE_VAR___PROGNAME.
22905         * lib/getprogname.c (getprogname): Reflect the new name of the
22906         feature- checked preprocessor symbol:
22907         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
22909 2016-09-28  Jim Meyering  <meyering@fb.com>
22911         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
22912         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
22913         fall-through case with a /* fallthrough */ comment.
22915         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
22916         * lib/dfa.c (dfassbuild): Mark the end of this case with a
22917         /* fallthrough */ comment.
22919         getprogname: avoid __progname vs program_invocation_short_name pitfall
22920         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
22921         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
22922         not with Fedora 24's glibc-2.23.1-10.
22923         * lib/getprogname.c (__progname): Move this declaration down...
22924         (getprogname): ... into the #elif block where used, and make it
22925         explicitly "extern".
22927         getprogname: port to OpenBSD 5.1
22928         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
22929         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
22930         * modules/getprogname (configure.ac): Move most of this code...
22931         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
22932         increment serial number, and add a test for __progname.
22933         https://bugs.gnu.org/24562
22934         Reported by Nelson H. F. Beebe.
22936 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22938         sched: port to GCC 6.2.1 on macOS Sierra
22939         Problem reported by Denis Davydov in:
22940         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
22941         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
22942         Include <sys/cdefs.h> before <sched.h>.
22943         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
22944         so that we needn’t worry about the sched.h include bug here.
22945         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
22946         and include it before <sched.h> if it exists, when
22947         checking for <sched.h>.
22949         tests/init.sh: port Alpine fix to AIX 7.1
22950         * tests/init.sh (compare_): When attempting to use diff -U3,
22951         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
22952         diff -u not outputting a space after leading '+', as the users
22953         of 'compare' should not be that picky about its output format.
22954         In the AIX 7.1 case, return with diff exit status (or with 2 if
22955         trouble), instead of some random nonzero exit status.
22956         * tests/test-init.sh (test_compare): Remove space after leading
22957         '+', so that AIX 7.1 'diff' passes the test.
22959 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22961         nl_langinfo: pacify GCC
22962         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
22963         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
22965         stdint: also set GL_GENERATE_LIMITS_H
22966         Problem reported by Jim Meyering in:
22967         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
22968         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
22970         limits-h, stdint: Don't assume extensions, fix typo
22971         * m4/limits-h.m4 (gl_LIMITS_H):
22972         * m4/stdint.m4 (gl_STDINT_H):
22973         Don't assume AC_USE_SYSTEM_EXTENSIONS.
22974         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
22975         reported by Jim Meyering in:
22976         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
22978 2016-09-21  Jim Meyering  <meyering@fb.com>
22980         getprogname: port to AIX
22981         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
22982         and strdup to obtain a short program name string.  Using code from
22983         Bruno Haible and an idea from Bastien ROUCARIÈS, in
22984         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22985         Assaf Gordon reported that this new file would fail to compile on
22986         AIX-7.1 32bit.
22988 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22990         extensions: fix typo in comment
22991         * m4/extensions.m4: Sync from Autoconf master.
22993         stdint: support new _WIDTH macros
22994         * doc/posix-headers/stdint.texi: Document this.
22995         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
22996         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
22997         support for INTMAX_WIDTH, etc. as well as for support for just C99.
22998         * modules/stdint (Depends-on): Add limits-h.
22999         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23000         * modules/stdint-tests (Depends-on): Add extensions, so that
23001         INTMAX_MAX etc. are defined.
23002         * tests/test-stdint.c: Verify the new macros.
23004         limits-h: new module
23005         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23006         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23007         * doc/posix-headers/limits.texi: Document new module.
23008         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23009         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23011         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23012         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23013         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23014         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23016 2016-09-15  Eric Blake  <eblake@redhat.com>
23018         sys_types: avoid glibc 2.25 warnings about major()
23019         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23020         older autoconf.
23021         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23022         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23023         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23024         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23026         mountlist: include sysmacros.h for glibc
23027         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23028         AC_HEADER_MAJOR.
23029         * lib/mountlist.c (includes): Use correct headers.
23031 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23033         extensions: port to more ISO C TSes
23034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23035         master, to add support for more recent ISO C TRs and TSes.
23037 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23039         intprops: new macro TYPE_WIDTH
23040         * lib/intprops.h (TYPE_WIDTH): New macro.
23041         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23042         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23043         * lib/parse-datetime.y (parse_datetime2):
23044         Use it.
23046         extensions: port to recent ISO C TRs
23047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23048         Sync from Autoconf master, to add support for recent ISO C TRs.
23049         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23050         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23051         the MinGW option is not an extension.
23053 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23055         dfa: port to Solaris 9
23056         Problems reported by Tom G. Christensen in:
23057         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23058         * modules/dfa (Depends-on): Add isblank.
23059         * modules/dfa-tests (dfa_match_aux_LDADD):
23060         Rename from test_stat_LDADD, to fix typo.
23061         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23063 2016-09-10  Jim Meyering  <meyering@fb.com>
23065         strverscmp: avoid link failure on OS X
23066         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23067         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23069 2016-08-16  Jim Meyering  <meyering@fb.com>
23071         dfa: new module, importing grep's DFA matcher
23072         Since grep's DFA matcher is now being used by two gnulib-enabled
23073         projects, grep and sed, it makes sense to version-control its
23074         sources and unit tests in one place: here.
23075         * modules/dfa: New module.
23076         * modules/dfa-tests: New file.
23077         * lib/dfa.c: New file, from grep.
23078         * lib/dfa.h: Likewise.
23079         * lib/localeinfo.c: Likewise.
23080         * lib/localeinfo.h: Likewise.
23081         * tests/dfa-match-aux.c: Likewise.
23082         * tests/dfa-invalid-char-class.sh: Likewise.
23083         * tests/dfa-match.sh: Likewise, with minor changes.
23084         * MODULES.html.sh (Misc): Add "dfa" to this list.
23086 2016-09-09  Jim Meyering  <meyering@fb.com>
23088         getprogname-tests: don't depend on assert-h
23089         * modules/getprogname-tests (Depends-on): Remove assert-h.
23090         It was not needed, and in fact would cause build failure for
23091         coreutils on some systems.  Reported by Assaf Gordon in https:
23092         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23094 2016-09-07  Jim Meyering  <meyering@fb.com>
23096         getprogname-tests: work also when EXEEXT is nonempty
23097         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23098         * tests/test-getprogname.c (main): Use it.
23099         Suggested by Gisle Vanem.
23101 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23103         getprogname: fix errors in previous change
23104         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23105         s/program_invocation_name/base/
23106         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23108 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23110         parse-datetime: restrict debug output to input string
23111         * lib/parse-datetime.y (parse_datetime2): If we parse
23112         all of the input but determine it's invalid, ensure
23113         we don't output the now invalid input pointer.
23114         This issue was seen with `date -d 'now +1'`.
23116 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23118         flexmember: new macro FLEXALIGNOF
23119         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23120         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23121         this macro.  Update comments.
23123 2016-09-07  Jim Meyering  <meyering@fb.com>
23125         getprogname: port to systems with __argv (mingw, msvc)
23126         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23127         last_component: more general than open coding it with hard-coded "/".
23128         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23129         * modules/getprogname (Depends-on): Add dirname-lgpl.
23130         (configure.ac): Check for __argv in <stdlib.h>.
23131         * modules/getprogname-tests: New file.
23132         * tests/test-getprogname.c: New file.
23133         Suggested by Gisle Vanem in
23134         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23136 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23138         flexmember: port better to GCC + valgrind
23139         With a char[] flexible array member in a struct with nontrivial
23140         alignment, GCC-generated code can access past the end of the
23141         array, because GCC assumes there are padding bytes to get the
23142         struct aligned.  So the common idiom of malloc (offsetof (struct
23143         s, m), n) does not properly allocate an n-byte trailing member, as
23144         malloc’s argument should be the next multiple of alignof (struct s).
23145         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23146         Although C11 apparently permits this GCC optimization (i.e., there
23147         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23148         See the thread containing:
23149         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23150         * lib/flexmember.h: New file.
23151         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23152         * lib/localename.c, lib/time_rz.c:
23153         Include flexmember.h.
23154         * lib/fnmatch_loop.c (struct patternlist):
23155         * lib/localename.c (struct hash_node):
23156         Use FLEXIBLE_ARRAY_MEMBER.
23157         * lib/fnmatch_loop.c (EXT):
23158         * lib/fts.c (fts_alloc):
23159         * lib/glob.c (glob_in_dir):
23160         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23161         * lib/localename.c (gl_lock_define_initialized):
23162         * lib/time_rz.c (tzalloc):
23163         Use FLEXSIZEOF instead of offsetof.
23164         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23165         Check that the size of the struct can be taken.
23166         * modules/flexmember (Files): Add lib/flexmember.h.
23167         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23168         Add flexmember.
23170 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23172         getprogname: port to Solaris 10
23173         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23174         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23175         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23177         stdalign: correct mistake in alignof doc
23178         Problem reported by Joseph Myers in:
23179         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23180         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23181         alignof(S) where S is a structure containing a flexible array
23182         member.  The Gnulib substitute does not support this, but C11 does.
23184 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23186         main.mk: remove sc_program_name, since there is no more need to
23187         use set_program_name in tools (getprogname is enough for most
23188         of the cases).
23189         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23190         * top/maint.mk (sc_program_name): Remove.
23192 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23194         Port tests away from progname, since modules that need the
23195         program name already depend on getprogname.
23196         * modules/acl-tests (Depends-on): Remove progname.
23197         * modules/argmatch (Depends-on): Likewise.
23198         * modules/argmatch-tests (Depends-on): Likewise.
23199         * modules/argp-tests (Depends-on): Likewise.
23200         * modules/argp-version-etc-tests (Depends-on): Likewise.
23201         * modules/array-list-tests (Depends-on): Likewise.
23202         * modules/array-oset-tests (Depends-on): Likewise.
23203         * modules/avltree-list-tests (Depends-on): Likewise.
23204         * modules/avltree-oset-tests (Depends-on): Likewise.
23205         * modules/avltreehash-list-tests (Depends-on): Likewise.
23206         * modules/carray-list-tests (Depends-on): Likewise.
23207         * modules/copy-file-tests (Depends-on): Likewise.
23208         * modules/exclude-tests (Depends-on): Likewise.
23209         * modules/fchownat-tests (Depends-on): Likewise.
23210         * modules/fdopendir-tests (Depends-on): Likewise.
23211         * modules/filenamecat-tests (Depends-on): Likewise.
23212         * modules/fstatat-tests (Depends-on): Likewise.
23213         * modules/fstrcmp-tests (Depends-on): Likewise.
23214         * modules/linked-list-tests (Depends-on): Likewise.
23215         * modules/linkedhash-list-tests (Depends-on): Likewise.
23216         * modules/mkdirat-tests (Depends-on): Likewise.
23217         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23218         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23219         * modules/obstack-printf-tests (Depends-on): Likewise.
23220         * modules/openat-tests (Depends-on): Likewise.
23221         * modules/parse-datetime-tests (Depends-on): Likewise.
23222         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23223         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23224         * modules/quotearg-simple-tests (Depends-on): Likewise.
23225         * modules/quotearg-tests (Depends-on): Likewise.
23226         * modules/rbtree-list-tests (Depends-on): Likewise.
23227         * modules/rbtree-oset-tests (Depends-on): Likewise.
23228         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23229         * modules/spawn-pipe-tests (Depends-on): Likewise.
23230         * modules/system-quote-tests (Depends-on): Likewise.
23231         * modules/uniname/uniname-tests (Depends-on): Likewise.
23232         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23233         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23234         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23235         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23236         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23237         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23238         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23239         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23240         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23241         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23242         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23243         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23244         * modules/unlinkat-tests (Depends-on): Likewise.
23245         * modules/version-etc-tests (Depends-on): Likewise.
23246         * modules/xalloc-die-tests (Depends-on): Likewise.
23247         * modules/xmemdup0-tests (Depends-on): Likewise.
23248         * modules/xprintf-posix-tests (Depends-on): Likewise.
23249         * modules/xvasprintf-tests (Depends-on): Likewise.
23250         * tests/test-argmatch.c: Do not include progname.h.
23251         (main) Stop calling set_program_name.
23252         * tests/test-argp-version-etc.c: Likewise.
23253         * tests/test-argp.c: Likewise.
23254         * tests/test-argv-iter.c: Likewise.
23255         * tests/test-array_list.c: Likewise.
23256         * tests/test-array_oset.c: Likewise.
23257         * tests/test-avltree_list.c: Likewise.
23258         * tests/test-avltree_oset.c: Likewise.
23259         * tests/test-avltreehash_list.c: Likewise.
23260         * tests/test-carray_list.c: Likewise.
23261         * tests/test-copy-acl.c: Likewise.
23262         * tests/test-copy-file.c: Likewise.
23263         * tests/test-exclude.c: Likewise.
23264         * tests/test-fchownat.c: Likewise.
23265         * tests/test-fdopendir.c: Likewise.
23266         * tests/test-filenamecat.c: Likewise.
23267         * tests/test-fstatat.c: Likewise.
23268         * tests/test-fstrcmp.c: Likewise.
23269         * tests/test-linked_list.c: Likewise.
23270         * tests/test-linkedhash_list.c: Likewise.
23271         * tests/test-mkdirat.c: Likewise.
23272         * tests/test-nonblocking-pipe-main.c: Likewise.
23273         * tests/test-nonblocking-socket-main.c: Likewise.
23274         * tests/test-obstack-printf.c: Likewise.
23275         * tests/test-openat.c: Likewise.
23276         * tests/test-parse-datetime.c: Likewise.
23277         * tests/test-pipe-filter-gi1.c: Likewise.
23278         * tests/test-pipe-filter-gi2-main.c: Likewise.
23279         * tests/test-pipe-filter-ii1.c: Likewise.
23280         * tests/test-pipe-filter-ii2-main.c: Likewise.
23281         * tests/test-quotearg-simple.c: Likewise.
23282         * tests/test-quotearg.c: Likewise.
23283         * tests/test-rbtree_list.c: Likewise.
23284         * tests/test-rbtree_oset.c: Likewise.
23285         * tests/test-rbtreehash_list.c: Likewise.
23286         * tests/test-sameacls.c: Likewise.
23287         * tests/test-set-mode-acl.c: Likewise.
23288         * tests/test-spawn-pipe-main.c: Likewise.
23289         * tests/test-system-quote-main.c: Likewise.
23290         * tests/test-unlinkat.c: Likewise.
23291         * tests/test-version-etc.c: Likewise.
23292         * tests/test-xalloc-die.c: Likewise.
23293         * tests/test-xfprintf-posix.c: Likewise.
23294         * tests/test-xmemdup0.c: Likewise.
23295         * tests/test-xprintf-posix.c: Likewise.
23296         * tests/test-xvasprintf.c: Likewise.
23297         * tests/uniname/test-uninames.c: Likewise.
23298         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23299         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23300         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23301         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23302         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23303         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23304         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23305         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23306         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23307         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23308         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23309         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23310         * tests/test-c-stack.c: (program_name): Do not define.
23311         (main): Do not set program_name.
23312         * tests/test-closein.c: Likewise.
23313         * tests/test-xstrtol.c: Likewise.
23314         * tests/test-yesno.c: Likewise.
23316 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23318         Port modules to use getprogname explicitly, instead of requiring
23319         progname to be used (or program_name to be provided).
23320         * lib/argmatch.c: Do not include progname.h.
23321         [TEST] (program_name): Do not define.
23322         [TEST] (main): Call getprogname instead of using program_name.
23323         * lib/c-stack.c: Do not include progname.h.
23324         (program_name): Do not define.
23325         (die): Call getprogname instead of using program_name.
23326         * lib/chdir-long.c: Do not include progname.h.
23327         [TEST_CHDIR] (main): Do not set program_name.
23328         * lib/error.c [!_LIBC]: Include progname.h.
23329         [!_LIBC] (program_name): Define using getprogname.
23330         * lib/euidaccess.c: Do not include progname.h.
23331         [TEST] (main): Do not set program_name.
23332         * lib/git-merge-changelog.c: Include getprogname.h instead of
23333         progname.h.
23334         (usage): Call getprogname instead of using program_name.
23335         (main): Likewise.  Stop calling set_program_name.
23336         * lib/group-member.c: Do not include progname.h.
23337         [TEST] (main): Do not set program_name.
23338         * modules/argmatch (Depends-on): Add getprogname.
23339         * modules/c-stack (Depends-on): Likewise.
23340         * modules/error (Depends-on): Likewise.
23341         * modules/git-merge-changelog (Depends-on): Likewise.
23342         Also remove progname.
23344 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23346         * NEWS: Document the deprecation of the 'progname' module.
23348 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23350         getprogname: new module
23351         This provides a LGPL module for getting the name of the current
23352         program, using the same API found on *BSD systems.
23353         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23354         * modules/getprogname: New files.
23355         * MODULES.html.sh (Misc): Add getprogname.
23357 2016-09-02  Jim Meyering  <meyering@fb.com>
23359         manywarnings: add -fno-common
23360         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23361         to the list.  Quoting the manual, "Compiling with -fno-common is
23362         useful on targets for which it provides better performance, or if
23363         you wish to verify that the program will work on other systems that
23364         always treat uninitialized variable declarations this way [putting
23365         it in the data section]."  If diffutils had been using this sooner,
23366         it would have prevented this duplicate declaration issue:
23367         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23369 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23371         parse-datetime: Fix typo.
23372         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23374 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23376         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23377         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23378         GCC 5 and 6 that have __builtin_sub_overflow but not
23379         __builtin_sub_overflow_p.  With the recent changes, these
23380         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23381         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23382         since the former needs just one runtime comparison whereas the
23383         latter needs two.
23385         strverscmp: sync with glibc
23386         Although this doesn't exactly synchronize with glibc
23387         byte-for-byte, it makes the code behave the same as glibc.
23388         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23389         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23390         difference shouldn't matter in practical use.  All uses changed
23391         back to isdigit.
23392         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23393         (next_state): Now unsigned char array; redo elements.
23394         (result_type): Now signed char array; redo elements.
23395         (__strverscmp): Fix glibc bug 9913 by using new states.
23396         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23398 2016-08-29  Jim Meyering  <meyering@fb.com>
23400         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23401         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23402         similarly to how it was done to intprops.h.
23404 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23406         intprops.h: port recent changes to GCC 6.2.0
23407         * lib/intprops.h (__has_builtin): Move earlier.
23408         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23409         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23410         the last argument can be null.  All uses changed.
23411         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23412         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23413         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23414         and it's not clear which GCC versions it works for.
23415         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23416         its definiens.
23418         intprops.h: use __typeof__ with GCC 7
23419         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23420         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23421         This avoids computing the expression's value (which might overflow!).
23423 2016-08-29  Jim Meyering  <meyering@fb.com>
23425         intprops.h, xalloc-oversized.h: work with gcc 7
23426         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23427         __builtin_mul_overflow each accept a NULL pointer as the third
23428         argument.  However in gcc 7, that is no longer accepted.
23429         Instead, one must use the "_p"-suffixed names, with which, the
23430         third parameter is no longer a pointer.
23431         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23432         the definition: not true for gcc 7 and subsequent.
23433         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23434         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23435         Provide new definitions for gcc 7 and subsequent.
23436         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23437         that works with gcc-7.
23439         intprops.h: fix missing-backslash problems
23440         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23441         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23443 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23445         intprops: fix paren typo on old platforms
23446         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23447         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23448         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23449         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23450         && !defined LLONG_MAX]:
23451         Remove stray paren.
23453         intprops: port to OpenVMS
23454         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23455         * doc/posix-headers/limits.texi: Document the problem.
23456         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23457         Define if not already defined.
23459 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23461         parse-datetime: improve debug implementation
23462         Follow-up to commit 12ad79069 ("add optional debug printing").
23463         Improve parse-datetime's debug implementation: remove macros,
23464         replace global debug flag variable with a function parameter,
23465         use nstrftime for formatting.
23466         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23467         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23468         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23469         debug flag. Existing interface 'parse_datetime' left unmodified.
23470         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23471         (struct parser_control): add 'parse_datetime_debug' member variable.
23472         (parse_datetime): Call new function 'parse_datetime2' without debug.
23473         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23474         pc.parse_datetime_debug variable as needed.
23475         (to_year): Accept new flags parameter, instead of using global variable.
23476         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23477         use struct 'debug' variable instead of global variable.
23478         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23479         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23480         correspnding functions directly instead of using macros.
23481         * modules/parse-datetime: Add gnulib's strftime module.
23483 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23485         c-strcase-tests: port to EBCDIC
23486         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23487         which assume ASCII encoding semantics to run only in ASCII
23488         mode, as they fail in EBCDIC.
23490         sigpipe-tests: fix typo
23491         * tests/test-sigpipe.sh: C, not B.
23493 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23495         canonicalize-lgpl: fix errno after malloca fails
23496         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23497         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23498         * lib/canonicalize-lgpl.c (__realpath):
23499         Don't assume malloca sets errno on failure.
23501 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23503         strtod: port errno handling to z/OS
23504         * lib/strtod.c (strtod): Save and restore errno more reliably.
23506 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23508         strtod: port to z/OS
23509         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23510         implementation.
23512 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23514         strtod: port to z/OS
23515         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23516         implementation.
23518         regex, string: rename to avoid '__string'
23519         * lib/regex.h, lib/string.in.h: Do not use the identifier
23520         '__string', as it is effectively reserved by string.h on z/OS.
23522         c-strcase-tests, wcwidth-tests: depend on c-ctype
23523         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23524         Add c-ctype.
23526 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23528         thread: port to z/OS
23529         * lib/glthread/thread.c, lib/glthread/thread.h:
23530         Rudimentary gl_thread support for z/OS.
23532         maint: port tests to z/OS errno behavior
23533         * tests/test-nonblocking-reader.h:
23534         * tests/test-nonblocking-writer.h:
23535         Accommodate z/OS errno code preferences. (I believe this should
23536         still be within spec; IBM is good at following the letter if not
23537         the spirit of such things.)
23539         maint: preprocessor changes to support z/OS
23540         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23541         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23542         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23543         * tests/test-nonblocking-pipe.h:
23545         fclose, strstr-simple, wchar: port to z/OS
23546         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23547         Changes to the Autoconf M4 code to support z/OS.  Note that
23548         fclose() is broken in a different way on z/OS than it is on other
23549         systems, thus the special-case in fclose.m4.
23551         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23552         * tests/test-iconv-utf.c, tests/test-iconv.c:
23553         Added appropriately conditional #pragmas so that the test strings
23554         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23555         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23556         addressed in a more portable way by simply rewriting all the ASCII
23557         literal characters as octal escapes, but then you would lose the
23558         partial readability that the strings have now. Also, iconv_open()
23559         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23561         c-strcase-tests, wcwidth-tests: port to EBCDIC
23562         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23563         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23564         * tests/test-wcwidth.c: Likewise.
23566 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23568         stdbool: don't require _Bool for C++
23569         Problem reported by David Seifert in:
23570         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23571         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23572         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23573         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23574         stricter about checking that bool and _Bool are compatible in C.
23576 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23578         getdelim: remove dependency on realloc-posix
23579         * lib/canonicalize-lgpl.c (alloc_failed)
23580         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23581         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23582         Use __set_errno where needed, for consistency.
23583         * lib/getdelim.c (alloc_failed): New function.
23584         (getdelim): Use it.
23586 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
23588         parse-datetime: add optional debug printing
23589         Print parsing information, warnings, and errors to stderr.
23590         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
23591         * lib/parse-datetime.y:
23592         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
23593         (PROGRESS*): Same as DEBUG, for progress reporting.
23594         (dbg_printf): Print message to stderr, with 'date' prefix.
23595         (struct parser_control): Add 'debug_*_seen' variables.
23596         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
23597         (debug_print_current_time, debug_print_relateive_time): Prints the
23598         current/relative date/time value of parser_control.
23599         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
23600         (to_year): Warn about 2-digit year parsing.
23601         (yylex):   Warn about unrecognized words.
23602         (get_effective_timezone): Returns current timezone in minutes.
23603         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
23604         clearly and unambigiously as possible.
23605         (debug_mktime_not_ok): Print detailed information about failed
23606         date/time values.
23607         (parse_datetime): Add DEBUG messages for failures, warnings. Add
23608         PROGRESS messages for status messages.
23609         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
23611 2016-08-06  Jim Meyering  <meyering@fb.com>
23613         tests/init.sh: exclude dash with bad "local" semantics
23614         * tests/init.sh (gl_shell_test_script_): Add a function to
23615         eliminate a shell like "dash" (unlike bash, zsh) that has
23616         surprising/risky "local var='...'" semantics.  Inspired by
23617         the problem and discussion in https://bugs.gnu.org/24116#11.
23619 2016-08-02  Ján Tomko  <jtomko@redhat.com>
23621         maint.mk: expand the prohibit_doubled_word regex
23622         This check has a static list of words that are checked for
23623         repetitions.  Expand it before running the perl script to
23624         avoid using expensive captures.  This decreases the cost
23625         for libvirt from 1.66s to 0.66s.
23626         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
23627         (sc_prohibit_doubled_word): Use it.
23629 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23631         useless-if-before-free: skip non-matching lines early
23632         * build-aux/useless-if-before-free: First match each line with the
23633         simple/quick /\bif\b/ and reject if there is no match. This often
23634         saves the cost of the much more involved regular expression.
23635         For libvirt, this decreases the cost from 1.44s to 1.02s.
23637 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23639         maint.mk: speed up sc_po_check
23640         sc_po_check would skip files based on their names, or on the
23641         existence of files with derived names. Rewrite it to use perl
23642         instead of shell to make the check faster.
23643         * top/maint.mk (perl_translatable_files_list_): Define.
23644         (sc_po_check): Use it.
23646 2016-07-30  Ján Tomko  <jtomko@redhat.com>
23648         maint.mk: speed up require_config_h_first
23649         Instead of spawning three processes per file,
23650         rewrite the check in perl and run it once for all the files.
23651         * top/maint.mk (perl_config_h_first_): Define.
23652         (sc_require_config_h_first): Use it in place of shell code.
23654 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23656         maint.mk: speed up sc_po_check
23657         sc_po_check would skip files based on their names, or on the
23658         existence of files with derived names. Rewrite it to use perl
23659         instead of shell to make the check faster.
23660         * top/maint.mk (perl_translatable_files_list_): Define.
23661         (sc_po_check): Use it.
23663 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23665         obstack: pacify GCC 6 with -Wnull-dereference
23666         Problem reported by Assaf Gordon in:
23667         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
23668         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
23669         Declare with __attribute_noreturn__.
23670         * lib/obstack.h (__attribute_noreturn__): New macro.
23672 2016-07-13  Eric Blake  <eblake@redhat.com>
23674         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
23675         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
23676         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
23678 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23680         doc: mention glibc SSIZE_MAX buglet
23681         * doc/posix-headers/limits.texi (limits.h): Document the bug.
23683 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
23685         printf-posix: Fix mingw build
23686         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
23687         expression for detecting C symbol prefixes but forgot to qoute square
23688         brackets in the command line arguments for grep.  That way when
23689         building with mingw the condition was false although it ought to be
23690         true instead.  In particular scenarios this led to the following
23691         compile error:
23693             Cannot export rpl_printf: symbol not found
23694             Cannot export rpl_scanf: symbol not found
23695             collect2: error: ld returned 1 exit status
23697         Fix this by properly quoting square brackets.
23699 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23701         mktime: call tzset as per POSIX
23702         Problem reported by Ludovic Courtès in:
23703         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
23704         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
23705         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
23707 2016-06-26  Pádraig Brady  <P@draigBrady.com>
23709         fts: handle readdir() errors
23710         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
23711         but also upon error when it will also set errno.  Therefore
23712         flag the error case from readdir().  We treat the case where
23713         no items are read the same as if the dir can't be accessed,
23714         i.e. by setting fts_errno to FTS_DNR.
23716 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23718         intprops: port better to GCC 7
23719         GCC 7 __builtin_add_overflow supports a new usage form, where the
23720         last argument is a null pointer, and which merely returns 1 if an
23721         overflow would occur.  This is a constant expression if all
23722         arguments are constants, and should generate faster code when code
23723         needs to be generated.
23724         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
23725         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23726         Use builtin operations if available.
23727         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
23728         operations are available, as it's almost surely faster.
23730 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23732         intprops-test: port to GCC 6
23733         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
23734         since the bug is not fixed in GCC 6.1.
23736 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
23738         xalloc-oversized: port to GCC 7; fewer warnings
23739         GCC 7 will have a better way to deal with integer overflow.
23740         Plus, fix a warnings problem reported by Tim Ruehsen in:
23741         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
23742         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
23743         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
23744         For GCC 5, use __xalloc_oversized if both args are constants,
23745         or if pedantic.
23747 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23749         regex: port to Sun C
23750         Reported by Daiki Ueno.
23751         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
23752         __restrict, in prototype.  This fixes a problem I introduced in
23753         the 2016-02-19 merge from glibc.
23755 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23757         stdbool: Restore __bool_true_false_are_defined check
23758         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
23759         __bool_true_false_are_defined is still defined, even with C++11.
23761 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
23763         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
23764         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
23766 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23768         Use GCC_LINT, not lint
23769         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
23770         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
23771         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
23772         Document problem with lint and _Noreturn.
23773         * lib/diffseq.h (IF_LINT, IF_LINT2):
23774         * lib/fts.c (sccsid):
23775         * lib/getndelim2.c (IF_LINT):
23776         * lib/gl_anylinked_list2.h (gl_linked_iterator)
23777         (gl_linked_iterator_from_to):
23778         * lib/gl_anytree_list2.h (gl_tree_iterator)
23779         (gl_tree_iterator_from_to):
23780         * lib/gl_anytree_oset.h (gl_tree_iterator):
23781         * lib/gl_array_list.c (gl_array_iterator)
23782         (gl_array_iterator_from_to):
23783         * lib/gl_array_oset.c (gl_array_iterator):
23784         * lib/gl_carray_list.c (gl_carray_iterator)
23785         (gl_carray_iterator_from_to):
23786         * lib/idcache.c:
23787         * lib/inet_ntop.c (IF_LINT):
23788         * lib/regcomp.c (build_charclass_op, create_tree):
23789         * lib/regex_internal.c (re_acquire_state)
23790         (re_acquire_state_context):
23791         * lib/trigl.c (rcsid):
23792         * lib/trim.c (IF_LINT):
23793         * lib/vasnprintf.c (IF_LINT):
23794         * lib/verify.h (assume):
23795         Treat GCC_LINT like lint.
23797 2016-05-29  Bruno Haible  <bruno@clisp.org>
23799         secure_getenv: Port to many more platforms.
23800         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
23801         functions.
23802         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
23803         for non-BSD Unix platforms and for native Windows.
23804         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
23805         Prompted by a request from Nikos Mavrogiannopoulos.
23807 2016-05-27  Eric Blake  <eblake@redhat.com>
23809         canonicalize: Fix broken probe for realpath.
23810         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
23811         in logic introduced in 54615b95.
23813 2016-05-26  Eric Blake  <eblake@redhat.com>
23815         unsetenv: relax to LGPLv2+
23816         * modules/unsetenv (License): Match setenv license.
23818 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
23820         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
23821         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
23822         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
23823         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
23824         (commonarg, dirargs, dirs, infoarg, generate_ascii)
23825         (generate_html, generate_info, generate_tex, outdir)
23826         (source_extra, split, srcfile, texarg): Move above 'version'.
23827         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
23829 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23831         manywarnings: update for GCC 6.1
23832         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23833         Add GCC 6.1 options that apply to C.
23834         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
23835         do not apply to C, are obsolescent, etc.
23837 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
23839         glob: size_t overflow checks
23840         * lib/glob.c (__has_builtin): New macro.
23841         (size_add_wrapv, glob_use_alloca): New static functions.
23842         (glob, glob_in_dir): Check for size_t overflow in several places,
23843         and fix some size_t checks that were not quite right.
23845         glob: don't assume INT_MAX < SIZE_MAX
23846         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
23847         latter is not portable to (probably theoretical) hosts where
23848         SIZE_MAX <= INT_MAX.
23850 2016-05-09  Bruno Haible  <bruno@clisp.org>
23852         Fix undefined behaviour in gettext.h.
23853         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
23854         pointer's value after the storage it points to has been freed.
23855         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
23856         Spotted by Coverity.
23858 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23860         git-version-gen: avoid undefined shift
23861         Problem reported by Mosè Giordano in:
23862         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
23863         * build-aux/git-version-gen: Avoid undefined behavior if invoked
23864         with --prefix or --fallback but without a later argument.  While
23865         we're at it, omit unnecessary quotes.
23867 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23869         glob: merge glibc changes into lib/glob.c
23870         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
23871         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
23872         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
23873           struct dirent [BZ #19779]
23874         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
23875           callback gl_readdir
23876         2015-10-20 Convert miscellaneous function definitions to prototype style
23877         2015-10-20 Convert 113 more function definitions to prototype style
23878           (files with assertions)
23879         2015-06-12 Fix getlogin_r namespace (bug 18527).
23880         2014-02-10 Use glibc_likely instead __builtin_expect.
23881         2013-10-20 When glob pattern contains a trailing slash match only
23882           directories. Fixes bug 10278.
23883         2013-09-04 glob: silence -Wattribute warnings
23884         2013-06-07 Avoid use of "register" as optimization hint.
23885         2012-09-25 Use size_t instead of int for internal variables in glob
23886           (bug 14621)
23887         2011-07-20 Check for overflows in expressions
23888         2011-05-28 Remove unused variable
23889         2011-05-22 Add a few more alloca size checks
23890         2010-03-27 Whitespace fixes
23891         2010-03-27 Fix one more issue with the glob patch
23892         2010-03-24 Fix glob with empty pattern
23893         2008-05-27 Remove useless more "if" tests before "free"
23894         * modules/glob (Depends-on): Add stdint.
23896 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23898         mktime: port to stricter signed overflow checking
23899         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
23900         (long_int): Require width for INT_MAX * 3 * (seconds per year),
23901         instead of merely for INT_MAX * 2.  In practice platforms that
23902         do the latter also do the former.
23903         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
23904         (shr): New static function, replacing SHR.  All uses changed.
23905         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
23906         and TIME_T_MAX.  All uses changed.
23907         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
23908         Use long_int, not time_t.
23909         (long_int_avg): New static function, replacing time_t_avg.
23910         All uses changed.  Round toward positive infinity, as that
23911         generates slightly better code.
23912         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
23913         by INT_ADD_WRAPV.
23914         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
23915         (convert_time): New static function.
23916         (ranged_convert): Use it
23917         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
23918         Use simpler test for loop exit.
23919         (__mktime_internal): Store negative of guessed offset, to simplify
23920         overflow checking.  Remove no-longer-needed test for small time_t
23921         overflows.
23923         mktime: speed up DEBUG_MKTIME benchmarks
23924         Call tzset just once, at the start, rather than for every test
23925         case.  This lets us measure the CPU cost of mktime as opposed to
23926         that of tzset.  This is relevant when TZ is not set and glibc is
23927         being used.  This speeds up tests by a factor of 40 on my Fedora
23928         23 x86-64 platform.
23929         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
23930         to call tzset and as a sanity check.  Later on, use localtime_r
23931         instead of localtime.
23933         mktime: resurrect DEBUG_MKTIME testing
23934         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
23935         Include <string.h>, for strcmp.
23937         mktime: simplify DEBUG_MKTIME
23938         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
23939         Simplify later usage accordingly.
23941         Port mktime_internal offset to unsigned time_t
23942         This avoids some assumptions about wraparound arithmetic on
23943         signed integer overflow.
23944         * lib/mktime-internal.h (mktime_offset_t): New type.
23945         (mktime_internal): Use it in decl.
23946         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
23948         * lib/mktime.c (__mktime_internal, localtime_offset):
23949         * lib/timegm.c (timegm): Use it.
23950         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
23951         (gl_FUNC_MKTIME): Require it.
23953 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
23955         xstrtol: prohibit monstrosities like "1bB"
23956         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
23957         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
23958         "B" only if the first suffix needs a base.
23959         * tests/test-xstrtol.sh: Test this.
23961 2016-04-21  Pádraig Brady  <P@draigBrady.com>
23963         xstrtod: reinstate setting of *result upon ERANGE
23964         * lib/xstrtod.c (XSTRTOD): The user may decide to use
23965         the returned limits upon ERANGE, so allow and document that.
23967 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
23969         xstrtod: modify *result only if no errors
23970         * lib/xstrtod.c (XSTRTOD).
23972 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
23974         btowc: document problems in C locale
23975         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
23976         with mbrtowc.  See: http://bugs.gnu.org/23269#32
23978 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23980         mktime: improve integer overflow checking
23981         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
23982         (WRAPV): Remove; no longer needed.
23983         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
23984         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23985         Remove.  Use intprops.h defns instead.
23986         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
23987         Use bool for Boolean, for clarity.
23988         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
23989         detect integer overflow.
23990         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
23992         intprops: check two's complement assumption
23993         Suggested by Eric Blake in:
23994         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
23995         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
23996         short, int, long, and (if available) long long are two's complement.
23997         * modules/intprops (Depends-on): Add 'verify'.
23999         intprops, mktime, strtol: assume two's complement
24000         These macros were not portable to every conforming C11 ones'
24001         complement platform.  It's not worth the hassle of porting to some
24002         platforms that use ones' complement or signed magnitude, as such
24003         platforms are almost purely theoretical nowadays and porting even
24004         to some of them makes the code harder to review for little
24005         practical benefit.  Problem reported by Florian Weimer in:
24006         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24007         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24008         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24009         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24010         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24011         (TYPE_SIGNED_MAGNITUDE):
24012         Remove.  All uses rewritten to assume two's complement, which is
24013         all we can reasonably test nowadays anyway.
24014         * top/maint.mk (_intprops_names): Remove the removed macros.
24016 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24018         stdint: port to strict C11 left shift
24019         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24020         Pacify clang -Wshift-negative-value, which should be an issue only
24021         on clang setups where stdint.h does not conform to C11 or to C++11.
24022         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24024 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24026         mbrtowc: work around glibc bug#19932
24027         Fix mbrtowc so that it never returns -1 in the C locale,
24028         as this conflicts with a future version of POSIX
24029         http://austingroupbugs.net/view.php?id=663#c2738
24030         and causes problems with GNU grep: http://bugs.gnu.org/23234
24031         See glibc bug 19932:
24032         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24033         * doc/posix-functions/mbrlen.texi (mbrlen):
24034         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24035         Document the glibc bug.
24036         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24037         Include hard-locale.h, locale.h.
24038         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24039         if the bug is possible.
24040         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24041         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24042         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24043         * modules/mbrtowc (Depends-on): Add hard-locale.
24044         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24045         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24046         * tests/test-mbrtowc5.sh: New file.
24048 2016-04-03  Pedro Alves  <palves@redhat.com>
24050         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24051         When gnulib is configured in C++ mode for a system with a working C99
24052         implementation of stdint.h that predates C++11, gnulib ends up
24053         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24054         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24055         MinGW is LLP64.  Instead of trying to detect the right types, detect
24056         good-enough-pre-C++11 stdint.h and in such case define
24057         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24058         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24059         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24060         conforms to C99.  If it does, check whether it hides symbols
24061         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24062         does, define those macros in config.h.
24064 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24066         argp: merge changes from glibc
24067         Among other things, this should fix problems found by a Coverity
24068         scan and reported by Andrei Borzenkov:
24069         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24070         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24071         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24072         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24073         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24074         * lib/argp.h:
24075         Merge changes from glibc.
24076         * tests/test-argp-2.sh: Adjust to match new behavior.
24078 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24080         stddef: support configuring with g++
24081         Problem reported by Ángel González in:
24082         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24083         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24084         Do not define if _GCC_MAX_ALIGN_T is defined.
24086 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24088         test-framework-sh: minor cleanups
24089         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24090         since strictly speaking POSIX requires this.
24091         (setup_): Do not use the variable 'fail', as that makes the
24092         trace output harder to read ('fail' is typically used by
24093         tests to mean the test failed).  Treat // portably.
24094         Check that new directory is not merely a sibling of the tmp dir.
24095         Avoid unnecessary invocation of tr.
24097         test-framework-sh: revert port to NetBSD 7.0
24098         It was a false alarm; I misinterpreted Assaf Gordon's report.
24099         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24100         Restore.
24101         (test_dir_): Adjust to mktempd_ change.
24102         (mktempd_): Restore 2nd arg.  Use -t again.
24103         (base_template_, template_, nx_): Resurrect old code.
24105         Port better to Alpine Linux
24106         Its diff implementation does not support -c, but does support -U3.
24107         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24108         * tests/init.sh (diff_opt_): New var.
24109         (compare_): Prefer diff -U3 to diff -c to plain diff.
24111 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24113         test-framework-sh: port to NetBSD 7.0
24114         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24115         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24116         Remove.  All uses removed.
24117         (test_dir_): Adjust to mktempd_ change.
24118         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24119         (base_template_, template_, nx_): Simplify by hardcoding.
24121 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24123         gitlog-to-changelog: suppress ignored chatter
24124         * build-aux/gitlog-to-changelog: Do not warn about skipping
24125         an SHA if it would have been ignored anyway.
24127 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24129         setlocale: add "sv" to Windows language table
24130         * lib/setlocale.c (language_table) [W32]: Add "sv".
24131         Reported in <https://savannah.gnu.org/bugs/?44588>.
24133 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24135         sys_select: port to new Cygwin
24136         Problem reported by Ken Brown in:
24137         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24138         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24139         diagnostics.
24141 2016-03-17  Jim Meyering  <meyering@fb.com>
24143         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24144         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24145         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24146           test-userspec.c:176:9: error: statement is indented as if it were \
24147             guarded by... [-Werror=misleading-indentation]
24148                    {
24149                    ^
24150           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24151                  if (!diag && !T[i].result)
24152                  ^~
24154 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24156         time_rz: port to clang -Wunused-const-variable
24157         * lib/time_rz.c (TZ): Remove.  All uses removed.
24159         std-gnu11: improve clang support
24160         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24161         2016-03-15 Also try clang
24162         2016-03-15 Port C11 and C++11 testing to clang
24164         select: port more to Intel 2016.1.150 compiler
24165         Problem reported by Balázs Hajgató in:
24166         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24167         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24169 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24171         select: try to port to 2016.1.150 compiler
24172         Problem reported by Balázs Hajgató in:
24173         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24174         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24175         POSIX specifies 'restrict'.
24177 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24179         localename-tests: memory allocation fixes
24180         * tests/test-localename.c (test_locale_name)
24181         (test_locale_name_thread): Don't call freelocale on a locale
24182         that was the base of a successful newlocale, as that
24183         results in a double free.  Problem reported by Assaf Gordon.
24184         (test_locale_name_thread): Free saved names after use, to pacify
24185         gcc -fsanitize=address.
24187 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24189         intprops: make .h file license match module
24190         * lib/intprops.h: Change the license wording to match glibc format.
24191         This is what is in modules/intprops anyway.  See:
24192         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24194 2016-03-08  Eric Blake  <eblake@redhat.com>
24196         acl: fix missing return on Cygwin
24197         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24198         fall off end of function. Fixes http://bugs.gnu.org/22949
24200 2016-03-05  Bruno Haible  <bruno@clisp.org>
24202         extern-inline: port to PGI CC
24203         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24204         keyword 'inline'.
24205         Reported by Adam James Stewart in:
24206         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24208 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24210         signbit: port back to pre-C++11 GCC
24211         * lib/math.in.h (signbit): Do previous change only if
24212         __cplusplus < 201103.  See Jonathan Wakely in:
24213         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24215 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24217         mountlist: recognize autofs-mounted remote file systems, too
24218         Originally reported at: https://bugzilla.redhat.com/1309247
24219         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24220         "-hosts" because it is used by autofs to mount remote file systems.
24222 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24224         signbit: port to C++ with GCC 6
24225         * lib/math.in.h (signbit) [__cplusplus]:
24226         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24227         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24229         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24231         regex: make it closer to libc
24232         Make Idx a signed type, rather than possibly unsigned.
24233         The unsignedness was not really buying us anything, since the code
24234         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24235         it signed allows us to use -1 and -2 with abandon, like libc does,
24236         thus lessening the number of differences between gnulib and libc.
24237         Also, it should help avoid gratuitous warnings like the one
24238         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24239         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24242         regex: merge patches from libc
24244         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24245         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24246         Convert miscellaneous function definitions to prototype style.
24247         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24248         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24249         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24250         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24251         (re_search_internal):
24252         Convert to prototype-style function definition.
24253         Use internal_function for internal functions.
24255 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24257         stdalign: port to older HP and IBM cc
24258         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24259         C compilers, by checking their version numbers.  These version
24260         numbers appear in MariaDB and in Qt code that dates way back and
24261         that conditiionally uses the 'aligned' attribute.
24263 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24265         stdalign: port to clang 3.7.0
24266         Problem reported by Herbert J. Skuhra in:
24267         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24268         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24269         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24270         https://llvm.org/bugs/show_bug.cgi?id=26547
24272 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24274         readdir_r: now obsolescent
24275         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24276         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24278 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24280         misc: port better to gcc -fsanitize=address
24281         Without these patches, ./configure CFLAGS='-fsanitize=address'
24282         would compute incorrect values.  This patch fixes some (but not all)
24283         test failures with recent glibc, with this configuration.
24284         * m4/acl.m4 (gl_ACL_GET_FILE):
24285         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24286         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24287         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24288         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24289         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24290         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24292         * m4/getline.m4 (gl_FUNC_GETLINE):
24293         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24294         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24295         * m4/regex.m4 (gl_REGEX):
24296         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24297         * tests/test-calloc-gnu.c (main):
24298         * tests/test-duplocale.c (main):
24299         * tests/test-getgroups.c (main):
24300         * tests/test-getline.c (main):
24301         * tests/test-inttostr.c (main):
24302         * tests/test-localename.c (test_locale_name)
24303         (test_locale_name_thread, test_locale_name_environ)
24304         (test_locale_name_default):
24305         * tests/test-regex.c (main):
24306         * tests/test-setlocale1.c (main):
24307         * tests/test-stat.h (test_stat_func):
24308         Free heap-allocated storage before exiting.
24309         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24310         Don't match *_foo symbols inserted by AddressSanitizer.
24311         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24313 2016-02-02  Jim Meyering  <meyering@fb.com>
24315         verify-tests: also remove stray test-verify.Tpo
24316         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24317         to remove the test-verify.Tpo file that is left behind by
24318         the automake-generated rule upon compilation failure.
24319         Otherwise, that .Tpo file would cause a failed "make distcheck"
24320         at least for grep.
24322 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24324         std-gnu11: new module
24325         This makes it easier for applications to prefer C11 and C++11
24326         to older variants, when compiling C and C++ code.
24327         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24328         a nontrivial chunk of GPLed Autoconf source code.
24329         * COPYING: Mention the m4/*.m4 copyright situation.
24330         * MODULES.html.sh (std-gnu11): New module.
24331         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24333 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24335         get-permissions, strftime: fix grammar in comments
24336         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24337         some grammar fixes Alan Mackenzie made to GNU Emacs.
24339 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24341         gettext: mark as obsolete
24342         Suggested by Paul Eggert in:
24343         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24344         * modules/gettext (Status): Mark as obsolete.
24345         (Notice): Suggest to use 'gettext-h' instead.
24346         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24347         the 'gettext' module.
24349 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24351         gnulib-tool: don't give up on ln -s so easily
24352         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24353         because an earlier one failed.  The targets could be on different
24354         file systems.  Problem reported by KO Myung-Hun in:
24355         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24357         closedir: fix OS/2-related typos
24358         Problem reported by KO Myung-Hun in:
24359         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24360         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24361         in the last couple of changes.
24363 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24365         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24366         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24367         copying a directory.
24369 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24371         regex: treat [x] as x if x is a unibyte encoding error
24372         Problem reported by Aharon Robbins in:
24373         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24374         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24375         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24377         closedir, dirfd, opendir: port to OpenSolaris 5.10
24378         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24379         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24380         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24381         Don't use ${word##pat} substitution, as it doesn't work in
24382         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24383         http://bugs.gnu.org/22443#11
24385 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24387         bootstrap: use American spelling
24388         * build-aux/bootstrap: Honor American spelling.
24390 2016-01-22  Karl Berry  <karl@freefriends.org>
24392         * doc/posix-functions/localtime.texi,
24393         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24395 2016-01-21  Bruno Haible  <bruno@clisp.org>
24397         hash-pjw-bare: fix comment
24398         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24400         wcwidth: Replace also on OpenBSD 5.8
24401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24402         * doc/posix-functions/wcwidth.texi: Update.
24404 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24406         gnu-web-doc-update: fix addition of new files
24407         If there were already added (emnpty) dirs,
24408         then cvs aborts the add with the message:
24409           cvs [add aborted]: there is a version in <./dirname> already
24410         * build-aux/gnu-web-doc-update: Add directories separately
24411         to the addition of files, to avoid the above issue
24412         impacting the addition of files.
24414 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24416         utimens-tests: avoid pulling gettext .m4 files
24417         Although this is not the right fix to the original problem:
24418         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24419         it makes it possible again for consumer projects to use arbitrary
24420         version of gettext, through the steps described at:
24421         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24422         See here for details:
24423         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24424         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24425         'gettext'.
24426         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24427         'gettext'.
24429 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24431         regex: pacify static checkers
24432         Problem and draft fix reported by Aharon Robbins in:
24433         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24434         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24435         Clear memory to pacify static checkers.
24437         regex: fix [ diagnostic
24438         Problem and fix reported by Aharon Robbins in:
24439         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24440         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24442         regex: fix memory leaks
24443         Problem and draft fix reported by Aharon Robbins in:
24444         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24445         * lib/regcomp.c (build_range_exp, build_charclass_op)
24446         * lib/regex_internal.c (re_dfa_add_node):
24447         Fix memory leak on failure.
24449 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24451         fts: don't unconditionally use leaf optimization for NFS
24452         NFS st_nlink are not accurate on all implementations,
24453         leading to aborts() if that assumption is made.
24454         See <https://bugzilla.redhat.com/1299169>
24455         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24456         the white list, and document the issue.
24458 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24459             KO Myung-Hun  <komh@chollian.net>
24461         gnulib-tool: don't assume ln -s works
24462         * gnulib-tool (func_ln_s): New function.
24463         (func_ln): Use it.
24465 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24467         utimes: detect utimes() correctly on OS/2 kLIBC
24468         utimes() of OS/2 kLIBC has some limitations.
24469         1. OS/2 itself supports a file date since 1980 year in local time.
24470         2. OS/2 itself supports only even seconds for a file time.
24471         3. utimes() of OS/2 kLIBC does not work on an opened file.
24472         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24473         * doc/posix-functions/utimes.texi: Document the above limitations of
24474         utimes() on OS/2 kLIBC.
24476 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24477             KO Myung-Hun  <komh@chollian.net>
24479         openat_proc_name: port to OS/2 kLIBC
24480         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24481         instead of /proc/self/fd.
24482         * lib/openat-proc.c (openat_proc_name):
24483         Don't assume file name length is less than INT_MAX.
24484         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24486 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24488         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24489         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24490         definitions of intptr_t and uintptr_t (which use int and unsigned)
24491         to avoid clashes with declarations of system functions like sbrk.
24492         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24493         _INTPTR_T_DECLARED before defining them.
24495         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24496         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24497         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24498         Declare on kLIBC.
24499         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24500         fd associated with dirp.
24501         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24502         dirp_fd_list.
24503         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24504         (dirfd): Implemented for kLIBC.
24505         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24506         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24507         succeeds.
24508         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24509         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24510         (REPLACE_DIRFD): Define to 1 if replaced.
24511         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24512         * modules/closedir (Depends-on): Add dirfd.
24513         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24514         condition.
24515         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24516         * modules/opendir (Depends-on): Add dirfd.
24518         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24519         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24520         * lib/dup.c (dup_nothrow): New.
24521         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24522         (klibc_dup2): New.
24523         * lib/fcntl.c (klibc_fcntl): New.
24524         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24525         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24526         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24527         fd.
24529         pipe_filter_ii_execute: port to OS/2 kLIBC
24530         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24531         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24532         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24533         Reuse Win32 code on OS/2 kLIBC.
24534         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24535         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24537         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24538         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24539         static inline function.  The implementation of wcwidth in wcwidth.c
24540         causes a "conflicting types" error.
24541         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24543         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24544         spawn() on OS/2 kLIBC is not silly like one on Windows
24545         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24546         empty string on OS/2 kLIBC.
24548         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24549         On OS/2 kLIBC, select() works only on sockets.
24550         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24552         binary-io: don't put fd in binary mode if it is a console on EMX
24553         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24554         a console on EMX.
24556 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24558         doc: mention unfixed issues with unsupported localtime() values
24559         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24560         returns nonsense for localtime(2^56).
24561         * doc/posix-functions/localtime_r.texi: Likewise.
24563 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24565         doc: mention setlocale() issues on OpenBSD
24566         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24567         never fails, and the need to check categories individually.
24569 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24571         sig2str: list all signals on FreeBSD >= 7
24572         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24573         to the maximal statically defined signal value.
24574         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24575         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24576         where available, even when NSIG is defined.
24578 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24580         acl-permissions: port to USE_ACL==0 platforms
24581         I ran into this problem when building bleeding-edge GNU Emacs
24582         with gcc -fsanitize=address on Fedora 23.  On this platform
24583         the ACL library does not pass the 'configure' test and Emacs
24584         then does not build due in part to what appear to be typos in the
24585         ACL part of Gnulib.
24586         * lib/acl-internal.c (free_permission_context):
24587         * lib/acl-internal.h (struct permission_context):
24588         Test whether USE_ACL is nonzero, not whether it is defined.
24590 2016-01-12  Martin Sebor  <msebor@redhat.com>
24592         mktime: rename macro to avoid glibc clash
24593         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
24594         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
24596 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24598         Port "$@" to OpenIndiana ksh93
24599         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
24600         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
24601         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
24602         bug long-dead shells, so remove the workaround.
24603         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
24604         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24605         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
24606         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
24607         Use "$@" instead of ${1+"$@"}.
24609         Port Universal Time settings to strict POSIX
24610         * build-aux/announce-gen, build-aux/bootstrap:
24611         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
24612         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24613         * build-aux/gnupload, build-aux/mkinstalldirs:
24614         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
24615         * build-aux/update-copyright, build-aux/useless-if-before-free:
24616         * build-aux/vc-list-files, tests/test-strftime.c:
24617         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
24618         but POSIX says the behavior of TZ="UTC" is undefined.
24620 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24622         msvc-inval: fix problem with unset shell var
24623         Problem reported by Karl Berry in:
24624         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
24625         * modules/msvc-inval (Depends-on):
24626         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
24627         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
24629 2016-01-01  Pádraig Brady  <P@draigBrady.com>
24631         tests: for compare_(), use cmp -s where available
24632         * tests/init.sh (compare_): Only fall back to cmp without
24633         the POSIX defined -s option, where this is not available.
24635 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24637         version-etc: new year
24638         * build-aux/gendocs.sh (version):
24639         * doc/gendocs_template:
24640         * doc/gendocs_template_min:
24641         * doc/gnulib.texi:
24642         * lib/version-etc.c (COPYRIGHT_YEAR):
24643         Update copyright dates by hand in templates and the like.
24644         * all files: Run 'make update-copyright'.
24646 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24648         human: fix output buffer overrun by 1
24649         * lib/human.c (human_readable): Fix off-by-one typo in buffer
24650         calculation that could lead to a one-byte buffer overrun.
24652 2015-12-28  Daiki Ueno  <ueno@gnu.org>
24654         maint: fix operator precedence in mbrtowc test
24655         This is a fix for test breakage introduced by commit 45228d96; the
24656         equality expression must be parenthesized when negated with '!',
24657         otherwise we always get:
24659           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
24661         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
24662         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24664 2015-12-23  James Youngman  <jay@gnu.org>
24666         regexprops-generic: update from regex.h
24667         * doc/regexprops-generic.texi: update by running the regexprops binary
24668         from findutils (the command line is 'regexprops "Regular Expressions"
24669         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
24670         gnulib with GNU grep had made this document out-of-date.
24672 2015-12-23  Pádraig Brady  <P@draigBrady.com>
24674         strftime-tests: avoid false failure on OS X
24675         * tests/test-strftime.c (struct localtime_rz_test): Add an
24676         ahistorical member which is used to warn rather than fail
24677         when tm_isdst isn't set for such entries.  This is the case for
24678         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
24680 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
24682         fts: ensure leaf optimization is used for NFS
24683         NFS provides usable dirent.d_type but not necessarily for all entries
24684         of large directories.  See <https://bugzilla.redhat.com/1252549>
24685         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
24687 2015-12-20  Pádraig Brady  <P@draigBrady.com>
24689         fts: enable leaf optimization for XFS
24690         XFS provides usable dirent.d_type only for DT_DIR,
24691         but the noleaf optimization still applies.
24692         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
24694 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
24696         intprops: comment fix
24697         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
24698         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
24700         intprops-test: work around GCC bug 68971
24701         Problem reported by Pádraig Brady in:
24702         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
24703         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
24704         (main): Add a case that better tests 64-bit long in this area.
24706 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
24708         gnulib-tool: allow multiple --local-dir usage
24709         * gnulib-tool: Use --local-dir to construct compound
24710         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
24711         PATH_SEPARATOR early.
24712         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
24713         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
24714         func_determine_path_separator because that needs to be detected
24715         earlier now.
24716         (func_determine_path_separator): New function.
24717         (func_path_foreach, func_path_foreach_inner): New functions.
24718         (func_path_prepend, func_path_append): Likewise.
24719         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
24720         (func_lookup_file, func_all_modules): Use new functions to work
24721         with local_gnulib_path.
24722         (func_modules_in_dir, func_exists_module): New callbacks for
24723         func_path_foreach.
24724         (func_exists_module, func_get_tests_module): Likewise.
24725         (func_is_local_file, func_should_symlink): New helper methods.
24726         (func_add_file, func_update_file): Use new func_should_symlink
24727         instead, DRY.
24728         (func_reconstruct_cached_local_gnulib_path): New helper.
24729         (func_reconstruct_cached_dir): New callback.
24730         (func_import): The cached_local_gnulib_dir renamed to
24731         cached_local_gnulib_path similarly to local_gnulib_dir.
24732         Use new func_reconstruct_cached_local_gnulib_path.
24733         (func_count_relative_local_gnulib_path): New sub-method.
24734         (func_create_testdir): Use func_should_symlink, DRY.
24735         (func_create_megatestdir): Use new functions to work with
24736         local_gnulib_path correctly.
24737         (func_append_local_dir): New helper.
24739 2015-12-08  Pádraig Brady  <P@draigBrady.com>
24741         fix freadptr to work with ungetc on all uClibc configs
24742         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
24743         where GNU coreutils cut(1) generates invalid output on uClibc
24744         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
24745         * lib/freadptr.c (freadptr): Return NULL if there are
24746         ungotten chars.  In this case freadseek() will iterate
24747         again to process the ungotten character.
24749 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
24751         xalloc-oversized: improve performance with GCC 5
24752         * lib/xalloc-oversized.h (xalloc_oversized):
24753         Improve performance with GCC 5 by using __builtin_mul_overflow.
24755 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24757         intprops: new public macro EXPR_SIGNED
24758         Emacs can use this macro, so make it public.
24759         * doc/intprops.texi (Arithmetic Type Properties): Rename from
24760         'Integer Type Determination', since some of these macros apply
24761         to non-integer types.  Clarify what kinds of constant expressions
24762         these macros return.  Say when the arguments can be non-integers.
24763         Mention newly published macro EXPR_SIGNED.
24764         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
24765         make it public.  All uses changed.
24767         intprops: fix typo in clang port
24768         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
24769         '__builtin_add_overflow' that is not caught by compiler.
24771 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
24773         test-timespec: fix typo in previous change
24774         * tests/test-timespec.c (main): Fix typo that reduced test quality.
24776         timespec-sub: fix overflow bug; add tests
24777         * lib/timespec-add.c (timespec_add):
24778         * lib/timespec-sub.c (timespec_sub):
24779         Work even if time_t is narrower than int (a theoretical
24780         possibility).  Redo code for a bit more clarity.
24781         * lib/timespec-sub.c (timespec_sub):
24782         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
24783         * modules/timespec-tests, tests/test-timespec.c: New files.
24785         intprops-test: suppress -Woverlength-strings
24786         Problem reported by Pádraig Brady in:
24787         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
24788         It is not worth the hassle to port this test to compilers that
24789         cannot handle long strings in diagnostics.
24790         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
24792 2015-11-03  Pádraig Brady  <P@draigBrady.com>
24794         quotearg: add quotearg_n_style_colon()
24795         This quotes with default options of the specified style,
24796         but with quoting enabled for instances of ':'.
24797         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
24798         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
24800 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
24802         intprops: revise _WRAPV macros, revert _OVERFLOW
24803         The incompatible changes to the _OVERFLOW macros were too much of
24804         a hassle in practice, so revert them.  Instead, change the new
24805         _WRAPV macros to make them closer in behavior to GCC 5's new
24806         builtin_add_overflow etc. functions.  No other software was using
24807         these newly-added macros yet, so this should be OK.
24808         * NEWS: Revert previous change, since the incompatible change
24809         has been reverted, and nobody used the incompatible version.
24810         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
24811         Document revised behavior.
24812         (Integer Range Overflow): Adjust example to match above revisions.
24813         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
24814         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
24815         these can be used in integer constant expressions again.
24816         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
24817         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
24818         needed.
24819         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
24820         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
24821         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
24822         Remove, as they did not seem that useful.
24823         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
24824         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
24825         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24826         Support new semantics.
24827         (__has_builtin): New macro, if not alreay defined.
24828         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
24829         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
24830         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
24831         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
24832         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
24833         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
24834         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
24835         New macros.
24836         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
24838 2015-11-03  Jim Meyering  <meyering@fb.com>
24840         intprops: add parentheses for when OP has precedence lower than "-"
24841         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
24842         "a OP b" must be parenthesized for when OP is like "<<", which has
24843         lower precedence than the following "-". Reported by Pádraig Brady.
24845 2015-11-03  Pádraig Brady  <P@draigBrady.com>
24847         quotearg: constify get_quoting_style parameters
24848         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
24849         * lib/quotearg.c (get_quoting_style): Likewise.
24851 2015-11-02  Pádraig Brady  <P@draigBrady.com>
24853         quotearg: add support for $'' shell escaping
24854         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
24855         items and descriptions.
24856         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
24857         above types by quoting like "shell", but using $'...' syntax
24858         for non printable characters, which should provide unambiguous
24859         printable output for any input.
24860         * tests/test-quotearg-simple.c: Update accordingly.
24862 2015-11-02  Pádraig Brady  <P@draigBrady.com>
24864         maint: use a more standard return from mbrtowc test
24865         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
24866         from the test program as this is non standard and often
24867         indicates an unhandled case in the test program.
24868         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24870 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24872         intprops: add WRAPV and const flavors for GCC 5
24873         If available, use GCC 5's builtin functions for efficient integer
24874         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
24875         and safely compute the low-order bits of the correct answer.
24876         A downside of these efficient functions is that they cannot be
24877         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
24878         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
24879         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
24880         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
24881         Document the changes.
24882         (Wraparound Arithmetic): New section.
24883         (Integer Range Overflow):
24884         Put this subsection last, since it's least useful.
24885         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
24886         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
24887         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
24888         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
24889         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
24890         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
24891         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
24892         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
24893         New macros.
24894         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
24895         Generate calls to GCC builtins if available, for speed.
24896         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
24897         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
24898         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
24899         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
24900         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
24901         (CHECK_QUOTIENT, CHECK_REMAINDER):
24902         Test WRAPV and CONST flavors (when available) too.
24904 2015-10-30  Pádraig Brady  <P@draigBrady.com>
24906         doc: use extended timezone format in iso-8601 example
24907         * doc/parse-datetime.texi: The standard states that extended format
24908         is to be used consistently throughout.
24909         Note that lib/parse-datetime.y can handle either tz format.
24911 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
24913         stdalign: port to Sun C 5.9
24914         * doc/posix-headers/stdalign.texi: Document this.
24915         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
24916         __attribute__ ((__aligned__ (...))).
24918 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
24920         time_rz: fix comment about tzalloc
24921         * lib/time_rz.c (tzalloc): Fix comment.
24923 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
24925         stdalign: work around pre-4.9 GCC x86 bug
24926         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
24927         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
24928         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
24930 2015-10-18  Pádraig Brady  <P@draigBrady.com>
24932         maint.mk: sc_tight_scope: remove extraneous expressions
24933         * top/maint.mk (tight_scope): This is not really required since
24934         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
24935         that matches all nm entries.  But it does remove extraneous entries
24936         that may be confusing or cause issue in future maintenance.
24938 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
24940         time_rz: return NULL if localtime_r fails
24941         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
24942         while still attempting to pacify bleeding-edge GCC.
24944         fts: port to C11 alignof
24945         * doc/posix-headers/stdalign.texi (stdalign.h):
24946         Document the C11 restriction.
24947         * lib/fts.c: Include stddef.h, for max_align_t.
24948         (fts_alloc): Align using max_align_t, not FTSENT.
24949         * modules/fts (Depends-on): Add stddef.
24951 2015-10-18  Jim Meyering  <meyering@fb.com>
24953         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
24954         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
24955         would see this:
24957         lib/time_rz.c: In function 'localtime_rz':
24958         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
24959           [-Werror=nonnull]
24960                    if (tm && !save_abbr (tz, tm))
24961                        ^
24963         That was complaining about "tm" because it is a parameter that was
24964         declared with the __nonnull__ attribute.
24965         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
24966         result of localtime_r.
24968 2015-10-17  Jim Meyering  <meyering@fb.com>
24970         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
24971         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
24972         name-extraction regexp mistakenly used \S+, and would mistakenly
24973         extract "*F" from "extern int *F()" rather than the desired "F".
24974         Use \w+ instead.
24976 2015-10-17  Jim Meyering  <meyering@fb.com>
24978         maint.mk: sc_tight_scope: factor and support OS X
24979         * top/maint.mk (_gl_tight_scope): Address three issues:
24980         - factor out four instances of code that wraps a string in "^...$"
24981         - allow nm-reported symbol names to have an optional leading "_"
24982         - add "main" to the list of ignored variable names, because on os x,
24983         "main" has nm-reported type "S" in the variable-checking section.
24985 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
24987         safe-alloc-tests: fix typo in license header
24988         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
24990 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
24992         copy-file: fix mem leak in error case
24993         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
24994         upon error opening or performing I/O to the src and dest files.
24996 2015-10-15  Mike Frysinger  <vapier@chromium.org>
24998         localename: control langinfo.h inclusion
24999         This header is only used to work around buggy behavior in old
25000         versions of glibc, so do not include it all the time.  Otherwise
25001         we get build failures on systems that do not provide langinfo.h.
25002         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25003         in the source later on.
25004         The patch was originally submitted to gettext as:
25005         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25007 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25009         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25010         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25011         * lib/u64.c, lib/unistd.c:
25012         Append 'typedef int dummy;', to pacify compilers that are picky
25013         about empty translation units.
25015 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25017         accept4-tests: fix to avoid non portable flags
25018         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25019         as they are the only documented ones, and passing others may trigger
25020         EINVAL (seen on FreeBSD 10.1-RELEASE).
25021         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25022         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25024 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25026         gnulib-tool: fix tests of 'extensions' module
25027         This complements f8fe25fab60e3c687a124 commit.
25028         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25029         emitting of initial gl_EARLY macros.
25030         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25031         replaced with func_emit_pre_early_macros call.
25033 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25035         unicase/locale-language: fix typo in utf-8 cookie
25036         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25037         Problem reported by Zbigniew Jędrzejewski-Szmek.
25039 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25041         xalloc: do not worry about GCC 5 warning on 32 bit
25042         * lib/xalloc.h: Revert previous change.
25043         I found a better way to fix this in coreutils.
25045 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25047         xalloc: avoid GCC 5.1 warning on 32 bit
25048         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25049         xalloc_oversized(), which was seen to give this warning
25050         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25051         when simplifying conditional".
25053 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25055         uniname/uniname-tests: avoid compiler warnings
25056         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25057         unused local variables.
25058         (test_alias_lookup): Fix alias name display in failure cases.
25060 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25062         c-ctype: do not worry about EBCDIC + char signed
25063         Drop support for EBCDIC with char being signed, as this breaks too
25064         many programs.  Problem reported by Ben Pfaff in:
25065         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25066         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25067         char being signed.
25068         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25069         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25070         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25071         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25072         * tests/test-c-ctype.c (test_all):
25073         Simplify by assuming standard char values cannot be negative.
25074         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25076 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25078         c-ctype: port better to z/OS EBCDIC
25079         Problems reported by Daniel Richard G. in:
25080         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25081         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25082         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25083         (_C_CTYPE_OTHER_CNTRL): New macro.
25084         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25085         from SCHAR_MIN, as the functions are defined only from values
25086         promoted from char or from unsigned char, not necessarily from
25087         signed char.
25089 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25091         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25093         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25094         and ARFLAGS variables.  Doing this unconditionally could break
25095         later Automake's AM_PROG_AR invocation (at least it's
25096         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25098         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25099         Amsterdam Compiler Kit, so make the previous code to have effects
25100         only on ACK, and rather automatically call the Automake's
25101         AM_PROG_AR as soon as possible to decide other cases.
25103         References:
25104         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25106         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25107         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25108         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25109         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25110         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25111         'extensions' module is used.
25112         * modules/extensions (configure.ac-early): Remove as this snippet
25113         is added to gnulib-comp.m4 earlier anyway.
25115 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25117         sockets: MS Windows initalization fixes
25118         Problem reported by Test User in:
25119         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25120         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25121         Correct the endianness.
25122         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25123         number mismatch, not just on <.  Cleanup before any such failure.
25125 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25127         gc: fix detection of installed libgcrypt version
25128         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25129         at least as recent as 1.4.4.  The previously used macro is not
25130         available now, since modules were removed in version 1.6.0.
25132 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25134         c-ctype: rewrite to use inline functions
25135         This simplifies maintenance, since it makes for just one
25136         implementation of each function, letting the compiler have the fun
25137         of optimization.  In practice this works well nowadays with GCC.
25138         E.g., c_isascii might need only three instructions even though the
25139         source code lists every ASCII character individually in a large
25140         switch statement.
25141         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25142         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25143         * NEWS: Document the API change.
25144         * lib/c-ctype.c: Drastically simplify, since this now just expands
25145         inline functions.
25146         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25147         (C_CTYPE_INLINE): New macro.
25148         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25149         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25150         Verify that either ASCII or EBCDIC is being used.
25151         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25152         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25153         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25154         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25155         New private macros.
25156         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25157         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25158         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25159         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25160         (c_tolower, c_toupper): When converting, return the unsigned char,
25161         as that is what z/OS does.
25162         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25163         of some c-ctype.h macros.
25164         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25165         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25166         c_tolower promotion to be compatible with z/OS.
25168 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25170         gitlog-to-changelog: trim only trailing whitespaces
25171         This is fix for --format regression introduced by commit
25172         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25173         doubled %n string) had no effect anymore.  This format
25174         specification has been used e.g. by GNU paxuitils (commit
25175         edfd8bcc3).
25177         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25178         newlines in commmit messages.
25180 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25182         Test that c_iscntrl agrees with iscntrl, etc.
25183         Suggested by Daniel Richard G. in:
25184         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25185         * modules/c-ctype-tests (Depends-on): Add ctype.
25186         * tests/test-c-ctype.c: Include <ctype.h>.
25187         (NCHARS): New constant.
25188         (test_agree_with_C_locale): New function.
25189         (main): Use it.
25190         (test_all): Use named constants.
25192         c-ctype: improve c_isascii testing
25193         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25194         Add a test to count the number of ASCII characters.
25196 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25198         savewd: remove SAVEWD_CHDIR_READABLE
25199         It was problematic in the light of file systems that ignore umask.
25200         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25201         * NEWS: Document this.
25202         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25203         successful, -1 (setting errno) on failure, rather than something
25204         more complicated than that.
25205         * lib/mkdir-p.c (make_dir_parents):
25206         Do not use SAVEWD_CHDIR_READABLE.
25207         * lib/savewd.c (savewd_chdir):
25208         Remove support for SAVEWD_CHDIR_READABLE.
25209         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25211         c-ctype: port better to EBCDIC
25212         Problems reported by Daniel Richard G. in
25213         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25214         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25215         Include "verify.h".
25216         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25217         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25218         Define as enum constants with value false, if not defined, so that
25219         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25220         code more portable, as both branches of the 'if' are compiled on
25221         all platforms.
25222         (C_CTYPE_EBCDIC): New constant.
25223         Verify that the character set is either ASCII or EBCDIC.
25224         (to_char): New static function.
25225         (c_isascii, c_iscntrl):
25226         Assume standard control-character assignments for EBCDIC.
25227         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25228         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25229         Rewrite to use 'if' instead of 'ifdef'.
25230         Use to_char if non-ASCII.  Prefer <= to >=.
25231         Prefer true and false to 1 and 0, for booleans.
25232         (c_iscntrl): Use 'if', not 'ifdef'.
25233         * modules/c-ctype (Depends-on): Add verify.
25234         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25235         (to_char): New function.
25236         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25238 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25240         nanosleep: fix return code for interrupted replacement
25241         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25242         that we return -1 in the case the call is interrupted by a signal,
25243         rather than the current value of 1.
25244         Diagnosed and tested by Daniel Richard G.
25246 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25248         Diagnose ERE '()|\1'
25249         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25250         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25251         track of the set of previously-completed subexpressions available
25252         before the first alternative, and restore this set just before
25253         parsing each subsequent alternative.  This lets us diagnose the
25254         invalid back-reference in the ERE '()|\1'.
25256         regex: merge patches from libc
25258         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25259         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25260         * lib/regex_internal.h:
25261         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25263         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25264         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25265         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25266         wcscoll.
25267         * lib/regexec.c (check_node_accept_bytes): Likewise.
25269         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25270         Fix regex wcrtomb namespace (bug 18496).
25271         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25272         instead of wcrtomb.
25274         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25275         Fix regex wctype namespace (bug 18495).
25276         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25277         instead of towlower.
25278         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25279         instead of iswlower.  Call __towupper instead of towupper.
25280         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25281         instead of iswalnum.
25283         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25284         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25285         COLL_SYM in a couple of places to avoid uninitialized variable
25286         wanings on tilegx gcc 4.8.2.
25288         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25289         * lib/regex_internal.h: Remove NOT_IN_libc.
25291         2014-11-17  Andreas Schwab  <schwab@suse.de>
25292         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25294         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25295         Move findidx nested functions to top-level.
25296         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25297         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25298         Pass new arguments to findidx.
25299         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25300         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25301         Don't #include it inside the function.  Pass new arguments to findidx.
25302         * lib/regex_internal.h:
25303         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25304         (re_string_elem_size_at): Don't #include it inside the function.
25305         Pass new arguments to findidx.
25307         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25308         Check if DEBUG is defined in regex_internal.c
25309         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25311 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25313         ceill: detect buggy OpenBSD implementation
25314         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25315         which returns zero for small values.  Discussed here:
25316         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25318 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25320         mountlist: add me_mntroot field on Linux machines
25321         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25322         mount_entry so Linux machines based on /proc/self/mountinfo can
25323         distinguish between bind mounts and original mounts.  In reality bind
25324         mounts aren't treated differently than mountroot=/ mounts by the
25325         kernel, but the user often wants these bind mounts distinguished.
25326         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25327         More details at https://pad.lv/1432871
25329 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25331         doc: Describe to use multiple instances of gnulib
25332         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25333         instances of gnulib with different modules can be used, for example one
25334         for a lib and another one for associated tools.
25336 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25338         base32: mark function as __attribute__ const
25339         * lib/base32.h (isbase32): Mark __attribute__ const as
25340         suggested by GCC, and consistent with the base64 module.
25342 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25344         gnulib-tool: don't transform binary files with sed
25345         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25346         .mo and .class files.
25347         Reported by Denis Denisov.
25349 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25351         gperf: respect silent rules
25352         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25353         V_GPERF_0 for silent rules.
25354         * modules/iconv_open (Makefile.am): Use V_GPERF.
25355         * modules/unicase/locale-language (Makefile.am): Likewise.
25356         * modules/unicase/special-casing (Makefile.am): Likewise.
25357         * modules/unictype/category-byname (Makefile.am): Likewise.
25358         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25359         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25360         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25361         * modules/unictype/property-byname (Makefile.am): Likewise.
25362         * modules/unictype/scripts (Makefile.am): Likewise.
25363         * modules/uninorm/composition (Makefile.am): Likewise.
25365 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25367         Improve port of stdalign to C++11
25368         Problem reported by Sundaram in:
25369         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25370         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25371         (__alignas_is_defined): Define if C++11 or newer.
25373 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25375         pmccabe2html: fix gawk regex escaping
25376         * build-aux/pmccabe2html: Add one more backslash to properly
25377         escape the gsub replacement value.  Fixes this error:
25378         gawk: ./build-aux/pmccabe2html:425: \
25379         warning: escape sequence `\&' treated as plain `&'
25381 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25383         time_rz: port to pedantic memcpy
25384         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25385         that reject memcpy (..., NULL, 0).
25387 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25389         time_rz: port better to MinGW
25390         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25391         Instead, store the tzname copy in the struct tm_zone object.
25392         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25393         * lib/strftime.c [!_LIBC]:
25394         * lib/time_rz.c: Include time-internal.h.
25395         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25396         name from *TZ rather than from TZNAME, doable because *TZ now has
25397         a tzname_copy member.
25398         * lib/time-internal.h: New file, with contents taken from
25399         lib/time_rz.c.  It's separate because strftime.c now accesses
25400         struct tm_zone members.
25401         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25402         New member tzname_copy.
25403         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25404         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25405         Initialize tzname_copy member.
25406         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25407         in tzname_copy member.
25408         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25409         (restore_tzname): Remove; no longer needed.  All calls removed.
25410         * modules/time_rz (Files): Add lib/time-internal.h.
25412         time: port __need_time_t to MinGW
25413         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25414         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25416 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25418         strftime: fix newly-introduced bug on Solaris
25419         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25420         consistently at the start, rather than doing some of the setup at
25421         the start and some in the %Z format spec.  This is cleaner, and
25422         works better with time_rz on platforms like Solaris where struct
25423         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25424         mktime_z and localtime_rz can mess up the tzname cache.
25426         test-strftime: test for Solaris bug
25427         * modules/strftime-tests (Depends-on): Add strerror.
25428         * tests/test-strftime.c: Include <errno.h>.
25429         (posixtm_test): New function, containing the old 'main'.
25430         (struct tzalloc_test, struct localtime_rz_test): New types.
25431         (TZ, LT): New static vars.
25432         (tzalloc_test): New function.
25433         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25435         time_rz: port to Solaris etc.
25436         Works around a tzname problem on platforms like Solaris that have
25437         tzname but not tm_zone, by setting tzname at the appropriate time
25438         and restoring it later.
25439         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25440         New static vars.
25441         (save_abbr) [HAVE_TZNAME]: Set them.
25442         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25443         (restore_tzname): New function.
25444         (localtime_rz, mktime_z): Use it.
25446         time_rz: now LGPL
25447         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25449         time_rz: make a constant 'const'
25450         * lib/time_rz.c (local_tz): Now const.
25452         time_rz: fix off-by-one typo
25453         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25455 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25457         fprintftime, strftime: use timezone_t args
25458         * NEWS: Document the change.
25459         * lib/fprintftime.h (fprintftime):
25460         * lib/strftime.c (extra_args) [my_strftime]:
25461         * lib/strftime.h (nstrftime):
25462         Time zone arg is now of type timezone_t, not int.
25463         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25464         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25465         (my_strftime) [emacs && !my_strftime]:
25466         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25467         Remove; Emacs doesn't need this any more.
25468         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25469         fprintftime and nstrftime to call tzset.
25470         (ut) [!my_strftime]: Remove, replacing with ...
25471         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25472         (strftime_case_): Use localtime_rz and mktime_z instead
25473         of localtime_r and mktime.
25474         * modules/fprintftime (Depends-on): Add time_rz.
25475         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25476         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25478         time_rz: new module
25479         * MODULES.html.sh: Add time_rz.
25480         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25481         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25482         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25484         New var HAVE_TIMEZONE_T (default 0).
25485         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25486         New var GNULIB_TIME_RZ (default 0).
25487         * modules/time (time.h): Substitute the new vars.
25489         flexmember: license is now unlimited
25490         * modules/flexmember (License): Change to unlimited,
25491         since its only source file gives an unlimited license.
25493 2015-07-15  Eric Blake  <eblake@redhat.com>
25495         maint: update copyright paper procedures
25496         * config/srclist.txt: Drop outdated files.
25497         * doc/Copyright/conditions.txt: Update to latest.
25498         * doc/Copyright/assign.changes.manual: Delete.
25499         * doc/Copyright/assign.future.manual: Likewise.
25500         * doc/Copyright/assign.manual: Likewise.
25501         * doc/Copyright/assign.translation.manual: Likewise.
25502         * doc/Copyright/disclaim.changes.manual: Likewise.
25503         * doc/Copyright/disclaim.manual: Likewise.
25504         * doc/Copyright/disclaim.program: Likewise.
25506 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25508         localename: fix link error on Illumos
25509         Illumos defines __sun, but does not have getlocalename_l nor the
25510         equivalent.  This partially reverts commit 387c214.
25511         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25512         available, as well as uselocale.
25513         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25514         use getlocalename_l if it is not available.
25516 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25518         unistr/uN-strtok-tests: avoid a trivial leak
25519         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25520         input and delim after the multibyte delimiter tests.
25522 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25524         file-has-acl, acl-permissions: fix HP-UX typos
25525         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25526         * lib/file-has-acl.c (file_has_acl):
25527         * lib/set-permissions.c (context_acl_from_mode)
25528         (context_aclv_from_mode, set_acls):
25529         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25530         They were introduced by the recent ACL changes.
25532         regex: match current GNU grep behavior
25533         These symbols have not matched GNU grep behavior for quite some time.
25534         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25535         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25536         Change to match current GNU behavior.
25537         Simplify by expressing it as differences from POSIX BREs and EREs.
25538         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25540 2015-07-03  Jim Meyering  <meyering@fb.com>
25542         set-permissions.c: adjust acl_from_mode's cpp guard
25543         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25544         directives identical to those guarding the sole use.
25545         Otherwise, on some systems, we'd get a warning about
25546         the function being defined but not used.
25547         Also, filter through cppi to correct misleading indentation
25548         of cpp directives.
25550 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25552         tests: restrict shells to those that support 'local'
25553         The local keyword is very widely supported and used
25554         in tests in coreutils and grep at least.  Therefore
25555         restrict to testing with shells that support it.
25556         This mainly excludes /bin/sh on Solaris.
25557         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25559 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25560         and Daiki Ueno  <ueno@gnu.org>
25562         unistr/uN-strtok: handle multibyte delimiters
25563         Previously, uN_strtok moved PTR to the next unit to the token end.
25564         When DELIM contained a multibyte character, the new position could
25565         be a middle of a multibyte character.
25566         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25567         after the token.
25568         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25569         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25570         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25571         * modules/unistr/u8-strtok (Depends-on): Depend on
25572         unistr/u8-strmblen.
25573         * modules/unistr/u16-strtok (Depends-on): Depend on
25574         unistr/u16-strmblen.
25575         * modules/unistr/u32-strtok (Depends-on): Depend on
25576         unistr/u32-strmblen.
25577         * tests/unistr/test-u-strtok.h: New file.
25578         * tests/unistr/test-u8-strtok.c: New file.
25579         * tests/unistr/test-u16-strtok.c: New file.
25580         * tests/unistr/test-u32-strtok.c: New file.
25581         * modules/unistr/u8-strtok-tests: New file.
25582         * modules/unistr/u32-strtok-tests: New file.
25583         * modules/unistr/u16-strtok-tests: New file.
25585 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
25587         update-copyright: fix test failure with perl >= 5.22 (trivial)
25588         * build-aux/update-copyright: Escape a literal left curly bracket,
25589         required with perl >= 5.22
25591 2015-07-02  Daiki Ueno  <ueno@gnu.org>
25593         u{16,32}-strstr-tests: relax timeout condition
25594         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
25595         tests can take longer than 5 seconds to complete.
25596         Reported by Dagobert Michelsen in:
25597         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
25598         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
25599         seconds to 10 seconds.
25600         * tests/unistr/test-u32-strstr.c (main): Likewise.
25602 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25604         gnulib-common.m4: change the ARFLAGS default to 'cr'
25605         In some GNU/Linux distributions people started to compile 'ar'
25606         binary with --enable-deterministic-archives (binutils project).
25607         That, however, in combination with previous autotools long time
25608         working default AR{_,}FLAGS=cru causes warnings on such
25609         installations:
25610         ar: `u' modifier ignored since `D' is the default (see `U')
25611         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
25612         set already.
25614 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25616         selinux-h: avoid double free after *getfilecon()
25617         Originally reported by Ben Shelton on bug-tar:
25618         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
25619         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
25620         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
25621         param should be freed by freecon(3) (regardless the return value).
25623 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
25625         fix pty related tests issues on Windows (trivial)
25626         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
25627         however it's still present in tests/ subdirectory of the final project.
25628         Therefore avoid it to pass `make check`.
25629         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
25630         will just return -ENOSYS, so avoid this non applicable test allowing
25631         the build to proceed.
25633 2015-07-01  Pádraig Brady  <P@draigBrady.com>
25635         acl: fix definition of acl_from_mode on FreeBSD
25636         This was causing basic coreutils copy operations to fail
25637         with ENOTSUP or ENOENT error messages.
25638         * lib/acl-internal.h (acl_from_mode): Only define when
25639         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
25640         of acl_from_mode() defined in lib/set-permissions.c to
25641         be used on FreeBSD at least.
25642         * lib/set-permissions.c: Fix up comment spelling,
25643         and a redundant variable assignment; noticed in passing.
25645 2015-06-30  Pádraig Brady  <P@draigBrady.com>
25647         readutmp: port to FreeBSD >= 9
25648         * lib/readutmp.h: Map utmpxname() to setutxdb().
25649         With that coreutils who(1) and pinky(1) tests pass.
25651 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25653         mgetgroups: port to strict OS X
25654         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
25655         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
25656         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
25657         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
25659 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
25661         mgetgroups: port to strict OS X
25662         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
25663         Document the getgrouplist problem.
25664         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
25665         New macro.
25666         (mgetgroups): Use it.
25667         * m4/mgetgroups.m4 (gl_MGETGROUPS):
25668         Check for OS X signature for getgrouplist.
25670 2015-06-29  Jim Meyering  <meyering@fb.com>
25672         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
25673         It started like this when building coreutils' latest on OS X,
25674         invoking ./configure with a nonempty --cache=.cache:
25676           lib/linkat.c:46:42: error: operator '||' has no right operand
25677           lib/linkat.c: In function 'rpl_linkat':
25678           lib/linkat.c:330:27: error: #if with no expression
25680         Here's linkat.c's line 46:
25682           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
25684         Here's some context:
25686           $ grep linkat_nofoll .cache
25687           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
25688           $ grep LINKAT_SYM lib/config.h
25689           #define LINKAT_SYMLINK_NOTSUP
25691         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
25692         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
25693         but that violates a tenet of AC_CACHE_CHECK: it must
25694         have no side effect other than setting its cache variable.
25696         What happens is that when the cache is set, we'd skip the
25697         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
25698         defined to whatever value it happened to have in configure's
25699         environment.  In my case, it was not defined, so this later code:
25701           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
25702             [Define to 1 if linkat can create hardlinks to symlinks])
25704         would emit code with an empty RHS.
25706         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
25707         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
25709 2015-06-28  Jim Meyering  <meyering@fb.com>
25711         mountlist: avoid an unused-label warning on OS X
25712         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
25713         Building on OS X, I saw a warning about the "free_then_fail" label
25714         being unused.  Give it the _GL_UNUSED_LABEL attribute.
25716         error.c: correct printf-style format: %d -> %u
25717         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
25718         rather than %d, to match the type of "line_number", unsigned int.
25720 2015-06-25  Pádraig Brady  <P@draigBrady.com>
25722         fts: avoid reading beyond the heap allocation
25723         GCC 5.1.1 with -O2 and -fsanitize=address reports
25724         a read of size 4 from a heap object of size 3 is indeed invalid,
25725         though this may be due to incorrect padding assumptions by GCC, see:
25726         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
25727         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
25728         * modules/fts: Depend on stdalign.
25730 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25732         savedir: avoid undefined behavior in qsort call
25733         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25734         "runtime error: null pointer passed as argument 1,
25735          which is declared to never be null"
25736         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
25738 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25740         userspec: avoid undefined behavior in gettext call
25741         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25742         "runtime error: null pointer passed as argument 2,
25743          which is declared to never be null"
25744         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
25746 2015-06-20  Glenn Morris  <rgm@gnu.org>
25748         gitlog-to-changelog: improve gitmerge.el commits
25749         Let the Emacs ChangeLog generation process exclude "skipped"
25750         messages from merge commits (Bug#20717).
25751         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
25753 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25755         wchar: fix MinGW compilation warnings
25756         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
25757         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
25758         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
25760 2015-06-20  Daiki Ueno  <ueno@gnu.org>
25762         uniname/uniname-tests: use pristine data files
25763         For copyright and maintenance reasons, use the data files from UCD
25764         without modification.
25765         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
25766         (getfield): Remove.
25767         (aliases_count): New global variable.
25768         (fill_names): Skip comments and empty lines in the input.  Don't
25769         use getfield.
25770         (fill_aliases): Likewise.
25771         (main): Change the expected command line arguments to:
25772         NAMES... ["--" ALIASES...].
25773         * tests/uniname/test-uninames.sh: Adjust to the change in
25774         test-uninames.c.
25775         * tests/uniname/UnicodeDataNames.txt: Remove.
25776         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
25777         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
25778         file from Unicode 8.0.0.
25780 2015-06-19  Pádraig Brady  <P@draigBrady.com>
25782         linked-list, linkedhash-list: avoid compiler warnings
25783         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
25784         -Werror=suggest-attribute=pure (from GCC 5.1.1).
25786 2015-06-19  Daiki Ueno  <ueno@gnu.org>
25788         libunistring: bump minimum version to 0.9.6
25789         * all modules depending on updated Unicode data: Regenerate.
25790         The modules are listed by a script that does:
25791         - for each file listed by: git show --oneline --name-only 705f4efc
25792           - deduce the containing modules, based on "Files:"
25793         - deduce the modules which depend on the containing modules, based
25794           on "Depends-on:"
25796 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25798         uniname/uniname: update to Unicode 8.0.0
25799         * lib/uniname/uninames.h: Regenerate.
25800         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
25801         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
25803 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25805         libunistring: update to Unicode 8.0.0
25806         * lib/gen-uni-tables.c (SIZEOF): New macro.
25807         (output_numeric): Increase the maximum number of fractions from
25808         128 to 160.  Increase the level3 value width from 7 bits to 8
25809         bits.  Use SIZEOF instead of a hard-coded integer.
25810         (output_blocks): Decrease the cut-off threshold from 0x30000 to
25811         0x28000.
25812         (fill_blocks): Increase the maximum number of blocks from 256 to
25813         384.  Use SIZEOF instead of a hard-coded integer.
25814         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
25815         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
25816         value width.
25817         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
25818         a new case added to LBP22.
25819         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
25820         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
25821         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
25822         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
25823         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
25824         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25825         lib/uniwidth/width.c.
25826         * all generated files under lib/uni* and tests/uni*: Regenerate.
25828 2015-06-16  Pádraig Brady  <P@draigBrady.com>
25830         gnu-web-doc-update: add --mirror to remove stale files
25831         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
25832         out of date files from the CVS server.  Since this is usually
25833         appropriate, a prompt is given when the option is not specified,
25834         along with the `cvs remove` command that would be run.
25836 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
25838         acl-permissions: pacify -Wsuggest-attribute=const
25839         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
25840         * lib/acl-internal.h (free_permission_context):
25841         Declare with attribute const if ! (defined USE_ACL &&
25842         (HAVE_ACL_GET_FILE || defined GETACL)).
25844         fsync: document AIX misbehavior
25845         * doc/posix-functions/fsync.texi (fsync):
25846         Document failure on AIX with read-only file descriptor.
25848 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
25850         stdio: Don't redefine gets when using C++
25851         * lib/stdio.in.h (gets): Disable warning on C++.
25853 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
25855         acl-permissions: port to AIX, C89 HP-UX
25856         Problems reported by Michael Felt.
25857         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
25858         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
25859         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
25860         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
25861         Add cast for AIX, whose system calls are declared to accept
25862         char * even though the arguments are really char const *.
25863         * lib/get-permissions.c (get_permissions):
25864         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
25865         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
25866         that broke a build.
25867         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
25868         Rework types to pacify xlc.
25870 2015-06-03  Pádraig Brady  <P@draigBrady.com>
25872         vasprintf-posix: avoid compiling vasnprintf where possible
25873         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
25874         module where not required.  For example on a GNU/Linux system
25875         when gnulib-tool is run with the --conditional-dependencies option.
25877 2015-06-02  Pádraig Brady  <P@draigBrady.com>
25879         file-has-acl: fix build on Mac OS X 10
25880         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
25881         which has an incompatible 6 parameter getxattr() call.
25882         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
25883         call on Mac OS X >= 10.4.
25884         * doc/glibc-functions/fgetxattr.texi: Likewise.
25885         * lib/file-has-acl.c: Revert to more complete combined check.
25886         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
25887         Reported by Jack Howarth.
25889 2015-06-02  Pádraig Brady  <P@draigBrady.com>
25891         prefix-gnulib-mk: remove no longer needed special case
25892         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
25893         continued lib_SOURCES lines are no longer present,
25894         so special case handling of such entries is not required.
25896 2015-06-01  Pádraig Brady  <P@draigBrady.com>
25898         acl: don't depend on the deprecated qacl module
25899         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
25901 2015-06-01  Pádraig Brady  <P@draigBrady.com>
25903         gnulib-tool: concatenate lib_SOURCES to a single line
25904         * gnulib-tool: Refactor the line merging sed logic,
25905         and use that to output a single lib_SOURCES line for each module.
25906         gnulib using projects often postprocess this output to prepend
25907         subdir paths to each item, and having a single line simplifies this
25908         processing allowing better decoupling from the gnulib-tool output.
25910 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
25912         pthread_sigmask: discount system version if a simple macro (trivial)
25913         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
25914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
25915         function to ensure it's available.
25917 2015-05-31  Pádraig Brady  <P@draigBrady.com>
25919         readlinkat: avoid OS X 10.10 trailing slash bug
25920         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
25921         has this bug.
25922         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
25923         that OS X 10.10 has this function.
25924         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
25925         as done for readlink().
25926         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
25927         trailing slash bug, and assume readlinkat() has the same issue.
25928         Also fix a typo where $gl_cv_decl_readlink_works was tested,
25929         rather than the correct $gl_cv_decl_readlinkat_works.
25931 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
25933         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
25934         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
25935         module rewrite.
25937         acl-permissions: Fix build on Solaris and Cygwin
25938         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
25939         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
25940         ace_entries variables have moved into struct permission_context but
25941         they were still accessed as local variables here.
25943 2015-05-29  Pádraig Brady  <P@draigBrady.com>
25945         linkat: avoid OS X 10.10 trailing slash with symlink bug
25946         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
25947         causes the symlink to be dereferenced, and if it points
25948         to a non existent file, that file will be created as
25949         a hard link to "path1".
25950         This fixes a test failure in test-linkat.c.
25951         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
25952         this case.  The existing workaround in linkat.c for
25953         trailing slash issues, suffices for this case.
25954         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
25955         the list of platforms with trailing slash issues.
25957 2015-05-28  Pádraig Brady  <P@draigBrady.com>
25959         unlinkat: handle ignoring of ".." on Darwin 14
25960         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
25961         on Mac OS X 10.10, where it ignores paths with a trailing "..",
25962         so handle in the same manner.
25963         * m4/unlinkat.m4: Comment on this Darwin issue.
25964         * doc/posix-functions/unlink.texi: Update the latest version
25965         where the issue was seen.
25966         * doc/posix-functions/unlinkat.texi: Mention this issue.
25967         Fixes a test failure in test-unlinkat.c.
25969 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25971         qacl: split into qcopy-acl and qset-acl
25972         Emacs needs the former, but not the latter.
25973         * modules/acl-permissions: New file, containing most of the old qacl.
25974         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
25975         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
25976         * modules/qcopy-acl, modules/qset-acl: New files.
25977         * MODULES.html.sh (File system functions):
25978         Mention the new modules, and mention qacl while we're at it.
25980 2015-05-27  Glenn Morris  <rgm@gnu.org>
25982         gitlog-to-changelog: new option --ignore-line
25983         (This patch is imported from the GNU Emacs master.)
25984         This option ignores individual commit lines matching a pattern.
25985         * build-aux/gitlog-to-changelog: Add --ignore-line option.
25987 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
25989         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
25990         Implement get_permissions and set_permissions primitives for getting all
25991         the permissions of a file, storing them, and later setting them. (In the
25992         minimal case, the permissions consist only of a file mode.) Reimplement
25993         qset_acl and qcopy_acl based on these new primitives: this avoids code
25994         duplication and makes error handling more consistent.
25995         The Solaris and Cygwin code still uses duplicate code paths for setting
25996         a file mode while making sure that no acls exist and setting an explicit
25997         acl; this is no worse than before, but could be cleaned up.  The AIX
25998         code still doesn't read ACLs, it only makes sure that acls don't get in
25999         the way when setting a file mode.
26000         * lib/acl-internal.h (struct permission_context): New data structure.
26001         (get_permissions, set_permissions, free_permission_context): Declare.
26002         * lib/acl-internal.c (free_permission_context): New helper function.
26003         * lib/get-permissions.c (get_permissions): New helper function split off
26004         from qcopy_acl.
26005         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26006         AIX, set a file's permissions based only on a file mode.
26007         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26008         other platforms construct a temporary acl from the file mode and set
26009         that acl in the same way as setting an acl read from the source file.
26010         This should help avoid code duplication and inconsistent / buggy
26011         behavior.
26012         (set_acls): New helper function Split off from qcopy_acl.
26013         (chmod_or_fchmod): Moved here from qset-acl.c.
26014         (set_permissions): New helper function.
26015         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26016         set_permissions.
26017         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26018         * modules/qacl: Add get-permissions.c and set-permissions.c.
26020         file-has-acl: Split feature tests again (Bug#20667)
26021         * lib/file-has-acl.c: Instead of testing for
26022         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26023         define them when needed.
26024         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26025         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26027 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26029         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26030         This avoids a conflict with "FORTIFY_SOURCE" variants
26031         of the string functions when they're replaced on NetBSD-6.0.1
26032         and Darwin-14.3.0 at least.
26033         * lib/string.in.h: Avoid including our "lib/string.h" while
26034         including the system <string.h>.
26036 2015-05-26  Eric Blake  <eblake@redhat.com>
26038         stdio: limit __gnu_printf__ witness to gcc 4.4+
26039         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26040         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26042         error: use correct printf attributes on mingw
26043         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26045         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26046         * modules/inttypes (Depends-on): Require extensions, so that mingw
26047         always uses GNU style inttypes.
26048         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26050         stdio: fix probe on mingw under gcc 5.1
26051         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26052         around new gcc preprocessor rules.
26054 2015-05-07  Glenn Morris  <rgm@gnu.org>
26056         gitlog-to-changelog: parse "Tiny-change"
26057         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26058         "Copyright-paperwork-exempt".  (Bug#20324)
26060 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26062         doc: document glibc posix_fallocate() issues
26063         * doc/posix-functions/posix_fallocate.texi: Mention the
26064         glibc efficiency problems and issues with NFS.
26066 2015-05-05  Karl Berry  <karl@freefriends.org>
26068         * build-aux/gendocs.sh (usage): document new css default
26069         for HTML (--htmlarg).
26071 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26073         extern-inline: no need for workaround in GCC 5.1
26074         * doc/extern-inline.texi (extern inline):
26075         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26076         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26077         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26078         two we can remove these workarounds.
26080 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26082         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26083         Avoid [-Wunknown-attributes] warnings like:
26084         warning: unknown attribute '__alloc_size__' ignored
26085         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26086         with clang, as support has been fully removed as of clang 3.5:
26087         https://github.com/llvm-mirror/clang/commit/c047507a
26088         * lib/eealloc.h: Likewise.
26089         * lib/pagealign_alloc.h: Likewise.
26091 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26093         tests: pacify GCC 5.1's stricter printf checking
26094         * tests/test-dirname.c (main):
26095         * tests/test-getaddrinfo.c (simple):
26096         * tests/test-getlogin.c (main):
26097         * tests/test-getndelim2.c (main):
26098         * tests/test-inttostr.c (CK):
26099         * tests/test-md5.c (main):
26100         * tests/test-read-file.c (main):
26101         * tests/test-sha1.c (main):
26102         Fix mismatches between printf format and value signedness.
26103         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26104         Remove, as CAST_VAL always returned a value of type uintmax_t.
26106         fts: port to GCC 5.1 with --enable-gcc-warnings
26107         Without this fix, GCC 5.1 (correctly) warns about a subscript
26108         error on the fts_name component of FTSENT.  It's actually a
26109         flexible member, so define it that way on C99 or later hosts.
26110         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26111         structure that now has a flexible array member.
26112         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26113         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26114         * modules/fts (Depends-on): Add flexmember.
26116 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26118         file-has-acl: port to CentOS 6
26119         Problem reported by Tom G. Christensen in:
26120         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26121         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26122         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26123         HAVE_GETXATTR.
26124         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26125         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26126         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26127         file-has-acl.c actually needs.
26129 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26131         file-has-acl: always return false when ACLs aren't supported
26132         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26133         change the GNU/Linux getxattr path, to transform "not supported"
26134         errors to a false return rather than an error.  This is handled
26135         within file_has_acl() due to the platform specific tests to
26136         determine if ACLs are not supported.
26138 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26140         gettext: propagate po/Makefile.in.in too
26141         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26142         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26143         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26144         between Makefile.in.in and the gettext-runtime m4 files.
26146 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26148         file-has-acl: new module, split from acl
26149         And add a new module file-has-acl-tests to match.
26150         I ran into a problem with the recent changes to the acl module,
26151         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26152         When using the fixed version with Emacs, I discovered that
26153         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26154         had multiple libraries, but needed only one), so I fixed that too.
26155         * NEWS: Document this incompatible change.
26156         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26157         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26158         Initialize gl_need_lib_has_acl.
26159         (gl_FUNC_ACL): Require it.
26160         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26161         Move the file-has-acl.c-relevant stuff to ...
26162         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26163         use_xattrs = 0' typo, and omit some needless work.  Set
26164         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26165         when gl_FUNC_ACL is called.
26166         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26167         (Link): Remove $(LIB_HAS_ACL).
26168         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26169         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26170         modules/file-has-acl-tests.
26171         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26173         manywarnings: add GCC 5.1 warnings
26174         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26175         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26176         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26177         -Wsuggest-override, -Wuse-without-only.  Change
26178         -Wnormalized=... operands to match 5.1.
26179         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26180         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26181         -Wdiscarded-qualifiers, -Wformat-signedness,
26182         -Wincompatible-pointer-types, -Wint-conversion,
26183         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26184         -Wshift-count-negative, -Wshift-count-overflow,
26185         -Wsizeof-array-argument, -Wsuggest-final-methods,
26186         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26187         and add -Warray-bounds=2 as a special case.
26189 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26191         doc: update FDL template to match FDL examples.
26192         * doc/alloca-opt.texi:
26193         * doc/alloca.texi:
26194         * doc/c-ctype.texi:
26195         * doc/c-strcase.texi:
26196         * doc/c-strcaseeq.texi:
26197         * doc/c-strcasestr.texi:
26198         * doc/c-strstr.texi:
26199         * doc/c-strtod.texi:
26200         * doc/c-strtold.texi:
26201         * doc/ctime.texi:
26202         * doc/error.texi:
26203         * doc/gcd.texi:
26204         * doc/gnulib-tool.texi:
26205         * doc/inet_ntoa.texi:
26206         * doc/intprops.texi:
26207         * doc/lib-symbol-visibility.texi:
26208         * doc/maintain.texi:
26209         * doc/parse-datetime.texi:
26210         * doc/quote.texi:
26211         * doc/regexprops-generic.texi:
26212         * doc/standards.texi: Remove spurious 'with' in FDL license
26213         template.
26215 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26217         lstat: fix cross-compilation 'ln -s' problem
26218         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26219         Have the test program call 'symlink' rather than a separate
26220         script run 'ln -s'; this is more likely to work in
26221         cross-compilation environments.  Reported by Pavel Fedin in:
26222         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26224 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26226         gendocs.sh: default to a common CSS style sheet for HTML output
26227         * build-aux/gendocs.sh (htmlarg): Change default value.
26229 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26231         gnulib-tool: output bold attribute more portably
26232         * gnulib-tool (func_show_module_list): Change hexadecimal
26233         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26234         encoded numbers as arguments to `printf' is not portable,
26235         and is not claimed by POSIX.  This is the case with FreeBSD.
26237 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26239         qacl: Simplify HP-UX acl_nontrivial check
26240         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26241         acl_nontrivial. Check if the acl has at most three entries instead (it must
26242         have exactly three entries according to the HP-UX documentation). Ignore
26243         uids and gids as long as an entry is either for a user (i.e., the owner),
26244         a group (i.e., the owning group), or others.
26245         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26246         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26248 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26250         acl: On Linux, check for acls without libacl
26251         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26252         library function to check for the presence of acls, avoiding a library.
26253         * lib/file-has-acl.c: Include xattr headers if we have them.
26254         (file_has_acl): On Linux, use getxattr().
26255         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26256         file_has_acl(). Check for xattr headers and getxattr().
26258 2015-04-14  Ángel González  <keisial@gmail.com>
26260         tempname: avoid unused parameter warnings (trivial)
26261         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26262         (try_nocreate): Likewise.
26264 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26266         fseeko: fix build failure on NetBSD >= 6 (trivial)
26267         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26268         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26270 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26272         gitlog-to-changelog: port to MS-Windows
26273         * build-aux/gitlog-to-changelog (git_dir_option):
26274         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26275         MS-Windows Perl.  Reported by Eli Zaretskii in:
26276         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26278 2015-04-07  Karl Berry  <karl@gnu.org>
26280         gendocs: new option --tex for passing args to texi2dvi.
26281         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26282         (TEXI2DVI): cut to just command name.
26283         (usage): mention new option, and update copyright.
26284         <generate_tex>: use it.
26286 2015-04-07  Karl Berry  <karl@gnu.org>
26288         * config/srclistvars.sh (GETTEXT): new definition.
26289         * config/srclist.txt: use it for gettext .m4 files.
26290         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26291         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26292         and continuing into April.
26294 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26296         uniname/uniname-tests: fix failure due to alias
26297         Reported by Jack Howarth in:
26298         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26299         * tests/uniname/test-uninames.c (name_has_alias): New function.
26300         (test_inverse_lookup): Exclude character name with valid alias,
26301         from randomly generated character names.
26302         (main): Fill unicode_aliases before calling test functions.
26304 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26306         hash: remove deprecated hash_insert0 function
26307         * lib/hash.h (hash_insert0): Remove deprecated function.
26308         * lib/hash.c (hash_insert0): Likewise.
26310 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26312         mountlist: remove dependency on libmount
26313         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26314         directly, rather than depending on libmount, which has many
26315         dependencies due to its dependence on libselinux, as detailed at:
26316         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26317         Note we restrict this to __linux__ as that's probably where this
26318         interface will remain.  If ever porting, it would be best
26319         to first pull the makedev() wrapper from coreutils to a gnulib module.
26320         Note also we don't add a getline dependency to the mountlist module,
26321         as all Linux versions are sufficient.
26323 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26325         stddef: port to pre-C11 GCC on x86
26326         On this platform, max_align_t should have an alignment of 8 even
26327         though the storage alignments of double, long, etc. max out at 4.
26328         Inspired by a comment of Andreas Schwab's here:
26329         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26330         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26331         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26332         * tests/test-stddef.c: Test __alignof__ too, if available.
26334 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26336         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26337         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26339 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26341         yesno: make EOL optional in ENABLE_NLS case also (trival)
26342         * lib/yesno.c (yesno): Check for EOL before replacing.
26343         * tests/test-yesno.sh: Add a test case (test along with gettext).
26345 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26347         fdopendir-tests: test it does not close its arg
26348         * tests/test-fdopendir.c (main): Test that fdopendir does not
26349         close its argument.  From a suggestion by David Grayson in:
26350         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26352 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26354         gitlog-to-changelog: trim trailing white space
26355         * build-aux/gitlog-to-changelog (main):
26356         Trim trailing white space from commit message lines.
26357         This is helpful for processing the GNU Emacs repository,
26358         which dates back to 1985 and contains a lot of such lines.
26360         gitlog-to-changelog: new option --ignore-matching
26361         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26362         Support new option --ignore-matching=PAT, which ignores all
26363         commit messages whose first line matches PAT.
26365 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26367         fdopendir: port better to MinGW
26368         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26369         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26370         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26371         * modules/fdopendir (Depends-on): Add dirfd.
26373 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26375         fdopendir: fix typo in comment
26376         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26378 2015-03-09  Eric Blake  <eblake@redhat.com>
26380         error: document all entry points provided
26381         * doc/glibc-functions/error_print_progname.texi
26382         (error_print_progname): Mention the error module.
26383         * doc/glibc-functions/error_at_line.texi (error_at_line):
26384         Likewise.
26385         * doc/glibc-functions/error_message_count.texi
26386         (error_message_count): Likewise.
26387         * doc/glibc-functions/error_one_per_line.texi
26388         (error_one_per_line): Likewise.
26390 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26392         vasnprintf: pacify clang 3.5.0
26393         Problem reported by Werner Lemberg in:
26394         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26395         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26396         The casts aren't needed, since the characters in question are ASCII.
26398 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26400         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26401         * lib/dirent--.h (GNULIB_defined_opendir):
26402         * lib/dirent.in.h (GNULIB_defined_opendir)
26403         (GNULIB_defined_closedir):
26404         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26405         #undef only if Gnulib defined it.
26407         poll: port to MSVC v18 on MS-Windows 8.1
26408         Problem reported by Gisle Vanem in:
26409         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26410         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26411         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26412         Add sys_socket.
26414 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26416         tests: support stderr verification with returns_()
26417         * tests/init.sh (returns_): Disable tracing for this wrapper
26418         function, so that stderr of the wrapped command is unchanged,
26419         allowing for verification of the contents.
26421 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26423         passfd: avoid valgrind uninitalised data warning
26424         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26425         to include just the fd we've initialized, rather than including
26426         the extra space used for alignment.
26428 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26430         uniwbrk/u32-wordbreaks-tests: fix copyright
26431         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26433         dup2: doc and test for Android bug
26434         Reported by Kevin Cernekee in:
26435         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26436         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26439 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26441         Replace dup2() on Android
26442         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26443         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26444         fails.  Using rpl_dup2() fixes this because it has an explicit test
26445         for this condition.
26447 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26449         Android doesn't define RLIM_SAVED_*
26450         Portability problem reported by Kevin Cernekee in:
26451         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26452         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26453         Mention the portability problem.
26454         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26455         Define if not defined.
26456         * m4/dup2.m4 (gl_FUNC_DUP2):
26457         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26458         Likewise.
26460 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26462         vasnprintf-posix-tests: use consistent test
26463         * tests/test-vasnprintf-posix.c (test_function):
26464         Use "<" in assert instead of "<=", for consistency with other tests.
26466 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26468         printf, isinf, etc.: noncanonical != NaN
26469         Do not require that isinf, printf, etc. treat noncanonical
26470         values as NaNs.  Instead, require only that they do not crash.
26471         Problem reported by Joseph Myers in:
26472         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26473         * doc/posix-functions/dprintf.texi (dprintf):
26474         * doc/posix-functions/fprintf.texi (fprintf):
26475         * doc/posix-functions/isfinite.texi (isfinite):
26476         * doc/posix-functions/isinf.texi (isinf):
26477         * doc/posix-functions/isnan.texi (isnan):
26478         * doc/posix-functions/printf.texi (printf):
26479         * doc/posix-functions/snprintf.texi (snprintf):
26480         * doc/posix-functions/sprintf.texi (sprintf):
26481         * doc/posix-functions/vdprintf.texi (vdprintf):
26482         * doc/posix-functions/vfprintf.texi (vfprintf):
26483         * doc/posix-functions/vprintf.texi (vprintf):
26484         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26485         * doc/posix-functions/vsprintf.texi (vsprintf):
26486         Document this.
26487         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26488         * m4/isinf.m4 (gl_ISINFL_WORKS):
26489         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26490         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26491         * tests/test-isfinite.c (test_isfinitel):
26492         * tests/test-isinf.c (test_isinfl):
26493         * tests/test-isnan.c (test_long_double):
26494         * tests/test-isnanl.h (main):
26495         * tests/test-snprintf-posix.h (test_function):
26496         * tests/test-sprintf-posix.h (test_function):
26497         * tests/test-vasnprintf-posix.c (test_function):
26498         * tests/test-vasprintf-posix.c (test_function):
26499         Test only that noncanonical values do not cause crashes, not that
26500         they are treated as NaNs.  In some cases this means a larger
26501         output buffer is needed.
26503 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26505         fts: remove redundant close() (trivial)
26506         * lib/fts.c (fts_read): Remove redundant call to close().
26507         Spotted by coverity.
26509 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26511         getdtablesize: port better for Android
26512         Problem reported by Kevin Cernekee in:
26513         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26514         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26515         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26516         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26518         poll: fixes for large fds
26519         * lib/poll.c (poll): Don't check directly for NFD too large.
26520         Don't rely on undefined behavior in FD_SET when an arg exceeds
26521         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26522         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26523         as that makes the test a bit stricter.
26525 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26527         fcntl: Fix cross compiling
26528         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26529         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26531 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26533         dup2, fcntl: cross-compile better for Android
26534         Problem reported by Kevin Cernekee in:
26535         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26536         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26537         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26538         there's little need to cross-compile for older kernels nowadays.
26539         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26540         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26542 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26544         getopt: don't crash on memory exhaustion
26545         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26546         memory exhaustion.  In the _LIBC case we use alloca() as is
26547         already done in glibc, so we don't need to consider the separate
26548         error path in that awkward case.  Also fix a memory leak when
26549         ambiguous options are present.
26550         Reported by Tobias Stoeckmann
26552 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26554         tempname: allow compilation with C++ (trivial)
26555         * lib/tempname.h [C++]: Specify extern "C" linkage.
26556         * lib/tempname.h (try_tempname):
26557         * lib/tempname.c (__try_tempname, __gen_tempname):
26558         Rename 'try' to 'tryfunc'.
26560 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26562         dup2, fcntl: port to AIX
26563         * m4/dup2.m4 (gl_FUNC_DUP2):
26564         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26565         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26566         The former works on AIX 7.1 but the latter does not.
26567         Also, this may work better with Android; see:
26568         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26570 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26572         getdtablesize, dup2, fcntl: port to Android
26573         Problem reported by Kevin Cernekee in:
26574         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26575         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26576         Mention that getdtablesize doesn't work on Android.
26577         * lib/getdtablesize.c: Use getrlimit substitute only if
26578         getdtablesize is declared.  This should suffice for Cygwin
26579         while not breaking Android.
26580         * m4/dup2.m4 (gl_FUNC_DUP2):
26581         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26582         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26583         standardized but the latter is not, and sysconf works on Android.
26584         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26585         Also check that getdtablesize is declared.
26586         This removes the need for a special case for Android.
26588 2015-02-16  Kevin Cernekee  <cernekee@google.com>
26590         localename: Implement gl_locale_name_thread_unsafe for Android
26591         * lib/localename.c: Android API level >= 21 supports two hardcoded
26592         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
26593         the internal __locale_t struct.
26595 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
26597         fts: avoid crash when a cycle is added while traversing
26598         This could be triggered by auto-mounting a recursive bind mount.
26599         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
26600         * lib/fts.c (fts_read): Avoid removing the original hash table item
26601         when leaving a directory that caused a cycle, and preserve the FTS_DC
26602         flag.
26604 2015-02-16  Daiki Ueno  <ueno@gnu.org>
26606         uniname/uniname: support character alias
26607         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
26608         Generate one-way mapping from aliases to codepoints in the
26609         generated tables.  Special case variation selectors to reduce
26610         table size.
26611         * lib/uniname/uniname.c (unicode_character_name): Special case
26612         variation selectors.
26613         (unicode_name_character): Special case variation selectors and
26614         their aliases.
26615         * lib/uniname/uninames.h: Regenerate.
26616         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
26617         * modules/uniname/uniname-tests (Files): Add
26618         tests/uniname/NameAliases.txt.
26619         * tests/uniname/test-uninames.c: Mark as static.
26620         (ALIASLEN): Define.
26621         (struct unicode_alias): New struct.
26622         (unicode_aliases): New variable.
26623         (fill_aliases): New function.
26624         (test_alias_lookup): New test function.
26625         (main): Run the 'test_alias_lookup' test if the second argument is
26626         given.
26627         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
26628         second argument.
26630 2015-02-11  Kevin Cernekee  <cernekee@google.com>
26632         Fix FILE struct compatibility with Android API level >= 21
26633         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
26634         __sferror.  Recent versions of Bionic's stdio.h no longer define
26635         __sferror.
26636         * lib/fbufmode.c: Likewise.
26637         * lib/fflush.c: Likewise.
26638         * lib/fpurge.c: Likewise.
26639         * lib/freadable.c: Likewise.
26640         * lib/freadahead.c: Likewise.
26641         * lib/freading.c: Likewise.
26642         * lib/freadptr.c: Likewise.
26643         * lib/freadseek.c: Likewise.
26644         * lib/fseeko.c: Likewise.
26645         * lib/fseterr.c: Likewise.
26646         * lib/fwritable.c: Likewise.
26648         Assume unbroken ungetc() on Android
26649         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
26650         test case passed when running on an Android host, and the code
26651         hasn't really changed since 2009.
26653         getdtablesize: Fix Android build
26654         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
26655         versions have this symbol in the .so library (at least 32-bit
26656         platforms) but are missing the declaration in the header file,
26657         causing the m4 logic to guess incorrectly.
26659         localename: Fix Android build
26660         * modules/localename (Depends-on): Add langinfo.
26662         getugroups: Fix Android build
26663         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
26664         functions.
26666         euidaccess: Fix Android build
26667         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
26668         AT_EACCESS gets declared.
26670         linkat_nofollow: Add fallback case for cross compiling
26671         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
26673         net_if: Handle content-free <net/if.h> system headers
26674         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
26675         struct if_nameindex.  If not, enable the replacement header.
26677         signal_h: Fix Android build
26678         * lib/signal.in.h: Add Android to the list of platforms that declare
26679         pthread_sigmask() in <pthread.h> instead of <signal.h>.
26681         duplocale: Fix Android build of duplocale-tests
26682         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
26683         is included by test-duplocale.c (but not by duplocale.c).
26684         * modules/duplocale-tests (configure.ac): Check for monetary.h.
26685         * tests/test-duplocale.c: Skip test if monetary.h is absent.
26686         * doc/posix-headers/monetary.texi: Add Android to the list of
26687         platforms missing monetary.h.
26689 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26691         tests: avoid recent -Werror=unused-variable regression in test-locale
26692         * tests/test-locale.c (main): Reference the variable to avoid the
26693         "unused variable" warning.
26695 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26697         maint: various whitespace cleanups in tempname
26698         * lib/tempname.c: Normalize spacing and line length.
26699         * lib/tempname.h: Likewise.
26700         * modules/tempname: Likewise.
26702 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26704         tests: provide returns_() to simplify exit status checking
26705         * tests/init.sh (returns_): A new function for use in tests,
26706         to allow for easier checking of return values, where you expect
26707         a command to exit with failure status.  By checking for a particular
26708         exit code, you don't hide any crashes for example.
26710 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26712         mountlist: only use libmount when specified
26713         There are currently many shared libs dependencies introduced by
26714         libmount with associated runtime and virt mem overhead.
26715         Therefore don't enable by default.
26716         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
26718 2015-02-08  Daiki Ueno  <ueno@gnu.org>
26720         uniname/unimame-tests: don't link with -lunistring
26721         * modules/uniname/uniname-tests (Makefile.am): Don't link against
26722         $(LIBUNISTRING).  Document the rationale why we need to
26723         conditionalize the test.
26725 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26727         fstrcmp: don't assume strlen < INT_MAX
26728         * lib/fstrcmp.c: Include stddef.h and stdint.h.
26729         (uintptr_t): Remove, as we're now assuming stdint.
26730         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
26731         Prefer ptrdiff_t to int when the value could exceed INT_MAX
26732         if the input string is long.
26733         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
26734         uintptr_t to size_t when the underlying value is a pointer casted
26735         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
26736         * modules/fstrcmp (Depends-on): Add stdint.
26738         diffseq: prefer ptrdiff_t to ssize_t
26739         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
26740         ptrdiff_t is the natural type for signed indexes.
26741         On a few older platforms, ssize_t is narrower than size_t.
26743         xalloc: fix typo that suppressed warnings
26744         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
26745         This typo, introduced a couple of years ago, mistakenly suppressed
26746         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
26747         -Wmissing-declarations warnings.
26749         full-read: fix license notice typo
26750         * lib/full-read.h: Remove a stray line in the license notice.
26751         Reported by Sam Ellis in: http://bugs.gnu.org/19808
26753         crypto/gc: fix a -Wswitch warning
26754         Reported by Bruce Korb in:
26755         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
26756         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
26758 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26760         gnulib-tool: fix handling of patch(1) diagnostics
26761         * gnulib-tool: Send diagnostics from patch(1) to stderr,
26762         as otherwise gnulib-tool will reparse that output and attempt
26763         to lookup modules.
26765 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26767         bootstrap: exit immediately upon gnulib-tool failure
26768         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
26769         This was noticed when gnulib-tool exited early due to failure
26770         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
26771         but various confusing errors were then given as the build proceeded.
26773 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
26775         symlinkat: include all required header files
26776         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
26777         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
26778         Reported at https://savannah.gnu.org/bugs/index.php?44151
26779         and by Jack Howarth.
26781 2015-01-29  Pádraig Brady  <P@draigBrady.com>
26783         localename: support Solaris 12 and illumos
26784         * lib/localename.c (gl_locale_name_thread_unsafe): call
26785         getlocalename_l() on newer __sun platforms.
26786         Reported by Alexander Pyhalov.
26787         Fix suggested by Rich Burridge.
26789 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
26791         locale: fix tests on illumos (trivial)
26792         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
26793         so move from global scope to main().
26795 2015-01-24  Daiki Ueno  <ueno@gnu.org>
26797         unictype: avoid undefined left-shift behavior
26798         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
26799         gcc's -fsanitize=shift and running its tests triggered:
26800           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
26801             places cannot be represented in type 'int'
26802         Cast LHS to 'unsigned int' after integer promotion.
26803         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
26804         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
26806 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26808         libunistring: bump version of unitypes dependants
26809         Due to the header file search order, all the headers which depend
26810         on unitypes.h need to be generated, when the preinstalled
26811         libunistring is older.
26812         * modules/unicase/base (configure.ac): Bump minimum version to
26813         0.9.4.
26814         * modules/uniconv/base (configure.ac): Likewise.
26815         * modules/unilbrk/base (configure.ac): Likewise.
26816         * modules/uninorm/base (configure.ac): Likewise.
26817         * modules/unistdio/base (configure.ac): Likewise.
26818         * modules/unistr/base (configure.ac): Likewise.
26819         * modules/uniwbrk/base (configure.ac): Likewise.
26820         * modules/uniwidth/base (configure.ac): Likewise.
26822 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26824         unictype/category-none: fix link with libunistring
26825         Since _UC_CATEGORY_NONE is not a public symbol, it will be
26826         prefixed with "libstring_" when compiled as part of libunistring.
26827         To avoid undefined symbol at link time, increase the minimum
26828         version when the dependant modules are updated.
26829         * modules/unictype/category-none (configure.ac): Bump minimum
26830         version to 0.9.5.
26832 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26834         unitypes: fix build with installed libunistring
26835         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
26836         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
26837         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
26839 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26841         time: port to MinGW32 3.21
26842         Problem reported by Eli Zaretskii in:
26843         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
26844         * lib/time.in.h:
26845         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
26846         * modules/time (Depends-on):
26847         Fall back on unistd.h if the other include files don't define
26848         struct timespec.
26850         update-copyright: apply to self
26851         * build-aux/update-copyright: Fix copyright date.  How ironic!
26853 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26855         libunistring: update to Unicode 7.0.0
26856         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
26857         Manichaean names.
26858         * lib/unictype/joininggroup_name.h: Likewise.
26859         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
26860         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
26861         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
26862         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
26863         (fill_arabicshaping, joining_group_as_c_identifier): Support those
26864         enum values.
26865         (is_property_alphabetic): Accept newly added characters to
26866         cuneiform numeric signs.
26867         (is_property_default_ignorable_code_point): Reject U+0605.
26868         (FIELDLEN): Increase from 120 to 160.
26869         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
26870         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
26871         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
26872         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
26873         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
26874         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
26875         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
26876         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
26877         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
26878         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
26879         U+1E8D0..U+1E8D6.
26880         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
26881         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26882         lib/uniwidth/width.c.
26883         * all generated files under lib/uni* and tests/uni*: Regenerate.
26885 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26887         libunistring: update to Unicode 6.3.0
26888         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
26889         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
26890         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
26891         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
26892         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
26893         Update WB5, WB9, WB10, WB13a, and WB13b.
26894         * tests/uniwbrk/test-uc-wordbreaks.c
26895         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
26896         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
26897         (UC_BIDI_PDI): New enumeration values.
26898         (bidi_category_byname): Support those enum values.
26899         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
26900         dedicated property assigned.
26901         (is_property_case_ignorable): Check 0x0027.
26902         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
26903         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
26904         (output_wbp): Support those enum values.
26905         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
26906         (UC_BIDI_PDI): New enumeration values.
26907         * lib/unictype/bidi_byname.gperf: Add those property names.
26908         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
26909         U+180E, U+1A1B, and U+2066..U+2069.
26910         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26911         lib/uniwidth/width.c.
26912         * all generated files under lib/uni* and tests/uni*: Regenerate.
26914 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26916         libunistring: update to Unicode 6.2.0
26917         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
26918         (unilbrk_table): Adjust table size.
26919         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
26920         for LBP_RI.
26921         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
26922         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
26923         Normalize table index skipping ignored properties.
26924         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
26925         WBP_EXTEND and WBP_FORMAT, which are now computed without using
26926         the table.
26927         * lib/uniwbrk/wbrktable.h: Adjust table size.
26928         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
26929         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
26930         Support rule GB8a.
26931         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
26932         * tests/unigbrk/test-uc-is-grapheme-break.c
26933         (graphemebreakproperty_to_string): Support GBP_RI.
26934         * tests/uniwbrk/test-uc-wordbreaks.c
26935         (wordbreakproperty_to_string): Support WBP_RI.
26936         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
26937         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
26938         (output_lbp): Support LBP_RI.  Adjust some characters changed from
26939         LBP_AL to LBP_ID.
26940         (output_lbp): Support LBP_RI.
26941         (WBP_RI): New enumeration value.
26942         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
26943         (output_wbp): Support WBP_RI.
26944         (GBP_RI): New enumeration value.
26945         (output_gbp_test, fill_org_gbp): Support GBP_RI.
26946         * all generated files under lib/uni* and tests/uni*: Regenerate.
26948 2015-01-14  Daiki Ueno  <ueno@gnu.org>
26950         libunistring: update to Unicode 6.1.0
26951         * lib/gen-uni-tables.c (output_joining_group): Switch to
26952         3-level table to accommodate joining groups defined with higher
26953         codepoint value.  Since there are only 88 groups defined in
26954         Unicode 7.0.0, use 7-bit packed format for level3 entries.
26955         (get_lbp): Update for Unicode 6.1.0.
26956         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
26957         3-level table.
26958         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
26959         joining group name.
26960         * lib/unictype/joininggroup_name.h: Likewise.
26961         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
26962         (unilbrk_table): Adjust table size.
26963         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
26964         for LBP_HL.
26965         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
26966         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
26967         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
26968         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
26969         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
26970         U+302E..U+302F.
26971         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26972         lib/uniwidth/width.c.
26973         * all generated files under lib/uni* and tests/uni*: Regenerate.
26974         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
26976 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26978         uniwbrk/u32-wordbreaks-tests: add conformance test
26979         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
26980         tests/uniwbrk/test-uc-wordbreaks.c,
26981         tests/uniwbrk/test-uc-wordbreaks.sh, and
26982         tests/uniwbrk/WordBreakTest.txt.
26983         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
26984         test-uc-wordbreaks to $(check_PROGRAMS), and define
26985         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
26986         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
26987         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
26989 2015-01-15  Daiki Ueno  <ueno@gnu.org>
26991         uniwbrk: ignore Extended/Format characters at BOL not BOS
26992         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
26993         characters if the previous character property is one of
26994         WBP_NEWLINE, WBP_CR, and WBP_LF.
26996 2015-01-11  Jim Meyering  <meyering@fb.com>
26998         test-strstr.c: avoid a trivial leak
26999         * tests/test-strstr.c (main): Free haystack.
27001         update-copyright: recognize groff's \(co marker
27002         * build-aux/update-copyright (circle_c_re): Also accept
27003         uses of \(co, as found in gzip.1.
27005 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27007         maint.mk: fix compatibility with OS X nm
27008         * top/maint.mk (_gl_tight_scope): Use the -g option to
27009         show exported items rather than the -e option which is
27010         ignored on all platforms except OS X where it gives an error.
27011         Reported by Assaf Gordon.
27013 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27015         localcharset: improve charset detection on OS/2
27016         Use system codepage when appropriate.  Map OS/2 codepages to
27017         GNU canonical charset names if possible.
27018         * lib/config.charset: Don't output aliases if "$os" is os2*.
27019         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27020         result for OS/2.
27021         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27022         from the locale name which is neither "C" nor "POSIX".
27024 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27026         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27027         This reverts the last patch but one, as it shouldn't be needed now
27028         that the typo is fixed.
27029         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27030         * lib/count-trailing-zeros.h:
27031         * lib/count-one-bits.h:
27032         Go back to using 64-bit intrinsics.
27034         count-leading-zeros: fix pragma typos
27035         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27036         Fix typos in declaration of intrinsics when _MSC_VER.
27038 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27040         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27041         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27042         intrinsics in this case.
27043         * lib/count-trailing-zeros.h: Likewise.
27044         * lib/count-one-bits.h: Likewise.
27046 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27048         uniname/uniname: update to Unicode 7.0.0
27049         To accommodate new characters added since Unicode 5.1.0, this
27050         changes the internal representation of codepoint ranges.
27051         Previously, we grouped codepoint ranges by manually assigned 4-bit
27052         tag, which only allowed 16 groups.  This removes the limitation by
27053         switching to binary search on a table.  For the detail rationale
27054         and the benchmark results, see:
27055         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27056         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27057         to INDEX, as it no longer represents a codepoint.
27058         (range): New struct.
27059         (main): Switch to intervals list from a bit-pattern based
27060         classification.
27061         * lib/uniname/uninames.h: Regenerate.
27062         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27063         * modules/uniname/base (configure.ac): Bump minimum version to
27064         0.9.5.
27065         * modules/uniname/uniname (configure.ac): Bump minimum version to
27066         0.9.5.
27068 2015-01-05  Eric Blake  <eblake@redhat.com>
27070         doc: update INSTALL from autoconf
27071         * doc/install.texi: Resync from autoconf.
27072         * doc/INSTALL: Reflect recent autoconf update.
27073         * doc/INSTALL.ISO: Likewise.
27074         * doc/INSTALL.UTF-8: Likewise.
27076         stdio: fix use of PRIdMAX on modern mingw
27077         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27078         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27079         to work with modern mingw.
27081 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27083         pthread: detect git mingw builds with only partial pollution
27084         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27085         pollution, as seen temporarily in Fedora 21.
27087 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27089         lib-symbol-versions: cache script check
27090         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27091         Cache the check for linker version scripts.
27092         From a suggestion by Christophe Curis in:
27093         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27095 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27097         maint: fix grammar nits in propername (trivial change)
27098         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27099         and use an adequate verb and tense.
27101 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27103         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27104         * module/gendocs: Add 'doc/gendocs_template_min'.
27106         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27107         from to Gnulib's.
27108         (scripturl, templateurl): Adjust accordingly.
27110 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27112         gendocs: copyright date and version fix
27113         Reported by Karl Berry in:
27114         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27115         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27116         Fix copyright date.
27117         * build-aux/gendocs.sh (scriptversion): Update.
27119 2015-01-01  Karl Berry  <karl@gnu.org>
27121         * doc/install.texi,
27122         * build-aux/mdate-sh,
27123         * build-aux/depcomp,
27124         * build-aux/config.guess,
27125         * build-aux/config.sub,
27126         * build-aux/ar-lib,
27127         * build-aux/compile: revert copyright updates (some from last
27128         year) in slaved files.
27130 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27132         version-etc: new year
27133         * doc/gnulib.texi:
27134         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27135         * all files: Run 'make update-copyright'.
27137 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27139         xstrtol: ensure errno is reset
27140         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27141         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27143         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27145 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27147         utimens: fix dependency typo
27148         * modules/utimens (Depends-on): Remove 'assure'.
27149         This bug was introduced in the recent 'assure' patch.
27151 2014-12-22  Eric Blake  <eblake@redhat.com>
27153         docs: mention why libgen.h is bad
27154         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27156 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27158         assure: new module
27159         This works better than 'assert' when compiling with -DNDEBUG,
27160         as it avoids some compiler diagnostics in that case.
27161         Reported by Norihiro Tanaka in:
27162         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27163         * MODULES.html.sh (func_all_modules): Add 'assure'.
27164         * lib/assure.h, modules/assure: New files.
27165         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27166         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27167         Prefer 'assure' to 'assert'.
27168         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27169         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27170         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27171         Depend on 'assure'.
27173 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27175         stdalign: port better to HP compilers
27176         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27177         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27179         stdalign: work around Apple GCC 4.0 bug
27180         Reported by David Fang in:
27181         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27182         * lib/stdalign.in.h (_Alignas):
27183         * m4/stdalign.m4 (gl_STDALIGN_H):
27184         Do not use aligned attribute with GCC 4.0 on Apple.
27186 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27188         getcwd: fix test failure on OS X 10.9
27189         * m4/getcwd-path-max.m4: Avoid the replacement if it
27190         won't be effective due to the PATH_MAX limitation of lstat().
27191         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27192         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27193         for this case for use in tests, and also exclude this
27194         case when setting REPLACE_GETCWD.
27195         * tests/test-getcwd.c (test_long_name): Restrict the
27196         tested path length so that lstat() will not be passed
27197         a path greater than PATH_MAX.
27198         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27199         than AT_FDCWD, since the latter is set unconditionally
27200         since Sep 2009 in commit 52c658e9.
27202 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27204         parse-datetime: avoid a compiler warning with byacc (trivial)
27205         * lib/parse-datetime.y (yylex): Use the same prototype in the
27206         function definition as the declaration, to avoid a -Wstrict-prototypes
27207         warning seen when using byacc.
27209 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27211         unicase/locale-language-tests: fix LOCALE_FR test
27212         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27213         a French locale with traditional encoding.
27214         Reported by umerqayam in:
27215         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27217 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27219         stddef: support C11's max_align_t
27220         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27221         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27222         Do not undef, as that might cause max_align_t to be defined twice.
27223         Instead, change use to check for _GL_STDDEF_WINT_T too.
27224         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27225         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27226         Check for max_align_t.
27227         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27228         * modules/stddef-tests (Depends-on): Add stdalign.
27229         * tests/test-stddef.c: Test max_align_t.
27231 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27233         unistd: fix iOS check conditional
27234         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27235         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27236         yielded true on non-iOS environment.
27237         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27238         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27239         they are defined.
27241 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27243         posixtm: avoid compiler warning in a better way
27244         * lib/posixtm.c (IF_LINT): Remove.
27245         (year, posix_time_parse):
27246         Return true (not 0) if successful.  All callers changed.
27247         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27249 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27251         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27252         started with '/' on EMX.
27254 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27256         freopen: workaround freopen() on OS/2 kLIBC
27257         * lib/freopen.c (rpl_freopen): Workaround.
27258         * m4/freopen.m4: Add os2* case.
27260         get_shared_library_fullname: port to EMX
27261         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27262         on EMX, respectively.
27263         (_DLL_InitTerm): New on EMX.
27264         (get_shared_library_fullname): Implement on EMX.
27266         find_executable: port to EMX
27267         * lib/progreloc.c (find_executable): Implement on EMX.
27269         sched: check struct sched_param in spawn.h as well
27270         * lib/sched.in.h: Include spawn.h on kLIBC.
27271         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27273 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27275         bootstrap: Allow perl modules in $buildreq
27276         * build-aux/bootstrap: Add case for perl modules.
27278 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27280         apply _GL_ATTRIBUTE_PURE to some inline functions
27281         clang 3.4.2 flagged these inline functions as pure
27282         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27283         * lib/sig-handler.h (get_handler): Likewise.
27284         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27285         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27287 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27289         vasnprintf: fix potential use after free
27290         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27291         flagged by clang-analyzer 3.4.2.
27293 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27295         filevercmp, posixtm: avoid compiler warnings with -O3
27296         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27297         * lib/posixtm.c: (IF_LINT): Define.
27298         (posix_time_parse): Use it to void a "may be used uninitialized"
27299         warning, seen only with -O3.
27301 2014-12-05  Bruno Haible  <bruno@clisp.org>
27303         Fix LDBL80_WORDS macro on big endian platforms.
27304         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27305         LDBL80_WORDS macro.
27306         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27307         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27308         * tests/test-isfinite.c (test_isfinitel): Likewise.
27309         * tests/test-isinf.c (test_isinfl): Likewise.
27310         * tests/test-isnan.c (test_long_double): Likewise.
27311         * tests/test-isnanl.h (main): Likewise.
27312         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27313         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27314         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27315         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27316         Reported by Pádraig Brady.
27318 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27320         git-version-gen: do not print new line characters
27321         * build-aux/git-version-gen: Use printf instead of echo and tr.
27323         gnulib-tool: recognize x:* as an absolute path
27324         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27325         (func_relconcat): Likewise.
27327 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27329         argp: avoid extraneous translation and mem leak with empty pre doc
27330         * lib/argp-help.c (argp_doc): Never translate the empty string,
27331         when "\v" is the first or last character of the string, as that
27332         has a reserved meaning to return the header info from a po file.
27333         This also fixes a small memory leak in the !post case.
27334         The issue can be seen with this command for example:
27335         LC_MESSAGES=en_US grub2-mknetdir --help
27337 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27339         uniname/uniname-tests: skip if system's libunistring is used
27340         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27341         uniname/uniname module is not compiled.
27343 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27345         printf: fix configure check on big endian systems
27346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27348 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27350         pipe-filter-gi, pipe-filter-ii: port to AIX
27351         On AIX 7.1, 'select' is defined as static and cannot be referred
27352         to from inline function.
27353         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27354         the definition...
27355         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27356         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27358 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27360         gitlog-to-changelog: add --until
27361         * build-aux/gitlog-to-changelog: Support new --until option.
27362         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27364 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27366         extern-inline: update commentary about GCC bugs
27367         * m4/extern-inline.m4: Add another GCC bug number to comments.
27369 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27371         gen-uni-tables: untabify
27372         * lib/gen-uni-tables.c: Untabify.
27374 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27376         gen-uni-tables: check out-of-range values added to 3-level tables
27377         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27378         (output_joining_type, output_ident_category): Check out-of-range
27379         values added to 3-level tables.
27381 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27383         gen-uni-tables: utilize 'assert'
27384         * lib/gen-uni-tables.c: Include <assert.h>.
27385         (output_category, output_combclass, output_decimal_digit_test)
27386         (output_decimal_digit, output_digit_test, output_digit)
27387         (output_numeric, get_mirror_value, fill_properties)
27388         (fill_property30, is_property_alphabetic)
27389         (is_property_default_ignorable_code_point)
27390         (is_property_uppercase, is_property_lowercase)
27391         (is_property_cased, is_property_case_ignorable)
27392         (is_property_changes_when_lowercased, is_property_iso_control)
27393         (is_property_math, fill_arabicshaping, output_joining_group)
27394         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27395         (output_wbp, fill_org_gbp, get_decomposition)
27396         (output_decomposition, fill_composition_exclusions)
27397         (debug_output_composition_tables, output_composition_tables)
27398         (redistribute_casefolding_rules, output_casing_rules): Use
27399         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27400         reporting.
27402 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27404         gen-uni-tables: cosmetic improvements
27405         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27406         variables specification.
27407         (is_outdigit): Remove unused function.
27409 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27411         fcntl-h-tests: port to PA-RISC GNU/Linux
27412         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27414 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27416         fts: port to C89
27417         Problem reported for MSVC 16 by Gisle Vanem in:
27418         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27419         * lib/fts.c (fts_build): Avoid declaration before statement.
27421 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27423         unistd: port to iOS
27424         Problem reported by André Klitzing in:
27425         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27426         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27428 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27430         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27431         Problem reported by Alan Modra in:
27432         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27433         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27434         Always cast the function arg, reverting this part of the previous
27435         change.
27437 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27439         obstack: avoid potentially-nonportable function casts
27440         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27441         Remove, replacing with ...
27442         (call_chunkfun, call_freefun): New static functions.
27443         All uses changed.  Avoid potentially-nonportable casts.
27444         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27445         (_obstack_begin_worker): Omit last two args, since they
27446         rely on potentially-nonportable casts.  All callers changed.
27447         * lib/obstack.h (_OBSTACK_CAST): New macro.
27448         Use it everywhere the old API used a potentially-nonportable cast.
27449         The new API doesn't cast.
27450         (struct obstack): Use unions rather than requiring
27451         potentially-nonportable casts.
27452         (obstack_chunkfun, obstack_freefun): Return void.
27454 2014-11-03  Alan Modra  <amodra@gmail.com>
27456         obstack: fix macro return values
27457         * lib/obstack.h (obstack_next_free): Return void *.
27458         (obstack_1grow_fast, obstack_blank_fast): Return void.
27459         For __GNUC__ macros:
27460         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27461         For !__GNUC__ macros:
27462         (obstack_make_room, obstack_grow, obstack_grow0)
27463         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27465 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27467         obstack: do not assume system-supplied obstack is size_t safe
27468         * m4/obstack.m4: New file.
27469         * modules/obstack (Files): Add it.
27471         obstack: port to platforms that #define __alignof__
27472         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27473         not if !_LIBC.  We don't know of any platforms that #define
27474         __alignof__, but it might be useful in tests.  Conversely,
27475         glibc assumes GCC.
27477 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27479         linkat: don't unconditionally replace on GNU/Linux
27480         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27481         was redundant for a few reasons.  It was present to support compiling
27482         on new systems but running on the old narrow window of Linux 2.6.1[67].
27483         It setup and cleaned up test files which weren't actually used.
27484         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27485         implicit in the following check.
27487 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27489         linkat: wrap to handle symlinks on OS X 10.10
27490         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27491         but not usable because it doesn't support creating hardlinks
27492         to symlinks.  Therefore add a generic test for this capability
27493         and fallback to our emulation if linkat() fails with ENOTSUP.
27495 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27497         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27498         * doc/posix-functions/open.texi (open):
27499         * doc/posix-functions/openat.texi (openat):
27500         Document that these functions do not set errno to ELOOP when
27501         a symlink is opened with O_NOFOLLOW.
27503 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27505         obstack: add NEWS entry for recent incompatible changes
27506         * NEWS: Describe recent changes.
27508 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27510         mountlist: don't use libmount to decide on dummy/remote
27511         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27512         routines to determine whether a file system is dummy or remote,
27513         as they're not currently compatible.  For example the remoteness
27514         is determined on file system type (for which the list seems incomplete),
27515         rather than simply checking for a ':' in the device name.
27516         Also libmount currently determines that 'tmpfs' is a dummy file system
27517         even though it has associated storage.
27519 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27521         obstack: prefer __alignof__ to alignof
27522         This is for portability to pre-4.7 GCC when compiling glibc.
27523         See Joseph S. Myers in:
27524         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27525         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27526         New macro, defined by including and using <alignof.h>.
27527         (MAX): New macro.
27528         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27529         Do not use enums as they are not portable to some broken compilers.
27530         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27532         obstack: prefer alignof to calculating alignments by hand
27533         * lib/obstack.c: Include <stdalign.h>.
27534         (struct fooalign): Remove.
27535         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27536         * modules/obstack (Depends-on): Add stdalign.
27538 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27540         obstack: use size_t alignments and check for overflow
27541         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27542         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27543         * lib/obstack.h (struct obstack.alignment_mask):
27544         Use _OBSTACK_SIZE_T, not int, for alignments.
27545         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27546         overflows, e.g., when adding the alignment.
27548 2014-10-29  Alan Modra  <amodra@gmail.com>
27550         obstack: 64-bit obstack support, part 3
27551         This finally enables full 64-bit obstack support.  The glibc
27552         shared library specific code is removed from obstack.c too, and
27553         the error handling code conditionally compiled under control of
27554         another macro, _OBSTACK_NO_ERROR_HANDLER.
27555         * lib/obstack.h: Include string.h earlier.
27556         (_OBSTACK_INTERFACE_VERSION): Define.
27557         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27558         * lib/obstack.c: Don't include shlib-compat.h.
27559         (OBSTACK_INTERFACE_VERSION): Delete.
27560         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27561         glibc code is compatible with version 2.  Don't include stdio.h for
27562         __GNU_LIBRARY.
27563         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27564         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27565         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27566         glibc shared library specific source.
27568         obstack: 64-bit obstack support, part 2
27569         This gets us 4G obstack support, without changing ABI
27570         compatibility, apart from possibly introducing some
27571         signed/unsigned comparison warnings in code that uses obstack.h.
27572         a) Replace "int" size parameters, return values, and macro local vars
27573            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27574         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27575         c) Make all obstack macros checking available room use obstack_room.
27576            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27577            allocated near the top of memory.
27578         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27579         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27580         in place of "int" size parameters, return values and local vars.
27581         (_CHUNK_SIZE_T): Define.
27582         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27583         union use an _OBSTACK_SIZE_T integer type.
27584         For __GNUC__ versions of the following macros...
27585         (obstack_room): Rename local var.
27586         (obstack_make_room): Use obstack_room.
27587         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27588         obstack_int_grow, obstack_blank): Likewise.
27589         (obstack_finish): Use unsigned comparison when comparing aligned
27590         next_free against chunk_limit.
27591         (obstack_free): Cast OBJ to remove possible const qualifier.
27592         For !__GNUC__ versions of the following macros...
27593         (obstack_make_room): Use obstack_room.
27594         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27595         obstack_int_grow, obstack_blank): Likewise.
27596         (obstack_finish): Use unsigned comparision when comparing aligned
27597         next_free against chunk_limit.
27598         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
27599         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
27600         _OBSTACK_SIZE_T.
27601         (_obstack_begin, _obstack_begin_1): Likewise.
27602         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
27603         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
27605         obstack: 64-bit obstack support, part 1
27606         a) Correct calls to alloc function, to use a size_t arg.  "long" is
27607            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
27608            and "size_t" 64 bits.
27609         b) Consolidate _obstack_begin and _obstack_begin1 code.
27610         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
27611         use "size_t" rather than "long".
27612         (_obstack_begin, _obstack_begin1): Likewise.
27613         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
27614         obstack_chunkfun): Update alloc function casts.
27615         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
27616         (chunkfun_type, freefun_type): New typdefs.
27617         (_obstack_begin_worker): Split out from ..
27618         (_obstack_begin, _obstack_begin_1): ..here.
27620         obstack: tidy part 2
27621         a) Don't be concerned about "not polluting the namespace with stddef.h
27622            symbols" in obstack.h, since gnulib string.h includes stddef.h
27623            anyway, and it seems unlikely that anyone would care.
27624         b) Don't roll our own slow memcpy in _obstack_newchunk.
27625         c) Rename obstack_free to _obstack_free.  This makes the naming
27626            consistent with other obstack functions and obviates the need for
27627            __obstack_free.  Ancient obstack.c defined both obstack_free and
27628            _obstack_free.  We continue to do that for _LIBC via an alias.
27629         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
27630            is clever, but nowadays gcc warns on undefined macros.  You'll get
27631            an undefined macro warning if simulating an old gcc with -U__GNUC__
27632            -U__GNUC_MINOR__ -D__GNUC__=1.
27633         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
27634         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
27635         (__obstack_free): Delete, update refs.
27636         (_obstack_free): Rename from obstack_free.
27637         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
27638         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
27639         * lib/obstack.c: Don't include stddef.h.
27640         (COPYING_UNIT): Delete.
27641         (_obstack_begin): Formatting fix.
27642         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
27643         (_obstack_free): Rename from __obstack_free, update alias.  Move
27644         undef of obstack_free to where it is needed.
27646         obstack: tidy part 1
27647         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
27648            to me, and result in overlong lines after later patches.
27649         b) Move error handling code, to avoid a forward declaration and to
27650            simplify later patches in this series.
27651         * lib/obstack.h (struct obstack <temp>): Rename fields of union
27652         and update all uses.
27653         * lib/obstack.c: Include stdlib.h earlier.
27654         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
27655         in file.
27656         (print_and_abort): Remove now redundant forward declaration.
27658 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27660         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
27661         Without this change, in bleeding-edge fileutils Autoconf complains
27662         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
27663         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
27664         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
27665         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
27667 2014-10-24  Daiki Ueno  <ueno@gnu.org>
27669         iconv: avoid false detection of non-working iconv
27670         The INBUF arguments of iconv can be either 'const char **'
27671         or 'char **'.  If CC is g++, the difference causes a compile error
27672         and thus leads to a false detection of non-working iconv.
27673         Reported by Eli Zaretskii and Werner LEMBERG in:
27674         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
27675         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
27676         iconv.  Bump serial number.
27678 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27680         bootstrap: print more diagnostics for missing programs
27681         * build-aux/bootstrap: only suppress stderr when checking for
27682         alternative program names.  This supports programs issuing non
27683         standard error messages.
27685 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27687         bootstrap: only update the gnulib submodule
27688         * build-aux/bootstrap: Restrict the "submodule update" command
27689         to the gnulib path.
27691 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27693         symlinkat: port to AIX 7.1
27694         * doc/posix-functions/symlinkat.texi (symlinkat):
27695         Mention AIX porting problem.
27696         * lib/symlinkat.c: Always include errno.h.
27697         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
27698         * lib/unistd.in.h (symlinkat): Add replacement machinery.
27699         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
27700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
27701         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
27702         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
27703         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
27705         readlinkat: port to AIX 7.1
27706         * doc/posix-functions/readlink.texi (readlink):
27707         * doc/posix-functions/readlinkat.texi (readlinkat):
27708         Mention AIX porting problem.
27709         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
27710         New function.
27711         * lib/unistd.in.h (readlinkat): Add replacement machinery.
27712         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
27713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
27714         * modules/readlinkat (configure.ac): Also compile replacement
27715         if REPLACE_READLINKAT.
27716         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
27718 2014-10-12  Karl Berry  <karl@gnu.org>
27720         * doc/posix-functions/dirname.texi: remove spurious {.
27722 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
27724         basename, dirname: Improve documentation.
27725         * doc/posix-functions/basename.texi: Mention dirname module and
27726         base_name() function.
27727         * doc/posix-functions/dirname.texi: Mention dir_name() and
27728         mdir_name() functions.
27729         Suggested by Werner LEMBERG <wl@gnu.org>.
27731 2014-09-24  Jim Meyering  <meyering@fb.com>
27733         exclude: declare exclude_patopts static
27734         * lib/exclude.c (exclude_patopts): Declare static,
27735         to avoid triggering a -Wmissing-prototypes warning.
27736         The alternative (declaring it in the .h file) would
27737         require publicizing the private "struct patopts".
27739 2014-09-21  Werner Lemberg  <wl@gnu.org>
27741         dirname: support compilation with C++
27742         * lib/dirname.h: Add necessary C linkage declarations.
27744 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27746         qsort_r: include <config.h>
27747         Problem reported by Tom G. Christensen in:
27748         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
27749         * lib/qsort.c [!_LIBC]: Include <config.h> first.
27751 2014-09-16  Dylan Cali  <calid1984@gmail.com>
27753         avltree-list: avoid compiler warnings (trivial)
27754         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27755         -Werror=suggest-attribute=pure.
27756         * lib/gl_array_list.c: Likewise.
27757         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
27758         declaration to avoid -Werror=missing-prototypes.  This is not added
27759         to a header as only exported for tests.  Add (void) to the
27760         check_invariants() call to indicate we're discarding the result
27761         in this context which avoids -Werror=unused-value.  Note we don't
27762         use ignore_value here to avoid a dependency as we know we'll not
27763         be adding __attribute__((warn_unused_result)) to check_invariants().
27764         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
27766 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27768         qsort_r: new module, for GNU-style qsort_r
27769         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
27771 2014-09-15  Werner LEMBERG  <wl@gnu.org>
27773         strerror_r-posix: support compilation with C++
27774         * lib/strerror_r.c: Add necessary C linkage declarations.
27776 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
27778         fcntl-h: fix compilation with Intel C++ compiler (trivial)
27779         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
27781 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
27783         mountlist: use /proc/self/mountinfo when available
27784         Use libmount to propagate device IDs provided by Linux in
27785         /proc/self/mountinfo.  This will give more accurate output when
27786         using df in chroot'ed environments as the device IDs are not
27787         determined by stat() which may be inaccurate within the chroot.
27788         * lib/mountlist.c (read_file_system_list): Use the libmount routines
27789         from util-linux to parse "/proc/self/mountinfo" or fall back to
27790         standard getmntent() processing.
27791         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
27792         getmntent() is used, as is the case on GNU/Linux.
27794 2014-09-07  Eric Wong  <normalperson@yhbt.net>
27796         users.txt: add cmogstored
27797         cmogstored has used gnulib since the beginning in 2012 to support
27798         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
27800 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27802         Trivial change.
27803         * gnulib-tool: Use same options as build-aux/bootstrap to download
27804         PO files.
27806 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27808         Trivial change.
27809         * gnulib-tool: Fallback to wget when rsync of PO files fails.
27811 2014-09-04  Eric Blake  <eblake@redhat.com>
27813         maintainer-makefile: add syntax check for useless ';;'
27814         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
27816 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
27818         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
27819         Problem reported by Assaf Gordon in:
27820         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
27821         Apparently Ubuntu is doing some fancy link-time optimization
27822         that doesn't work with -lpthread but does work with -pthread.
27823         Work around the bug by preferring -pthread to -lpthread.
27824         * m4/pthread.m4 (gl_PTHREAD_CHECK):
27825         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
27826         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27827         Treat -pthread like -lpthread.
27829 2014-09-04  Eric Blake  <eblake@redhat.com>
27831         error: drop spurious semicolon
27832         * lib/error.c (__error_at_line): Fix ';;'.
27834 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27836         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
27837         * m4/gnulib-common.m4 (AC_C_RESTRICT):
27838         Override AC_C_RESTRICT unconditionally.
27839         Update from autoconf, incorporating:
27840         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
27841         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
27843 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27845         manywarnings: add GCC 4.9 warnings
27846         Also, make it easier to maintain this in the future.
27847         * build-aux/gcc-warning.spec: Add -Wabi-tag,
27848         -Wconditionally-supported, -Wdelete-incomplete,
27849         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
27850         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
27851         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
27852         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
27853         only for older GCC versions that need them.  Handle
27854         -Wnormalized=nfc specially, so that the 'comm' command used
27855         for maintenance doesn't get confused.
27857 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27859         vasnprintf: fix bugs in width computation
27860         * lib/vasnprintf.c (VASNPRINTF):
27861         Rework previous change, which introduced a bug,
27862         to avoid the warning in a different way.
27863         Avoid undefined behavior if the width arg is less than -INT_MAX.
27864         Avoid unnecessary use of HAS_WIDTH local.
27866 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
27868         vasnprintf: Avoid signed/unsigned comparison warning.
27869         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
27870         compare end addr of generated string w/ maximum end addr.
27872 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
27874         parse-datetime: Avoid pointer difference.
27875         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
27876         instead of calculating difference of pointers.  This removes an
27877         annoying warning, devoid of any use.
27879 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27881         qsort_r: new module, for GNU-style qsort_r
27882         This works even on FreeBSD, which has an incompatible qsort_r API.
27883         * MODULES.html.sh: Add it.
27884         * doc/glibc-functions/qsort_r.texi: It's now supported.
27885         * lib/qsort.c: New file, taken from glibc with minor changes
27886         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
27887         removed.
27888         * lib/qsort_r.c: New file, compiled only on FreeBSD.
27889         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
27890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
27891         * modules/qsort_r, modules/qsort_r-tests: New files.
27892         * modules/stdlib (Makefile): Set up its defaults.
27893         * tests/test-qsort_r.c: New file.
27895 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
27897         vla: new module
27898         GNU RCS can use this, mostly for documentation I expect.  See:
27899         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
27900         * MODULES.html.sh: Add vla.
27901         * lib/vla.h, modules/vla: New files.
27903 2014-08-07  Daiki Ueno  <ueno@gnu.org>
27905         localename: make gl_locale_name_thread really thread-safe on Windows
27906         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
27907         "glthread/lock.h".
27908         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
27909         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
27911 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
27913         getpass: don't assume struct termios
27914         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
27915         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
27916         * lib/getpass.c (getpass): Port to systems lacking struct termios.
27918         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
27919         Problem reported by Jonas 'Sortie' Termansen in:
27920         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
27921         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
27922         Implement via sysconf for platforms that lack getdtablesize.
27924         vararrays: modernize AC_C_VARARRAYS for C11
27925         This backports a change I recently made to Autoconf.
27926         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
27927         VLAs are not supported, as this is what C11 does.  The old macro
27928         HAVE_C_VARARRAYS is still defined if they are supported, but is
27929         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
27931 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
27933         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
27934         * build-aux/install-reloc (func_create_wrapper): Also wrap
27935         strerror-override, stat, stat.
27937 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27939         sys_select: fix FD_ZERO problem on Solaris 10
27940         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
27941         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
27942         to expand to an expression that invoked memset without necessarily
27943         including <string.h>.  The problem was that the first include
27944         defined _SYS_TIME_H, causing the second include to short-circuit.
27945         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
27946         Also, fix what appears to be a cut-and-paste typo, by replacing
27947         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
27948         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
27950         accept: document Solaris 10 type glitch
27951         * doc/posix-functions/accept.texi (accept): Mention that
27952         Solaris 10 'accept' takes void * last arg, not socklen_t *.
27954 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
27956         extern-inline: port to FreeBSD, DragonFly
27957         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
27958         is present if either __DragonFly__ or __FreeBSD__ is defined.
27959         FreeBSD problem reported by Andrey Borzenkov in:
27960         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
27961         Also, worry about __APPLE__ only if __MACH__ is also defined,
27962         as this is more consistent with the rest of gnulib.
27963         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
27964         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
27966 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27968         regex: Make #if/#ifdef usage consistent for DEBUG
27969         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
27970         of the inconsistent usage of #if and #ifdef as that works with
27971         both Glibc and Gnulib's style.
27973 2014-07-31  Eric Blake  <eblake@redhat.com>
27975         openat-die: use _Noreturn markup
27976         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
27977         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
27978         _Noreturn.
27980 2014-07-30  Eric Blake  <eblake@redhat.com>
27982         test-open: port to cygwin, which lacks Fortify
27983         * tests/test-open.h (ALWAYS_INLINE): New macro.
27984         (__always_inline): Don't abuse internal symbol on non-glibc.
27986 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
27988         localename: Enforce declarations before statements.
27989         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
27990         first statement.
27992 2014-07-18  Jim Meyering  <meyering@fb.com>
27994         test-userspec: don't look up numeric user names
27995         * tests/test-userspec.c: I found a system for which getpwnam("0")
27996         returned a pointer to a non-root user's entry, and that made the
27997         test fail.
27998         (T): Prefix each numeric input with "+", to inhibit lookup.
28000 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28002         localcharset, localename: MS-Windows support for non-default locales
28003         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28004         falling back on the default system codepage, try extracting
28005         the codepage from what 'setlocale' returns.  This allows to
28006         take into account changes of the codeset due to non-default
28007         locale set by a previous call to 'setlocale'.
28008         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28009         Define if not already defined.
28010         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28011         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28012         current locale by calling 'setlocale', then converting the
28013         locale name into LCID by calling 'get_lcid'.  This allows to
28014         take into account changes in the current locale from the
28015         default one, in contrast to GetThreadLocale.
28017 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28019         announce-gen: avoid failure when Digest::SHA is installed
28020         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28021         Digest::SHA1->new in print_checksums fails.
28022         * build-aux/announce-gen (digest_classes): New associative array
28023         for available message digest implementations.
28024         (print_locations): Use it.
28026 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28028         gettext: revert "update macros to version 0.19"
28029         This reverts commit 9b9370ca, as it currently requires that
28030         developers of any project that explicitly uses the gettext module
28031         or implicitly uses it through the utimens-tests or
28032         futimens-tests modules, use gettext >= 0.19.
28033         However there are some stability and availablity issues with
28034         that version at present.  We can reinstate this soon, when stability
28035         is addressed and packages are more readily available.
28037 2014-07-12  Jim Meyering  <meyering@fb.com>
28039         regex: don't deref NULL upon heap allocation failure
28040         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28041         failure in one more place.
28042         To trigger the segfault, configure grep -with-included-regex,
28043         build it, and run these commands:
28044         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28045         I discovered this while replying to a private report from
28046         Jens Schleusener about excessive memory consumption by grep
28047         when using a regular expression like the one above.
28049 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28051         regex: fix memory leak in compiler
28052         Fix by Andreas Schwab in:
28053         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28054         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28055         constructed tree before returning error.
28057 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28059         announce-gen: avoid perl warnings
28060         * build-aux/announce-gen: add two minor checks to avoid
28061         "use of uninitialized value" warnings when command-line parameters are
28062         missing.
28064 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28066         localename: avoid -Wsuggest-attribute={const,pure} warnings
28067         * lib/localename.c (string_has): Tag internal function as pure.
28068         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28069         as const when appropriate.
28071 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28073         nl_langinfo: Fix last change.
28074         * lib/nl_langinfo.c (includes): Drop redundant include.
28076 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28078         error: Fix -Wundef warnings in glibc
28079         * lib/error.c [_LIBC]: Define default macros for
28080         glibc.
28081         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28082         Check _LIBC before STRERROR_R_CHAR_P.
28084         error: Sync from glibc master
28085         * lib/error.c [_LIBC]: Remove INTUSE usage.
28086         (error_tail): Remove unused macro ALLOCA_LIMIT.
28087         Fix potential buffer overflow.  Fix potential NULL dereference
28088         in strcmp.
28090 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28092         nl_langinfo: fix build under mingw
28093         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28095 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28097         mountlist: do not classify a bind-mounted dir entry as "dummy"
28098         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28099         1-argument getmntent() (instead of assuming absence).
28101 2014-07-08  Eric Blake  <eblake@redhat.com>
28103         maint.mk: less syntax-check noise when SIGPIPE is ignored
28104         * top/maint.mk (_sc_header_without_use)
28105         (sc_require_config_h_first): Parse full list.
28107 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28108             Paul Eggert  <eggert@cs.ucla.edu>
28110         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28111         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28112         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28113         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28114         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28115         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28116         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28117         Include <stdio.h> if Microsoft Windows.
28118         Include <time.h> if !REPLACE_NL_LANGINFO.
28119         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28120         and with improvements for Microsoft Windows.
28121         (rpl_nl_langinfo): Use it.
28122         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28123         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28124         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28125         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28126         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28127         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28128         corresponding values returned by 'localeconv'.  Compute the values
28129         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28130         'strftime' with a suitable struct tm value.
28132 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28134         Bruno Haible has stepped down as maintainer.
28135         See Karl Berry in:
28136         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28137         Daiki Ueno has volunteered to maintain libunistring; see:
28138         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28139         * modules/gen-uni-tables, modules/libunistring:
28140         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28141         * modules/unicase/base, modules/unicase/cased:
28142         * modules/unicase/empty-prefix-context:
28143         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28144         * modules/unicase/locale-language, modules/unicase/special-casing:
28145         * modules/unicase/tocasefold, modules/unicase/tolower:
28146         * modules/unicase/totitle, modules/unicase/toupper:
28147         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28148         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28149         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28150         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28151         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28152         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28153         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28154         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28155         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28156         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28157         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28158         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28159         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28160         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28161         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28162         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28163         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28164         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28165         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28166         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28167         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28168         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28169         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28170         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28171         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28172         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28173         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28174         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28175         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28176         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28177         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28178         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28179         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28180         * modules/uniconv/u16-conv-to-enc:
28181         * modules/uniconv/u16-strconv-from-enc:
28182         * modules/uniconv/u16-strconv-from-locale:
28183         * modules/uniconv/u16-strconv-to-enc:
28184         * modules/uniconv/u16-strconv-to-locale:
28185         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28186         * modules/uniconv/u32-strconv-from-enc:
28187         * modules/uniconv/u32-strconv-from-locale:
28188         * modules/uniconv/u32-strconv-to-enc:
28189         * modules/uniconv/u32-strconv-to-locale:
28190         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28191         * modules/uniconv/u8-strconv-from-enc:
28192         * modules/uniconv/u8-strconv-from-locale:
28193         * modules/uniconv/u8-strconv-to-enc:
28194         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28195         * modules/unictype/bidicategory-all:
28196         * modules/unictype/bidicategory-byname:
28197         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28198         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28199         * modules/unictype/bidiclass-byname:
28200         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28201         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28202         * modules/unictype/block-all, modules/unictype/block-list:
28203         * modules/unictype/block-of, modules/unictype/block-test:
28204         * modules/unictype/category-C, modules/unictype/category-Cc:
28205         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28206         * modules/unictype/category-Co, modules/unictype/category-Cs:
28207         * modules/unictype/category-L, modules/unictype/category-LC:
28208         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28209         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28210         * modules/unictype/category-Lu, modules/unictype/category-M:
28211         * modules/unictype/category-Mc, modules/unictype/category-Me:
28212         * modules/unictype/category-Mn, modules/unictype/category-N:
28213         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28214         * modules/unictype/category-No, modules/unictype/category-P:
28215         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28216         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28217         * modules/unictype/category-Pi, modules/unictype/category-Po:
28218         * modules/unictype/category-Ps, modules/unictype/category-S:
28219         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28220         * modules/unictype/category-Sm, modules/unictype/category-So:
28221         * modules/unictype/category-Z, modules/unictype/category-Zl:
28222         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28223         * modules/unictype/category-all, modules/unictype/category-and:
28224         * modules/unictype/category-and-not, modules/unictype/category-byname:
28225         * modules/unictype/category-longname, modules/unictype/category-name:
28226         * modules/unictype/category-none, modules/unictype/category-of:
28227         * modules/unictype/category-or, modules/unictype/category-test:
28228         * modules/unictype/category-test-withtable:
28229         * modules/unictype/combining-class:
28230         * modules/unictype/combining-class-all:
28231         * modules/unictype/combining-class-byname:
28232         * modules/unictype/combining-class-longname:
28233         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28234         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28235         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28236         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28237         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28238         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28239         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28240         * modules/unictype/digit, modules/unictype/joininggroup-all:
28241         * modules/unictype/joininggroup-byname:
28242         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28243         * modules/unictype/joiningtype-all:
28244         * modules/unictype/joiningtype-byname:
28245         * modules/unictype/joiningtype-longname:
28246         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28247         * modules/unictype/mirror, modules/unictype/numeric:
28248         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28249         * modules/unictype/property-ascii-hex-digit:
28250         * modules/unictype/property-bidi-arabic-digit:
28251         * modules/unictype/property-bidi-arabic-right-to-left:
28252         * modules/unictype/property-bidi-block-separator:
28253         * modules/unictype/property-bidi-boundary-neutral:
28254         * modules/unictype/property-bidi-common-separator:
28255         * modules/unictype/property-bidi-control:
28256         * modules/unictype/property-bidi-embedding-or-override:
28257         * modules/unictype/property-bidi-eur-num-separator:
28258         * modules/unictype/property-bidi-eur-num-terminator:
28259         * modules/unictype/property-bidi-european-digit:
28260         * modules/unictype/property-bidi-hebrew-right-to-left:
28261         * modules/unictype/property-bidi-left-to-right:
28262         * modules/unictype/property-bidi-non-spacing-mark:
28263         * modules/unictype/property-bidi-other-neutral:
28264         * modules/unictype/property-bidi-pdf:
28265         * modules/unictype/property-bidi-segment-separator:
28266         * modules/unictype/property-bidi-whitespace:
28267         * modules/unictype/property-byname:
28268         * modules/unictype/property-case-ignorable:
28269         * modules/unictype/property-cased:
28270         * modules/unictype/property-changes-when-casefolded:
28271         * modules/unictype/property-changes-when-casemapped:
28272         * modules/unictype/property-changes-when-lowercased:
28273         * modules/unictype/property-changes-when-titlecased:
28274         * modules/unictype/property-changes-when-uppercased:
28275         * modules/unictype/property-combining:
28276         * modules/unictype/property-composite:
28277         * modules/unictype/property-currency-symbol:
28278         * modules/unictype/property-dash:
28279         * modules/unictype/property-decimal-digit:
28280         * modules/unictype/property-default-ignorable-code-point:
28281         * modules/unictype/property-deprecated:
28282         * modules/unictype/property-diacritic:
28283         * modules/unictype/property-extender:
28284         * modules/unictype/property-format-control:
28285         * modules/unictype/property-grapheme-base:
28286         * modules/unictype/property-grapheme-extend:
28287         * modules/unictype/property-grapheme-link:
28288         * modules/unictype/property-hex-digit:
28289         * modules/unictype/property-hyphen:
28290         * modules/unictype/property-id-continue:
28291         * modules/unictype/property-id-start:
28292         * modules/unictype/property-ideographic:
28293         * modules/unictype/property-ids-binary-operator:
28294         * modules/unictype/property-ids-trinary-operator:
28295         * modules/unictype/property-ignorable-control:
28296         * modules/unictype/property-iso-control:
28297         * modules/unictype/property-join-control:
28298         * modules/unictype/property-left-of-pair:
28299         * modules/unictype/property-line-separator:
28300         * modules/unictype/property-logical-order-exception:
28301         * modules/unictype/property-lowercase, modules/unictype/property-math:
28302         * modules/unictype/property-non-break:
28303         * modules/unictype/property-not-a-character:
28304         * modules/unictype/property-numeric:
28305         * modules/unictype/property-other-alphabetic:
28306         * modules/unictype/property-other-default-ignorable-code-point:
28307         * modules/unictype/property-other-grapheme-extend:
28308         * modules/unictype/property-other-id-continue:
28309         * modules/unictype/property-other-id-start:
28310         * modules/unictype/property-other-lowercase:
28311         * modules/unictype/property-other-math:
28312         * modules/unictype/property-other-uppercase:
28313         * modules/unictype/property-paired-punctuation:
28314         * modules/unictype/property-paragraph-separator:
28315         * modules/unictype/property-pattern-syntax:
28316         * modules/unictype/property-pattern-white-space:
28317         * modules/unictype/property-private-use:
28318         * modules/unictype/property-punctuation:
28319         * modules/unictype/property-quotation-mark:
28320         * modules/unictype/property-radical:
28321         * modules/unictype/property-sentence-terminal:
28322         * modules/unictype/property-soft-dotted:
28323         * modules/unictype/property-space:
28324         * modules/unictype/property-terminal-punctuation:
28325         * modules/unictype/property-test, modules/unictype/property-titlecase:
28326         * modules/unictype/property-unassigned-code-value:
28327         * modules/unictype/property-unified-ideograph:
28328         * modules/unictype/property-uppercase:
28329         * modules/unictype/property-variation-selector:
28330         * modules/unictype/property-white-space:
28331         * modules/unictype/property-xid-continue:
28332         * modules/unictype/property-xid-start:
28333         * modules/unictype/property-zero-width, modules/unictype/scripts:
28334         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28335         * modules/unictype/syntax-c-whitespace:
28336         * modules/unictype/syntax-java-ident:
28337         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28338         * modules/unigbrk/u16-grapheme-breaks:
28339         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28340         * modules/unigbrk/u32-grapheme-breaks:
28341         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28342         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28343         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28344         * modules/unigbrk/uc-is-grapheme-break:
28345         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28346         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28347         * modules/unilbrk/u16-width-linebreaks:
28348         * modules/unilbrk/u32-possible-linebreaks:
28349         * modules/unilbrk/u32-width-linebreaks:
28350         * modules/unilbrk/u8-possible-linebreaks:
28351         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28352         * modules/unilbrk/ulc-possible-linebreaks:
28353         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28354         * modules/uniname/uniname, modules/uninorm/base:
28355         * modules/uninorm/canonical-decomposition:
28356         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28357         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28358         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28359         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28360         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28361         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28362         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28363         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28364         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28365         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28366         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28367         * modules/unistdio/base, modules/unistdio/u-printf-args:
28368         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28369         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28370         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28371         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28372         * modules/unistdio/u16-u16-sprintf:
28373         * modules/unistdio/u16-u16-vasnprintf:
28374         * modules/unistdio/u16-u16-vasprintf:
28375         * modules/unistdio/u16-u16-vsnprintf:
28376         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28377         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28378         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28379         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28380         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28381         * modules/unistdio/u32-u32-asnprintf:
28382         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28383         * modules/unistdio/u32-u32-sprintf:
28384         * modules/unistdio/u32-u32-vasnprintf:
28385         * modules/unistdio/u32-u32-vasprintf:
28386         * modules/unistdio/u32-u32-vsnprintf:
28387         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28388         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28389         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28390         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28391         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28392         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28393         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28394         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28395         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28396         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28397         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28398         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28399         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28400         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28401         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28402         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28403         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28404         * modules/unistr/u16-check, modules/unistr/u16-chr:
28405         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28406         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28407         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28408         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28409         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28410         * modules/unistr/u16-move, modules/unistr/u16-next:
28411         * modules/unistr/u16-prev, modules/unistr/u16-set:
28412         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28413         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28414         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28415         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28416         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28417         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28418         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28419         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28420         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28421         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28422         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28423         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28424         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28425         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28426         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28427         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28428         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28429         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28430         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28431         * modules/unistr/u32-next, modules/unistr/u32-prev:
28432         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28433         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28434         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28435         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28436         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28437         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28438         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28439         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28440         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28441         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28442         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28443         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28444         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28445         * modules/unistr/u8-check, modules/unistr/u8-chr:
28446         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28447         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28448         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28449         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28450         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28451         * modules/unistr/u8-next, modules/unistr/u8-prev:
28452         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28453         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28454         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28455         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28456         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28457         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28458         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28459         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28460         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28461         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28462         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28463         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28464         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28465         * modules/uniwbrk/base, modules/uniwbrk/table:
28466         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28467         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28468         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28469         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28470         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28471         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28472         * modules/uniwidth/width, modules/utf16-ucs4:
28473         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28474         * modules/utf8-ucs4-unsafe:
28475         Change maintainer from Bruno Haible to Daiki Ueno.
28476         This is my guess at the libunistring modules; please feel free
28477         to fix if I guessed incorrectly.
28478         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28479         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28480         * modules/areadlink, modules/array-list, modules/array-mergesort:
28481         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28482         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28483         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28484         * modules/binary-io, modules/bison-i18n, modules/btowc:
28485         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28486         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28487         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28488         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28489         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28490         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28491         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28492         * modules/closedir, modules/concat-filename, modules/copy-file:
28493         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28494         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28495         * modules/csharpcomp-script, modules/csharpexec:
28496         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28497         * modules/dprintf, modules/dprintf-posix, modules/dup:
28498         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28499         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28500         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28501         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28502         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28503         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28504         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28505         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28506         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28507         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28508         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28509         * modules/findprog, modules/findprog-lgpl, modules/floor:
28510         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28511         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28512         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28513         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28514         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28515         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28516         * modules/freadable, modules/freadahead, modules/freadptr:
28517         * modules/freadseek, modules/freopen, modules/frexp:
28518         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28519         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28520         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28521         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28522         * modules/ftello, modules/full-read, modules/full-write:
28523         * modules/fwritable, modules/fwriteerror, modules/gcd:
28524         * modules/get-rusage-as, modules/get-rusage-data:
28525         * modules/getdtablesize, modules/getrusage, modules/gettext:
28526         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28527         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28528         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28529         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28530         * modules/iconv, modules/iconv-h, modules/iconv_open:
28531         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28532         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28533         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28534         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28535         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28536         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28537         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28538         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28539         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28540         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28541         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28542         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28543         * modules/lib-symbol-visibility, modules/libsigsegv:
28544         * modules/linked-list, modules/linkedhash-list, modules/list:
28545         * modules/localcharset, modules/locale, modules/localeconv:
28546         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28547         * modules/log10, modules/log10-ieee, modules/log10f:
28548         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28549         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28550         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28551         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28552         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28553         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28554         * modules/logf, modules/logf-ieee, modules/login_tty:
28555         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28556         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28557         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28558         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28559         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28560         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28561         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28562         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28563         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28564         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28565         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28566         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28567         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28568         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28569         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28570         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28571         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28572         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28573         * modules/posix_spawn, modules/posix_spawn-internal:
28574         * modules/posix_spawn_file_actions_addclose:
28575         * modules/posix_spawn_file_actions_adddup2:
28576         * modules/posix_spawn_file_actions_addopen:
28577         * modules/posix_spawn_file_actions_destroy:
28578         * modules/posix_spawn_file_actions_init:
28579         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28580         * modules/posix_spawnattr_getpgroup:
28581         * modules/posix_spawnattr_getschedparam:
28582         * modules/posix_spawnattr_getschedpolicy:
28583         * modules/posix_spawnattr_getsigdefault:
28584         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28585         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28586         * modules/posix_spawnattr_setschedparam:
28587         * modules/posix_spawnattr_setschedpolicy:
28588         * modules/posix_spawnattr_setsigdefault:
28589         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
28590         * modules/pow, modules/powf, modules/printf-frexp:
28591         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
28592         * modules/progname, modules/propername, modules/pselect:
28593         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
28594         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
28595         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
28596         * modules/read, modules/readdir, modules/readlink:
28597         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
28598         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
28599         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
28600         * modules/relocatable-script, modules/remainder:
28601         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
28602         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
28603         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
28604         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
28605         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
28606         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
28607         * modules/setlocale, modules/sh-quote, modules/shutdown:
28608         * modules/signal, modules/signbit, modules/sigpipe:
28609         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
28610         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
28611         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
28612         * modules/snippet/link-warning, modules/snippet/unused-parameter:
28613         * modules/snprintf, modules/snprintf-posix, modules/spawn:
28614         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
28615         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
28616         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
28617         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
28618         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
28619         * modules/streq, modules/strerror_r-posix, modules/striconv:
28620         * modules/striconveh, modules/striconveha, modules/strncat:
28621         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
28622         * modules/sublist, modules/sys_resource, modules/sys_utsname:
28623         * modules/sys_wait, modules/system-posix, modules/system-quote:
28624         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
28625         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
28626         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
28627         * modules/truncf, modules/truncf-ieee, modules/truncl:
28628         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
28629         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
28630         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
28631         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
28632         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
28633         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
28634         * modules/wait-process, modules/waitpid, modules/wcpcpy:
28635         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
28636         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
28637         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
28638         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
28639         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
28640         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
28641         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
28642         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
28643         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
28644         * modules/write, modules/xconcat-filename, modules/xlist:
28645         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
28646         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
28647         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
28648         * modules/y0, modules/y1, modules/yn:
28649         Remove Bruno Haible as maintainer; if he's the sole maintainer,
28650         change the maintainer to 'all'.  Let's hope someone volunteers.
28652 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
28654         mktime: merge #if/#ifdef usage from glibc
28655         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28656         as that works with both Glibc's and Gnulib's style.
28657         See thread starting at Siddhesh Poyarekar's bug report at:
28658         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
28660 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
28662         git-version-gen: improve option descriptions
28663         * build-aux/git-version-gen: Mention that --prefix and --fallback
28664         have a mandatory argument.
28666 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28668         regex: fix memory leak in compiler
28669         Fix by Andreas Schwab in:
28670         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
28671         * lib/regcomp.c (parse_expression): Deallocate partially
28672         constructed tree before returning error.
28674         regex: merge patch from libc
28675         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
28676         Combine __USE_BSD and __USE_SVID into __USE_MISC.
28677         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
28679 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28681         acl: port to gcc -Wredundant-decls
28682         From a request by Dmitry Antipov in:
28683         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
28684         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
28685         "#ifndef _GL_ACL_H".
28687 2014-06-11  Bruce Korb  <bkorb@gnu.org>
28688         Jim Meyering  <meyering@fb.com>
28690         parse-duration: eliminate 68-year duration limit
28691         * lib/parse-duration.c: Include "intprops.h".
28692         (TIME_MAX): Rename to MAX_DURATION and define to
28693         TYPE_MAXIMUM(time_t).
28694         * modules/parse-duration (Depends-on): Add intprops.
28695         Reported by Jonas 'Sortie' Termansen.
28697 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28699         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
28700         * modules/pthread (Depends-on): Add 'extensions', as it defines
28701         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
28702         (configure.ac-early): New section.
28703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
28704         it is no longer needed.
28706 2014-06-14  Pádraig Brady  <P@draigBrady.com>
28708         pthread: define thread-safe macros on some platforms
28709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
28710         for thread-safe operation on some platforms.
28712 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28714         regex: don't be multithreaded if USE_UNLOCKED_IO.
28715         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
28716         * lib/regex_internal.h: Do not use multithreaded version if
28717         USE_UNLOCKED_IO is defined.  This is a hack, but it works
28718         around a porting bug with coreutils 8.22 on AIX 7.1.
28720 2014-06-11  Daiki Ueno  <ueno@gnu.org>
28722         gettext: update macros to version 0.19
28723         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
28724         depend on gl_EXTERN_INLINE and drop support for older Bison
28725         versions.
28727 2014-06-10  Pádraig Brady  <P@draigBrady.com>
28729         select,poll: fix console handle check on windows 8
28730         lib/poll.c (IsConsoleHandle): Change from testing the lower
28731         2 bits of the handle to the more expensive but accurate syscall.
28732         lib/select.c: Likewise.
28734 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28736         select: fix waiting on anonymous pipes on MS-Windows
28737         * lib/select.c (rpl_select): Fall back to polling when select()
28738         indicates there is nothing to check, while due to the timeout not
28739         expiring, activity is indicated on one of the handles.
28740         Also clear the TIMEOUT argument if the timer does expire.
28742 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28744         times: fix to return non constant value on MS-Windows
28745         * lib/times.c (times): Don't use the process creation time,
28746         rather clock() which on windows returns the number of
28747         clock ticks since the process started.
28749 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
28751         isatty: fix to work on windows 8
28752         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
28753         2 bits of the handle to the more expensive but accurate syscall.
28755 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
28757         maint: fix typo in fdl.texi
28758         * doc/fdl.texi: Fix typo (missing '@').
28759         Somehow this was in fdl.texi but not fdl-1.3.texi.
28761 2014-06-06  Ben Walton  <bdwalton@gmail.com>
28763         mountlist: avoid hasmntopt const type warning on solaris
28764         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
28765         with char * instead of const char *.  Passing the constant string
28766         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
28767         to avoid the warning.
28769 2014-06-04  Eric Blake  <eblake@redhat.com>
28771         maintainer-makefile: delete obsolete code
28772         * top/maint.mk (build_aux): Drop old code, as threatened.
28774         maintainer-makefile: avoid spurious error messages
28775         * top/maint.mk (syntax-check): Guard definition and use of
28776         $(shell) by whether Makefile is present.
28778 2014-06-03  Ben Walton  <bdwalton@gmail.com>
28780         rename: avoid unused-but-set-variable compiler warning
28781         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
28782         it is possible that dst_exists may be set but not used.  Mark it with
28783         the unused attribute to avoid compiler warnings.
28785 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28787         rename: mark a label as potentially unused
28788         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
28789         by marking the out label as potentially unused.
28790         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
28792 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28794         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
28795         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
28797 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28799         acl: apply pure attribute to two functions
28800         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
28801         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
28803 2014-06-01  Pádraig Brady  <P@draigBrady.com>
28805         gnulib-common.m4: add _GL_UNUSED_LABEL
28806         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
28807         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
28809 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28811         dup2, fcntl, fcntl-h: port to AIX 7.1
28812         This fixes some porting problems discovered when testing the latest
28813         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
28814         in grep but it could be important for other applications.
28815         * doc/posix-functions/dup2.texi:
28816         * doc/posix-functions/fcntl.texi:
28817         * doc/posix-headers/fcntl.texi:
28818         Document AIX bugs.
28819         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
28820         Define to 0 if outside 'int' range.
28821         * m4/dup2.m4 (gl_FUNC_DUP2):
28822         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28823         Check for getdtablesize.  If it's available, test a value just
28824         outside its range instead of testing 1000000.  When cross-compiling,
28825         guess that AIX will fail this improved test.
28827 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28829         printf, config.rpath: Port to FreeBSD 10.
28830         Problem reported by Tijl Coosemans in:
28831         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
28832         * build-aux/config.rpath (hardcode_libdir_flag_spec)
28833         (hardcode_direct): Simplify FreeBSD configuration.
28834         (library_names_spec): Don't mishandle FreeBSD 10+.
28835         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
28836         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
28837         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
28838         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
28839         Don't mishandle FreeBSD 10+ when cross-compiling.
28841         ftoastr: work around compiler bug in IBM xlc 12.1
28842         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
28843         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
28844         around a compiler bug in IBM xlc 12.1.0.0: it complains
28845         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
28846         _GL_FLT_PREC_BOUND.'
28848 2014-05-30  Kieran Colford  <colfordk@gmail.com>
28850         valgrind-tests: fixed misleading help message
28851         * m4/valgrind-tests.m4: The help message generated by configure
28852         implied that valgrind was disabled by default, which it wasn't.
28853         Adjusted the help message using s/enable/disable/ to clarify.
28855 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
28857         isfinite, isinf, isnan tests: fix for little-endian PowerPC
28858         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
28859         first double of a PowerPC "double double" pair.
28860         * tests/test-isinf.c (test_isinfl): Likewise.
28861         * tests/test-isnan.c (test_long_double): Likewise.
28862         * tests/test-isnanl.h (main): Likewise.
28863         * tests/test-signbit.c (test_signbitl): Likewise.
28865 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
28867         exclude-tests: port to AIX 7.1
28868         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
28869         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
28870         the regex code uses locks.
28872 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
28874         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
28875         Without this fix, Emacs would sometimes call sigprocmask instead
28876         of pthread_sigmask, which is a no-no in multithreaded applications.
28877         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
28878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28879         Suppress check for pthread_sigmask working without -lpthread if
28880         the application always links with -lpthread.  Do not link with
28881         $LIBMULTITHREAD if gl_THREADLIB is not defined.
28882         * m4/timer_time.m4 (gl_TIMER_TIME):
28883         Require gl_THREADLIB only if it is defined.  Do not append
28884         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
28886 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
28888         gnulib-tool: wget translations using --no-verbose rather than --quiet
28889         This allows the user to see error messages if any (--quiet hides them)
28890         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
28892 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
28894         gnulib-tool: adjust translation wget to avoid a https redirection
28895         Context: http://translationproject.org/latest/gnulib redirects to
28896            https://translationproject.org/latest/gnulib/
28897         Rationale: if the user falls back to wget, she doesn't have rsync and
28898         is probably in a minimal build environment, where packages such as
28899         'ca-certificates' are missing as well, resulting in a failed (and
28900         difficult to detect since ignored) translation initial fetch.
28901         Consequently let's avoid https if possible, and add the missing
28902         trailing slash.  This also avoids an unnecessary 302 redirection.
28903         * gnulib-tool: Add trailing slash to gnulib URL.
28905 2014-05-22  Pádraig Brady  <P@draigBrady.com>
28907         getlogin_r-tests: check return value rather than errno
28908         * tests/test-getlogin_r.c (main): As per POSIX we should be
28909         verifying the return value from getlogin_r() rather than errno.
28911 2014-05-22  Pádraig Brady  <P@draigBrady.com>
28913         getlogin_r-tests: fix various issues in recent change
28914         * tests/test-getlogin_r.c: Include required headers that were
28915         missed in recent commit eec20b4e.
28916         Also consistently check the errno rather than the return value from
28917         getlogin_r as POSIX only specifies that non zero is returned on error.
28918         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
28920 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
28922         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
28923         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
28924         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
28925         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
28926         * lib/spawn-pipe.c:
28927         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
28928         and then 'int open64(const char *, int, ...);', which means the
28929         declaration for 'open' gets lost if we later '#undef open'.
28930         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
28931         where the compilation reported the non-fatal error "In function
28932         'openat_proc_name' ... warning: implicit declaration of function
28933         'open'".  In this case the error is relatively harmless, but in
28934         other cases it might not be so minor.
28936 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28938         xalloc: don't potentially generate invalid code for xmemdup calls
28939         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
28940         this function can initialize the newly-allocated storage with new
28941         pointers, which means this function is not malloc-like.  See:
28942         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
28944 2014-05-19  Pádraig Brady  <P@draigBrady.com>
28946         getlogin_r-tests: avoid false failure under sudo/ssh etc.
28947         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
28948         changes from commit 97249cf29 to not depend on environment variables.
28950 2014-05-18  Pádraig Brady  <P@draigBrady.com>
28952         getlogin-tests: avoid false failure under cron
28953         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
28954         since that's not what's under test.  Centos 6 was seen to return
28955         EINVAL for ttyname() when run from cron.
28957 2014-05-16  Jim Meyering  <meyering@fb.com>
28959         mbrtowc.m4: fix a comment typo
28960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
28961         emitted documentation string.
28963 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28965         mbrlen, mbrtowc: fix bug with empty input
28966         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
28967         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
28968         so this is mainly for documentation.
28969         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
28970         (gl_FUNC_MBRTOWC): Use it.
28971         * tests/test-mbrtowc.c (main): Test for the bug.
28973 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
28975         doc: document mbrtowc and mbrlen problem with empty input
28976         * doc/posix-functions/mbrlen.texi (mbrlen):
28977         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28978         Document portability problem when the input string is empty.  See:
28979         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
28981         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
28982         Problem reported by Eli Zaretskii in:
28983         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
28984         * doc/posix-functions/execl.texi (execl):
28985         * doc/posix-functions/execle.texi (execle):
28986         * doc/posix-functions/execlp.texi (execlp):
28987         * doc/posix-functions/execv.texi (execv):
28988         * doc/posix-functions/execve.texi (execve):
28989         * doc/posix-functions/execvp.texi (execvp):
28990         Mention spawn+exit problem on non-Cygwin Windows platforms.
28992 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
28994         getlogin-tests: avoid false failure under sudo/ssh etc.
28995         * modules/getlogin-tests (configure.ac): Check for ttyname().
28996         * tests/test-getlogin.c (main): Don't depend on environment variables
28997         to correlate with getlogin(), since sudo and ssh etc. can tamper
28998         with the LOGNAME and USER env vars.  Instead lookup the name from
28999         the uid associated with the stdin tty.
29001 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29003         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29004         These were found when building the latest grep snapshot on IRIX 6.5.
29005         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29006         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29007         never used later.
29008         * lib/quotearg.c (quoting_options_from_style):
29009         * lib/xstrtol.c (__xstrtol):
29010         Use enum instead of 0, to pacify IRIX 6.5 cc.
29012 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29014         gitlog-to-changelog: revert inclusion of git-log-fix file
29015         * build-aux/git-log-fix: Delete dummy file.
29016         * modules/gitlog-to-changelog: Don't reference (overwrite)
29017         the project specific git-log-fix file.
29019 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29021         maint.mk: Relax the copyright check to cater for non FSF projects
29022         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29023         to not require the "Free" suffix after the copyright years.
29025 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29027         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29028         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29029         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29030         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29031         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29033 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29035         exclude: port to strict C99
29036         Strict C does not allow converting a function pointer to void *
29037         and vice versa.  Pass a pointer to a function pointer instead.
29038         * lib/exclude.c (add_exclude_file):
29039         Pass the address of the function pointer.
29040         (call_addfn): And deference the address here, to match.
29042 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29044         regex: do not depend on malloc-gnu
29045         * modules/regex (Depends-on): Remove malloc-gnu.
29046         It's no longer needed, because of the 2012-12-29 patch
29047         "regex: port to hosts where malloc (0) == NULL".
29048         Reported by Nathan Kennedy in:
29049         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29051 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29053         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29054         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29055         * doc/posix-functions/expl.texi: Mention the workaround.
29057 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29059         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29060         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29061         size to be zero even when the pointer is nonnull.  This
29062         accommodates the use case where P is malloc (0) and *PN is 0 on a
29063         host where malloc (0) yields nonnull.
29065 2014-04-09  Eric Blake  <eblake@redhat.com>
29067         fts: avoid unnecessary strlen calls
29068         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29070 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29072         fts: avoid unnecessary strlen calls
29073         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29074         when that can be faster than strlen.
29076 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29078         fts: avoid unnecessary strlen calls
29079         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29080         (fts_build): Store the length of the dp->d_name entry in a local variable
29081         instead of calling strlen() several times via the above, removed macro.
29082         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29083         run by ~4%, yet this reduces the execution time by about a third if run
29084         via "ltrace -c rm -rf some-dir".
29086 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29088         obstack: Remove ancient NeXTSTEP gcc support conditional
29089         This change will ease merging with glibc.  The "#if ... __NEXT__"
29090         causes a warning with -Wundef which glibc now enables by default.
29091         Problem reported by Will Newton in
29092         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29093         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29094         so go with that.
29095         * lib/obstack.h (__extension__):
29097 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29099         obstack: merge with glibc changes
29100         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29101         This is mostly indenting and commentary changes.
29102         Instances of 'register' have been removed.
29104 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29106         strftime: wrap macros in "do {...} while(0)"
29107         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29108         this macro in "do {...} while(0)" to prevent false use as a
29109         single statement, e.g., in an un-braced "{}" else-block.
29110         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29111         (strftime_case_): Remove 'else' after 'goto' - which was the
29112         only non-fatal, un-braced use of one of the above macros.
29113         Spotted by coverity (NESTING_INDENT_MISMATCH).
29115 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29117         modechange: avoid memory leaks for invalid octal modes
29118         * lib/modechange.c (mode_compile): During the parsing of
29119         notations like +40, free the 'mc' buffer for invalid mode
29120         strings like +17777 (greater than the maximum octal mode),
29121         =18 (bad octal mode characters) or u=1 ('affected' with
29122         octal modes).
29123         Reproducer, e.g.:
29124             $ valgrind --leak-check=full chmod +17777 file
29125         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29126         add notations +40, 00440, etc.".
29127         Spotted by coverity (RESOURCE_LEAK).
29129 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29131         gitlog-to-changelog: include a dummy git-log-fix file
29132         Problem reported by Nathan Stratton Treadway in:
29133         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29134         * build-aux/git-log-fix: New file.
29136 2014-03-13  Jim Meyering  <meyering@fb.com>
29138         gitlog-to-changelog: also include the file, git-log-fix
29139         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29140         Reported by Assaf Gordon.
29142 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29144         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29145         This fixes a bug when ignoring case and when comparing the
29146         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29147         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29148         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29149         titlecase letter is neither lowercase nor uppercase, but
29150         uppercasing the titlecase letter (via towupper) yields the
29151         uppercase letter, so the two letters should match when ignoring case.
29152         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29153         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29154         Don't test whether a character is lowercase before uppercasing it.
29156 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29158         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29159         This is basically one of the options Bruno Haible proposed in:
29160         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29161         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29162         * lib/stdint.in.h: Use it.
29163         * modules/stdint (Depends-on): Add sys_types.
29165 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29167         parse-datetime: fix crash or infloop in TZ="" parsing
29168         * lib/parse-datetime.y (parse_datetime): Break out of the
29169         TZ="" parsing loop once the second significant " is found.
29170         Also skip over any subsequent whitespace to be consistent
29171         with the non TZ= case.
29172         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29174 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29176         savedir: new symbol for fast-read version
29177         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29178         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29179         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29180         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29182 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29184         unistd: port readlink to Mac OS X 10.3.9
29185         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29186         around self-include problem in Mac OS X 10.3.9 when combined with
29187         readlink module.  Problem reported by Klaus Zietler in
29188         <http://bugs.gnu.org/16825>.
29190 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29192         diffseq: remove TOO_EXPENSIVE heuristic
29193         Problem with diffutils reported by Vincent Lefevre in
29194         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29195         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29196         Although appropriate for circa-1993 hardware, these days the heuristic
29197         seems to be more trouble than it's worth.
29198         * lib/diffseq.h: Modernize citations.
29199         (struct context): Remove member too_expensive.
29200         All uses changed.
29201         (struct partition): Remove members lo_minimal, hi_minimal.
29202         All uses changed.
29203         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29204         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29205         1993 to make 'diff' run faster (but not as well) on large inputs.
29206         These days, computers are fast enough that it's typically better
29207         to run slower but more accurately.
29208         * lib/fstrcmp.c: Remove duplicate comment.
29209         * lib/fstrcmp.c (strcmp_bounded):
29210         * lib/git-merge-changelog.c (compute_differences):
29211         Adjust to diffseq.h changes.
29212         * NEWS: Document the change.
29214         savedir: simplify by using stpcpy
29215         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29216         (streamsavedir): Use stpcpy instead.
29217         * modules/savedir (Depends-on): Add stpcpy.
29219 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29221         spawn: fix link error on uclibc
29222         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29223         to incorporate -lrt if needed (on uclibc for example).
29224         * modules/posix_spawn: Reference the substituted LIB.
29226 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29227         timer: fix uClibc detection of threading
29228         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29229         enabled in uClibc.
29231 2014-02-21  Eric Blake  <eblake@redhat.com>
29233         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29234         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29236 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29238         exclude: add support for posix regexps
29240         This commit adds support for POSIX extended regular expressions
29241         and fixes a long-standing memory leak (pattern buffer was never
29242         freed).  It also implements a new interface function to read
29243         exclude patterns from a FILE, which passes an additional parameter
29244         to its callback function, thereby allowing to preserve its state
29245         between invocations.
29247         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29248         (pattern_buffer): New struct.
29249         (exclude): New member patbuf.
29250         (exclude_add_pattern_buffer): New function.
29251         (free_exclude_segment): Free regexps.
29252         (free_exclude): Free allocated pattern buffers.
29253         (exclude_patopts): New function.
29254         (file_pattern_matches): Use exclude_patopts.
29255         (add_exclude): support regexps.
29256         (add_exclude_fp): New function.
29257         (add_exclude_file): Rewrite using add_exclude_fp.
29258         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29259         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29260         (add_exclude_fp)
29261         (add_exclude_file): Rewrite using add_exclude_fp.
29262         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29263         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29264         (add_exclude_fp)
29265         (exclude_add_pattern_buffer): New prototypes.
29266         * modules/exclude: Depends on regex and filename.
29268 2014-02-20  Eric Blake  <eblake@redhat.com>
29270         maintainer-makefiles: use $(SED) for syntax check
29271         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29272         * top/maint.mk: Change sed to $(SED).
29274 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29275             Paul Eggert  <eggert@cs.ucla.edu>
29277         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29278         Patch based on an idea by Dick Streefland in
29279         <https://savannah.gnu.org/patch/?7892>.
29280         * NEWS: Document this.
29281         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29282         (direntry_t, comparison_function): New types.
29283         (direntry_cmp_name): New function.
29284         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29285         (streamsavedir, savedir): New arg OPTION.
29286         (streamsavedir): Simplify memory allocation.
29287         (fdsavedir): Remove.
29288         * lib/savedir.h (enum savedir_option): New type.
29289         (streamsavedir, savedir): New arg OPTION.
29290         (fdsavedir): Remove.
29292 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29294         file-type: add support for doors and other less-common file types
29295         Problem with S_ISDOOR reported by Rich Burridge.
29296         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29297         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29298         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29300 2014-01-23  Eric Blake  <eblake@redhat.com>
29302         pthread: work around winpthread header pollution on mingw
29303         * lib/time.in.h: Move pthread workarounds...
29304         * lib/pthread.in.h: ...here.
29305         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29306         detect macro pollution on mingw.
29307         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29309 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29311         qacl: check for fchmod
29312         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29313         and qset-acl.c both use HAVE_FCHMOD.
29315 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29317         fdopen-tests: port to Tru64
29318         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29319         descriptor that is not open, as POSIX doesn't specify the
29320         resulting behavior and the test does not work on Tru64.
29321         Problem reported by Steven M. Schweda in:
29322         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29324         stdalign: port to HP-UX compilers
29325         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29326         if __HP_cc or __HP_aCC are nonzero.
29328 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29330         strtoimax: port to platforms lacking 'long long'
29331         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29332         check whether strtoll is declared, which causes the C file to
29333         wrongly report an error.  Problem reported by Steven M. Schweda in:
29334         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29335         * lib/strtoimax.c (strtoull):
29336         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29337         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29339 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29341         relocatable-perl: fix texi syntax
29342         * doc/relocatable-maint.texi: Escape braces.
29344 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29346         relocatable-perl: like relocatable-script, but for Perl scripts
29347         * build-aux/relocatable.pl.in: Add.
29348         * doc/relocatable-maint.texi: Add documentation.
29349         * modules/relocatable-perl: Add.
29351 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29353         tests: fix export bug in previous patch
29354         Problem reported by Jim Meyering.
29355         * tests/init.sh (re_shell): New var, which is exported instead of
29356         re_shell_.
29358         tests: simplify porting to Solaris 10 /bin/sh
29359         Some test cases in 'grep' need a shell that groks '$(';
29360         export re_shell_ for their benefit.  Problem reported for 'grep'
29361         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29362         * tests/init.sh (re_shell_): Export if it's used.
29364 2014-01-06  Eric Blake  <eblake@redhat.com>
29366         md5, sha1, sha256, sha512: support older autoconf
29367         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29368         for autoconf < 2.63b.
29370         include_next: port to autoconf 2.63
29371         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29373 2014-01-04  Jim Meyering  <meyering@fb.com>
29375         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29376         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29377         so that "make sc_maint" will ding anyone who puts non-ascii
29378         in any of gnulib's .texi files.
29380 2014-01-03  Jim Meyering  <meyering@fb.com>
29382         freadable, fwritable, fwriting: declare with the "pure" attribute
29383         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29384         * lib/fwritable.h (fwritable): Likewise.
29385         * lib/fwriting.h (fwriting): Likewise.
29386         Suggested by Bruno Haible.
29388         maint.mk: adapt openat.h-include-without-use test
29389         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29390         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29391         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29392         With this change, running "make sc_maint" in gnulib's top-level
29393         directory now passes for me.
29395 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29397         doc: use ASCII in .texi files where UTF-8 isn't needed
29398         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29399         * doc/posix-functions/setkey.texi, doc/regex.texi:
29400         Use ASCII input, not UTF-8.
29402 2014-01-02  Jim Meyering  <meyering@fb.com>
29404         freading: declare with the "pure" attribute
29405         * lib/freading.h (freading): Declare with the "pure" attribute.
29407         manywarnings: remove -Wmudflap
29408         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29409         it is no longer supported in gcc-4.9-to-be.
29411 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29413         relocatable-script: remove unused code
29414         Problem reported by Reuben Thomas in:
29415         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29416         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29418 2014-01-01  Jim Meyering  <meyering@fb.com>
29420         maint: fix public-submodule-commit to work with newer git
29421         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29422         We were over-quoting the test arguments, and somewhere prior to
29423         version 1.8.5.2.229, git stopped removing those excess quotes,
29424         which made the test fail, since the unexpanded strings would
29425         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29426         command wasn't even being run.
29428 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29430         doc: update main copyright year
29431         * doc/gnulib.texi: Update copyright date.
29433 2014-01-01  Eric Blake  <eblake@redhat.com>
29435         version-etc: new year
29436         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29437         * all files: run 'make update-copyright'
29439 2013-12-24  Eric Blake  <eblake@redhat.com>
29441         passfd: give nicer error for recvfd at eof
29442         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29443         * tests/test-passfd.c (main): Enhance test to cover this.
29445 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29447         gettimeofday: port recent C++ fix to Emacs
29448         Without this further patch, Emacs won't build due to
29449         the portcheck failing.  Also, this simplifies the patch a bit.
29450         * lib/time.in.h (localtime, gmtime): Don't replace unless
29451         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29452         * lib/time.in.h (localtime, gmtime):
29453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29454         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29455         * modules/time (time.h):
29456         Don't worry about the possibility of localtime and gmtime
29457         being absent; they're present in all C libraries we know about.
29458         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29459         Don't assume sys_time is present and has been initialized.
29460         Instead, use a hack that should work even if it hasn't been.
29461         Don't use a portcheck for gmtime or localtime; this supports
29462         the hack.
29463         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29465 2013-12-17  John W. Eaton  <jwe@gnu.org>
29467         gettimeofday: fix C++ crosscompilation
29469         Never replace gmtime and localtime by macros when compiling with
29470         C++, this prevents <ctime> from being included.
29472         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29473         define gmtime and localtime as preprocessor macros.  Instead
29474         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29475         REPLACE_LOCALTIME substitutions.
29476         * lib/time.in.h: Declare gmtime and localtime when needed.
29477         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29478         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29479         * modules/time: Depend on gettimeofday, and substitute the above
29480         variables in time.h.
29482 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29484         qacl: port to Windows better
29485         See Eli Zaretskii in
29486         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29487         * lib/file-has-acl.c (acl_access_nontrivial):
29488         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29489         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29491 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29493         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29494         * lib/gl_openssl.h: Cast void pointers to a specific type.
29496 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29498         open-tests: fix build failure with -Werror=old-style-declaration
29499         * tests/test-open.h: Reorder the inline to avoid the issue.
29501 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29503         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29504         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29505         init time, so that if early checks find crypto routines,
29506         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29507         avoiding link failures.
29509 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29511         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29512         This provides a new way to specify the default for
29513         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29514         Emacs uses this, as well as the old way.
29515         This attempts to implement a suggestion by Pádraig Brady in
29516         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29517         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29518         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29520         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29521         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29522         Add support for a new option, --with-openssl=auto, which causes
29523         the library to be used if available and silently ignored if not.
29524         Add support to allow configure.ac to specify its own
29525         default, by setting with_openssl_default before invoking gl_INIT.
29527 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29529         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29530         Problem reported by Daiki Ueno in:
29531         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29532         * tests/test-open.h (__always_inline):
29533         New macro, if not already defined.
29534         (test_open): Use it.
29536 2013-12-04  Eric Blake  <eblake@redhat.com>
29538         include_next: minimize code duplication
29539         * modules/include_next (Depends-on): Add absolute-header.
29540         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29541         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29543 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29545         getcwd: fix compile error in configure check
29546         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29548 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29550         regex: suppress core dumps from detection code
29551         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29552         to suppress core dumps that may well occur on glibc systems.
29553         These core dumps might not be cleaned up automatically, or could
29554         trigger some system core dump handling logic.
29556 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29558         md5, sha1, sha256, sha512: support mandating use of openssl
29559         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29560         description, to list the now 3 separate options.  also don't
29561         mention the default=no, since this is implicit given the option
29562         is described as --with-openssl rather than --without-openssl.
29563         If projects change the default they're free to document that.
29564         with --with-openssl[=yes] we now error out when the specified
29565         hash algorithm is not available in libcrypto.
29567 2013-12-03  Ivailo  <xakepa10@gmail.com>
29569         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29570         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29571         -Wformat-nonliteral checks, as these edge cases are part of the test.
29573 2013-12-03  Eric Blake  <eblake@redhat.com>
29575         regex: avoid glibc deadlock during configure
29576         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29577         glibc bug 15078 in turn triggers bug 16159.
29578         Reported by Michal Privoznik.
29580 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29582         md5, sha1, sha256, sha512: use openssl routines if available.
29583         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29584         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29585         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29586         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
29587         in the standard system location.
29588         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
29589         * m4/sha256.m4: Likewise with SHA256.
29590         * m4/sha512.m4: Likewise with SHA512.
29591         * m4/md5.m4: Likewise with MD5.
29592         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
29593         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
29594         * lib/sha256.h: Likewise with SHA256.
29595         * lib/sha512.h: Likewise with SHA512.
29596         * lib/md5.h: Likewise with MD5.
29597         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
29598         * lib/sha256.c: Likewise with SHA256.
29599         * lib/sha512.c: Likewise with SHA512.
29600         * lib/md5.c: Likewise with MD5.
29601         * modules/crypto/sha1 (Link:): Add the new optional lib.
29602         (Depends-on:): Add dependency on extern-inline.
29603         * modules/crypto/sha256: Likewise.
29604         * modules/crypto/sha512: Likewise.
29605         * modules/crypto/md5: Likewise.
29606         * modules/crypto/sha1-tests: Reference the lib here too.
29607         * modules/crypto/md5-tests: Likewise.
29608         * modules/crypto/gc-des-tests: Likewise.
29609         * modules/crypto/gc-hmac-md5-tests: Likewise.
29610         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29611         * modules/crypto/gc-hmac-sha256-tests: Likewise.
29612         * modules/crypto/gc-hmac-sha512-tests: Likewise.
29613         * modules/crypto/gc-md5-tests: Likewise.
29614         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29615         * modules/crypto/gc-sha1-tests: Likewise.
29616         * modules/crypto/gc-tests: Likewise.
29617         * modules/crypto/hmac-md5-tests: Likewise.
29618         * modules/crypto/hmac-sha1-tests: Likewise.
29619         * modules/crypto/hmac-sha256-tests: Likewise.
29620         * modules/crypto/hmac-sha512-tests: Likewise.
29622 2013-11-29  RV1971  <rv1971@web.de>
29624         base64: (trivial) fix compilation regression on some compilers
29625         * lib/base64.c: Don't return the void function,
29626         instead split to a separate return statement.
29628 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29630         ignore-value: revert previous code change
29631         * lib/ignore-value.h (ignore_value): Use __extension__ and
29632         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
29633         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
29634         Change the comment to try to explain this better.
29636 2013-11-27  Pádraig Brady  <P@draigBrady.com>
29638         selinux-h: improve stub types and add more stub functions
29640         * lib/se-selinux.in.h: Change security_context_t to a typedef
29641         rather than a define, as it's a pointer type and so is better
29642         as a typedef to avoid issues declaring multiple variables
29643         with the comma operator.  Also add stub for string_to_security_class().
29644         * lib/se-context.in.h: Add stub functions for
29645         context_{type,range,role,user}_get().
29647 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29649         ignore-value: prefer GCC version back through 2.0
29650         The code didn't match the comments, so I did a bit of software
29651         archaeology.  GCC 2.0 seems to support __extension__ and
29652         __typeof__, so fix both code and comments to use 2.0.
29653         * lib/ignore-value.h (ignore_value): Use __extension__ and
29654         __typeof__ for GCC 2.0 through 3.3, too.
29656 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
29658         pty: Activate the signature wrapper of forkpty.
29659         The intended preprocessor macro HAVE_FORKPTY is
29660         never defined, yet `lib/forkpty.c' depends on it.
29662         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
29663         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
29664         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
29666 2013-11-18  Jim Meyering  <meyering@fb.com>
29667         and Paul Eggert  <eggert@cs.ucla.edu>
29669         quotearg: don't attempt to store 1 << 31 into an "int"
29670         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
29671         gcc's new -fsanitize=undefined and running its tests triggered some
29672         new test failures due to undefined behavior, all with this diagnostic:
29673           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
29674             cannot be represented in type int
29675         Rather than shifting "1" left to form a mask, shift the bits right and
29676         simply use "1" as the mask.
29678 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
29680         error: depend on stdio
29681         Problem reported by Nikos Mavrogiannopoulos in
29682         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
29683         * modules/error (Depends-on): Add stdio.
29685 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
29687         * doc/relocatable-maint.texi (Supporting Relocation): Improve
29688         wording.
29689         Reported by Reuben Thomas <rrt@sc3d.org>.
29691 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29693         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
29694         New function and macro, to work around _DARWIN_C_SOURCE problem.
29695         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
29697 2013-11-11  Pádraig Brady  <P@draigBrady.com>
29699         base64: provide a fast path for encoding well sized buffers
29700         Avoid conditionals in the base64 encoding loop,
29701         which was seen to give 60% better throughput.
29702         * lib/base64.c (base64_encode_fast): A new function to be called
29703         when we don't want to NUL terminate, and we have enough space
29704         in the output to encode the given input.
29705         (base64_encode): Call the _fast() version when appropriate.
29706         Also remove a redundant mask with 0x3F on the first encoded byte.
29708 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29710         extern-inline: port better to OS X 10.9
29711         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
29712         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
29713         OS X 10.9, except for g++ where the bug is still present.
29714         See <http://trac.macports.org/ticket/41033>.
29716 2013-11-08  Eric Blake  <eblake@redhat.com>
29718         fpending: fix regression on DragonFly BSD
29719         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
29720         * lib/fpending.h (__fpending): Don't declare twice.
29721         Reported by GW in
29722         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
29724 2013-11-05  Jim Meyering  <meyering@fb.com>
29726         hash: relax license to LGPLv2+, for libguestfs
29727         * modules/hash (License): Change from GPL to LGPLv2+.
29729 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29731         intprops: port to Oracle Studio c99
29732         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
29733         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
29735 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29737         obstack: pacify HP C
29738         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
29739         warning "conversion from pointer to smaller integer" from HP
29740         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
29741         C89 or later nowadays, so cast to void instead of int.  Privately
29742         reported by H.Merijn Brand.  Also, change header to match glibc's,
29743         to make checking against glibc easier.
29745 2013-10-29  Jim Meyering  <meyering@fb.com>
29747         maint.mk: prefer gpgv2 over gpgv
29748         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
29749         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
29750         Reported by Gary Vaughan.
29752 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29754         isnan: port to VAX
29755         Reported by John Klos for NetBSD-5/VAX in
29756         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
29757         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
29758         (FUNC): Use it.
29760 2013-10-28  Jim Meyering  <meyering@fb.com>
29762         gnulib-tool: protect against CDPATH
29763         * gnulib-tool: Many "cd" built-in functions print a directory name
29764         to stdout when CDPATH is set, e.g.,
29765           $ bash -c 'CDPATH=/; cd tmp'
29766           /tmp
29767         Unset it, when possible.  Prompted by a comment from Bruce Korb.
29769         maint.mk: restore functionality removed by recent change...
29770         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
29771         the context of a shallow-cloned gnulib repository: "git describe"
29772         would fail in such a directory.  However, that change made it so
29773         the reported gnulib revision no longer includes the version number
29774         or a commit count, even when run from a full clone.
29775         * top/maint.mk (gnulib-version): Use the full "git describe"
29776         output when possible, e.g., the form above, rather than the
29777         abbreviated, no-tag, no-commit-count string, and fall back to
29778         using a 10-byte hash, rather than the default minimal-length
29779         hash prefix, since while the minimal-length one may be fine today,
29780         it is likely not to be unique for very long.
29782 2013-10-26  Jim Meyering  <meyering@fb.com>
29784         maint.mk: fix "release" target to build _version
29785         This fixes a bug in README-release whereby following the outlined
29786         steps, one would publish a tarball whose programs would report
29787         --version output not consistent with the package version number.
29788         This bug caused grep-2.15 to produce a grep program whose
29789         --version option made it print 2.14.56-1e3d rather than 2.15.
29790         * top/maint.mk (release): Making this target build "_version"
29791         ensures that the new version number is reflected in configure.
29793 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
29795         install-reloc: Support multi-binary installation.
29796         * build-aux/install-reloc: Support installing multiple programs in
29797         one invocation, as done by Automake starting with commit
29798         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
29799         Haible <bruno@clisp.org>, archived at
29800         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
29801         Reported by Sylvain <beuc@gnu.org>.
29803 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29805         selinux-h: Really build without selinux when library is missing.
29806         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
29807         continue without selinux, as already told in the warning message.
29809 2013-10-21  Jim Meyering  <meyering@fb.com>
29811         regex: also remove dependency on HAVE_WCSCOLL
29812         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
29814 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
29816         xfreopen: Fix typo. s/frepoen/freopen/
29817         * lib/xfreopen.c: Fix description.
29818         * modules/xfreopen: Likewise.
29820 2013-10-21  Jim Meyering  <meyering@fb.com>
29822         regex: don't depend on wcscoll
29823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
29824         It is no longer used.
29826 2013-10-20  Jim Meyering  <meyering@fb.com>
29828         error: add the printf attribute to a static function
29829         * lib/error.c (error_tail): Add the printf attribute, to placate
29830         gcc's -Werror=suggest-attribute=format option.
29832 2013-09-30  Jim Meyering  <meyering@fb.com>
29834         fpending, obstack, strerror-override: use pure+const function attrs
29835         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
29836         * lib/obstack.c (_obstack_allocated_p): Likewise.
29837         * lib/obstack.h (_obstack_memory_used): Likewise.
29838         (_obstack_memory_used): Likewise.
29839         * lib/strerror-override.h (strerror_override): Declare with
29840         the "const" attribute.
29842 2013-10-18  Eric Blake  <eblake@redhat.com>
29844         extern-inline: make safe for -Wundef usage
29845         Reported by Vladimir 'phcoder' Serbinenko in
29846         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
29847         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
29849 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29851         mkfifo-tests, etc.: allow HP-UX 11.11 bug
29852         Problem reported by Daniel Richard G. in
29853         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
29854         * doc/posix-functions/mkfifo.texi (mkfifo):
29855         * doc/posix-functions/mkfifoat.texi (mkfifoat):
29856         * doc/posix-functions/mknod.texi (mknod):
29857         * doc/posix-functions/mknodat.texi (mknodat):
29858         Document the HP-UX 11.11 bug.
29859         * tests/test-mkfifo.h (test_mkfifo):
29860         Allow the HP-UX 11.11 bug.
29862 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29864         acl: allow cross-compilation to Gentoo
29865         Problem reported by Gabriel Marcano in
29866         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
29867         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
29868         test only whether it links.
29870 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29872         mgetgroups: remove dependency on realloc-gnu
29873         The dependency violates the comment in realloc-gnu, which
29874         says that tests can't depend on realloc-gnu; some tests depend
29875         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
29876         Problem reported by Daniel Richard G. in
29877         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
29878         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
29879         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
29880         not realloc-gnu.
29882 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29884         regex-tests: port to HP-UX 11.11
29885         Problem reported by Daniel Richard G. in
29886         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
29887         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
29889 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29891         verify: document some 'assume' pitfalls
29892         * doc/verify.texi (Compile-time Assertions):
29893         Mention that 'assume (E)' can sometimes slow things down.
29894         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
29896 2013-10-10  Eric Blake  <eblake@redhat.com>
29898         strtoumax: fix typo in previous commit.
29899         * modules/strtoumax (Depends-on): Fix typo.
29900         * modules/strtoimax (Depends-on): Likewise.
29902 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29904         strtoumax: port to Solaris 8
29905         This problem was introduced in the recent HP-UX patch.
29906         Reported by Tom G. Christensen in
29907         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
29908         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
29909         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
29911 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
29913         strtoimax, strtoumax: port to HP-UX 11.11
29914         Problem reported by Daniel Richard G. in
29915         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
29916         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
29917         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
29918         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
29919         REPLACE_STRTOUMAX.
29920         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
29921         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
29922         Replace the function if defined as a macro but not as a function.
29923         * modules/inttypes-incomplete (inttypes.h): Substitute
29924         REPLACE_STRTOUMAX.
29925         * modules/strtoumax (configure.ac): Replace strtoumax if
29926         REPLACE_STRTOUMAX.
29928 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29930         strtoimax: port to HP-UX 11.11
29931         Problem reported by Daniel Richard G.
29932         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
29933         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
29934         they might clash with inttypes.h.
29936 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29938         New module 'count-trailing-zeros'.
29939         * MODULES.html.sh: Mention it.
29940         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
29941         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
29942         * modules/count-trailing-zeros-tests:
29943         * tests/test-count-trailing-zeros.c:
29944         New files.
29946         count-leading-zeros: port to MSC; support types wider than 64 bits
29947         The ideas behind the MSC port are stolen from Emacs.
29948         * lib/count-leading-zeros.h:
29949         Don't include verify.h: it's no longer needed, as types wider than
29950         64 bits are now supported.
29951         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
29952         performance with MSC.  All uses changed.  Do not assume that TYPE
29953         has at most 64 bits.
29954         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
29955         All uses changed.  Fold the subtraction from 31 into the table.
29957         count-one-bits: port to MSC; support types wider than 64 bits
29958         The ideas behind the MSC port are stolen from Emacs.
29959         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
29960         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
29961         Don't include verify.h: it's no longer needed, as types wider than
29962         64 bits are now supported.
29963         (COUNT_ONE_BITS_GENERIC): New macro.
29964         (popcount_supported) [_MSC_VER]: New inline function.
29965         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
29966         performance with MSC.  All uses changed.  Do not assume that TYPE
29967         has at most 64 bits.
29968         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
29970 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
29972         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
29973         * lib/mountlist.c (read_file_system_list): fix leak of directory
29974         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
29976 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29978         tests: improve diagnostic when an assertion fails
29979         * tests/macros.h (ASSERT): Report the assertion that failed.
29981 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29983         verify: new macro 'assume'
29984         This is taken from Emacs, and should be generally useful.
29985         * doc/verify.texi (assume): Document it.
29986         * lib/verify.h (assume): New macro.
29987         (__has_builtin): Expand to 0 if not defined.
29989 2013-09-26  Eric Blake  <eblake@redhat.com>
29991         dup2, dup3: work around another cygwin crasher
29992         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
29993         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
29994         * tests/test-dup2.c (main): Likewise.
29995         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
29996         * lib/dup3.c (dup3): Likewise.
29997         * doc/posix-functions/dup2.texi (dup2): Document it.
29998         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30000         getdtablesize: work around cygwin issue
30001         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30002         * modules/getdtablesize (configure.ac): Build replacement.
30003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30004         * modules/unistd (Makefile.am): Expose the witness.
30005         * lib/unistd.in.h (getdtablesize): Declare replacement.
30006         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30007         * tests/test-getdtablesize.c (main): Test it.
30008         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30010 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30012         pmccabe2html: escaping of special characters
30013         Escape all '<', '>', and '&' in HTML output.
30014         * build-aux/pmccabe2html (html_fnc): Call gsub()
30015         instead of sub() to capture all '<', '>', and '&'.
30016         Neither of '<' and '>' is special in a regexp,
30017         so first arguments to gsub() are corrected. Also,
30018         in replacement strings, ampersand must be escaped.
30019         Finally, '&' must be handled first, then '<' and '>'.
30021 2013-09-24  Eric Blake  <eblake@redhat.com>
30023         manywarnings: enable nicer gcc warning messages
30024         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30025         some -f options for optimal warnings.
30027 2013-09-21  Jim Meyering  <meyering@fb.com>
30029         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30030         * lib/timespec-add.c (timespec_add): Also replace 999999999
30031         with TIMESPEC_RESOLUTION - 1.
30032         * lib/timespec-sub.c (timespec_sub): Likewise.
30034 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30036         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30037         Problem reported by Dagobert Michelsen via Eric Blake in
30038         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30039         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30040         not AC_COMPILE_IFELSE.
30042 2013-09-23  Eric Blake  <eblake@redhat.com>
30044         configmake: support new --runstatedir option
30045         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30046         even if autoconf was too old to provide the command line option.
30047         * modules/configmake (Makefile.am): Propagate it to .h file.
30049 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30051         ctype, string: depend on extern-inline
30052         This is needed to complete the recent OS X fixes.
30053         Also, fix related documentation as suggested by Eric Blake.
30054         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30055         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30056         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30057         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30058         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30059         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30060         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30061         * doc/posix-functions/toupper.texi:
30062         List the 'ctype' gnulib module.
30063         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30064         * doc/posix-functions/strncpy.texi:
30065         List the 'string' gnulib module.
30066         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30067         Add string.
30068         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30070 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30072         userspec: support optional parameters to parse_user_spec()
30073         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30074         then avoid group processing and treat the full spec as a user.
30075         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30076         be optional params (NULL), in which case they're ignored.
30078 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30080         timespec: new function make_timespec, and new constants
30081         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30082         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30083         (make_timespec): New function.
30084         * lib/dtotimespec.c (dtotimespec):
30085         * lib/timespec-add.c (timespec_add):
30086         * lib/timespec-sub.c (timespec_sub):
30087         * lib/utimens.c (validate_timespec):
30088         * lib/utimensat.c (rpl_utimensat):
30089         Use these new constants and functions.
30091         stdio: OS X port of putc_unlocked + extern inline
30092         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30093         * doc/posix-functions/putc_unlocked.texi:
30094         * doc/posix-functions/putchar_unlocked.texi:
30095         Document this portability problem.
30097         signal: OS X port of sigaddset etc. + extern inline
30098         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30099         (sigismember): #undef on problematic Apple platforms.
30100         * doc/posix-functions/sigaddset.texi:
30101         * doc/posix-functions/sigdelset.texi:
30102         * doc/posix-functions/sigemptyset.texi:
30103         * doc/posix-functions/sigfillset.texi:
30104         * doc/posix-functions/sigismember.texi:
30105         Document this portability problem.
30107         extern-inline: do not always suppress extern inline on OS X
30108         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30109         extern inline on Apple only if the particular compile-time
30110         configuration is known to have the problem.
30111         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30112         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30113         other Gnulib modules.
30115         extern-inline: document fixes for ctype and wctype macros
30116         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30117         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30118         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30119         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30120         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30121         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30122         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30123         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30124         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30125         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30126         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30127         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30128         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30129         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30130         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30131         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30132         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30133         * doc/posix-functions/strncpy.texi:
30134         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30135         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30136         Document that Gnulib fixes portability problems with these
30137         functions on OS X 10.8 and earlier when called from plain inline
30138         or extern inline functions.
30140 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30142         fflush, freadahead, fseeko: Fix for Android
30143         Suggested by Bruno Haible in:
30144         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30145         * lib/stdio-impl.h: Use local __sfileext definition.
30147 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30149         pmccabe2html: Portability to other awk versions.
30150         The functions systime() and strftime() are available
30151         in Gawk only.  Properly close two HTML-tags 'style'
30152         and 'span'.
30153         * build-aux/pmccabe2html (BEGIN): Store timing
30154         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30155         systime() in HTML_COMMENT.
30156         (html_header): Correctly close tag 'style'.
30157         (END): Replace strftime() by CHRONOS_TIME.  Close
30158         tag 'span' correctly, not as 'div'.
30160 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30162         getgroups: statement without effect
30163         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30164         Change equality conditional to expected assignment.
30166 2013-09-09  Eric Blake  <eblake@redhat.com>
30168         glob: fix compilation
30169         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30171 2013-09-07  Eric Blake  <eblake@redhat.com>
30173         glob: fix build for platforms without __THROW
30174         * lib/glob.in.h (__THROW): Add definition again.
30176 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30178         regex-quote: fix buffer access out of bounds
30179         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30180         * lib/regex-quote.c (regex_quote_spec_pcre):
30181         Fix typo that resulted in an out-of-bounds read.
30183 2013-09-04  Eric Blake  <eblake@redhat.com>
30185         glob: avoid -Wattribute warnings on glibc
30186         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30187         __THROWNL, not __THROW, on static functions.
30188         * lib/glob.in.h (__THROW): Adjust...
30189         (__THROWNL): ...accordingly.
30191 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30193         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30194         Suggested by Bruce Korb in:
30195         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30196         * doc/extern-inline.texi (extern inline):
30197         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30198         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30199         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30200         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30201         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30202         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30203         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30204         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30205         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30206         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30207         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30208         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30209         * lib/xtime.h:
30210         Check that _GL_INLINE_HEADER_BEGIN is defined.
30212 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30214         bootstrap: remove the --version requirement from ancillary tools
30215         * build-aux/bootstrap (check_exists): A new refactored function to
30216         determine if a command exists.
30217         (find_tool): Use the new function which does not require the
30218         --version option to be supported.
30219         (check_versions): Use the new function.
30221 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30223         gc: support HMAC-SHA256 and HMAC-SHA512.
30224         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30225         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30226         functions.
30227         (gc_hmac_md5): Use symbolic constant.
30228         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30229         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30230         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30231         * m4/sha256.m4: Protect against empty expansion.
30232         * m4/sha512.m4: Likewise.
30233         * lib/hmac-sha256.c: New file.
30234         * lib/hmac-sha512.c: Likewise.
30235         * m4/gc-hmac-sha256.m4: Likewise.
30236         * m4/gc-hmac-sha512.m4: Likewise.
30237         * m4/gc-sha256.m4: Likewise.
30238         * m4/gc-sha512.m4: Likewise.
30239         * modules/crypto/gc-hmac-sha256: Likewise.
30240         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30241         * modules/crypto/gc-hmac-sha512: Likewise.
30242         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30243         * modules/crypto/hmac-sha256: Likewise.
30244         * modules/crypto/hmac-sha256-tests: Likewise.
30245         * modules/crypto/hmac-sha512: Likewise.
30246         * modules/crypto/hmac-sha512-tests: Likewise.
30247         * tests/test-gc-hmac-sha256.c: Likewise.
30248         * tests/test-gc-hmac-sha512.c: Likewise
30249         * tests/test-hmac-sha256.c: Likewise.
30250         * tests/test-hmac-sha512.c: Likewise
30252 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30254         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30255         of AC_CHECK_DECLS.
30257 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30259         selinux-at: omit unnecessary include
30260         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30261         this source file doesn't use its macros, and subsidiary files that
30262         use the macros already include it.
30264 2013-08-21  Eric Blake  <eblake@redhat.com>
30266         d-ino: avoid false negative on symlink
30267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30268         Reported by Stephane Chazelas.
30270 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30272         bootstrap: port to OpenBSD sed
30273         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30274         does not interpret `-' as a file argument to mean stdin.
30276 2013-08-15  Eric Blake  <eblake@redhat.com>
30278         warnings: minor optimization
30279         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30281         warnings: check -Wfoo rather than -Wno-foo
30282         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30283         -Wno-, test if the compiler recognizes the positive form instead.
30285 2013-08-15  Karl Berry  <karl@gnu.org>
30287         * config/srclist-update: add option "doclicense" to placate
30288         pulling *.texi files from Emacs.  Write terse usage
30289         documentation at the top.
30291 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30293         xvasprintf-tests: port to GCC with hardening flags
30294         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30295         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30296         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30298 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30300         fpending: port to recent Cygwin change to stdio_ext.h
30301         Reported by LRN in
30302         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30303         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30304         just declare __fpending unless it's a macro.
30305         A duplicate decl shouldn't hurt.
30306         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30307         call compiles and links, instead of separately checking for
30308         decl and lib function.
30309         * modules/fpending (configure-ac):
30310         Adjust to fpending.m4's renaming of shell variable.
30312 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30314         sys_time: port to OpenBSD
30315         * lib/sys_time.in.h: Simply delegate to the system's header
30316         in the BSDish cases as well.  Problem reported by Mike Miller in
30317         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30318         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30319         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30320         wider than time_t.
30322 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30324         bootstrap: support checksum utils having -c but not --status
30325         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30326         Add sha1 to the list of supported checksum utils since it's now
30327         supported through adjustments below.
30328         (update_po_files): Remove the use of --status
30329         in a way that will suppress all error messages, but since this is
30330         only used to minimize updates, it shouldn't cause an issue.
30331         Exit early if there is a problem updating the po file checksums.
30332         (find_tool): Remove the check for --version support as this
30333         is optional as per commit 86186b17.  Don't even check for the
30334         presence of the command as if that is needed, it's supported
30335         through configuring prerequisites in bootstrap.conf.
30336         Prompt that when a tool isn't found, one can define an environment
30337         variable to add to the hardcoded search list.
30339 2013-08-05  Jim Meyering  <meyering@fb.com>
30341         regex: port to non-glibc/lock-using systems
30342         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30343         system with GNULIB_LOCK would fail due to absence of the
30344         included "glthread/lock.h".  This would affect any package
30345         for which the "lock" module is used only by the regex module,
30346         and not explicitly used.
30347         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30348         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30349         Add a dependency on the "lock" module.
30351 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30353         localecharset: make locale_charset thread-safe on Mac OS X
30354         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30355         instead of MB_CUR_MAX.
30357 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30359         gettext: update to version 0.18.3
30360         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30361         require AC_PROG_SED to allow user to specify custom sed command when
30362         generating en@quot PO file.
30364 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30366         bootstrap: use correct source when copying build-aux files
30367         * build-aux/bootstrap (gnulib_extra_files): This variable is
30368         relative to upstream gnulib layout, not downstream.
30370 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30372         tmpdir: fix bug in VMS port
30373         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30374         See Steven M. Schweda in
30375         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30377 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30379         tmpdir: port to VMS, to // != /, and to long dirs
30380         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30381         __secure_getenv, so that we're more like the glibc version.
30382         All uses changed.
30383         (path_search): Don't put slash after directory if __VMS.
30384         Problem reported by Steven M. Schweda in
30385         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30386         Simplify code to add slash; no need for a loop.
30387         Do not remove trailing slash from "//".
30388         Do not assume dlen <= INT_MAX.
30390 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30392         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30393         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30394         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30395         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30397         accept4, dup3, pipe2: port to Cygwin
30398         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30399         * lib/accept4.c (accept4) [O_BINARY]:
30400         * lib/dup3.c (dup3) [O_BINARY]:
30401         * lib/pipe2.c (pipe2) [O_BINARY]:
30402         Use set_binary_mode, not setmode.
30403         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30404         * modules/binary-io (Depends-on): Remove module indicator.
30405         These last two bits undo the previous change to pipe2 and binary-io.
30407 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30409         mountlist: add support for deallocating returned list entries
30410         * lib/mountlist.c (free_mount_entry): A new exported function
30411         to deallocate a mount list entry.
30412         (read_file_system_list): Refactor to use the new deallocation function.
30413         Suggested by Anton Ovchinnikov.
30415 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30417         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30418         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30419         * lib/stdalign.in.h (_Alignas, _Alignof):
30420         Port to FreeBSD 9.1, and to C11 and C++11.
30421         (_Alignas): Also support ICC.
30422         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30423         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30425 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30427         fnmatch: don't goto over declaration
30428         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30429         undefined behavior for goto over a declaration.
30430         Problem reported by Charlie Brown in
30431         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30433         pipe2: decouple from binary-io a bit
30434         This is for Emacs, which needs pipe2 but not binary-io.
30435         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30436         * modules/binary-io (Depends-on): Add module indicator.
30438 2013-07-03  Eric Blake  <eblake@redhat.com>
30440         mgetgroups: relax license to LGPLv2+
30441         * modules/getugroups (License): Change from GPLv3+.
30442         * modules/mgetgroups (License): Likewise.
30443         * modules/getgroups (License): Change from LGPLv3+.
30445         xalloc-oversized: relax license to LGPLv2+
30446         * modules/xalloc-oversized (License): Change from GPLv3+.
30448         nproc: relax license to LGPLv2+
30449         * modules/nproc (License): Change from LGPLv3+.
30451         bootstrap: honor --no-git
30452         * build-aux/bootstrap: Don't even try to use git when user is
30453         pointing to a static checkout.
30455 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30457         ignore-value: port to gcc -pedantic
30458         * lib/ignore-value.h (ignore_value):
30459         Port to gcc -pedantic, by using __extension__.
30460         Reindent as per usual gnulib style nowadays.
30461         Simplify GCC version check.
30463 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30465         extern-inline: port to gcc -std=c89
30466         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30467         Do not use __gnu_inline__ if pedantic and pre-C99.
30469 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30471         doc: document extern-inline
30472         * doc/extern-inline.texi: New file.
30473         * doc/gnulib.texi (alloca-opt): Include it.
30474         * m4/extern-inline.m4: Move some comments to documentation,
30475         and others closer to what they describe.
30477         doc: chatter less
30478         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30479         (updated-stamp): Use it.  This causes 'make' to output just
30480         one file name rather than zillions.
30482         fflush, fseeko: port to musl cross-compiles
30483         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30484         on some implementation that (1) is not known to be buggy,
30485         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30486         cross-compiled to so we can't easily check for lack of
30487         conformance.  This is for cross-compiling to musl.
30488         Reported by Rich Felker in
30489         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30490         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30491         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30492         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30493         Adjust to above change.
30494         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30495         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30496         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30497         known not to work, or unknown.
30499 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30501         msvc-inval: port to mingw-w64
30502         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30503         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30504         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30506 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30508         getcwd-lgpl: port to Tru64
30509         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30510         Problem reported by Steven M. Schweda in
30511         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30513         tests: port large-fd POSIX spawn tests to OS X
30514         Problem reported by Daiki Ueno in
30515         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30516         * tests/test-posix_spawn_file_actions_addclose.c:
30517         * tests/test-posix_spawn_file_actions_adddup2.c:
30518         * tests/test-posix_spawn_file_actions_addopen.c:
30519         Include <limits.h>, for OPEN_MAX, if available.
30520         (big_fd): New static function.
30521         (main): Use it.
30523 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30525         tests/nap.h: use an adaptive delay to avoid ctime update issues
30526         The recent change in nap.h (5191133e) decreased the probability of lost
30527         races to about a third, however such problems could still be observed
30528         in virtual machines and openSUSE's OBS.
30529         Before, nap() detected the needed time once empirically and then used
30530         that delay (together with a small correction multiplier) in further
30531         calls.  This problem has been reported and discussed several times,
30532         including guesses about possible kernel issues:
30533         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30534         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30535         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30536         http://bugs.gnu.org/12820
30537         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30538         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30539         Now, nap() avoids the race alltogether by verifying on a reference
30540         file whether a timestamp difference has happened.
30541         * tests/nap.h (nap_fd): Define file descriptor variable for the
30542         witness file.
30543         (nap_works): Change return value to bool.  Change passing
30544         the old file's status by value instead of by reference as this function
30545         does no longer update that timestamp; rename the function argument from
30546         st to old_st.  Remove the local variables cdiff and mdiff because that
30547         function now returns true/false instead of the precise delay.
30548         (guess_delay): Remove function.
30549         (clear_tmp_file): Add new function to close and unlink the witness file.
30550         (nap): Instead of re-using the delay which has been calculated during
30551         the first call, avoid the race by actually verifying that a timestamp
30552         difference can be observed on the current file system.  Use an adaptive
30553         approach for the delay to minimize execution time.  Assert that the
30554         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30555         = 2^31 - 1 = 2.1s.
30556         Use atexit to call clear_tmp_file when the process terminates.
30558 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30560         sig2str: port to C++
30561         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30562         Reported by Daniel J Sebald in
30563         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30565 2013-05-30  Eric Blake  <eblake@redhat.com>
30567         docs: mention cygwin shortcoming in <sys/un.h>
30568         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30570         vasnprintf: silence mingw compiler warning
30571         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30573 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30575         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30576         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30577         This fixes a porting bug I recently reintroduced in regex, and
30578         some other instances that I discovered while testing the fix.
30579         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30580         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30581         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30582         with an empty argument if this is a pedantic pre-C99 GCC.
30583         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30584         pre-C11 GCC.
30586         regex: adapt to locking regime instead of depending on pthread
30587         Instead of depending on pthread, adapt to whatever thread
30588         modules are in use.  Problem reported by Ludovic Courtès in
30589         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
30590         and by Mats Erik Andersson in
30591         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
30592         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30593         Support either the 'lock' module, or the 'pthread' module, or
30594         no module.
30595         (lock_lock, lock_unlock): New macros.
30596         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
30597         * modules/lock, modules/pthread (configure.ac): Add module indicator.
30598         * modules/regex (Depends-on): Remove pthread.
30600 2013-05-22  Eric Blake  <eblake@redhat.com>
30602         getgroups: document portability issues
30603         * doc/glibc-functions/initgroups.texi (initgroups): Mention
30604         multithread safety.
30605         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
30606         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
30607         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
30608         getugroups.
30609         * doc/posix-functions/getgroups.texi (getgroups): Mention
30610         multithread safety and mgetgroups.
30612 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
30614         test-lchown, test-chown: also skip test if chown fails with EPERM
30615         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
30616         skip this test, to handle FAT file systems.
30617         * tests/test-chown.h (test_chown): Likewise.
30619 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30621         regex: fix dfa race in multithreaded uses
30622         Problem reported by Ludovic Courtès in
30623         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
30624         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30625         New macros.  All uses of __libc_lock_define, __libc_lock_init
30626         changed to use the first two of these.
30627         (__libc_lock_lock, __libc_lock_unlock): New macros, for
30628         non-glibc platforms.
30629         (struct re_dfa_t): Define the lock unconditionally.
30630         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
30631         '#ifdef _LIBC"s.
30632         * modules/regex (Depends-on): Add pthread, if we use the
30633         included regex.
30635         * lib/regcomp.c: Do actions that are not needed for glibc,
30636         but may be needed elsewhere.
30637         (regfree, re_compile_internal): Destroy the lock.
30638         (re_compile_internal): Check for lock-initialization failure.
30640         malloca: port to compilers that reject size-zero arrays
30641         This fixes a bug introduced in my previous patch.
30642         * lib/malloca.c (struct preliminary_header): Use an int
30643         rather than a character array of size int; that's simpler.
30644         (struct header): Remove, replacing with ...
30645         (union header): New type.  This avoids the need for declaring a
30646         character array of size zero, which is not allowed on some platforms.
30647         All uses changed.
30649 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30651         parse-datetime, tests: don't use "string" + int
30652         Recent versions of 'clang' complain about C source code that
30653         uses expressions of the form '"string literal" + integer',
30654         I guess on the theory that it's confusing for readers who are
30655         used to C++.  On those grounds I suppose it's OK to make this
30656         minor style change.
30657         * lib/parse-datetime.y (parse_datetime):
30658         * tests/test-fchdir.c (main):
30659         * tests/test-snprintf-posix.h (test_function):
30660         * tests/test-snprintf.c (main):
30661         * tests/test-vasnprintf-posix.c (test_function):
30662         * tests/test-vasnprintf.c (test_function):
30663         * tests/test-vsnprintf.c (main):
30664         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
30665         Rewrite '"str" + E' to '&"str"[E]'.
30667 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30669         argmatch: port to C++
30670         * lib/argmatch.h [__cplusplus]: Add extern "C".
30672         argp: typo fix
30673         * lib/argp-help.c: Typo in comment.
30675 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30677         manywarnings: update for GCC 4.8.0
30678         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
30679         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
30680         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
30681         -Wmissing-noreturn, as they are duplicates of other warnings.
30682         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
30683         was documented to be flaky in earlier versions of GCC.
30685         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
30686         * tests/test-spawn.c (main):
30687         * tests/test-sys_socket.c (main):
30688         * tests/test-sys_wait.c (main):
30689         Don't have a switch value that isn't covered by a case.
30691         getaddrinfo-tests: port --enable-gcc-warnings to clang
30692         * tests/test-getaddrinfo.c (simple):
30693         Avoid casts from looser to stricter-aligned pointers.
30695         thread: port --enable-gcc-warnings to clang
30696         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
30697         Include <signal.h>, to pacify a warning about pthread_sigmask.
30699         stdio: use __REDIRECT for fwrite, fwrite_unlocked
30700         * lib/stdio.in.h (fwrite):
30701         When working around bug 11959, use __REDIRECT rather than '#define
30702         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
30703         fix the -Wunused-value issue with clang, and it works with GCC too.
30704         Problem with targeting reported by Eric Blake in
30705         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
30706         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
30707         debugging the fwrite issue.
30709         stdio: port --enable-gcc-warnings to clang
30710         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
30711         since the GCC workaround for fwrite does not pacify clang.
30713         sig2str: port --enable-gcc-warnings to clang
30714         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
30716         obstack: port --enable-gcc-warnings to clang
30717         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
30718         Avoid casts from looser to stricter-aligned pointers.
30720         memchr2: port --enable-gcc-warnings to clang
30721         * lib/memchr2.c (memchr2):
30722         Avoid casts from looser to stricter-aligned pointers.
30724         mbsstr: port --enable-gcc-warnings to clang
30725         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
30726         Avoid casts from looser to stricter-aligned pointers.
30728         malloca: port --enable-gcc-warnings to clang
30729         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
30730         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
30732         inttostr: port --enable-gcc-warnings to clang
30733         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
30735         warnings: port to clang
30736         Problem reported by Daniel P. Berrange via Eric Blake in
30737         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
30738         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
30739         (gl_WARN_ADD): Use it.
30741 2013-05-11  Jim Meyering  <meyering@fb.com>
30743         quotearg: do not read beyond end of buffer
30744         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
30745         end of an ARG for which no length was specified.  With an N-byte
30746         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
30747         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
30748         via coreutils' misc/sort-debug-keys.sh test and detected by running
30749         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
30750         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
30751         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
30752         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
30753         characters correctly."
30755 2013-05-11  Daiki Ueno  <ueno@gnu.org>
30757         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
30758         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
30759         compilation target is Mac OS X 10.6.
30760         Problem reported by parafin and Andoni Morales in
30761         <http://savannah.gnu.org/bugs/?37844> and
30762         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
30764 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30766         mkdir-p: remove assumptions about umask and mode
30767         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
30768         umask is 0, or that MODE is a subset of MODE_BITS.
30770 2013-05-10  Eric Blake  <eblake@redhat.com>
30772         maint.mk: catch more abuse of HAVE_DECL in syntax-check
30773         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
30775 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
30777         deps: require Automake >= 1.9.6 in generated Makefile fragments
30779         That is the same minimal version required in the DEPENDENCIES file.
30780         Moreover, the old code generated a requirement of Automake >= 1.5,
30781         and that is an insanely outdated version.
30783         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
30784         * tests/havelib/rpathlx/Makefile.am: Likewise.
30785         * tests/havelib/rpathly/Makefile.am: Likewise.
30786         * tests/havelib/rpathlyx/Makefile.am: Likewise.
30787         * tests/havelib/rpathlz/Makefile.am: Likewise.
30788         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
30789         * tests/havelib/rpathx/Makefile.am: Likewise.
30790         * tests/havelib/rpathy/Makefile.am: Likewise.
30791         * tests/havelib/rpathz/Makefile.am: Likewise.
30793 2013-05-08  Eric Blake  <eblake@redhat.com>
30795         bootstrap: AC_INIT may have more than four parameters
30796         * build-aux/bootstrap (extract_package_name): Correctly extract
30797         non-empty tarname field.  Avoid range in regex.
30798         Based on a report by Sami Kerola <kerolasa@iki.fi>.
30800 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30802         qacl: port to MS-Windows port of GNU Emacs
30803         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
30804         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
30805         port of GNU Emacs.  Problem reported by Eli Zaretskii in
30806         <http://bugs.gnu.org/14295#14>.
30808 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
30810         acl: include quote.h
30811         * lib/copy-acl.c: Include quote.h.
30812         * lib/set-acl.c: Likewise.
30814 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
30816         fchownat, renameat, unlinkat: update statat dependencies
30817         These modules use statat and lstatat, not fstatat; so depend on
30818         the statat module, which was split out recently from fstatat.
30819         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
30820         * modules/renameat: Likewise.  Also delete fstat.
30821         URL: http://bugs.gentoo.org/468790
30823 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
30825         Assume gnulib is checked out from Git, not CVS
30827         In fact, access to the gnulib repository through CVS has been
30828         disabled, or more precisely, got broken and was never restored; see:
30829         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
30831         Note that support for CVS is not removed completely and unthinkingly
30832         by this change: only support for CVS checkouts of gnulib itself is
30833         removed.  For example, the 'bootstrap' script still cater to .cvsingore
30834         files and CVS directories, for the benefit of those poor gnulib clients
30835         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
30837         * gnulib-tool: Simplify accordingly.
30838         * posix-modules: Likewise.
30839         * MODULES.html.sh: Likewise.
30840         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
30841         repository.
30842         * doc/gnulib-intro.texi: Likewise.
30843         * doc/gnulib-readme.texi: Likewise.
30844         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
30845         sample '.gitignore' file rather than a sample '.cvsignore'.
30846         * NEWS: Update.
30847         * m4/extensions.m4: While at it, remove a comment mistakenly referring
30848         to "CVS Autoconf" rather than "git Autoconf".
30850 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
30852         utimensat-tests, etc.: try to fix some races
30853         Problem reported by Bernhard Voelker in
30854         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
30855         I don't know whether this patch fixes that race condition, but it
30856         fixes *some* race conditions, so it should be a win.
30857         * modules/chown-tests (Depends-on):
30858         * modules/fchownat-tests (Depends-on):
30859         * modules/fdutimensat-tests (Depends-on):
30860         * modules/futimens-tests (Depends-on):
30861         * modules/lchown-tests (Depends-on):
30862         * modules/stat-time-tests (Depends-on):
30863         * modules/utimens-tests (Depends-on):
30864         * modules/utimensat-tests (Depends-on):
30865         Depend on nanosleep, not usleep.
30866         * modules/chown-tests (test_chown_LDADD):
30867         * modules/lchown-tests (test_lchown_LDADD):
30868         * modules/stat-time-tests (test_stat_time_LDADD):
30869         New macro.
30870         * modules/fchownat-tests (test_fchownat_LDADD):
30871         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
30872         * modules/futimens-tests (test_futimens_LDADD):
30873         * modules/utimens-tests (test_utimens_LDADD):
30874         * modules/utimensat-tests (test_utimensat_LDADD):
30875         Add $(LIB_NANOSLEEP).
30876         * modules/stat-time-tests (Files): Add tests/nap.h.
30877         * tests/nap.h: Include <limits.h>, for INT_MAX.
30878         (lt_mtime): Remove.
30879         (diff_timespec): New function.
30880         (get_stat): Rename from get_mtime.  All callers changed.
30881         (nap_works): Determine the needed delay by inspecting the
30882         file system's timestamp jumps; this should be more reliable.
30883         Look at both mtime and ctime, and take the maximum of the two jumps.
30884         (nap_works, guess_delay):
30885         Return a nanosecond count, not a microsecond count.
30886         All callers changed.
30887         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
30888         failure.
30889         (nap): Multiply the guess by 1.125, to accommodate the case where
30890         the file system's clock is a bit slower than nanosleep's clock.
30891         * tests/test-stat-time.c (BASE): New macro.
30892         Include nap.h.
30893         (nap): Remove; nap.h now defines this.  This removes a duplicate
30894         implementation of 'nap'.
30896         utimens, utimensat: work around Solaris UTIME_OMIT bug
30897         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
30898         Linux kernel 2.6.32 does.  Work around it in the same way.
30899         * doc/posix-functions/futimens.texi (futimens):
30900         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
30901         * lib/utimens.c (fdutimens, lutimens):
30902         * lib/utimensat.c (rpl_utimensat): Work around the bug.
30904         gettext: now it's your responsibility to add -I$(top_builddir)/intl
30905         Formerly, it was your responsibility to do this for all Makefile.ams
30906         other than Gnulib's.  Now it's your responsibility to do it for
30907         Gnulib's Makefile.am, too.
30908         * NEWS: Document this.
30909         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
30911         acl: include errno.h to get errno
30912         Reported by Daiki Ueno in
30913         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
30914         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
30916 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30918         tests: don't assume getdtablesize () <= 10000000
30919         * modules/cloexec-tests:
30920         * modules/dup2-tests:
30921         * modules/dup3-tests:
30922         * modules/nonblocking-tests:
30923         * modules/posix_spawn_file_actions_addclose-tests:
30924         * modules/posix_spawn_file_actions_adddup2-tests:
30925         * modules/posix_spawn_file_actions_addopen-tests:
30926         * modules/unistd-safer-tests:
30927         Depend on the getdtablesize module.
30928         * tests/test-cloexec.c:
30929         * tests/test-dup-safer.c:
30930         * tests/test-dup2.c:
30931         * tests/test-dup3.c:
30932         * tests/test-fcntl.c:
30933         * tests/test-nonblocking.c:
30934         * tests/test-posix_spawn_file_actions_addclose.c:
30935         * tests/test-posix_spawn_file_actions_adddup2.c:
30936         * tests/test-posix_spawn_file_actions_addopen.c:
30937         Don't assume getdtablesize () <= 10000000.
30939 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
30941         extern-inline: work around bug in Sun c99
30942         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
30943         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
30945 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30947         qacl: new module, broken out from the acl module
30948         This is for GNU Emacs, which wants the acl functions but does
30949         not want 'error' invoked when they fail.
30950         * lib/acl-internal.h: Do not include error.h, quote.h.
30951         (ENOSYS, ENOTSUP): Remove; no longer needed.
30952         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
30953         * lib/acl.h: Include <stdbool.h>.
30954         (acl_errno_valid): New function.
30955         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
30956         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
30957         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
30958         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
30959         (ACL_INTERNAL_INLINE): Remove; no longer needed.
30960         * lib/file-has-acl.c (file_has_acl):
30961         * lib/qcopy-acl.c (qcopy_acl):
30962         * lib/qset-acl.c (qset_acl):
30963         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
30964         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
30965         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
30966         lib/file-has-acl.c, m4/acl.m4 to qacl module.
30967         Add lib/set-acl.c.
30968         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
30969         Add qacl.
30970         (configure.ac): Move gl_FUNC_ACL to qacl module.
30971         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
30972         Rename set-mode-acl.c to set-acl.c.
30973         * lib/acl-errno-valid.c: New file.
30974         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
30975         copy_acl function remains in copy-acl.c.
30976         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
30977         (_): Remove; not needed.
30978         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
30979         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
30980         * modules/qacl: New file, moved from the old modules/acl.
30981         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
30982         Remove set-mode-acl.c, copy-acl.c.
30983         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
30985         alignof, intprops, malloca: port better to IBM's C compiler
30986         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
30987         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
30988         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
30990 2013-04-25  Daiki Ueno  <ueno@gnu.org>
30992         wctype-h: fix gettext link error on mingw
30993         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
30994         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
30995         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
30996         rpl_towupper and rpl_towupper.
30998 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31000         regex-tests, regex: allow glibc re_search behavior
31001         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31002         re_search input data to make the multi-character collating element
31003         in it clearly visible, and treat re_search return code 0 as valid.
31004         * m4/regex.m4 (gl_REGEX): Likewise.
31006 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31008         stdalign: doc fix
31009         * doc/posix-headers/stdalign.texi (stdalign.h):
31010         Gnulib doesn't support '_Alignof expr'.
31012 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31014         stdalign: port to stricter ISO C11
31015         ISO C11 says that _Alignof's operand must be a parenthesized type.
31016         Problem reported by Eli Zaretskii in
31017         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31018         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31019         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31021 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31023         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31024         Problem reported by Marco Atzeri in
31025         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31026         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31027         Simply delegate to the system <sys/select.h> in this case too.
31028         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31029         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31030         be needed on Solaris either.
31031         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31032         Simply delegate to the system <sys/time.h> in this case.
31034 2013-03-19  Karl Berry  <karl@gnu.org>
31036         * build-aux/gnupload: check for erroneous (with gnupload) use of
31037         ftp-upload.gnu.org, tweak help.
31039 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31041         copy-file, rpmatch: fix problems found by cppcheck
31042         Reported by Arno Onken in
31043         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31044         * lib/rpmatch.c (try): Fix memory leak.
31045         * lib/copy-file.c: Include "ignore-value.h".
31046         (qcopy_file_preserving): Ignore chown value.
31047         * modules/copy-file (Depends-on): Add ignore-value.
31049 2013-01-27  Jim Meyering  <jim@meyering.net>
31051         prefix-gnulib-mk: give better diagnostics
31052         * build-aux/prefix-gnulib-mk: Don't just "die".
31053         Give better diagnostics upon failure.
31055 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31057         putenv: port to Solaris 10
31058         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31059         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31060         is not what is wanted here.
31061         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31062         declaration, not for its existence.
31064 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31066         mktime: fix configure typo
31067         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31069 2013-03-12  Eric Blake  <eblake@redhat.com>
31071         regex-tests: skip UTF-8 test on mingw
31072         * modules/regex-tests (Depends-on): Add localcharset.
31073         * tests/test-regex.c (main): Use it to skip test on mingw.
31075 2013-03-11  Eric Blake  <eblake@redhat.com>
31077         tests: make it easier to bypass alarm time in debugger
31078         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31079         * tests/test-memmem.c (main): Likewise.
31080         * tests/test-passfd.c (main): Likewise.
31081         * tests/test-ptsname.c (main): Likewise.
31082         * tests/test-ptsname_r.c (main): Likewise.
31083         * tests/test-strcasestr.c (main): Likewise.
31084         * tests/test-strstr.c (main): Likewise.
31086         regex: port to mingw's recent addition of undeclared alarm
31087         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31088         exists but still doesn't work in newer mingw.
31089         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31090         not existence.  Ensure SIGALRM is not trapped.
31091         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31092         * m4/regex.m4 (gl_REGEX): Likewise.
31093         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31094         * tests/test-regex.c (main): Use correct probe for alarm.
31096         putenv: avoid compilation warning on mingw
31097         * lib/putenv.c (_unsetenv): Protect variable declaration.
31098         (putenv): Fix indentation.
31100 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31102         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31103         * lib/unistd.in.h: be careful not to include un-needed system
31104         stdlib.h from here, because that prevents gnulib stdlib.h from
31105         defining rpl_strtod correctly.
31107 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31109         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31110         changesets, but for the 'precision 0' test.
31111         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31112         round-to-even, since POSIX says rounding is implementation-defined
31113         and OS X 10.8.2 rounds 1.51 to 1 here.
31115         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31116         changeset.
31117         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31118         round-to-even, since POSIX says rounding is implementation-defined
31119         and OS X 10.8.2 rounds 1.5 to 1 here.
31121 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31123         vasnprintf-posix-tests: allow rounding 1.5 to 1
31124         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31125         round-to-even, since POSIX says rounding is implementation-defined
31126         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31127         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31129         bootstrap: port to FreeBSD
31130         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31131         that treat '--' differently.  Reported by Mats Erik Andersson in
31132         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31134 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31136         regex: rename remaining __attribute calls to __attribute__.
31137         2012-02-25 changed definition of __attribute, but left some uses
31138         unchanged, preventing compilation of regex module on most non-gcc
31139         environments.
31140         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31141         (lookup_collation_sequence_value, build_range_exp)
31142         (build_collating_symbol): Set attributes with newly renamed
31143         __attribute__ decorator.
31144         * lib/regex_internal.c (re_string_peek_byte_case)
31145         (re_node_set_compare, re_node_set_contains): Likewise.
31146         * lib/regexec.c (acquire_init_state_context): Likewise.
31148 2013-03-06  Bruno Haible  <bruno@clisp.org>
31150         execute: Revert last change, but use a different condition.
31151         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31152         on Windows.
31154 2013-03-05  Eric Blake  <eblake@redhat.com>
31156         execute: drop dead code
31157         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31159 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31161         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31162         * m4/non-recursive-gnulib-prefix-hack.m4
31163         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31164         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31165         <http://bugs.gnu.org/10305#237>.
31167 2013-03-04  Eric Blake  <eblake@redhat.com>
31169         test-getsockopt: avoid compiler warning
31170         * tests/test-getsockopt.c (includes): Ensure close is declared.
31172 2013-03-02  Bruno Haible  <bruno@clisp.org>
31174         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31175         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31177 2013-03-02  Bruno Haible  <bruno@clisp.org>
31179         gettext: Update to version 0.18.2.
31180         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31181         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31182                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31184 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31186         regex: merge patches from libc
31188         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31189         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31190         All uses changed.
31191         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31192         (re_string_wchar_at, re_string_elem_size_at):
31193         Mark function as possibly unused.
31195         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31196         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31197         elements compare against the byte sequence of it, not its name.
31199 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31201         putenv: port better to native Windows
31202         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31203         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31204         (_unsetenv): Use _putenv if available.
31205         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31206         a bit less likely to cause damage.
31207         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31208         Fix the wrong value with SetEnvironmentVariable.
31209         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31210         code better.
31212 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31214         regex: ignore old-style-definition warnings
31215         * lib/regex.c: Add pragma to ignore these warnings.
31216         Problem reported for GNU tar by Pavel Raiskup.
31218 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31220         getcwd: support coreutils better
31221         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31222         but this might not be correct in coreutils, which disables
31223         the raw decl checks.  Problem reported by Nagendra in
31224         <http://bugs.gnu.org/10305#192>.
31225         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31227         Test the getcwd function, not any macro, since getcwd.c wants the
31228         function.
31229         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31230         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31231         compile, as might happen if there's a macro but no function.
31233         strtod: support coreutils better
31234         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31235         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31236         disables the raw decl checks.  This assumes there is an underlying
31237         strtod, but that's a safe assumption these days.
31238         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31240         mountlist: port to HP NonStop
31241         Reported by Joachim Schmitz in
31242         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31243         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31244         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31246 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31248         extern-inline: avoid compilation error with HP-UX cc
31249         Reported by Richard Lloyd in
31250         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31251         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31252         Suppress extern inline with HP-UX cc.  This should be safe,
31253         though it may hurt performance.  Perhaps someone with some HP-UX
31254         experience can come up with a higher-performance fix.
31256 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31258         putenv: fix heap corruption with mixed putenv/_putenv
31259         Problem reported by Michael Goffioul in
31260         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31261         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31262         Rely on _putenv to allocate the new environment.
31263         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31264         * modules/putenv (configure.ac): Use it.
31266 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31268         unsetenv etc.: port to Solaris 11 + GNU Emacs
31269         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31270         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31271         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31272         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31273         idea but is too painful to fix right now), and without this gnulib
31274         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31275         compiling unsetenv.c on Solaris 11.  Fix the problem for
31276         unsetenv.c, and fix other similar occurrences.
31278 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31280         secure_getenv: fix C++ declaration typo
31281         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31282         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31283         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31285 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31287         careadlinkat: stop exporting careadlinkatcwd
31288         Only Emacs used it directly, and Emacs no longer needs it.
31289         * NEWS: Document this simplification.
31290         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31291         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31292         for readlink.
31293         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31294         Don't include stdlib.h; no longer needed.
31295         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31296         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31297         * modules/areadlink (Depends-on): Add readlink.
31298         (Maintainer): Add self.
31299         * modules/careadlinkat (Depends-on): Remove readlink.
31301         extensions: port better to HP-UX
31302         This is merged from git Autoconf.
31303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31304         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31305         so that it's compatible with the value used when compiling.
31307         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31308         Problem reported by Mats Erik Andersson in
31309         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31310         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31311         openpty function exists, not merely when we intend to replace it.
31312         This corrects the 2013-01-31 patch, which mistakenly defined
31313         HAVE_OPENPTY even on hosts that lacked it.
31315 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31317         secure_getenv: fix include typo
31318         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31320         secure_getenv: port better to FreeBSD and Solaris
31321         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31322         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31323         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31324         This works better on BSDish platforms.
31325         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31326         Test for issetugid if __secure_getenv is missing.
31328 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31330         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31331         Some of these changes are merged in from git Autoconf.
31332         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31333         When deciding whether to define _XOPEN_SOURCE, inspect the
31334         preprocessor macro __hpux instead of the more-heavyweight
31335         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31336         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31337         as the key for __EXTENSIONS__.
31339         unistd: avoid namespace pollution on non-glibc systems
31340         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31341         This avoids namespace pollution on non-glibc systems, by causing
31342         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31343         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31344         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31346 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31348         tmpdir: use secure_getenv
31349         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31350         Define to secure_getenv, not getenv.
31351         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31352         as that's now secure_getenv's job.
31353         * modules/tmpdir (Depends-on): Add secure_getenv.
31355         tempname: use secure_getenv
31356         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31357         Define to secure_getenv, not getenv.
31358         * modules/tempname (Depends-on):
31359         Add secure_getenv.
31361         secure_getenv: new module
31362         * MODULES.html.sh (Extra functions based on ANSI C 89):
31363         Add secure_getenv.
31364         * doc/glibc-functions/secure_getenv.texi: New file.
31365         * doc/gnulib.texi: Include it.
31366         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31367         New files.
31368         * lib/stdlib.in.h (secure_getenv): New decl.
31369         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31370         * modules/stdlib (stdlib.h):
31371         Add secure_getenv checks.
31373 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31375         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31376         Reported for OS X 10.8.2 by Assaf Gordon in
31377         <http://bugs.gnu.org/13516>.
31378         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31379         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31380         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31381         so that they can be kept in sync more easily.  Avoid PATH_MAX
31382         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31383         mkdir or chdir failure.
31384         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31385         lib/getcwd.c.
31386         (test_abort_bug): Do not test for the deep directory bug unless we
31387         have openat support.  Avoid PATH_MAX test on the Hurd.
31389         regex-tests, regex: fix bug: memset undeclared
31390         * tests/test-regex.c: Don't include regex.h twice.  Include
31391         string.h, to declare memset.  Christensen's report also mentioned
31392         this issue.
31393         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31394         test-regex.c, to avoid future problems like this.  Remove
31395         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31396         twice.
31398         regex-tests: fix link errors on older Solaris
31399         These need to link with @LIBINTL@ to get libintl_gettext.
31400         Problem reported by Tom G. Christensen in
31401         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31402         * modules/regex-tests (test_regex_LDADD): New macro.
31404 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31406         regex-tests: new module
31407         * modules/regex-tests, tests/test-regex.c: New files.
31409         regex: fix off-by-one error in configure test
31410         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31412 2013-01-31  Eric Blake  <eblake@redhat.com>
31414         regex: avoid infinite configure test
31415         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31417 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31419         openpty: fix bug where HAVE_OPENPTY wasn't defined
31420         See the thread starting at:
31421         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31422         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31423         openpty function exists, not merely when we intend to replace it.
31425 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31427         sys_time: port to Solaris 2.6
31428         There is a circularity problem on Solaris 2.6, where <time.h> includes
31429         <sys/time.h> for struct timespec.  The include nesting is gnulib
31430         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31431         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31432         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31433         <sys/siginfo.h>; the last, innermost file needs struct
31434         timestruc_t, which is defined in <sys/time.h>, which has not been
31435         fully parsed.  Problem reported by Tom G. Christensen in
31436         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31437         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31438         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31439         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31440         uses split double-inclusion guards.
31442 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31444         regex: test for buffer overrun
31445         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31446         for the just-fixed regex bug.
31448 2013-01-29  Andreas Schwab  <schwab@suse.de>
31450         regex: fix buffer overrun in regexp matcher [BZ #15078]
31451         * lib/regexec.c (extend_buffers): Add parameter min_len.
31452         (check_matching): Pass minimum needed length.
31453         (clean_state_log_if_needed): Likewise.
31454         (get_subexp): Likewise.
31456 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31458         mountlist: don't consider "devtmpfs" as dummy
31459         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31460         as there is storage associcated with it.
31462 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31464         futimens-tests, utimens-tests: Depend on gettext.
31465         This works around a problem introduced in my 2013-01-12 patch,
31466         which added @LIBINTL@ to these modules.
31467         * modules/futimens-tests (Depends-on):
31468         * modules/utimens-tests (Depends-on): Add gettext.
31470 2013-01-26  Eric Blake  <eblake@redhat.com>
31472         test-getpeername: fix typo
31473         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31475 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31477         bootstrap: remove the need for a sorted .gitignore file
31478         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31479         rename to insert_if_absent(), so that we don't need or generate
31480         a sorted .gitignore file.  We do require a .gitignore with no
31481         existing duplicate entries and enforce that.
31482         (sort_patterns): Remove this function as we now use the simpler
31483         technigue of inserting blacklist entries at the top of the file,
31484         assuming gnulib won't be inserting !whitelist entries.
31486 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31488         readlinkat: don't depend on gl_FUNC_OPENAT
31489         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31490         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31491         renameat.m4, symlinkat.m4; but one thing at a time.
31493         statat: new module, split out from fstatat
31494         GNU Emacs needs the POSIX-specified fstatat, but not the
31495         gnulib-specified statat and lstat.  Split the latter two into a
31496         new module 'statat'.
31497         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31498         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31499         Rename from FSTATAT_INLINE. All uses changed.
31500         * modules/fstatat (Files): Remove lib/statat.c.
31501         (gl_MODULE_INDICATOR([fstatat])): Remove.
31502         (lib_SOURCES): Remove.
31503         (Maintainer): Add self.
31504         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31505         * tests/test-fstatat.c (BASE): Don't define if already defined.
31506         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31508 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31510         tests: don't assume fd 99 is closed
31511         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31512         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31513         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31514         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31515         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31516         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31517         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31518         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31519         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31520         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31521         * tests/test-fwrite.c, tests/test-getpeername.c:
31522         * tests/test-getsockname.c, tests/test-getsockopt.c:
31523         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31524         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31525         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31526         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31527         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31528         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31529         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31530         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31531         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31532         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31533         Close file descriptor 99, instead of assuming it's already closed.
31535 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31537         stpncpy: port to OS X 10.8
31538         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31539         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31541 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31543         unistd: port to recent mingw
31544         * lib/unistd.in.h: Remove special invocation convention for mingw,
31545         which breaks for the latest mingw version.  See John W. Eaton in
31546         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31548         largefile: port better to Mac OS X 10.5
31549         This patch is backported from Autoconf git.
31550         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31551         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31552         with ino_t size being different for configuration time versus
31553         build/run time.  Problem reported by PHO in
31554         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31556 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31558         doc: clarify -Werror
31559         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31560         clarify that it's intended for developers, not for ordinary builds,
31561         and mention --enable-gcc-warnings as one possible use.
31563 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31565         stdint: fix build with Android's Bionic fox x86
31566         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31567         was already included as _SSIZE_T_DEFINED_ might also be defined
31568         in include/machine/_types.h, which is included by stdio.h
31570 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31572         net_if-tests: port to Solaris 7 + GCC 3.4.6
31573         Problem reported by Tom G. Christensen in
31574         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31575         * tests/test-net_if.c (ni): Move to next the code that uses it,
31576         so that it's declared only if needed.
31578 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31580         net_if-tests: port to older Solaris
31581         Problem reported by Tom G. Christensen in
31582         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31583         * modules/net_if-tests (NET_IF_LIB): New substitution.
31584         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31585         (HAVE_IF_NAMEINDEX): New C macro.
31586         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
31588         system-quote-tests: port to older Solaris
31589         Problem reported by Tom G. Christensen in
31590         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31591         * tests/test-system-quote-child.c (fopen, fread): Undef.
31593         c-xvasprintf etc.: fix link errors on older Solaris
31594         These need to link with @LIBINTL@ to get libintl_gettext.
31595         Problem reported by Tom G. Christensen in
31596         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31597         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
31598         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
31599         * modules/futimens-tests (test_futimens_LDADD):
31600         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
31602 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31604         locale: port to Solaris 2.6 and 7 + GNU gettext
31605         * lib/locale.in.h: Just include_next <locale.h> when
31606         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
31607         when combining the localename module with GNU gettext 0.18.2.
31608         Problem reported by Tom G. Christensen in
31609         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
31611 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31613         stdlib: port to Solaris 2.6
31614         Also, the code worked on Solaris 7 through 9 only by accident.
31615         Problem reported by Tom G. Christensen in
31616         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
31617         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
31618         simply include the system stdlib.h.
31619         * lib/getopt.in.h (__need_system_stdlib_h):
31620         * lib/pthread.in.h (__need_system_stdlib_h):
31621         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
31622         Define when including <stdlib.h>, to avoid problems at least for
31623         the pthread case on Solaris 2.6 and 7.  These .h files can get by
31624         with the system stdlib.h.
31626 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31628         doc: update main copyright year
31629         * doc/gnulib.texi: Update copyright date.
31631         doc: improve ISO 8601 discussion
31632         * doc/parse-datetime.texi (Combined date and time of day items):
31633         Specify more carefully what formats are supported and what is
31634         done with excess precision.
31636 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31638         doc: avoid small caps
31639         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
31640         they're more trouble than they're worth.  Suggested by Karl Berry
31641         in <http://bugs.gnu.org/13360>.
31643         regex: conform to strict C
31644         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
31645         From Aharon Robbins.
31647         gnulib-tool: fix incompatibility with autopoint 0.18.2
31648         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
31649         Problem reported by Tom G. Christensen in
31650         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
31652 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31654         fprintftime: bring back and reword fwrite comment
31655         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
31657         stdio: remove now-unnecessary stdio.c
31658         Since stdio.in.h no longer uses inline functions, we no longer
31659         need to compile the extern versions.
31660         * lib/stdio.c: Remove.
31661         * modules/stdio (Files): Remove lib/stdio.c.
31662         (lib_SOURCES): Remove.
31664         unicodeio: depend on stdio, not ignore-value
31665         * lib/unicodeio.c: Do not include ignore-value.h.
31666         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
31667         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
31669         fprintftime: depend on stdio, not ignore-value
31670         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
31671         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
31672         since the stdio module arranges to silence that warning now.
31673         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
31675 2012-10-04  Simon Josefsson  <simon@josefsson.org>
31677         stdint-tests: Fix expanded-before-required-warning.
31678         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
31680 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31682         fwrite: silence __wur only for older glibc versions
31683         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
31684         This will help us remove this workaround some time in the far future.
31686 2013-01-03  Eric Blake  <eblake@redhat.com>
31688         fwrite: silence __wur without using inline
31689         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
31690         just gcc, and in a way that avoids inline issues.
31691         * modules/stdio (Depends-on): Drop extern-inline.
31693 2013-01-03  Jim Meyering  <jim@meyering.net>
31695         update-copyright: avoid copyright notice date corruption
31696         Given a sequence of copyright year numbers in which the final
31697         one was a two-digit number that happened to be a substring of
31698         a preceding four-digit year number, we would mistakenly update
31699         the substring (from two- to four-digit) rather than the two-digit
31700         number at the end, which, combined with the addition of the current
31701         4-digit year number would yield two 5-digit year numbers, e.g.,
31702         here, it would convert the first "99" to "1999, 2013" rather than
31703         the final one:
31704           1991, 99
31705           11999, 20131, 1999
31706         * build-aux/update-copyright: Tighten a regexp.
31707         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
31708         Reported by Joseph Myers in
31709         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
31711 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31713         regex: omit needless signed-pointer casts
31714         * lib/regcomp.c (build_charclass, build_charclass_op):
31715         Use char *, not unsigned char *, for class name and extra.
31716         The char values are always nonnegative so there's no need to
31717         insist on unsigned char * here, and using char * removes the need
31718         for casts.  Reported by Aharon Robbins in
31719         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31721         regex: support Gawk, which never uses alloca
31722         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
31723         Do not include in this case.  Gawk doesn't supply a substitute
31724         alloca.h and doesn't need one.
31726         regex: port __libc_lock_define usage to C89
31727         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
31728         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
31729         does not conform to C89, as it has an empty macro argument.
31730         Reported by Aharon Robbins in
31731         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31733 2013-01-01  Eric Blake  <eblake@redhat.com>
31735         maint: update all copyright year number ranges
31736         Run "make update-copyright".
31738         version-etc: bump copyright year reported in --version
31739         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
31741 2012-12-31  Eric Blake  <eblake@redhat.com>
31743         sigprocmask-tests: skip test if pid is unexpectedly large
31744         * tests/test-sigprocmask.c (main): Add range check.
31746         git-version-gen: avoid test -z portability glitch
31747         * build-aux/git-version-gen: Prefer portable test spelling, since
31748         git-version-gen is run on more than just developer machines.
31750 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
31752         git-version-gen: add --fallback option to use if git is not present
31753         * build-aux/git-version-gen: Add support for the new option --fallback,
31754         which comes into play when there is no $tarball_version_file and
31755         git is not working.
31756         (scriptversion): Update.
31758         maint.mk: handle missing git with more grace
31759         * top/maint.mk (no-submodule-changes, public-submodule-commit):
31760         Quietly proceed if git is not present.
31762 2012-12-31  Eric Blake  <eblake@redhat.com>
31764         dup2: work around cygwin bug
31765         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
31766         * lib/dup2.c (rpl_dup2): Work around it.
31767         * doc/posix-functions/dup2.texi (dup2): Document it.
31769 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31771         regex: remove unnecessary dependency on localcharset.h
31772         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
31773         hasn't been needed for years.
31774         * modules/regex (Depends-on): Remove localcharset.
31776         regex: revert single-byte change
31777         * lib/regexec.c (check_node_accept_bytes): Revert previous change
31778         to this function.  This was alredy fixed in a different way, at
31779         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
31780         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
31781         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
31783         regex: simplify based on Gawk version
31784         * lib/regex_internal.c (re_dfa_add_node): Simplify.
31785         Reported by Aharon Robbins in
31786         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31788 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31790         regex: check that pattern char is single-byte
31791         Reported by Aharon Robbins in
31792         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31793         * lib/regexec.c (check_node_accept_bytes):
31794         Return 0 if the pattern string has a multibyte character here.
31796         regex: implement rational ranges
31797         Reported by Aharon Robbins in
31798         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31799         * lib/regcomp.c (build_range_exp) [!_LIBC]:
31800         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
31801         Implement rational ranges.
31803         regex: avoid redefining __wctype
31804         Reported by Aharon Robbins in
31805         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31806         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
31807         #undef before defining.
31809         regex: port to hosts where malloc (0) == NULL
31810         Reported by Aharon Robbins in
31811         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31812         * lib/regex_internal.c (re_node_set_alloc):
31813         Don't assume that malloc (0) yields nonnull.
31814         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
31815         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
31816         * modules/regex (Files): Add m4/eealloc.m4.
31818         regex: port to C89
31819         Reported by Aharon Robbins in
31820         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31821         * lib/regcomp.c (init_word_char): Declaration before statement.
31823         regex: merge glibc changes
31824         Also, copy the license wording from glibc.  This simplifies
31825         merging changes.  gnulib-tool will change the wording to GPL as
31826         appropriate, when importing it to other packages.  The only
31827         glibc change made since the last merge, which needs merging, is:
31828         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
31829         * lib/regex_internal.h (gettext): Remove use of INTUSE.
31831         * users.txt: Add Emacs.
31833         doc: omit mention of version when not needed
31834         * doc/gnulib-intro.texi (Portability and Application Code):
31835         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
31836         Don't mention particular dates or versions when not necessary, so
31837         that the documentation won't go out of date so quickly.
31839         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
31841 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
31843         bootstrap: pass --force to autoreconf.
31844         * build-aux/bootstrap (AUTORECONFFLAGS): New.
31845         Add "--force" so that Automake's ylwrap and other such tools
31846         be updated at each bootstrap invocation.
31847         Use it.
31849 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
31851         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
31852         The earlier patch forgot to update one of the #if conditions, causing
31853         a problem on Debian testing i386 reported by Mats Erik Andersson
31854         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
31855         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
31856         (__argp_fmtstream_puts, argp_fmtstream_puts)
31857         (__argp_fmtstream_write, argp_fmtstream_write)
31858         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
31860         * doc/gnulib-readme.texi: Minor fixups.
31861         (Portability guidelines): Modernize URLs.  Remove some repetition.
31862         (Indent with spaces not TABs): Reword to avoid too-long lines.
31863         Remove some '@ifset standalone' stuff that isn't used.
31865         * doc/gnulib-readme.texi (Portability guidelines):
31866         ctype.h, not ctime.h.
31868         Correct name of POSIX.1-2001.
31869         * doc/posix-functions/fgetc.texi (fgetc):
31870         * doc/posix-functions/fgets.texi (fgets):
31871         * doc/posix-functions/fread.texi (fread):
31872         * doc/posix-functions/fscanf.texi (fscanf):
31873         * doc/posix-functions/getc.texi (getc):
31874         * doc/posix-functions/getchar.texi (getchar):
31875         * doc/posix-functions/scanf.texi (scanf):
31876         POSIX.1-2001, not POSIX-2001.
31878         doc: move README into manual
31879         * README: Move contents to new file doc/gnulib-readme.texi.
31880         Replace with a one-line summary.
31881         * doc/gnulib.texi (Brief Overview): New section,
31882         with old intro preface.  Include gnulib-readme.texi for contents.
31883         (Philosophy): Rename from "Introduction", since this
31884         section no longer introduces the rest.  Write a new preface.
31885         * doc/gnulib-readme.texi: New file, with the old contents of
31886         README texinfo-ized.  This way, the README info appears
31887         in the online and printed manual.
31889 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
31891         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
31892         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
31893         c_vasprintf() prototype.
31895 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
31897         c-vasprintf: Fix "empty declaration" warning reported by GCC.
31898         * lib/c-vasprintf.h: Remove stray semicolon.
31900 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31902         gettext: avoid obsolete macro AM_PROG_MKDIR_P
31903         It is obsolete and is planned to be removed from Automake 1.14; see
31904         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
31905         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
31906         (installdirs-data, installdirs-data-yes):
31907         Use $(MKDIR_P), not $(mkdir_p).
31908         * m4/intl.m4 (AM_INTL_SUBDIR):
31909         * m4/po.m4 (AM_PO_SUBDIRS):
31910         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
31912 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
31914         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
31915         On this platform, we are not optimizing but we are using
31916         the substitute for extern inlines, so compile as if
31917         C99-style extern inline, or a substitute, is available.
31918         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
31919         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
31920         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
31921         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
31922         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
31923         Declare as ARGP_FS_EI, not as extern.
31924         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
31925         (__option_is_short, _option_is_end, __option_is_end)
31926         [!_LIBC && __USE_EXTERN_INLINES]:
31927         Declare as ARGP_EI, not as extern.
31929 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
31931         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
31932         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
31933         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
31934         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
31935         ...), as the latter is fatal with older Autoconfs.
31936         Problem reported and fix suggested by Eric Blake in thread starting at
31937         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
31939 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31941         AC_PROG_MKDIR_P: don't workaround if not buggy
31942         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
31943         Define only for Autoconf versions before 2.62.
31944         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
31945         undocumented m4_PACKAGE_VERSION, for consistency with the
31946         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
31947         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
31948         was introduced in 2.62.
31950 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
31952         New 'c-*printf' modules for formatted output in C locale.
31954         New module 'c-vasnprintf'.
31955         * modules/c-vasnprintf: New file.
31956         * lib/c-vasnprintf.c: New file.
31957         * lib/c-vasnprintf.h: New file.
31959         New module 'c-snprintf'.
31960         * modules/c-snprintf: New file.
31961         * modules/c-snprintf-tests: New file.
31962         * lib/c-snprintf.c: New file.
31963         * lib/c-snprintf.h: New file.
31964         * tests/test-c-snprintf.c: New file.
31965         * tests/test-c-snprintf.sh: New file.
31967         New module 'c-vsnprintf'.
31968         * modules/c-vsnprintf: New file.
31969         * modules/c-vsnprintf-tests: New file.
31970         * lib/c-vsnprintf.c: New file.
31971         * lib/c-vsnprintf.h: New file.
31972         * tests/test-c-vsnprintf.c: New file.
31973         * tests/test-c-vsnprintf.sh: New file.
31975         New module 'c-vasprintf'.
31976         * modules/c-vasprintf: New file.
31977         * modules/c-vasprintf-tests: New file.
31978         * lib/c-asprintf.c: New file.
31979         * lib/c-vasprintf.c: New file.
31980         * lib/c-vasprintf.h: New file.
31981         * tests/test-c-vasprintf.c  +: New file.
31982         * tests/test-c-vasprintf.sh: New file.
31984         New module 'c-xvasprintf'.
31985         * modules/c-xvasprintf: New file.
31986         * modules/c-xvasprintf-tests: New file.
31987         * lib/c-xasprintf.c: New file.
31988         * lib/c-xvasprintf.c: New file.
31989         * lib/c-xvasprintf.h: New file.
31990         * tests/test-c-xvasprintf.c: New file.
31991         * tests/test-c-xvasprintf.sh: New file.
31993 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31995         argp: better 'inline'
31996         Use extern-inline module to declare extern inline functions.
31997         This avoids some bogus warning diagnostics.  Problem discovered
31998         when modifying GNU tar to use the manywarnings module.
31999         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32000         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32001         Define based on extern-inline.
32002         * modules/argp (Depends-on): Add extern-inline.
32004 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32006         filemode, sys_stat: Handle MPX files a la AIX.
32007         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32008         * lib/sys_stat.in.h (S_ISMPX): New macro.
32009         * tests/test-sys_stat.c: Add tests for MPX files.
32011 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32013         x-to-1: honor $PERL
32014         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32015         a chance to use his preferred version of Perl.  This is typically
32016         required by Darwin users whose default /usr/bin/perl does not have all
32017         the libraries required by help2man, and who need to use their MacPorts
32018         installation of Perl instead.
32020 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32022         gnu-web-doc-update: add all the new files, even in new directories
32023         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32024         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32025         Use it.
32026         (main): Don't use cvsutils to get the list of unknown files,
32027         just add all the existing files and directories.
32029 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32031         gnu-web-doc-update: improve --help
32032         * build-aux/gnu-web-doc-update: Move comments into --help.
32034 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32036         mountlist: recognize more "dummy" file systems
32037         * lib/mountlist.c (ME_DUMMY_0):
32038         Add these dummy FS names to the list:
32039         - "debugfs" virtual filesystem for kernel debugging
32040         - "devpts" PTY slave filesystem
32041         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32042         - "fusectl" control filesystem for FUSE
32043         - "mqueue" enumerates POSIX message queues
32044         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32045         - "sysfs" is for exporting kernel objects
32046         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32048 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32050         extern-inline: avoid incompatibility with Darwin Libc
32051         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32052         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32053         Problem reported by Akim Demaille in
32054         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32056 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32058         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32059         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32060         let it handle password prompting.
32062 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32064         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32065         * lib/canonicalize.c (canonicalize_filename_mode):
32066         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32067         fetching the current directory.  Don't overrun the beginning of
32068         rpath if there's no slashes after the MS-Windows drive letter.
32070 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32072         maint.mk: avoid extra forks
32073         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32074         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32075         So use that instead of "$(shell test -f FILE && echo FILE)".
32077 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32079         vasnprintf: fix ASCII_ONLY typo
32080         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32081         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32082         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32083         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32084         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32086 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32088         list, oset, xlist, xoset: fix extern inline issue with C99
32089         This was introduced by my recent changes for 'inline'.
32090         Problem reported for gettext by Daiki Ueno in
32091         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32092         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32093         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32094         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32095         (gl_list_previous_node, gl_list_get_at)
32096         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32097         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32098         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32099         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32100         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32101         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32102         (gl_list_iterator_free, gl_sortedlist_search)
32103         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32104         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32105         (gl_sortedlist_remove):
32106         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32107         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32108         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32109         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32110         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32111         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32112         (gl_list_add_at, gl_sortedlist_add):
32113         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32114         Wrap these extern decls inside "#if 0", because they are implemented
32115         as inline functions, and extern inline is not what's wanted here.
32116         It would simplify these .h files to remove the extern decls entirely,
32117         although a downside would be less-clear separation between
32118         specification and implementation.
32120 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32122         sys_stat: no 'static inline'
32123         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32126         extern-inline: no 'static inline'
32127         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32128         Do not require AC_C_INLINE.
32129         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32130         'static inline', for older compilers.
32132         snippet/warn-on-use: no 'static inline'
32133         * build-aux/snippet/warn-on-use.h:
32134         Remove unnecessary 'inline' in comment.
32136         rbtree-list, rbtreehash-list: no 'static inline'
32137         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32138         * lib/gl_anytree_list2.h (node_at):
32139         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32140         (gl_oset_first, add_nodes_to_buckets):
32141         Now static, not static inline.
32143         regex: no 'static inline'
32144         * lib/regex_internal.c (calc_state_hash):
32145         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32146         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32147         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32148         Now static, not static inline.
32149         (inline) [__GNUC__ < 3 && _LIBC]:
32150         Remove macro; no longer needed.
32152         xvasprintf: no 'static inline'
32153         * lib/xvasprintf.c (xstrcat):
32154         Now static, not static inline.
32155         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32156         Do not require AC_C_INLINE.
32158         parse-datetime, parse-duration: no 'static inline'
32159         * lib/parse-datetime.y (to_uchar):
32160         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32161         (scale_n_add):
32162         Now static, not static inline.
32163         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32164         * modules/parse-duration (configure.ac):
32165         Do not require AC_C_INLINE.
32167         getaddrinfo: no 'static inline'
32168         * lib/getaddrinfo.c (validate_family):
32169         Now static, not static inline.
32170         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32171         Do not require AC_C_INLINE.
32173         ftruncate, fts, lstat, openat, raise: no 'static inline'
32174         * lib/ftruncate.c (chsize_nothrow):
32175         * lib/fts.c (opendirat, diropen):
32176         * lib/lstat.c (orig_lstat):
32177         * lib/openat.c (orig_openat):
32178         * lib/raise.c (raise_nothrow):
32179         Now static, not static inline.
32180         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32181         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32182         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32183         * m4/openat.m4 (gl_PREREQ_OPENAT):
32184         * m4/raise.m4 (gl_PREREQ_RAISE):
32185         Do not require AC_C_INLINE.
32187         fflush, stat: no 'static inline'
32188         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32189         (clear_ungetc_buffer, disable_seek_optimization)
32190         (restore_seek_optimization, update_fpos_cache):
32191         * lib/stat.c (orig_stat):
32192         Now static, not static inline.
32193         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32194         (update_fpos_cache):
32195         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32196         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32197         * m4/stat.m4 (gl_PREREQ_STAT):
32198         Do not require AC_C_INLINE.
32200         error, filevercmp: no 'static inline'
32201         * lib/error.c (is_open, flush_stdout):
32202         * lib/filevercmp.c (order):
32203         Now static, not static inline.
32204         * m4/error.m4 (gl_PREREQ_ERROR):
32205         * modules/filevercmp (configure.ac):
32206         Do not require AC_C_INLINE.
32208         dup, execute, fatal-signal, etc.: no 'static inline'
32209         * lib/dup.c (dup_nothrow):
32210         * lib/execute.c (nonintr_close, nonintr_open):
32211         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32212         * lib/fopen.c (orig_fopen):
32213         * lib/freadseek.c (freadptrinc):
32214         * lib/freopen.c (orig_freopen):
32215         * lib/fstat.c (orig_fstat, fstat_nothrow):
32216         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32217         (get_rusage_as_via_iterator):
32218         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32219         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32220         * lib/isatty.c (_isatty_nothrow):
32221         * lib/open.c (orig_open):
32222         * lib/read.c (read_nothrow):
32223         * lib/sigprocmask.c (signal_nothrow):
32224         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32225         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32226         * lib/wait-process.c (unregister_slave_subprocess):
32227         * lib/write.c (write_nothrow):
32228         Now static, not static inline.
32229         * lib/spawn-pipe.c (nonintr_open): Define only if
32230         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32231         * m4/dup.m4 (gl_PREREQ_DUP):
32232         * m4/execute.m4 (gl_EXECUTE):
32233         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32234         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32235         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32236         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32237         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32238         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32239         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32240         * m4/open.m4 (gl_PREREQ_OPEN):
32241         * m4/read.m4 (gl_PREREQ_READ):
32242         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32243         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32245         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32246         * m4/write.m4 (gl_PREREQ_WRITE):
32247         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32248         Do not require AC_C_INLINE.
32250         c-strtod, memcoll, readutmp: no 'static inline'
32251         * lib/c-strtod.c (c_locale):
32252         * lib/memcoll.c (strcoll_loop):
32253         * lib/readutmp.c (desirable_utmp_entry):
32254         Now static, not static inline.
32255         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32256         * m4/memcoll.m4 (gl_MEMCOLL):
32257         * m4/readutmp.m4 (gl_READUTMP):
32258         Do not require AC_C_INLINE.
32260         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32261         * lib/arctwo.c (to_uchar):
32262         * lib/md4.c (set_uint32):
32263         * lib/md5.c (set_uint32):
32264         * lib/sha1.c (set_uint32):
32265         * lib/sha256.c (set_uint32):
32266         * lib/sha512.c (set_uint64):
32267         Now static, not static inline.  This is a bit simpler, and doesn't
32268         affect performance with GCC and default optimization.
32269         * m4/arctwo.m4 (gl_ARCTWO):
32270         * m4/md4.m4 (gl_MD4):
32271         * m4/md5.m4 (gl_MD5):
32272         * m4/sha1.m4 (gl_SHA1):
32273         * m4/sha256.m4 (gl_SHA256):
32274         * m4/sha512.m4 (gl_SHA512):
32275         Do not require AC_C_INLINE.
32277         cond, lock, thread: better 'inline'
32278         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32279         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32280         New macros.  Use them instead of static inline, for header functions.
32281         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32282         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32283         * lib/glthread/lock.c (gl_waitqueue_init)
32284         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32285         * lib/glthread/thread.c (get_current_thread_handle):
32286         Change 'static inline' to 'inline'.
32287         * lib/glthread/cond.h, lib/glthread/thread.h:
32288         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32289         * m4/cond.m4 (gl_COND):
32290         * m4/lock.m4 (gl_PREREQ_LOCK):
32291         * m4/thread.m4 (gl_THREAD):
32292         Do not require AC_C_INLINE.
32293         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32295         chdir-long, cycle-check, savewd: better 'inline'
32296         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32297         (find_non_slash):
32298         * lib/cycle-check.c (is_zero_or_power_of_two):
32299         * lib/savewd.c (savewd_delegating):
32300         Change 'static inline' to 'inline'.
32301         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32302         Replace all remaining uses of 'static inline' with it.
32303         * lib/savewd.h:
32304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32305         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32306         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32307         * m4/savewd.m4 (gl_SAVEWD):
32308         Do not require AC_C_INLINE.
32309         * modules/savewd (Depends-on): Add extern-inline.
32311         base32, base64: no need for 'inline'
32312         * lib/base32.c (to_uchar, get_8, decode_8):
32313         * lib/base64.c (to_uchar, get_4, decode_4):
32314         Change 'static inline' to 'inline'.
32315         * m4/base32.m4 (gl_PREREQ_BASE32):
32316         * m4/base64.m4 (gl_PREREQ_BASE64):
32317         Do not require AC_C_INLINE.
32319         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32320         * lib/gl_array_oset.c (gl_array_nx_add_at):
32321         (gl_array_remove_at):
32322         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32323         (add_to_bucket, remove_from_bucket):
32324         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32325         Change 'static inline' to 'static', as it's simpler to omit
32326         'inline' unless there's a significant performance advantage.
32328         list, oset, xlist, xoset, xsublist: simplify via extern inline
32329         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32330         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32331         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32332         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32333         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32334         New macro.  Replace all uses of 'static inline' with it.
32335         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32336         instead of as macros FOO that are defined to static inline
32337         functions FOO_inline.
32338         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32339         * lib/gl_xsublist.c:
32340         Reimplement from scratch, by defining the corresponding *_INLINE
32341         macro and including the corresponding .h file.  This is simpler.
32342         * modules/list, modules/oset, modules/xlist, modules/xoset:
32343         (Files): Remove m4/gl_list.m4.
32344         (configure.ac): Remove gl_LIST.
32345         * m4/gl_list.m4: Remove.
32346         * modules/list, modules/oset, modules/xlist, modules/xoset:
32347         * modules/xsublist:
32348         (Depends-on): Depend on extern-inline, not inline.
32350         xalloc: better 'inline'
32351         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32352         New macro.  Replace all uses of 'static inline' with it.
32353         (static_inline): Remove.
32354         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32355         Let 'extern inline' do the work automatically, instead of doing
32356         it by hand.
32357         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32358         Remove.  All uses removed.
32359         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32361         gethrxtime: better 'inline'
32362         * lib/xtime.c: New file.
32363         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32364         * lib/xtime.h (XTIME_INCLUDE):
32365         New macros.  Replace all uses of 'static inline' with them.
32366         * lib/gethrxtime.c (gethrxtime): Define only if
32367         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32368         this source file is now always compiled, because of the extern inline.
32369         * lib/gethrxtime.h, lib/xtime.h:
32370         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32371         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32372         if gethrtime works, as they're not needed in that case.
32373         (gl_XTIME): Do not require AC_C_INLINE.
32374         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32375         compiled now.  Move the check into gl_GETHRXTIME.
32376         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32377         (Depends-on): Add extern-inline.
32378         (configure.ac): gethrxtime is always compiled now.
32379         (lib_SOURCES): Add gethrxtime.c.
32381         wctype-h: better 'inline'
32382         * lib/wctype-h.c: New file.
32383         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32384         New macro.  Replace all uses of 'static inline' with it.
32385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32386         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32387         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32388         (Depends-on): Add extern-inline.
32390         unistd: better 'inline'
32391         * lib/unistd.c: New file.
32392         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32393         New macro.  Replace all uses of 'static inline' with it.
32394         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32395         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32396         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32397         (Depends-on): Add extern-inline.
32399         sys_socket: better 'inline'
32400         * lib/sys_socket.c: New file.
32401         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32402         New macro.  Replace all uses of 'static inline' with it.
32403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32405         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32406         (Depends-on): Add extern-inline.
32408         stdio: better 'inline'
32409         * lib/stdio.c: New file.
32410         * lib/stdio.in.h (_GL_STDIO_INLINE):
32411         New macro.  Replace all uses of 'static inline' with it.
32412         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32413         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32414         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32415         (Depends-on): Add extern-inline.
32417         sigaction: better 'inline'
32418         * lib/sig-handler.c: New file.
32419         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32420         New macro.  Replace all uses of 'static inline' with it.
32421         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32422         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32423         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32424         (Depends-on): Add extern-inline.
32426         selinux-h: better 'inline'
32427         * lib/se-context.c, lib/se-selinux.c: New files.
32428         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32429         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32430         New macro.  Replace all uses of 'static inline' with it.
32431         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32432         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32433         New macro.  Replace all uses of 'static inline' with it.
32434         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32435         * modules/selinux-h (Files, lib_SOURCES):
32436         Add lib/se-context.c, lib/se-selinux.c.
32437         (Depends-on): Add extern-inline.
32438         (configure.ac): Do not require AC_C_INLINE.
32440         pthread: better 'inline'
32441         * lib/pthread.c: New file.
32442         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32443         New macro.  Replace all uses of 'static inline' with it.
32444         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32445         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32446         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32447         * modules/pthread (Files): Add lib/pthread.c.
32448         (Depends-on): Add extern-inline.
32450         math: better 'inline'
32451         * lib/math.c: New file.
32452         * lib/math.in.h (_GL_MATH_INLINE):
32453         New macro.  Replace all uses of 'static inline' with it.
32454         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32455         * m4/math_h.m4 (gl_MATH_H):
32456         Do not require AC_C_INLINE.
32457         * modules/math (Files, lib_SOURCES):
32458         Add lib/math.c.
32459         (Depends-on): Add extern-inline.
32461         count-one-bits: better 'inline'
32462         * lib/count-one-bits.c: New file.
32463         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32464         New macro.  Replace all uses of 'static inline' with it.
32465         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32466         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32467         Do not require AC_C_INLINE.
32468         * modules/count-one-bits (Files, lib_SOURCES):
32469         Add lib/count-one-bits.c.
32470         (Depends-on): Add extern-inline.
32472         count-leading-zeros: better 'inline'
32473         * lib/count-leading-zeros.c: New file.
32474         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32475         New macro.  Replace all uses of 'static inline' with it.
32476         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32477         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32478         Do not require AC_C_INLINE.
32479         * modules/count-leading-zeros (Files, lib_SOURCES):
32480         Add lib/count-leading-zeros.c.
32481         (Depends-on): Add extern-inline.
32483         bitrotate: better 'inline'
32484         * lib/bitrotate.c: New file.
32485         * lib/bitrotate.h (BITROTATE_INLINE):
32486         New macros.
32487         Replace all uses of 'static inline' with them.
32488         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32489         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32490         (Depends-on): Add extern-inline.
32491         (configure.ac): Do not require AC_C_INLINE.
32493 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32495         maint.mk: avoid gratuitous failure
32496         Reported by Stefano Lattarini in
32497         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32498         * top/maint.mk (public-submodule-commit): Quote more safely.
32500 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32502         canonicalize, canonicalize-lgpl: support MS-Windows file names
32503         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32504         for test cases, which it'd be nice to add at some point.
32505         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32506         * lib/canonicalize.c (canonicalize_filename_mode):
32507         * lib/canonicalize-lgpl.c (__realpath):
32508         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32509         slash is at the beginning of the file name.  Use ISSLASH, instead
32510         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32511         the first character with '/'.  Test for
32512         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32513         with a drive letter.
32514         * lib/canonicalize.c (SLASHES): New macro.
32515         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32517 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32519         fts: introduce FTS_VERBATIM
32520         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32521         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32522         * lib/fts.c (fts_open): Honor it.
32524 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32526         getlogin-tests: allow errno == ENXIO
32527         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32528         with errno == ENXIO (No controlling tty).
32529         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32530         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32531         with errno == ENOENT.  This was reported to happen in various
32532         situations on GNU/Linux.
32534 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32536         getlogin-tests: allow errno == ENOENT
32537         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32538         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32539         when running a test in an Emacs shell buffer.
32541 2012-11-08  Jim Meyering  <jim@meyering.net>
32543         tests/nap.h: avoid warning about unused variable
32544         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32546         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32547         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32548         white space before each of the special-cased file names, to avoid
32549         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32550         in http://bugs.gnu.org/12830.
32552 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32554         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32555         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32556         fails with errno == EBADF when fd is opened with O_PATH.
32557         Reported by Jim Meyering in
32558         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32559         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32560         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32562 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32564         test-utimens: speed up by taking shorter naps
32565         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32566         New functions.
32567         (nap): Use them, to do a better job of guessing the delay.
32568         On Fedora 17 with ext4 atop md atop hard disks, this made
32569         test-utimens run 10x faster, because the test napped for
32570         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32571         <http://bugs.gnu.org/12820#11>.
32573 2012-11-07  Jim Meyering  <jim@meyering.net>
32575         mountlist.c: fix a compilation failure
32576         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32577         I introduced while transforming commit v0.0-7683-g613bcb6
32579 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32581         errno: port to LynxOS 178 2.2.2
32582         Problem reported by Joel Brobecker in
32583         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32584         * doc/posix-headers/errno.texi (errno.h): Document this.
32585         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32586         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
32587         Supply a string for EILSEQ.
32588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
32590 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32592         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
32593         Linux kernel 2.6.39 introduced O_PATH (see
32594         <http://lwn.net/Articles/433854/>) and this is a better fallback
32595         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
32596         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32597         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
32598         * lib/fcntl.in.h (O_ACCMODE):
32599         * tests/test-fcntl-h.c (main):
32600         Do not reject O_ACCMODE merely because it has more than the
32601         minimal number of bits, as POSIX allows extensions here.
32603 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
32605         mountlist: do not classify a bind-mounted dir entry as "dummy"
32606         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
32607         the "none"-testing clause.
32608         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
32609         exception for bind-mounted directories.
32611 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
32613         quote: provide a means to escape strings with nul characters
32614         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
32615         (quote, quote_n): Rename formal arguments for consistency with
32616         quotearg.
32618 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32620         test-raise: don't assume 199 is an invalid signal
32621         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
32623         sh-quote-tests: port to Solaris 9
32624         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
32625         Problem reported by Dagobert Michelsen in
32626         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
32628 2012-10-28  Jim Meyering  <jim@meyering.net>
32630         maint.mk: rename a new configurable variable
32631         * top/maint.mk (_gl_translatable_string_re): Rename from
32632         translation-markers: _gl_ prefix to insulate from user Makefile code,
32633         and the _re suffix to inform that it's a regular expression.
32635 2012-10-26  Eric Blake  <eblake@redhat.com>
32637         maint.mk: let packages tweak sc_po_check pattern
32638         * top/maint.mk (sc_po_check): Add translation-markers, to allow
32639         finding files with other translation markers.
32641 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32643         euidaccess: speed up 'configure' on GNU hosts
32644         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
32645         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
32646         it's needed only in this case.  Use AC_CHECK_DECLS, not
32647         AC_CHECK_DECLS_ONCE.
32648         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32649         or AC_REQUIRE for AC_FUNC_GETGROUPS.
32651         * lib/regexec.c (re_search_internal): Fix grammar in comment.
32653 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32655         fchmodat, fchownat, fstatat: port to non-inlining compilers
32656         Problem reported for FreeBSD 9 by Jim Meyering in
32657         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
32658         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
32659         New files, which define FCHMODAT_INLINE etc.
32660         * lib/fchmodat.c (FCHMODAT_INLINE):
32661         * lib/fchownat.c (FCHOWNAT_INLINE):
32662         * lib/fstatat.c (FSTATAT_INLINE):
32663         Remove, as chmodat.c etc. now do this.
32664         * modules/fchmodat (Files): Add lib/chmodat.c.
32665         * modules/fchownat (Files): Add lib/chownat.c.
32666         * modules/fstatat (Files): Add lib/statat.c.
32668 2012-10-15  Jim Meyering  <jim@meyering.net>
32670         fchmodat.c, fchownat.c: compile-impeding typos
32671         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
32672         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
32673         Introduced in commit v0.0-7636-gd202279.
32675 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32677         fcntl-h: support GNU flags like O_IGNORE_CTTY
32678         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
32679         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
32680         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
32681         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
32682         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
32683         Define to 0 if not already defined.
32684         * tests/test-fcntl-h.c: Test these new flags.
32686 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32688         faccessat, etc.: support AT_FDCWD-only use
32689         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
32690         this function only if its first argument is AT_FDCWD.
32691         Emacs wants faccessat for AT_EACCESS but not for any first-arg
32692         values other than AT_FDCWD, so it doesn't want all the openat
32693         machinery with fchdir etc.
32694         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
32695         * modules/fstatat, modules/mkdirat, modules/openat (Files):
32696         * modules/unlinkat (Files):
32697         Remove lib/openat-priv.h, as at-internal supplies this file.
32698         Removing this file here allows us to support programs like Emacs
32699         that avoid at-internal.
32701         faccessat: speed up 'configure' on mainstream hosts
32702         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
32703         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
32704         since it's only on unusual platforms that we need to check for
32705         'access', and it's better not to slow 'configure' down on all
32706         platforms.
32708         faccessat: port to Solaris 10
32709         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
32710         Needed on Solaris 10, which doesn't have AT_EACCESS,
32711         so we need the Gnulib fcntl.h, which defines it.
32713 2012-10-14  Pádraig Brady  <P@draigBrady.com>
32714         canonicalize: fix C89 compilation
32715         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
32716         declarations so C89 is supported.  Also remove the comment
32717         referencing memorty allocation as the suggested feature could
32718         not be implemented as suggested.
32719         Reported by Michael Goffioul.
32721 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32723         group-member: omit unnecessary dependencies
32724         This is for Emacs, which has its own allocator and where we
32725         don't want to use xalloc.
32726         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
32727         since we no longer use xmalloc.  Do not include stdbool.h, since
32728         the changes below happen to remove the only use of bool.
32729         (GROUPBUF_SIZE): New constant.
32730         (struct group_info): Remove n_groups member.  Add groupbuf member.
32731         This lets us get the groups without using malloc, usually.
32732         (free_group_info, get_group_info): Adjust to this.
32733         (get_group_info): Return the number of groups found, or -1 on error.
32734         Use plain malloc not xmalloc, and treat its failure as if there
32735         are no groups, as the user already loses in case of error.
32736         (group_member): Simplify, based on changes to get_group_info.
32737         * modules/group-member (Depends-on): Remove dependencies on
32738         xalloc and stdbool.  Add dependency on xalloc-oversized.
32740 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
32742         gethrxtime: port to C++
32743         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
32745 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32747         ptsname: fix macro-name typo
32748         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
32750 2012-10-03  Simon Josefsson  <simon@josefsson.org>
32752         inttostr: Relax license.
32753         * modules/inttostr (License): Change from LGPL to LGPLv2+.
32755 2012-10-03  Eric Blake  <eblake@redhat.com>
32757         ptsname_r: support ptys returned by FreeBSD posix_openpt
32758         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
32759         lives in /dev/pts/.
32761 2012-10-02  Eric Blake  <eblake@redhat.com>
32763         pselect: reject invalid file descriptors
32764         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
32765         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
32766         * modules/pselect (Depends-on): Add dup2.
32767         * doc/posix-functions/pselect.texi (pselect): Document this.
32769         select: reject invalid file descriptors
32770         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
32771         * lib/select.c (rpl_select) [!win32]: Work around it.
32772         * modules/select (Depends-on): Add dup2.
32773         * doc/posix-functions/select.texi (select): Document this.
32775         select: enhance test
32776         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
32777         New functions.
32778         (test_function): Enhance test.
32779         (do_select_bad_fd): Avoid any stale errno values.
32781         ptsname: reject invalid file descriptors
32782         http://www.austingroupbugs.net/view.php?id=503
32783         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
32784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
32785         * modules/stdlib (Makefile.am): Replace witness.
32786         * lib/stdlib.in.h (ptsname): Allow for replacement.
32787         * modules/ptsname (configure.ac): Trigger replacement.
32788         * doc/posix-functions/ptsname.texi (ptsname): Document this.
32790 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
32792         hash-pjw-bare: new module
32793         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
32794         * lib/hash-pjw-bare.h: Likewise.
32795         * modules/hash-pjw-bare: New file.
32796         * MODULES.html.sh (Misc): Add it.
32798 2012-10-02  Eric Blake  <eblake@redhat.com>
32800         manywarnings: cater to more gcc infelicities
32801         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
32802         -Wuninitialized without -O.
32804 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
32806         select, poll tests: Make setsockopt invocation effective.
32807         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
32808         the bind() call.
32809         * tests/test-select.h (open_server_socket): Likewise.
32811 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32813         sockets, sys_stat: restore AC_C_INLINE
32814         This undoes the 2012-09-22 patch.
32815         * m4/sockets.m4 (gl_SOCKETS):
32816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
32817         Restore AC_C_INLINE, since MSVC requires __inline or _inline
32818         and does not support plain 'inline'.  Reported by Bruno Haible in
32819         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
32821 2012-09-30  Bruno Haible  <bruno@clisp.org>
32823         localeconv tests: Avoid test failure on OpenIndiana.
32824         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
32825         skip the 'grouping' and 'mon_grouping' tests.
32826         Reported by Jim Meyering.
32828 2012-09-30  Bruno Haible  <bruno@clisp.org>
32830         havelib: Follow libtool developments.
32831         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
32832         Suggested by Simon Josefsson.
32834 2012-09-29  Jim Meyering  <meyering@redhat.com>
32836         fstatat.c: fix a compile-impeding typo
32837         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
32838         Introduced in commit v0.0-7636-gd202279.
32839         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
32841 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
32843         extern-inline: provide a -Wundef safe config.h
32844         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
32845         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
32846         to produce a -Wundef warning free config.h.
32848 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32850         hash-pjw: relax license to LGPLv2+
32851         * modules/hash-pjw (License): Relax, with consent of author.
32853 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
32855         maint.mk: fix strict vs. lazy variable issues with RELEASE
32856         * top/maint.mk (_equal): New function.
32857         (member_check): Strip the result to avoid spurious spaces.
32858         (url_dir_list): Do not use ifeq, which is strict, as it will
32859         require RELEASE_TYPE to be defined.
32860         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
32861         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
32862         (announcement_Cc_alpha,announcement_mail_headers_alpha)
32863         (announcement_Cc_beta,announcement_mail_headers_beta)
32864         (announcement_Cc_stable,announcement_mail_headers_stable): these.
32865         (release): Do not depend on $(release-type), as it forces its
32866         evaluation.  Bounce to it.
32868 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
32870         maint.mk: formatting changes
32871         * top/maint.mk: Indent bodies of if's.
32873 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
32875         maint.mk: factor the validation of RELEASE_TYPE
32876         With help from Jim Meyering.
32877         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
32878         * top/maint.mk (_empty, _sp): Move their definition earlier.
32879         (member-check, release-type): New.
32880         Use the latter instead of $(RELEASE_TYPE).
32881         Remove now useless local checks.
32883 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
32885         maint.mk: provide "make upload" to ease uploading
32886         See
32887         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
32888         Do not depend simply on the current $(VERSION), as there may have been
32889         new commits since the tarball generation.  Rather, rely on $(RELEASE),
32890         as "make release-commit" already does.
32892         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
32893         "make TYPE".
32895         * top/maint.mk (upload_command, upload, release): New.
32896         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
32897         (VERSION): first word of $(RELEASE) is always right.
32898         (emit_upload_commands): Adjust.
32899         * top/README-release: Update.
32901 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
32903         maint.mk: silent rules
32904         With help from Stefano Lattarini.
32905         * top/maint.mk (writable-files): Use $(AM_V_GEN).
32906         (announcement): Use $(AM_V_at).
32908 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
32910         localename: port gl_locale_name_thread_unsafe to FreeBSD
32911         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
32912         and use the simpler FreeBSD implementation on Mac OS X as well.
32913         Original idea suggested by Ed Maste in
32914         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
32916 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32918         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
32919         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
32920         * lib/mbuiter.c, lib/xsize.c: New files.
32921         * lib/binary-io.h (BINARY_IO_INLINE):
32922         * lib/eealloc.h (EEALLOC_INLINE):
32923         * lib/mbfile.h (MBFILE_INLINE):
32924         * lib/mbiter.h (MBITER_INLINE):
32925         * lib/mbuiter.h (MBUITER_INLINE):
32926         * lib/xsize.h (XSIZE_INLINE):
32927         New macros.
32928         Replace all uses of 'static inline' with them.
32929         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32930         * m4/eealloc.m4 (gl_EEALLOC):
32931         * m4/mbfile.m4 (gl_MBFILE):
32932         * m4/mbiter.m4 (gl_MBITER):
32933         * m4/xsize.m4 (gl_XSIZE):
32934         Do not require AC_C_INLINE.
32935         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
32936         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
32937         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
32938         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
32939         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
32940         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
32941         * modules/binary-io, modules/eealloc, modules/mbfile:
32942         * modules/mbiter, modules/mbuiter:
32943         (Depends-on): Add extern-inline.
32945         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
32946         * lib/pipe-filter-aux.c: New file.
32947         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
32948         Replace all uses of 'static inline' with it.
32949         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32950         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
32951         (filter_retcode): No real need for inline here.
32952         * modules/pipe-filter-gi, modules/pipe-filter-ii:
32953         (Files): Add lib/pipe-filter-aux.c.
32954         (Depends-on): Add extern-inline.
32955         (configure.ac): Do not require AC_C_INLINE.
32956         (lib_SOURCES): Add pipe-filter-aux.c.
32958         fdutimensat: omit unnecessary AC_C_INLINE
32959         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
32961         fchmodat, fchownat, fstatat: use extern-inline
32962         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
32963         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
32964         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
32965         New macros.
32966         * lib/openat.h:
32967         Replace all uses of 'static inline' with them.
32968         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32969         * modules/fchmodat, modules/fchownat, modules/fstatat:
32970         * modules/openat-h:
32971         (Depends-on):
32972         Add extern-inline.
32973         (configure.ac): Remove AC_C_INLINE.
32975         acl, mbchar, priv-set: use extern-inline
32976         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
32977         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
32978         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
32979         New macros.
32980         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
32981         Replace all uses of 'static inline' with it.
32982         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32983         * m4/acl.m4 (gl_FUNC_ACL):
32984         * m4/mbchar.m4 (gl_MBCHAR):
32985         * m4/priv-set.m4 (gl_PRIV_SET):
32986         Remove AC_C_INLINE, since 'inline' is no longer used directly.
32987         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
32988         Add extern-inline.
32990         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
32991         * m4/sockets.m4 (gl_SOCKETS):
32992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
32993         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
32994         environments where it's already guaranteed to work, so we needn't
32995         check for it at 'configure'-time.
32997         tls-tests: omit unnecessary 'inline'
32998         * tests/test-tls.c (perhaps_yield): No longer inline.
32999         Simplicity and portability trump efficiency in test cases.
33001         utimens-tests: avoid unnecessary 'inline'
33002         * modules/fdutimensat-tests (configure.ac):
33003         * modules/futimens-tests (configure.ac):
33004         * modules/utimens-tests (configure.ac):
33005         * modules/utimensat-tests (configure.ac):
33006         Remove AC_C_INLINE.
33007         * tests/test-utimens-common.h (ctime_compare):
33008         No longer inline.  Simplicity and portability trump efficiency here.
33010         misc: don't limit commentary to inline functions
33011         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33012         * lib/xalloc-oversized.h, lib/xsize.h:
33013         Contrast macros to functions in general, not just to inline functions,
33014         when the commentary does not apply only to inline functions.
33016 2012-09-20  Jim Meyering  <meyering@redhat.com>
33018         non-recursive-gnulib-prefix-hack: new module
33019         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33020         the file that originated in Bison.
33021         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33022         largely copied from a snippet that resided in bison's configure.ac.
33023         * modules/non-recursive-gnulib-prefix-hack: New file.
33024         * MODULES.html.sh (Support for maintaining and releasing projects):
33025         Add it.
33027 2012-09-18  Jim Meyering  <meyering@redhat.com>
33029         maint.mk: generalize _gl_tight_scope for non-recursive make
33030         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33031         that *.h would describe additional .h files in the directory
33032         specified by $(_gl_TS_dir).  I.e., add this...
33033         (_gl_TS_other_headers): New variable.
33035         maint.mk: exempt trailing blanks found in "binary" files
33036         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33037         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33038         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33040 2012-09-17  Jim Meyering  <meyering@redhat.com>
33042         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33043         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33044         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33045         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33047 2012-09-17  Jim Meyering  <meyering@redhat.com>
33049         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33050         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33051         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33052         It is not in the same category as "exit (0)" or "exit (1)", and
33053         besides, I know of no symbolic name for that 77.  Reported by
33054         Richard W.M. Jones in
33055         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33057 2012-09-17  Jim Meyering  <meyering@redhat.com>
33059         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33060         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33061         all uses of #define, not just those that start in column 1.
33062         Richard W.M. Jones reported a false positive in
33063         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33065 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33067         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33068         * lib/localcharset.c (locale_charset) [DARWIN7]:
33069         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33070         as these two values are incompatible.  Problem reported by Max Horn.
33071         For more discussion, please see
33072         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33074         doc: document sticky-EOF issue
33075         * doc/posix-functions/fgetc.texi (fgetc):
33076         * doc/posix-functions/fgets.texi (fgets):
33077         * doc/posix-functions/fread.texi (fread):
33078         * doc/posix-functions/fscanf.texi (fscanf):
33079         * doc/posix-functions/getc.texi (getc):
33080         * doc/posix-functions/getchar.texi (getchar):
33081         * doc/posix-functions/scanf.texi (scanf):
33082         Mention that glibc and default Solaris do not conform to
33083         C99 and POSIX-2001 or later, with respect to how getchar
33084         etc. behave when feof reports nonzero.
33086 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33088         poll: fix poll(0, NULL, msec)
33089         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33090         but nfd is 0.  In that case poll should behave like select.
33092 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33093             Paolo Bonzini  <bonzini@gnu.org>
33095         poll: fix for systems that can't recv() on a non-socket
33096         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33097         is readable.  In this case POLLHUP will not be supported.
33098         * doc/posix-functions/poll.texi: Document this.
33100 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33102         poll/select: document portability problems not fixed by Gnulib.
33103         * doc/posix-functions/poll.texi: poll does not work well on
33104         pipes under Windows.  It has the same limitations as select on
33105         BeOS.
33106         * doc/posix-functions/select.texi: select does not work well
33107         on pipes under Windows.
33109 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33111         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33112         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33113         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33114         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33116 2012-09-06  Eric Blake  <eblake@redhat.com>
33118         net_if: give more details about the bug being fixed
33119         * doc/posix-headers/net_if.texi: Add clarification.
33121 2012-09-05  Eric Blake  <eblake@redhat.com>
33123         net_if: new module
33124         * modules/net_if: New module, borrowing ideas from netinet_in.
33125         * m4/net_if_h.m4: New file.
33126         * lib/net_if.in.h: Likewise.
33127         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33128         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33129         * tests/test-net_if.c: Make function checks conditional.
33130         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33132 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33134         readutmp: fix non-portable UT_PID use
33135         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33136         Use `UT_PID (u) > 0' as absolute condition.
33138 2012-09-04  Jim Meyering  <meyering@redhat.com>
33140         fts: reduce two or more trailing spaces to just one, usually
33141         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33142         or more slashes, trim all but the final one.  But if a name consists
33143         solely of two slashes, don't modify it.  If it consists solely of
33144         three or more slashes, strip all but one.
33146         This is part of the solution to a minor problem with rm:
33147         it would print a bogus ELOOP diagnostic when failing to remove
33148         the slash-decorated name of a symlink-to-directory:
33150             $ mkdir d && ln -s d s && env rm -r s/
33151             rm: cannot remove 's': Too many levels of symbolic links
33153         With the change below and a trivial don't-trim-trailing-slashes
33154         adjustment to remove.c, it does this:
33156             $ env rm -r s/
33157             rm: cannot remove 's/': Not a directory
33159         Improved by: Eric Blake
33161         fts: when there is no risk of overlap, use memcpy, not memmove
33162         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33164 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33166         stdbool: be more compatible with mixed C/C++ compiles
33167         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33168         Define to bool, true, false, respectively, as GCC's builtin
33169         stdbool.h does.  Problem reported by Michael Goffioul in
33170         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33172 2012-08-28  Jim Meyering  <meyering@redhat.com>
33174         revert last change: it was not needed
33175         * tests/test-vc-list-files-git.sh: There's already a test for
33176         a working git, just below.
33178 2012-08-28  Jim Meyering  <meyering@redhat.com>
33180         tests: test-vc-list-files-git.sh: skip if git is not available
33181         * tests/test-vc-list-files-git.sh: Skip this test when git is
33182         not available.
33184 2012-08-26  Bruno Haible  <bruno@clisp.org>
33186         gnulib-tool: Remove no-op option --no-changelog.
33187         * gnulib-tool (func_usage): Don't mention --no-changelog.
33188         (do_changelog): Remove variable.
33189         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33191 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33193         doc: remove fdl-1.2.texi
33194         It is no longer used or maintained, and its use of @acronym
33195         is problematic.  See the thread containing
33196         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33197         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33198         * doc/old-licenses/fdl-1.2.texi: Remove.
33200         execinfo: port to FreeBSD
33201         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33202         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33203         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33204         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33206 2012-08-23  Jim Meyering  <meyering@redhat.com>
33208         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33209         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33210         to placate gcc's -Wold-style-declaration.
33212 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33214         doc: do not use @acronym
33215         * doc/inet_ntoa.texi (inet_ntoa):
33216         * doc/parse-datetime.texi (Seconds since the Epoch)
33217         (Specifying time zone rules):
33218         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33219         Don't use @acronym.  Problem reported by John Darlington in
33220         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33222 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33224         stdnoreturn: port to newer GCCs
33225         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33226         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33227         Problem reported by Jim Meyering in
33228         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33229         Also, rename the 'test' function to a void a clash with the
33230         already-supplied 'main' function; this fixes a bug that incorrectly
33231         rejected GCC 4.7.1's <stdnoreturn.h>.
33232         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33233         Document GCC problem.
33235 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33237         pipe-filter: fix comment typo
33238         * lib/pipe-filter.h: Mention correct function.
33240 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33242         execinfo: new module
33243         This is for Emacs.  Currently, it provides a no-effect stub
33244         on all platforms where it does not already work.
33245         It already works on glibc-based systems, and on Solaris 11.
33246         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33247         New files.
33248         * doc/glibc-headers/execinfo.texi (execinfo.h):
33249         * MODULES.html.sh (Misc): Document it.
33251 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33253         extern-inline: support old GCC 'inline'
33254         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33255         if available.  This applies to GCC versions 2.7 through 4.2, or
33256         when newer GCC is using -fgnu89-inline.  The goal is to address
33257         some of the performance issues mentioned by Bruno Haible in
33258         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33260 2012-08-20  Eric Blake  <eblake@redhat.com>
33262         maint.mk: avoid redundant file name in message
33263         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33264         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33265         (sc_makefile_path_separator_check): Remove bogus $(ME).
33267 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33269         timer-time: fix link order when static linking on glibc
33270         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33271         _after_ -lrt so that it's significant.
33273 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33275         timespec: omit unnecessary AC_C_INLINE
33276         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33278         stat-time: omit unnecessary AC_C_INLINE
33279         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33280         Do not require AC_C_INLINE.
33282         ignore-value: omit unnecessary AC_C_INLINE
33283         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33285         sys_select: avoid 'static inline'
33286         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33288         mktime: avoid 'static inline'
33289         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33290         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33292 2012-08-19  Bruno Haible  <bruno@clisp.org>
33294         gnulib-tool: Improve coding style.
33295         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33296         func_emit_lib_Makefile_am.
33297         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33299 2012-08-19  Bruno Haible  <bruno@clisp.org>
33301         gnulib-tool: Fix indentation.
33302         * gnulib-tool (func_import): Fix indentation.
33304 2012-08-19  Bruno Haible  <bruno@clisp.org>
33306         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33307         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33308         on the list of removed files.
33310 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33312         test-parse-datetime: avoid glibc leap-second glitch
33313         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33314         with the 2012 rules.  Problem reported by Bruce Dubbs in
33315         <http://bugs.gnu.org/12206>.
33317 2012-08-14  Bruno Haible  <bruno@clisp.org>
33319         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33320         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33321         from argument.
33322         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33324 2012-08-14  Eric Blake  <eblake@redhat.com>
33326         ldexp: relax license
33327         * modules/ldexp (License): Trivial relax, since the module only
33328         provides a permissively licensed m4 file.
33330 2012-08-13  Bruno Haible  <bruno@clisp.org>
33332         gnulib-tool: Fix persistence of --witness-c-macro option.
33333         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33334         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33336 2012-08-11  Eric Blake  <eblake@redhat.com>
33338         count-leading-zeros: use a lookup table on non-gcc compilers
33339         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33340         alternate implementation, suggested by Jim Meyering.
33342 2012-08-10  Eric Blake  <eblake@redhat.com>
33344         count-leading-zeros: new module
33345         * modules/count-leading-zeros: New module.
33346         * m4/count-leading-zeros.m4: New file.
33347         * lib/count-leading-zeros.h: Likewise.
33348         * modules/count-leading-zeros-tests: New test.
33349         * tests/test-count-leading-zeros.c: New file.
33350         * MODULES.html.sh (Integer arithmetic functions): Document it.
33352 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33353             Jim Meyering  <meyering@redhat.com>
33355         maintainer-makefile: Fix syntax error with dash.
33356         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33357         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33359 2012-08-05  Jim Meyering  <meyering@redhat.com>
33361         extern-inline: also ignore -Wmissing-declarations
33362         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33363         required with gcc-4.8.0-to-be.
33365         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33366         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33367         for /error ?([^,]*)/.  This avoids false-positives for strings like
33368         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33370 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33372         gnumakefile: better interaction with Automake-NG
33373         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33374         Automake-NG always contain a definition of VPATH, even in non-VPATH
33375         builds (its value being simply '.' in that case).  So, in the
33376         'clean-GNUmakefile' rule, to determine whether running under a
33377         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33378         '$(VPATH)' expands to the empty string.
33380 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33382         base64: Use extern C scope in header file, for C++.
33383         * lib/base64.h: Add C++ namespace protection.
33385 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33387         stat-time, timespec, u64: support naive out-of-dir builds
33388         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33389         Use '#include "foo.h"', not '#include <foo.h>', when including
33390         one's own interface.  This works better when configuring with
33391         out-of-directory builds, since packages need not add an
33392         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33394 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33396         utimens: use extern-inline
33397         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33398         * lib/utimens.h: Add copyright notice, since this is now large enough
33399         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33400         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33401         * modules/utimens (Depends-on): Add extern-inline.
33403         u64: use extern-inline
33404         * lib/u64.c: New file.
33405         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33406         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33407         * modules/u64 (Files): Add lib/u64.c.
33408         (Depends-on): Add extern-inline.
33409         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33410         does that now.
33411         (lib_SOURCES): Add u64.c.
33413         timespec: use extern-inline
33414         * lib/timespec.c: New file.
33415         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33416         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33417         * modules/timespec (Files): Add lib/timespec.c.
33418         (Depends-on): Add extern-inline.
33419         (lib_SOURCES): Add timespec.c.
33421         stat-time: use extern-inline
33422         * lib/stat-time.c: New file.
33423         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33424         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33425         * modules/stat-time (Files): Add lib/stat-time.c.
33426         (Depends-on): Add extern-inline.
33427         (lib_SOURCES): Add stat-time.c.
33429         extern-inline: new module
33430         * modules/extern-inline, m4/extern-inline.m4: New files.
33431         This is for better support of 'extern inline' a la ISO C99,
33432         with a portable alternative on compilers that do not support
33433         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33434         of the Emacs executable, when compiled with debugging disabled,
33435         which is a typical way that Emacs is built while developing.
33437 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33439         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33440         * build-aux/do-release-commit-and-tag: Move variable definitions
33441         together.
33442         ($branch): Instead of defaulting to "master", default to the current
33443         branch (as gnu-web-doc-update does).
33444         (help): Display the current values of the option arguments.
33445         * top/maint.mk (release-commit): New.
33446         * top/README-release: Simplify the corresponding step.
33448 2012-07-30  Eric Blake  <eblake@redhat.com>
33450         passfd: fix comment on recvfd
33451         * lib/passfd.c (recvfd): Fix comment.
33452         Reported by Jann Horn <jannhorn@googlemail.com>.
33454 2012-07-30  Jim Meyering  <meyering@redhat.com>
33456         maint.mk: avoid a sub-shell
33457         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33459 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33461         maint.mk: use silent-rules support from Automake
33462         * top/maint.mk (news-check, vc-diff-check, announcement)
33463         (no-submodule-changes, alpha beta stable, release-prep)
33464         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33466 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33468         maint.mk: provide a web-manual-update target
33469         * top/maint.mk: here.
33470         * top/README-release: Use it to simplify the web manual update step.
33472 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33474         README-release: shorten the circuit to post a news
33475         * top/README-release: Point directly to the news submission form.
33477 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33479         gnu-web-doc-update: fix --help
33480         * build-aux/gnu-web-doc-update: The information "top level" was written
33481         twice.
33483 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33485         maint.mk: absolute VPATH issue
33486         * top/maint.mk (release-prep): Help Git find .git/.
33487         From Jim Meyering.
33489 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33491         gitlog-to-changelog: fix previous change
33492         * build-aux/gitlog-to-changelog: Fix condition.
33493         Add missing ";".
33495 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33497         gitlog-to-changelog: don't expect .git to be in $srcdir
33498         Reported by Bruno Haible.
33499         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33500         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33501         Use it.
33503 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33505         maint.mk: absolute VPATH build fix
33506         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33507         $(srcdir) is not a parent of $(builddir).
33509 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33511         clean-temp: Fix memory leak.
33512         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33513         'files' members of tmpdir.
33515 2012-07-27  Jim Meyering  <meyering@redhat.com>
33517         maint.mk: new rule: refresh-gnulib-patches
33518         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33519         Use this rule to refresh them.
33520         * top/maint.mk (refresh-gnulib-patches): New rule.
33522 2012-07-24  Bruno Haible  <bruno@clisp.org>
33524         gnulib-tool: Fix handling of inctests variable.
33525         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33526         Reported by Nick Bowler <nbowler@elliptictech.com>.
33528 2012-07-22  Bruno Haible  <bruno@clisp.org>
33530         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33531         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33532         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33533         Remove exemption for getpass.h.
33534         Suggested by Eric Blake.
33536 2012-07-20  Eric Blake  <eblake@redhat.com>
33538         verify: document conflict with -Wnested-externs
33539         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33541         maint.mk: forbid exit(-1)
33542         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33544 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33546         fsusage: port back to Solaris
33547         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33548         error (fsd not declared) on Solaris 10.  Reported privately by
33549         Andrew Borodin.
33551 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33553         gnu-web-doc-update: fix error messages
33554         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33556         gnu-web-doc-update: check the requirements.
33557         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33558         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33559         * build-aux/bootstrap (find_tool): Comment change.
33561 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33563         maint.mk: minor simplication.
33564         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33565         for default values.
33567 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33569         gitlog-to-changelog: VPATH build issues
33570         If builddir is not a subdirectory of srcdir, running git from it will
33571         fail.
33572         * build-aux/gitlog-to-changelog (--srcdir): New option.
33574 2012-07-15  Bruno Haible  <bruno@clisp.org>
33576         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33577         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33578         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33579         Remove exemption for fpending.h.
33580         Suggested by Eric Blake.
33582 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33584         pthread_sigmask: fix bug on FreeBSD 9
33585         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33586         Include string.h.
33587         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
33588         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
33589         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
33590         but pthread_sigmask (1729, NULL, NULL) returns zero.
33591         See <http://bugs.gnu.org/11884>.
33592         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
33593         by inspecting whether the main call changed the old mask.
33595 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
33597         README-release: make it more legible
33598         * top/README-release: Improve typography slightly.
33600 2012-07-15  Jim Meyering  <meyering@redhat.com>
33602         maint: require that each sc_... command start with "@"
33603         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
33604         "make sc_maint" helps us avoid this nit.
33606 2012-07-15  Jim Meyering  <meyering@redhat.com>
33608         maint.mk: add leading "@" to quiet new "make syntax-check" rule
33609         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
33611 2012-07-13  Eric Blake  <eblake@redhat.com>
33613         maint.mk: new syntax check for HAVE_DECL checks
33614         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
33615         * cfg.mk
33616         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33617         Exempt some false positives.
33618         Based on a report by Karel Zak.
33620         argp: make HAVE_DECL usage consistent
33621         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
33622         macros, not whether they are defined.
33623         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
33624         convention with other declaration checks.
33625         Reported by Karel Zak, with suggestions from Paul Eggert.
33627         stat-time: relax license to LGPLv2+
33628         * modules/stat-time (License): Relax, with consent of all authors.
33630         strndup: fix m4 usage error
33631         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
33632         defined, to either 0 or 1.
33633         Reported by Karel Zak.
33635 2012-07-11  Jim Meyering  <meyering@redhat.com>
33637         maint: enable the sc_avoid_if_before_free syntax-check rule
33638         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
33639         (if_before_free_offenders_): Define.
33640         (if_before_free_basename_re_): Define.
33641         Exempt current files with useless if-before-free.
33643 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33645         gettext: do not assume '#define ... defined ...' behavior
33646         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
33647         Do not use '#define FOO ... defined BAR ...', as the C standard says
33648         it's not portable to expect that this works after macro expansion.
33649         Problem reported for gzip by Steven M. Schweda in
33650         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
33652 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33654         getloadavg: clean out old Emacs and Autoconf cruft
33655         See Glenn Morris in <http://bugs.gnu.org/11905>.
33656         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
33657         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
33658         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
33659         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
33661 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
33663         bootstrap: let warn be like tests/init.sh's warn_
33664         Reported by Jim Meyering.
33665         * build-aux/bootstrap (warn): Remove, replaced by...
33666         (warnf_, warn_): these.
33667         Adjust callers.
33668         Shorten messages that no longer fit in 80 columns.
33670 2012-07-09  Bruno Haible  <bruno@clisp.org>
33672         getopt: Simplify after Emacs changed.
33673         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
33674         (gl_GETOPT_IFELSE): Remove macro.
33676 2012-07-09  Jim Meyering  <meyering@redhat.com>
33678         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
33679         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
33681         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
33682         Bugs in both of those conspired to make the
33683         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
33684         _sc_search_regexp's handling of non-empty $in_files would filter
33685         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
33686         choice of in_files value meant there would be no match in most
33687         projects, due to the presence of two or more Makefile.in files.
33688         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
33689         Fix a bug in how a non-empty $$in_files was processed:
33690         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
33691         in spite of the name, it's a regexp, not a list of file names.
33693 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33695         getloadavg, getopt: fix commentary re configure.in
33696         Autoconf is deprecating the name 'configure.in', so change it to
33697         to the new name 'configure.ac' in a couple of places.
33698         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
33699         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
33700         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
33701         Emacs has renamed it to configure.ac, and it no longer refers
33702         to these macros anyway.
33704         timespec: mark functions with const attributes
33705         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
33706         Mark with _GL_ATTRIBUTE_CONST.
33708 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33710         canonicalize[-lgpl]: handle "guessing" values when cross-building
33711         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33712         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
33713         matches "*yes" instead of just "yes".  Regression introduced in commit
33714         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
33716 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33717             Bruno Haible  <bruno@clisp.org>
33719         canonicalize: make the right guess when cross-compiling to GNU
33720         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
33721         determine whether cross-compiling to glibc systems, so as to
33722         include GNU/Hurd.
33724 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33726         timespec-sub: avoid duplicate include
33727         * lib/timespec-sub.c: Do not include <config.h> twice.
33728         Reported by Juanma Barranquero.
33730 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
33732         bootstrap: use a more consistent error reporting scheme
33733         * build-aux/bootstrap (warn, die): New.
33734         Use them.
33736 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33738         sys_time: allow too-wide tv_sec
33739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
33740         timeval even if tv_sec is wider than time_t.  This allows
33741         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
33742         as without this patch gnulib replaces struct timeval
33743         and OpenBSD futimes therefore has a type mismatch.
33744         * doc/posix-headers/sys_time.texi: Mention this.
33746         pthread: check for both pthread_create and pthread_join
33747         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
33748         alter the check so that it tests for both pthread_create and
33749         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
33750         Suggested by Bruno Haible and Richard Yao in
33751         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
33753         parse-datetime: doc tuneup
33754         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
33755         spacing issues.
33757 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
33759         do-release-commit-and-tag: fix the previous commit
33760         * build-aux/do-release-commit-and-tag: Actually the test was right,
33761         but the comment and the error message were misleading.
33762         Fix comment, and improve error message.
33763         Perform check first, so that NEWS is not modified uselessly.
33765         do-release-commit-and-tag: fix typo
33766         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
33767         _not_ start with a stub.
33769 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33771         pthread: check for pthread_create, not pthread_join
33772         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
33773         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
33774         pthread_join in libc.  I hope this removes the need for all the
33775         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
33776         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
33778 2012-07-04  Jim Meyering  <meyering@redhat.com>
33780         parse-datetime: fix failure to diagnose invalid input
33781         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
33782         rather than diagnosing the invalid input.  Now it reports this:
33783         date: invalid date '\260'
33784         * lib/parse-datetime.y (to_uchar): Define.
33785         (yylex): Don't sign-extend "other" bytes.
33786         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
33787         Thanks to Bruno Haible for the patch to this file.
33788         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
33789         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
33791 2012-07-03  Jim Meyering  <meyering@redhat.com>
33793         bootstrap: do not require now-removed build-aux/missing
33794         Now that build-aux/missing is, er, missing, bootstrap would
33795         silently fail.
33796         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
33797         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
33798         no longer part of gnulib.
33799         Diagnose the failure.
33801 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33803         alloca: add support for HP NonStop TNS/E native
33804         * lib/alloca.in.h (alloca): Support the new host.
33805         From a suggestion by Joachim Schmitz in
33806         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
33808 2012-07-02  Pádraig Brady  <P@draigBrady.com>
33810         fsusage: remove code not needed on non GNU/Linux systems.
33812         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33813         Don't include headers no longer needed in this case.
33814         * lib/fsusage.c [STAT_STATVFS &&
33815         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
33816         STAT_STATFS2_FRSIZE to exclude code not used in this case.
33818 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33820         fsusage: include files needed for glibc 2.6 fallback
33821         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33822         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
33823         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
33824         Problem reported by Ludovic Courtès in
33825         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
33827         fsusage: avoid needless check on GNU/Linux
33828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
33829         on GNU/Linux systems, since it can't possibly work.
33831 2012-07-01  Bruno Haible  <bruno@clisp.org>
33833         log: Fix an autoconf >= 2.64 warning.
33834         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
33835         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33837 2012-06-28  Bruno Haible  <bruno@clisp.org>
33839         log10f: Fix possible configuration problem.
33840         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
33841         $LOGF_LIBM.
33842         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33844 2012-06-28  Bruno Haible  <bruno@clisp.org>
33846         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
33847         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
33848         not gl_cv_func_unlink_works.
33849         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
33851 2012-06-27  Eric Blake  <eblake@redhat.com>
33853         config: drop scripts that automake says are not independent
33854         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
33855         * build-aux/elisp-comp: Delete.
33856         * build-aux/missing: Likewise.
33857         * build-aux/ylwrap: Likewise.
33858         * modules/elisp-comp: Likewise.
33859         * MODULES.html.sh: Drop mention of elisp-comp.
33860         * NEWS: Mention this.
33862 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
33864         root-uid: new module
33865         This is for portability to Tandem's NonStop Kernel.
33866         * lib/root-uid.h, modules/root-uid: New files.
33867         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
33868         * lib/write-any-file.c, tests/test-sethostname2.c:
33869         Include "root-uid.h".
33870         * lib/euidaccess.c (euidaccess):
33871         * lib/pt_chown.c (main):
33872         * lib/unlinkdir.c (cannot_unlink_dir):
33873         * lib/write-any-file.c (can_write_any_file):
33874         * m4/mknod.m4 (gl_FUNC_MKNOD):
33875         * tests/test-sethostname2.c (geteuid, main):
33876         Don't assume ROOT_UID == 0.
33877         * modules/euidaccess (Depends-on):
33878         * modules/pt_chown (Depends-on):
33879         * modules/sethostname-tests (Depends-on):
33880         * modules/unlinkdir (Depends-on):
33881         * modules/write-any-file (Depends-on):
33882         Add root-uid.
33884         regex: use locale-independent comparison for codeset name
33885         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
33886         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
33887         for codeset name.
33888         * lib/regex_internal.h: Do not include <strings.h>, since we
33889         no longer use strcasecmp.
33890         * modules/regex (Depends-on): Remove strcase.
33892 2012-06-23  Bruno Haible  <bruno@clisp.org>
33894         getopt-posix: No longer guarantee that option processing is resettable.
33895         * doc/posix-functions/getopt.texi: Drop description of problem with
33896         internal state. Fix info about mingw and msvc9.
33897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
33898         option processing by getopt(). Run three test programs instead of one.
33899         Simplify cross-compilation guess.
33900         * NEWS: Mention the change.
33901         Reported by Rich Felker <dalias@aerifal.cx>.
33903 2012-06-26  Bruno Haible  <bruno@clisp.org>
33905         argp, regex: Ensure strcasecmp gets declared.
33906         * lib/argp-help.c: Include <strings.h>.
33907         * lib/regex_internal.h: Likewise.
33908         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
33910 2012-06-24  Bruno Haible  <bruno@clisp.org>
33912         ptsname_r: Make it consistent with ptsname on AIX.
33913         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
33914         implementation as for OSF/1.
33915         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
33916         a pty master.
33918         ptsname_r: Make it consistent with ptsname on OSF/1.
33919         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
33920         OSF/1.
33922 2012-06-24  Bruno Haible  <bruno@clisp.org>
33924         ttyname_r: Fix result on OSF/1, Solaris.
33925         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
33927 2012-06-24  Bruno Haible  <bruno@clisp.org>
33929         ptsname_r: Add support for Solaris.
33930         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
33931         Solaris.
33933         ptsname_r: Fix test failure on native Windows.
33934         * modules/ptsname_r (Depends-on): Add isatty.
33936         ptsname_r: Fix test failures on IRIX, Solaris.
33937         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
33938         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
33939         accordingly.
33940         * lib/ptsname_r.c: Include <fcntl.h>.
33941         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
33942         set errno if fd is invalid.
33943         * tests/test-isatty.c (main): Update comments.
33945 2012-06-24  Bruno Haible  <bruno@clisp.org>
33947         ptsname test: Extend test.
33948         * tests/test-ptsname.c: Include <errno.h>.
33949         (main): Test behaviour with invalid file descriptor.
33951 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33953         time: fix obsolete comment
33954         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
33955         reference to HAVE_STRUCT_TIMESPEC in comment.
33957 2012-06-23  Bruno Haible  <bruno@clisp.org>
33959         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
33960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
33961         does not handle abbreviated long options with equivalent
33962         disambiguations, set gl_replace_getopt to yes.
33963         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
33965 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33967         time_r: fix typo that always overrode localtime_r decl
33968         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
33969         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
33970         not in a standard include.
33972 2012-06-22  Bruno Haible  <bruno@clisp.org>
33974         Write "Mac OS X" instead of "MacOS X".
33975         * README: Write "Mac OS X" instead of "MacOS X".
33976         * build-aux/bootstrap: Likewise.
33977         * build-aux/install-reloc: Likewise.
33978         * lib/acl-internal.h: Likewise.
33979         * lib/acl_entries.c: Likewise.
33980         * lib/argp-ba.c: Likewise.
33981         * lib/argp-pv.c: Likewise.
33982         * lib/config.charset: Likewise.
33983         * lib/copy-acl.c: Likewise.
33984         * lib/csharpexec.c: Likewise.
33985         * lib/euidaccess.c: Likewise.
33986         * lib/fbufmode.c: Likewise.
33987         * lib/fflush.c: Likewise.
33988         * lib/file-has-acl.c: Likewise.
33989         * lib/filemode.h: Likewise.
33990         * lib/fpurge.c: Likewise.
33991         * lib/freadable.c: Likewise.
33992         * lib/freadahead.c: Likewise.
33993         * lib/freading.c: Likewise.
33994         * lib/freadptr.c: Likewise.
33995         * lib/freadseek.c: Likewise.
33996         * lib/fseeko.c: Likewise.
33997         * lib/fseterr.c: Likewise.
33998         * lib/fsusage.c: Likewise.
33999         * lib/fwritable.c: Likewise.
34000         * lib/fwriting.c: Likewise.
34001         * lib/get-rusage-as.c: Likewise.
34002         * lib/get-rusage-data.c: Likewise.
34003         * lib/getdomainname.c: Likewise.
34004         * lib/idpriv-drop.c: Likewise.
34005         * lib/idpriv-droptemp.c: Likewise.
34006         * lib/localcharset.c: Likewise.
34007         * lib/locale.in.h: Likewise.
34008         * lib/localename.c: Likewise.
34009         * lib/mbsrtowcs-state.c: Likewise.
34010         * lib/nproc.c: Likewise.
34011         * lib/passfd.c: Likewise.
34012         * lib/posix_openpt.c: Likewise.
34013         * lib/printf-parse.c: Likewise.
34014         * lib/progreloc.c: Likewise.
34015         * lib/safe-read.h: Likewise.
34016         * lib/safe-write.h: Likewise.
34017         * lib/sched.in.h: Likewise.
34018         * lib/set-mode-acl.c: Likewise.
34019         * lib/signal.in.h: Likewise.
34020         * lib/stdint.in.h: Likewise.
34021         * lib/stdio-impl.h: Likewise.
34022         * lib/stdlib.in.h: Likewise.
34023         * lib/strtod.c: Likewise.
34024         * lib/sys_select.in.h: Likewise.
34025         * lib/tcgetsid.c: Likewise.
34026         * lib/unistd.in.h: Likewise.
34027         * lib/unlockpt.c: Likewise.
34028         * lib/vasnprintf.c: Likewise.
34029         * lib/vma-iter.c: Likewise.
34030         * lib/wcsrtombs-state.c: Likewise.
34031         * m4/acl.m4: Likewise.
34032         * m4/acosl.m4: Likewise.
34033         * m4/asinl.m4: Likewise.
34034         * m4/atanl.m4: Likewise.
34035         * m4/c-stack.m4: Likewise.
34036         * m4/cosl.m4: Likewise.
34037         * m4/expl.m4: Likewise.
34038         * m4/extensions.m4: Likewise.
34039         * m4/fdatasync.m4: Likewise.
34040         * m4/fmal.m4: Likewise.
34041         * m4/frexp.m4: Likewise.
34042         * m4/frexpf.m4: Likewise.
34043         * m4/frexpl.m4: Likewise.
34044         * m4/fsusage.m4: Likewise.
34045         * m4/getdomainname.m4: Likewise.
34046         * m4/getloadavg.m4: Likewise.
34047         * m4/getopt.m4: Likewise.
34048         * m4/gettext.m4: Likewise.
34049         * m4/gnulib-common.m4: Likewise.
34050         * m4/intdiv0.m4: Likewise.
34051         * m4/intlmacosx.m4: Likewise.
34052         * m4/largefile.m4: Likewise.
34053         * m4/ldexpl.m4: Likewise.
34054         * m4/link-follow.m4: Likewise.
34055         * m4/locale-ar.m4: Likewise.
34056         * m4/locale-fr.m4: Likewise.
34057         * m4/locale-ja.m4: Likewise.
34058         * m4/locale-tr.m4: Likewise.
34059         * m4/locale-zh.m4: Likewise.
34060         * m4/locale_h.m4: Likewise.
34061         * m4/lock.m4: Likewise.
34062         * m4/logl.m4: Likewise.
34063         * m4/mathfunc.m4: Likewise.
34064         * m4/minus-zero.m4: Likewise.
34065         * m4/mktime.m4: Likewise.
34066         * m4/mmap-anon.m4: Likewise.
34067         * m4/multiarch.m4: Likewise.
34068         * m4/nanosleep.m4: Likewise.
34069         * m4/nocrash.m4: Likewise.
34070         * m4/poll.m4: Likewise.
34071         * m4/printf-frexpl.m4: Likewise.
34072         * m4/printf.m4: Likewise.
34073         * m4/signbit.m4: Likewise.
34074         * m4/sinl.m4: Likewise.
34075         * m4/sqrtl.m4: Likewise.
34076         * m4/strerror_r.m4: Likewise.
34077         * m4/tanl.m4: Likewise.
34078         * m4/threadlib.m4: Likewise.
34079         * m4/ttyname_r.m4: Likewise.
34080         * m4/unlink.m4: Likewise.
34081         * m4/visibility.m4: Likewise.
34082         * m4/wcwidth.m4: Likewise.
34083         * tests/minus-zero.h: Likewise.
34084         * tests/test-alloca-opt.c: Likewise.
34085         * tests/test-copy-acl.sh: Likewise.
34086         * tests/test-copy-file.sh: Likewise.
34087         * tests/test-fdatasync.c: Likewise.
34088         * tests/test-file-has-acl.sh: Likewise.
34089         * tests/test-flock.c: Likewise.
34090         * tests/test-fsync.c: Likewise.
34091         * tests/test-localename.c: Likewise.
34092         * tests/test-malloca.c: Likewise.
34093         * tests/test-nonblocking-pipe.h: Likewise.
34094         * tests/test-nonblocking-socket.h: Likewise.
34095         * tests/test-openpty.c: Likewise.
34096         * tests/test-posix_openpt.c: Likewise.
34097         * tests/test-ptsname.c: Likewise.
34098         * tests/test-ptsname_r.c: Likewise.
34099         * tests/test-sameacls.c: Likewise.
34100         * tests/test-select.h: Likewise.
34101         * tests/test-set-mode-acl.sh: Likewise.
34102         * tests/test-snprintf-posix.h: Likewise.
34103         * tests/test-sprintf-posix.h: Likewise.
34104         * tests/test-strtod.c: Likewise.
34105         * tests/test-time.c: Likewise.
34106         * tests/test-vasnprintf-posix.c: Likewise.
34107         * tests/test-vasprintf-posix.c: Likewise.
34108         * doc/acl-resources.txt: Likewise.
34109         * doc/**/*.texi: Likewise.
34110         Reported by Max Horn <max@quendi.de>.
34112 2012-06-22  Bruno Haible  <bruno@clisp.org>
34114         grantpt: Relax requirement regarding invalid file descriptors.
34115         * lib/grantpt.c: Don't include <fcntl.h>.
34116         (grantpt): Don't verify the validity of the file descriptor.
34117         * modules/grantpt (Depends-on): Remove fcntl-h.
34118         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34119         file descriptors.
34120         * doc/posix-functions/grantpt.texi: Document more platforms on which
34121         grantpt succeeds for invalid file descriptors.
34122         Reported by Rich Felker <dalias@aerifal.cx>.
34124 2012-06-22  Bruno Haible  <bruno@clisp.org>
34126         fbufmode test: Don't test unportable behaviour.
34127         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34128         (main): Invoke it three times.
34129         Reported by Szabolcs Nagy <nsz@port70.net>
34130         and Rich Felker <dalias@aerifal.cx>.
34132 2012-06-21  Bruno Haible  <bruno@clisp.org>
34134         gnulib-tool: Refactor inctests variable.
34135         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34136         (func_modules_transitive_closure,
34137         func_modules_transitive_closure_separately,
34138         func_import, func_create_testdir): Update.
34140         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34141         * gnulib-tool: Accept option --without-tests.
34142         (func_usage): Document --without-tests option. Rearrange.
34143         (inctests): Normalize according to the mode.
34144         * NEWS: Mention the change.
34145         Suggested by Simon Josefsson.
34147 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34149         parse-duration test: Avoid spurious output.
34150         * tests/test-parse-duration.sh: Reindent with leading tabs.
34152 2012-06-21  Jim Meyering  <meyering@redhat.com>
34154         maint: disable the strncpy prohibition
34155         * cfg.mk: Do not prohibit strncpy here.
34157 2012-06-21  Bruno Haible  <bruno@clisp.org>
34159         nonblocking: Avoid compilation error on mingw64.
34160         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34161         fscanf.
34162         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34163         * modules/vfscanf (configure.ac): Likewise.
34164         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34165         definition only if stdio.h has prepared it.
34166         Reported by Daniel P. Berrange <berrange@redhat.com>.
34168 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34170         gnulib-tool: Use readlink if it is available.
34171         * gnulib-tool (func_readlink): Choose function more appropriately.
34173 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34175         posixtm-tests: port to buggy compiler
34176         Problem reported by Simon Josefsson in
34177         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34178         * modules/posixtm-tests (Depends-on): Add stdint.
34179         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34180         Now of type int_least64_t, not int64_t, both because that's
34181         what INT64_C returns and because int_least64_t works even
34182         on 72-bit hosts.
34183         (T): Use INT64_C on constants outside the traditional int range,
34184         to work around compiler bug noted by Simon.
34186         mktime: fix integer overflow in 'configure'-time test
34187         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34188         after integer overflow.  Problem reported by Rich Felker in
34189         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34190         Also, don't look for further instances of a bug if we've already
34191         found one instance; this helps 'configure' run faster.
34193 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34195         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34196         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34197         GetVersionEx correctly.
34198         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34200 2012-06-20  Bruno Haible  <bruno@clisp.org>
34202         fdopen: Allow implementations that don't reject invalid fd arguments.
34203         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34204         succeeds.
34205         Reported by Rich Felker <dalias@aerifal.cx>.
34207 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34209         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34210         bring in LIBINTL.
34212 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34214         init.sh: do not rely on autoupated PWD
34215         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34216         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34217         Although Nelson's bug was not necessarily fixed by this patch,
34218         it seems wise to make the change for safety.
34219         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34220         automagically after 'cd'; this is not reliable on older shells.
34221         (setup_): Fail if we cannot cd to temporary directory.
34223 2012-06-19  Bruno Haible  <bruno@clisp.org>
34225         stat, fstat: Avoid warnings on mingw64.
34226         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34227         redefining.
34228         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34229         Reported by Daniel P. Berrange <berrange@redhat.com>.
34231 2012-06-19  Bruno Haible  <bruno@clisp.org>
34233         stdioext: Add support for musl libc.
34235         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34236         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34238         * m4/fseterr.m4: New file.
34239         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34240         function exists.
34241         * modules/fseterr (Files): Add m4/fseterr.m4.
34242         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34243         __fseterr does not exist.
34244         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34246         * lib/freadable.h: Update comment.
34248         * lib/fwritable.h: Update comment.
34250         * lib/freading.h: Update comment.
34252         * lib/fwriting.h: Update comment.
34254         * m4/freadahead.m4: New file.
34255         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34256         that function exists.
34257         * modules/freadahead (Files): Add m4/freadahead.m4.
34258         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34259         __freadahead does not exist.
34260         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34262         * m4/freadptr.m4: New file.
34263         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34264         function exists.
34265         * modules/freadptr (Files): Add m4/freadptr.m4.
34266         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34267         __freadptr does not exist.
34268         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34270         * m4/freadseek.m4: New file.
34271         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34272         exists.
34273         * modules/freadseek (Files): Add m4/freadseek.m4.
34274         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34276         * lib/fpurge.c (fpurge): Update comment.
34278         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34280 2012-06-19  Bruno Haible  <bruno@clisp.org>
34282         *printf-posix: Put more info into config.log.
34283         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34284         exit code into config.log.
34286 2012-06-19  Bruno Haible  <bruno@clisp.org>
34288         getopt-gnu: Fix exit code overflow in autoconf test.
34289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34290         to keep them below < 128.
34292 2012-06-17  Jim Meyering  <meyering@redhat.com>
34294         maint.mk: fix typo in code to derive GPG key at release time
34295         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34297 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34299         regex: avoid warning when pointers are not long
34300         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34301         and uintptr_t, not long, for portability to hosts where pointers and
34302         long have different sizes.  Issue noted by Daniel P. Berrange in
34303         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34304         and fix suggested by Bruno Haible in
34305         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34307 2012-06-17  Bruno Haible  <bruno@clisp.org>
34309         dummy: Relicense into the public domain.
34310         * modules/dummy (License): Set to "public domain".
34311         Suggested by Reuben Thomas.
34313 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34315         announce-gen: VPATH issues
34316         * build-aux/announce-gen (--srcdir): New option, used to trim the
34317         $srcdir part of the path from $builddir to NEWS.
34318         * top/maint.mk (announcement): Adjust.
34320 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34322         gnu-web-doc-update: VPATH builds
34323         * build-aux/gnu-web-doc-update (--builddir): New option.
34324         Revamp the handling of options.
34325         Prefer $(...) to `...`.
34326         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34327         the template, and it is GNU mktemp specific.
34328         Prefer set -e to long series of &&.
34329         Restore the initial git branch, not "master".
34330         Properly initialize submodules (don't rely only on bootstrap).
34331         Do not reconfigure blindly, use config.status.
34332         * top/README-release: Update instructions for gnu-web-doc-update.
34334 2012-06-11  Jim Meyering  <meyering@redhat.com>
34336         maint.mk: revert most of the previous change re "all these"
34337         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34338         For rationale, see the discussion at
34339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34341 2012-06-10  Karl Berry  <karl@gnu.org>
34343         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34345         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34347 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34349         parse-duration: Relicense under LGPLv2+.
34350         * modules/parse-duration (License): Change to LGPLv2+.
34352 2012-06-10  Jim Meyering  <meyering@redhat.com>
34354         maint.mk: prohibit common grammar error: "all these"
34355         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34356         the list of prohibited word sequences.  It should be "all of these".
34357         * lib/tempname.c (__gen_tempname): Fix one of them.
34359 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34361         do-release-commit-and-tag: support VPATH builds
34362         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34363         (noteworthy): Defined earlier to factor its value.
34364         (noteworthy_stub): New.
34365         Use it to factor.
34366         (help_version): Split into...
34367         (help, version): these.
34368         Adjust the option processing part.
34369         Support "--option=value" in addition to "--option value".
34370         (builddir): New.
34371         (--builddir): New option.
34372         * top/README-release: Document this.
34373         Reword slightly so that the reader cannot understand that he
34374         has to do these steps before calling do-release-commit-and-tag.
34376 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34378         readme-release: also require announce-gen and maintainer-makefile
34379         * modules/readme-release (Depends-on): here.
34380         * modules/announce-gen, modules/do-release-commit-and-tag,
34381         modules/gnu-web-doc-update, modules/maintainer-makefile
34382         (Description): Point to readme-release.
34384 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34386         maint.mk: fix VPATH issues.
34387         * top/maint.mk (news-check): GNU Make understand $< very well.
34388         (release-prep): NEWS is in $(srcdir).
34390 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34392         readme-release: require the promoted modules.
34393         * modules/readme-release (Depends-on): Add
34394         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34395         in this text.
34397 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34398             Bruno Haible  <bruno@clisp.org>
34400         error, strerror-override: Support mingw64 from Fedora 17.
34401         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34402         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34403         EINPROGRESS.
34404         * lib/strerror-override.h (strerror_override): Test it.
34405         * lib/strerror-override.c (strerror_override): Likewise.
34406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34408 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34409             Bruno Haible  <bruno@clisp.org>
34411         error, strerror-override: Support mingw64 from Fedora 17.
34412         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34413         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34414         * lib/strerror-override.h (strerror_override): Test it.
34415         * lib/strerror-override.c (strerror_override): Likewise.
34417 2012-06-03  Bruno Haible  <bruno@clisp.org>
34419         error, strerror-override: Support new errno values from POSIX:2008.
34420         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34421         ENOTRECOVERABLE.
34422         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34423         platforms.
34424         * lib/strerror-override.c (strerror_override): Conditionalize the
34425         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34426         * lib/strerror-override.h (strerror_override): Declare also if
34427         GNULIB_defined_EOWNERDEAD is defined.
34428         * tests/test-errno.c (e130, e131): New variables.
34429         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34430         ENOTRECOVERABLE.
34431         Reported by Paolo Bonzini.
34433 2012-05-31  Jim Meyering  <meyering@redhat.com>
34435         savewd: add missing dependency on sys_wait module
34436         * modules/savewd (Depends-on): Add sys_wait, needed at least
34437         for MSVC.  Report and suggested change by Michael Goffioul.
34439 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34441         system-quote-tests: port to CentOS 5
34442         Problem reported by Tom G. Christensen in
34443         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34444         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34446 2012-05-29  Jim Meyering  <meyering@redhat.com>
34448         maint: fix typos in comments and ChangeLog
34449         Culprits identified and fixed mostly automatically using these commands:
34450         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34451         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34452         using http://github.com/lyda/misspell-check
34453         * ChangeLog: Fix typos.
34454         * doc/solaris-versions: Likewise.
34455         * lib/regexec.c (re_search_stub): Likewise.
34456         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34458 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34460         manywarnings: remove duplicate -Wmultichar entry
34461         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34462         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34463         so keep the entry marked as documented.
34465 2012-05-27  Karl Berry  <karl@gnu.org>
34467         * config/srclist.txt (mktime.c): remove last libc sync,
34468         perhaps just temporarily.
34470 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34472         regex: don't assume uint64_t or uint32_t
34473         * lib/regcomp.c (init_word_char): Don't assume that the types
34474         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34475         them, and on some 32-bit compilers there is no uint64_t.
34476         Problem reported by Gianluigi Tiesi in
34477         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34479 2012-05-25  Jim Meyering  <meyering@redhat.com>
34481         maint.mk: add strncpy-prohibiting syntax-check rule
34482         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34484 2012-05-24  Jim Meyering  <meyering@redhat.com>
34486         maint.mk: compute $(gpg_key_ID) more portably
34487         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34488         That use of sed is not portable to some fringe systems.
34489         Reported by Paul Eggert in
34490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34492 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34494         mktime: sync from glibc
34495         * config/srclist.txt: Uncomment mktime.c.
34496         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34497         First, indent with tabs, since glibc uses tabs and doesn't want to
34498         change and we'd rather be identical to glibc.  Also, two small
34499         coding changes:
34500         (isdst_differ): Use &&, not &, as && is the usual style.
34501         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34502         for clarity.
34504 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34506         announce-gen: du -h is more portable than du --human
34507         * build-aux/announce-gen (sizes): Invoke du with -h instead
34508         of --human.  Accept leading white space in its output.
34510 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34512         announce-gen: Improve diagnostics.
34513         * build-aux/announce-gen: When parsing command line options,
34514         prefer "announce-gen: option --release-type requires an argument"
34515         to "Option release-type requires an argument".
34517 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34519         maint.mk: gpg_key_ID: use sed more portably
34520         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34521         the closing brace.
34522         (refresh-po): Fuse two sed invocations into one.
34524 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34526         gitlog-to-changelog: support the log message format used in Bison.
34527         * build-aux/gitlog-to-changelog: Support --strip-tab and
34528         --strip-cherry-picked.
34530 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34532         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34533         the rest of the current time slice to another thread in the current
34534         process. So if the thread that feeds the file decscriptor we're
34535         polling is not in the current process, we get busy-waiting.
34536         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34537         Patch from Theodore Leblond.
34538         * lib/select.c: Split polling out of the loop that sets the output
34539         fd_sets.  Check for zero result and loop if the wait timeout is
34540         infinite.
34542 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34544         select: Fix build error on IRIX 6.5.
34545         * lib/select.c: Include stddef.h for NULL.
34547 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34549         gc: fix libgcrypt detection on older machines.
34550         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34551         copyright years because the file has been distributed every year
34552         since it was created.
34554 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34556         crypto: fix bug in large buffer handling
34557         Problem reported by Serge Belyshev for glibc in
34558         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34559         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34560         * lib/md4.c (md4_process_block):
34561         * lib/md5.c (md5_process_block):
34562         * lib/sha1.c (sha1_process_block):
34563         * lib/sha256.c (sha256_process_block):
34564         Don't assume the buffer length is less than 2**32.
34565         * lib/sha512.c (sha512_process_block): Likewise.
34566         Here, the bug is present only in the rare case where the host does
34567         not support uint64_t or where size_t is wider than 64 bits.
34568         Use u64size to work around the problems.
34569         * lib/u64.h (u64size): New macro.
34571 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34573         fsusage: fix block size returned on older Linux 2.6
34575         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34576         which is available since Linux 2.6.
34577         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34578         when the member is available so it can be used as a fallback.
34579         * doc/posix-functions/statvfs.texi: Mention the hang issue
34580         on Linux < 2.6.36.
34582 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34584         bootstrap: suppress stderr chatter
34585         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34586         Omit unnecessary chatter to stderr.  The main program chatter
34587         was there only inadvertantly.
34589         bootstrap: .gitignore files created by autopoint, libtool
34590         I ran into this problem when bootstrapping the latest diffutils.
34591         After './bootstrap', 'git status' reported lots of untracked files
34592         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
34593         autopoint and do not need to be version-controlled.
34594         * build-aux/bootstrap: Put into .gitignore the files that
34595         autopoint and libtool create, by keeping track of files that exist
34596         after but not before these programs are run.
34597         (version_controlled_file): Move up.  2nd arg is now full file
34598         name, not base name; this is more convenient.  Put CVS at the end,
34599         as it's now somewhat deprecated.
34601 2012-05-14  Jim Meyering  <meyering@redhat.com>
34603         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
34604         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
34605         definition.  Reported by Bruno Haible.
34607 2012-05-13  Bruno Haible  <bruno@clisp.org>
34608             Paul Eggert  <eggert@cs.ucla.edu>
34610         binary-io: Define set_binary_mode function.
34611         * lib/binary-io.h (set_binary_mode): New function.
34612         (SET_BINARY): Define in terms of set_binary_mode.
34613         * modules/binary-io (configure.ac): Require AC_C_INLINE.
34614         * tests/test-binary-io.c (main): Accept an argument, and test either
34615         set_binary_mode or SET_BINARY depending on the argument.
34616         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
34617         argument. Clean up also t-bin-out0.tmp.
34619 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
34621         bootstrap: take advantage of POSIX shell features
34623         The 'bootstrap' script offered by Gnulib script already uses POSIX
34624         shell features (like $((...)) arithmetic expansions) that are not
34625         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
34626         means that bootstrap must already be run using a proper POSIX shell,
34627         which will thus provide more features, like ${var#pattern} parameter
34628         expansion or inversion of a command exit status with '!'.  We can
34629         thus use these features to improve the clarity and the performances
34630         of the bootstrap script.
34632         Suggested by Eric Blake.
34634         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
34635         of sed/expr plus command substitutions, to save some forks.  While
34636         we are at it, prefer the POSIX $(...) form of command substitution,
34637         rather than the legacy form `...` (since the former is visually
34638         clearer and interacts better with quoting), and prefer the idiom:
34639           "if ! CMD; then ACTION ..."
34640         over the idiom:
34641           "if CMD; then :; else ACTION ..."
34642         which was required by legacy Bourne shells not supporting '!'.
34644 2012-05-12  Bruno Haible  <bruno@clisp.org>
34646         system-quote: Add more comments.
34647         * lib/system-quote.h: Add more comments about wilcards and limitations.
34648         Suggested by Eli Zaretskii <eliz@gnu.org>.
34650         sh-quote, system-quote: Add comments about wildcards.
34651         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34652         * lib/system-quote.h: Likewise.
34653         Reported by Eli Zaretskii <eliz@gnu.org>.
34655 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34657         fsusage: check for GNU/Linux statvfs problem dynamically
34658         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
34659         Define STAT_STATFS2_BSIZE too, since in this case the code now
34660         checks dynamically whether statvfs is reliable, falling back on
34661         Linux-style statfs otherwise.
34662         (statvfs_works): New function, for dynamically testing statvfs.
34663         (get_fs_usage) [STAT_STATVFS]: Use it.
34664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
34665         statvfs on GNU/Linux hosts, since it's now done dynamically.
34667 2012-05-10  Bruno Haible  <bruno@clisp.org>
34669         system-quote, execute, spawn-pipe: Escape '?' on Windows.
34670         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
34671         '?' character.
34672         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
34673         * tests/test-system-quote-main.c (check_all): Check also strings like
34674         "??????????".
34675         Reported by Eli Zaretskii <eliz@gnu.org>.
34677 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34679         _Noreturn: port config.h to gcc -Wundef
34680         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34681         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
34682         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
34684 2012-05-10  Bruno Haible  <bruno@clisp.org>
34686         system-quote: Refactor.
34687         * lib/system-quote.h (system_quote_copy): Fix comment.
34688         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
34689         New functions, extracted from system_quote_copy.
34690         (system_quote_length, system_quote_copy): Use these functions.
34691         Reported by Paul Eggert.
34693 2012-05-08  Bruno Haible  <bruno@clisp.org>
34695         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
34696         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
34698 2012-05-08  Bruno Haible  <bruno@clisp.org>
34700         Tests for module 'system-quote'.
34701         * modules/system-quote-tests: New file.
34702         * tests/test-system-quote.sh: New file.
34703         * tests/test-system-quote-main.c: New file.
34704         * tests/test-system-quote-child.c: New file.
34706         New module 'system-quote'.
34707         * lib/system-quote.h: New file.
34708         * lib/system-quote.c: New file.
34709         * modules/system-quote: New file.
34711 2012-05-08  Bruno Haible  <bruno@clisp.org>
34713         sh-quote: Make C++ safe and allow multiple inclusion.
34714         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
34715         declarations in extern "C".
34717 2012-05-08  Bruno Haible  <bruno@clisp.org>
34719         sh-quote tests: Make tests stricter.
34720         * tests/test-sh-quote.c (check_one): Check the return value of
34721         shell_quote_copy.
34722         (main): Check a string with a CR character. Check a string that
34723         contains UCHAR_MAX.
34725 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
34727         warnings.m4: provide a means to specify the program to compile.
34728         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
34729         (gl_WARN_ADD): here.
34730         Use gl_AS_VAR_APPEND.
34731         Support an argument to specify the program to compile.
34732         (gl_WARN_ADD): Accept an argument to specify the program to compile.
34733         AC_SUBST the WARN_CFLAGS when they are used.
34734         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
34735         leave this to gl_WARN_ADD.
34737 2012-05-08  Eric Blake  <eblake@redhat.com>
34739         doc: recommendations on gettext version
34740         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
34741         choice between versions.
34742         * DEPENDENCIES (gettext): Cover both approaches.
34744 2012-05-08  Jim Meyering  <meyering@redhat.com>
34746         init.sh: explain why EXEEXT support uses aliases rather than functions
34747         * tests/init.sh: Add a comment.
34749         init.sh: don't let bash aliases interfere with tests
34750         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
34751         is bash.  This avoids problems for those who alias standard commands to
34752         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
34753         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
34755 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34757         stdint: be more consistent with glibc, SunOS libc
34758         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
34759         (gl_int_fast16_t, gl_uint_fast16_t)
34760         (gl_int_fast32_t, gl_uint_fast32_t)
34761         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
34762         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
34763         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34764         Be consistent with glibc by default, and with SunOS 5.10 and later
34765         if __sun is defined.  This lessens the likelihood of clashes if
34766         code compiled for older hosts is combined with code compiled for
34767         newer ones.  Problem reported by Niels Möller in
34768         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
34770 2012-05-07  Eric Blake  <eblake@redhat.com>
34772         isatty: relax license to LGPLv2+
34773         * modules/isatty (License): Relax license.
34775 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34777         stat-size: comment fix
34778         * lib/stat-size.h: Remove obsolete comment about indenting.
34780 2012-05-06  Bruno Haible  <bruno@clisp.org>
34782         Tests for module 'sh-quote'.
34783         * modules/sh-quote-tests: New file.
34784         * tests/test-sh-quote.c: New file.
34786 2012-05-06  Bruno Haible  <bruno@clisp.org>
34788         sh-quote: Improve shell_quote_argv's signature.
34789         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
34790         * lib/sh-quote.c (shell_quote_argv): Likewise.
34792 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34794         stdint: document issues with int_fast8_t etc.
34795         * doc/posix-headers/stdint.texi (stdint.h): Say that other
34796         stdint.h substitutes may define these types differently.  See
34797         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
34799 2012-05-05  Bruno Haible  <bruno@clisp.org>
34801         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
34802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
34803         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
34804         or 'guessing no (mishandles large arguments)'.
34806 2012-05-05  Bruno Haible  <bruno@clisp.org>
34808         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
34809         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
34810         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34811         set gl_cv_func_link_follows_symlink to "guessing no".
34813 2012-05-05  Bruno Haible  <bruno@clisp.org>
34815         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
34816         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
34817         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
34818         "guessing no".
34819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
34821 2012-05-05  Bruno Haible  <bruno@clisp.org>
34823         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
34824         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
34825         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34826         set gl_cv_struct_dirent_d_ino to "guessing yes".
34828 2012-05-05  Bruno Haible  <bruno@clisp.org>
34830         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
34831         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
34832         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
34833         "guessing yes".
34835 2012-05-05  Bruno Haible  <bruno@clisp.org>
34837         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
34838         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
34839         compiling to a glibc system, set gl_cv_func_signbit and
34840         gl_cv_func_signbit_gcc to "guessing yes".
34842 2012-05-05  Bruno Haible  <bruno@clisp.org>
34844         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
34845         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
34846         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
34847         to "guessing yes".
34848         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
34849         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
34851 2012-05-05  Bruno Haible  <bruno@clisp.org>
34853         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
34854         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
34855         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
34856         gl_cv_func_realpath_works to "guessing yes".
34858 2012-05-05  Bruno Haible  <bruno@clisp.org>
34860         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
34861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
34862         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
34864 2012-05-04  Bruno Haible  <bruno@clisp.org>
34866         Tweak last commit.
34867         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
34868         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34870 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
34872         unistd_h: make it easier to avoid sys_types_h
34873         This is useful for Emacs, which has its own method of porting to
34874         Windows, and which therefore does not need the sys_types_h module.
34875         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
34876         code moved here from gl_SYS_TYPES_H.
34877         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
34878         using the code directly.
34879         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
34880         gl_SYS_TYPES_H.
34881         * modules/sys_types (Files):
34882         * modules/unistd (Files): Add m4/off_t.m4.
34884 2012-05-03  Bruno Haible  <bruno@clisp.org>
34886         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
34887         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
34888         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
34889         "guessing yes" or "guessing no".
34890         (gl_FUNC_LSTAT): Update.
34891         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
34892         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34893         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
34895 2012-05-03  Bruno Haible  <bruno@clisp.org>
34897         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
34898         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
34899         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
34900         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
34901         cross-compiling, choose the first alternative on glibc systems.
34902         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
34904 2012-05-03  Bruno Haible  <bruno@clisp.org>
34906         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
34907         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
34908         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
34910 2012-05-03  Bruno Haible  <bruno@clisp.org>
34912         chown: Avoid "guessing no" when cross-compiling to glibc systems.
34913         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
34915 2012-05-03  Bruno Haible  <bruno@clisp.org>
34917         Avoid "guessing no" guesses when cross-compiling to glibc systems.
34918         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
34919         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
34920         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
34921         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
34922         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
34923         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
34924         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
34925         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
34926         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
34927         compiling to glibc systems, set gl_cv_func_chown_slash_works,
34928         gl_cv_func_chown_ctime_works to "guessing yes".
34929         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
34930         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
34931         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
34932         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
34933         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
34934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
34935         compiling to glibc systems, set gl_cv_func_open_directory_works to
34936         "guessing yes".
34937         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
34938         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
34939         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
34940         "guessing yes".
34941         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
34942         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
34943         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
34944         compiling to glibc systems, set gl_cv_func_floorf_ieee to
34945         "guessing yes".
34946         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
34947         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
34948         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
34949         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
34950         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
34951         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
34952         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
34953         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
34954         "guessing yes".
34955         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
34956         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
34957         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
34958         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
34959         "guessing yes".
34960         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
34961         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
34962         "guessing yes".
34963         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
34964         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
34965         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
34966         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
34967         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
34968         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
34969         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
34970         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
34971         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
34972         compiling to glibc systems, set gl_cv_func_log10f_ieee to
34973         "guessing yes".
34974         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
34975         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
34976         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
34977         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
34978         "guessing yes".
34979         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
34980         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
34981         "guessing yes".
34982         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
34983         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
34984         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
34985         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
34986         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
34987         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
34988         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
34989         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
34990         compiling to glibc systems, set gl_cv_func_mkfifo_works to
34991         "guessing yes".
34992         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
34993         compiling to glibc systems, set gl_cv_func_mknod_works to
34994         "guessing yes".
34995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
34996         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
34997         "guessing yes".
34998         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
34999         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35000         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35001         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35002         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35003         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35004         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35005         compiling to glibc systems, set gl_cv_func_svid_putenv to
35006         "guessing yes".
35007         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35008         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35009         "guessing yes".
35010         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35011         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35012         "guessing yes".
35013         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35014         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35015         to "guessing yes".
35016         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35017         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35018         to "guessing yes".
35019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35020         compiling to glibc systems, set gl_cv_func_rmdir_works to
35021         "guessing yes".
35022         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35023         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35024         gl_cv_func_unlink_parent_fails to "guessing yes".
35025         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35026         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35027         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35028         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35029         gl_cv_func_rename_dest_works to "guessing yes".
35030         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35031         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35032         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35033         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35034         "guessing yes".
35035         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35036         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35037         "guessing yes".
35038         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35039         compiling to glibc systems, set gl_cv_func_setenv_works to
35040         "guessing yes".
35041         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35042         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35043         "guessing yes".
35044         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35045         compiling to glibc systems, set gl_cv_func_sleep_works to
35046         "guessing yes".
35047         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35048         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35049         "guessing yes".
35050         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35051         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35052         "guessing yes".
35053         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35054         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35055         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35056         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35057         "guessing yes".
35058         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35059         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35060         "guessing yes".
35061         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35062         compiling to glibc systems, set gl_cv_func_usleep_works to
35063         "guessing yes".
35064         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35065         compiling to glibc systems, set gl_cv_func_futimesat_works to
35066         "guessing yes".
35068 2012-05-03  Bruno Haible  <bruno@clisp.org>
35070         Say "guessing yes" or "guessing no" when cross-compiling.
35071         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35072         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35074         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35075         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35076         am_cv_func_working_getline to "guessing yes" or "guessing no".
35077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35078         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35079         (gl_FUNC_MEMMEM): When cross-compiling, set
35080         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35082         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35084         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35085         "guessing no".
35086         (gl_FUNC_STRCASESTR): When cross-compiling, set
35087         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35088         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35089         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35090         (gl_FUNC_STRSTR): When cross-compiling, set
35091         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35092         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35093         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35094         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35095         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35097 2012-05-01  Bruno Haible  <bruno@clisp.org>
35099         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35101         * build-aux/reloc-ldflags: Likewise.
35102         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35104 2012-05-01  Bruno Haible  <bruno@clisp.org>
35106         gnulib-tool: Remove transitional code.
35107         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35108         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35110 2012-05-01  Bruno Haible  <bruno@clisp.org>
35112         getcwd: Fix misindentation.
35113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35115 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35117         exclude: process exclude and include directives in order
35118         This restores the pre-2009 behavior, and is part of a fix of a
35119         grep bug reported by Quentin Arce in
35120         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35121         * lib/exclude.c (struct exclude): Remove 'tail' member.
35122         (new_exclude_segment): Prepend the new segment instead of appending.
35123         Return void, since that's now more convenient.
35124         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35125         (file_name_matches): Renamed from excluded_file_name_p.
35126         (file_pattern_matches, file_name_matches):
35127         Return true if the pattern matches, not if it excludes.
35128         All callers changed.
35129         (excluded_file_name): Process the list in reverse order;
35130         since the list is now reversed this restores the pre-2009 behavior.
35131         (add_exclude): Adjust to new reversed-order list.  Use local var
35132         rather than macro, for clarity.
35133         * tests/test-exclude7.sh: Adjust to corrected behavior.
35135         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35136         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35137         it's not possible here.  Handle the case of \ at end of pattern
35138         without dumping core.
35139         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35141         _Noreturn: future-proof non-GNU and non-MSVC compilers
35142         * build-aux/snippet/_Noreturn.h (_Noreturn):
35143         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35144         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35145         C11 or later.  This is more likely to work with random future C
35146         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35147         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35149         exclude: handle wildcards with FNM_EXTMATCH
35150         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35151         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35152         comment that "has wildcards" really means "has or may have
35153         wildcards".  Simplify by avoiding the need to call strcspn.
35155 2012-04-29  Bruno Haible  <bruno@clisp.org>
35157         gnulib-tool: Fix list of authors.
35158         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35160 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35162         bootstrap: support Automake-NG in $buildreq
35163         * bootstrap (check_versions): Handle automake and aclocal from
35164         Automake-NG specially.  They can be specified as respectively
35165         the "automake-ng" and "aclocal-ng" requirements.
35167 2012-04-25  Eric Blake  <eblake@redhat.com>
35169         bootstrap: only force latest Makefile.in.in for gettext module
35170         * build-aux/bootstrap (with_gettext): Only install latest
35171         Makefile.in.in for projects requesting bleeding edge gettext.
35173 2012-04-22  Bruno Haible  <bruno@clisp.org>
35175         doc: Mention reason for replacement on glibc/Linux systems.
35176         * doc/posix-functions/dprintf.texi: Mention the problem with special
35177         'long double' values.
35178         * doc/posix-functions/fprintf.texi: Likewise.
35179         * doc/posix-functions/printf.texi: Likewise.
35180         * doc/posix-functions/snprintf.texi: Likewise.
35181         * doc/posix-functions/sprintf.texi: Likewise.
35182         * doc/posix-functions/vdprintf.texi: Likewise.
35183         * doc/posix-functions/vfprintf.texi: Likewise.
35184         * doc/posix-functions/vprintf.texi: Likewise.
35185         * doc/posix-functions/vsnprintf.texi: Likewise.
35186         * doc/posix-functions/vsprintf.texi: Likewise.
35187         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35188         platforms with F_DUPFD_CLOEXEC problems.
35189         * doc/posix-functions/glob.texi: Mention which platforms are affected
35190         by the problem with symbolic links.
35191         * doc/posix-functions/linkat.texi: Mention the problem with
35192         AT_SYMLINK_FOLLOW on Linux.
35194 2012-04-22  Bruno Haible  <bruno@clisp.org>
35196         pwrite: Don't replace on all platforms.
35197         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35199 2012-04-22  Bruno Haible  <bruno@clisp.org>
35201         rint* tests: Avoid gcc warnings.
35202         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35203         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35204         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35206 2012-04-21  Bruno Haible  <bruno@clisp.org>
35208         users.txt: Update.
35209         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35210         switched from CVS to git, bzr, or svn.
35212 2012-04-21  Bruno Haible  <bruno@clisp.org>
35214         Large File Support for native Windows platforms.
35216         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35217         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35219         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35220         type.
35221         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35222         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35223         * doc/posix-headers/sys_types.texi: Mention the effect of the
35224         'largefile' module.
35226         * lib/fcntl.in.h: Add comments about off_t.
35227         * modules/fcntl-h (Depends-on): Add sys_types.
35229         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35230         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35231         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35232         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35233         * modules/unistd (Depends-on): Add sys_types.
35234         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35236         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35237         instead of lseek.
35238         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35239         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35240         * modules/lseek (Depends-on): Add sys_types.
35242         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35243         msvc-nothrow.h.
35244         (SetFileSize): New function.
35245         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35246         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35247         if Large File Support is requested.
35248         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35249         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35251         * lib/stdio.in.h: Add comments about off_t.
35252         * modules/stdio (Depends-on): Add sys_types.
35254         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35255         instead of ftello.
35256         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35257         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35258         (gl_PREREQ_FTELLO): New macro.
35259         * modules/ftello (Depends-on): Add sys_types.
35260         (configure.ac): Incoke gl_PREREQ_FTELLO.
35262         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35263         instead of fseeko.
35264         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35265         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35266         (gl_PREREQ_FSEEKO): New macro.
35267         * modules/fseeko (Depends-on): Add sys_types.
35268         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35270         * lib/sys_stat.in.h: Add comments about off_t.
35271         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35272         64-bit integer for st_size in 'struct stat'.
35273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35274         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35275         * modules/sys_stat (Depends-on): Add sys_types.
35276         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35278         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35279         instead of stat or _stat.
35281         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35282         'struct _stati64' instead of fstat and 'struct stat'.
35283         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35284         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35286         Reported by Ray Satiro <raysatiro@yahoo.com>.
35288 2012-04-19  Eric Blake  <eblake@redhat.com>
35290         bootstrap: accommodate older libtool
35291         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35292         Reported by Daniel P. Berrange.
35294 2012-04-19  Jim Meyering  <meyering@redhat.com>
35296         announce-gen: avoid failure due to lack of Digest::SHA1
35297         Even with the preferred Digest::SHA available, this script
35298         would fail when the backup module, Digest::SHA1, was not installed.
35299         * build-aux/announce-gen: Quote the conditional use of "use".
35300         Reported by Reuben Thomas in:
35301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35303         bootstrap: don't let a user's CDPATH setting affect this script
35304         When CDPATH is set, cd will sometimes generate output.
35305         When "cd" is run in a subshell whose output matters, that
35306         surprising-to-some output can cause malfunction.
35307         Unsetting CDPATH turns off this shell "feature."
35308         * build-aux/bootstrap (CDPATH): Unset.
35309         Reported by Reuben Thomas in:
35310         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35311         and inspired by his patch here:
35312         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35314 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35315         and Jim Meyering  <meyering@redhat.com>
35317         maint.mk: catch "see @xref{}" and similar
35318         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35319         prohibit "See also @xref{", "Also see @pxref{", and similar.
35321 2012-04-16  Jim Meyering  <meyering@redhat.com>
35323         bootstrap: really use gnulib's po/Makefile.in.in
35324         * build-aux/bootstrap: Correct the source file name in previous change.
35325         Reported by Akim Demaille.
35327         configmake: correct minor inconsistency in Makefile rule
35328         * modules/configmake (Makefile.am): All other rules like this one
35329         run the final "mv -f ..." in the same backslash-continued command
35330         as the one that does everything else.  This one put the mv -f ...
35331         command on a separate, non-backslash-continued line.
35332         Make it like the others.
35334         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35335         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35336         the one from gettext.  Reported by Akim Demaille.
35338 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35340         Fix recursion of install-* into po directories.
35341         Bison's install-pdf bug reported by Hans Aberg at
35342         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35343         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35344         (install-info, install-pdf, install-ps): New targets.
35346 2012-04-16  Jim Meyering  <meyering@redhat.com>
35348         maint: avoid spurious "make sc_maint" failure
35349         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35350         exempt all *.class file names, for lib/javaversion.class.
35352 2012-04-15  Bruno Haible  <bruno@clisp.org>
35354         lseek: Make configure test independent of environment.
35355         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35356         Windows, we know that lseek() on pipes is broken; skip the runtime
35357         test.
35359 2012-04-14  Bruno Haible  <bruno@clisp.org>
35361         stat: Bypass buggy override in mingw64.
35362         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35363         * lib/stat.c (stat) [mingw64]: Define to _stat.
35364         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35366 2012-04-14  Bruno Haible  <bruno@clisp.org>
35368         pathmax: Fix compilation error on MSVC 9.
35369         * modules/pathmax (Depends-on): Add unistd.
35371 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35373         README: document pointer comparison assumption
35374         * README (Portability guidelines): Document assumption about
35375         pointer comparisons, in response to a recent bug-gnulib comment by
35376         Jeffrey Kegler.
35378 2012-04-12  Bruno Haible  <bruno@clisp.org>
35380         Tests for module 'getrusage'.
35381         * modules/getrusage-tests: New file.
35382         * tests/test-getrusage.c: New file.
35384         New module 'getrusage'.
35385         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35386         warn-on-use.h.
35387         (getrusage): New declaration.
35388         * lib/getrusage.c: New file.
35389         * m4/getrusage.m4: New file.
35390         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35391         is declared.
35392         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35393         HAVE_GETRUSAGE.
35394         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35395         snippet/c++defs, snippet/warn-on-use.
35396         (Makefile.am): Update generation of sys/resource.h. Substitute
35397         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35398         * modules/getrusage: New file.
35399         * doc/posix-functions/getrusage.texi: Mention the new module.
35401 2012-04-12  Bruno Haible  <bruno@clisp.org>
35403         Tests for module 'sys_resource'.
35404         * modules/sys_resource-tests: New file.
35405         * tests/test-sys_resource.c: New file.
35407         New module 'sys_resource'.
35408         * lib/sys_resource.in.h: New file.
35409         * m4/sys_resource_h.m4: New file.
35410         * modules/sys_resource: New file.
35411         * doc/posix-headers/sys_resource.texi: Mention the new module.
35413 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35415         ioctl: Fix compilation error on mingw.
35416         * lib/ioctl.c: Include <windows.h>.
35417         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35419 2012-04-04  Jim Meyering  <meyering@redhat.com>
35421         regex: correct #pragma guard expression
35422         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35423         not 4.3.  Correct its cpp guard expression.
35425 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35427         regex: remove unnecessary type punning
35428         Problem reported by Vladimir Serbinenko in
35429         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35430         * lib/regex.h (struct re_pattern_buffer): Change the type of
35431         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35432         Fix comment to match code.
35433         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35434         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35435         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35436         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35437         (set_regs):
35438         Omit no-longer-necessary casts.
35440 2012-04-03  Bruno Haible  <bruno@clisp.org>
35442         Tests for module 'ilogbl'.
35443         * modules/ilogbl-tests: New file.
35444         * tests/test-ilogbl.c: New file.
35446         New module 'ilogbl'.
35447         * lib/math.in.h (ilogbl): New declaration.
35448         * lib/ilogbl.c: New file.
35449         * m4/ilogbl.m4: New file.
35450         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35452         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35453         Split sed invocation, to avoid the limit of 100 substitutions of
35454         HP-UX 'sed'.
35455         * modules/ilogbl: New file.
35456         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35457         * doc/posix-functions/ilogbl.texi: Mention the new module.
35459 2012-04-03  Bruno Haible  <bruno@clisp.org>
35461         Tests for module 'ilogbf'.
35462         * modules/ilogbf-tests: New file.
35463         * tests/test-ilogbf.c: New file.
35465         New module 'ilogbf'.
35466         * lib/math.in.h (ilogbf): New declaration.
35467         * lib/ilogbf.c: New file.
35468         * m4/ilogbf.m4: New file.
35469         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35471         REPLACE_ILOGBF.
35472         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35473         REPLACE_ILOGBF.
35474         * modules/ilogbf: New file.
35475         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35476         * doc/posix-functions/ilogbf.texi: Mention the new module.
35478 2012-04-03  Bruno Haible  <bruno@clisp.org>
35480         Tests for module 'ilogb'.
35481         * modules/ilogb-tests: New file.
35482         * tests/test-ilogb.c: New file.
35483         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35484         tests/test-logb-ieee.h.
35486         New module 'ilogb'.
35487         * lib/math.in.h (ilogb): New declaration.
35488         * lib/ilogb.c: New file.
35489         * m4/ilogb.m4: New file.
35490         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35492         REPLACE_ILOGB.
35493         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35494         REPLACE_ILOGB.
35495         * modules/ilogb: New file.
35496         * tests/test-math-c++.cc: Check the declaration of ilogb.
35497         * doc/posix-functions/ilogb.texi: Mention the new module.
35499 2012-04-03  Bruno Haible  <bruno@clisp.org>
35501         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35502         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35503         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35504         (main): Check their values.
35505         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35506         problem.
35508 2012-04-03  Bruno Haible  <bruno@clisp.org>
35510         Tests for module 'logbl-ieee'.
35511         * modules/logbl-ieee-tests: New file.
35512         * tests/test-logbl-ieee.c: New file.
35514         New module 'logbl-ieee'.
35515         * modules/logbl-ieee: New file.
35517         Tests for module 'logb-ieee'.
35518         * modules/logb-ieee-tests: New file.
35519         * tests/test-logb-ieee.c: New file.
35521         New module 'logb-ieee'.
35522         * modules/logb-ieee: New file.
35524         Tests for module 'logbf-ieee'.
35525         * modules/logbf-ieee-tests: New file.
35526         * tests/test-logbf-ieee.c: New file.
35527         * tests/test-logb-ieee.h: New file.
35529         New module 'logbf-ieee'.
35530         * modules/logbf-ieee: New file.
35532 2012-04-03  Bruno Haible  <bruno@clisp.org>
35534         Tests for module 'logbl'.
35535         * modules/logbl-tests: New file.
35536         * tests/test-logbl.c: New file.
35538         New module 'logbl'.
35539         * lib/math.in.h (logbl): New declaration.
35540         * lib/logbl.c: New file.
35541         * m4/logbl.m4: New file.
35542         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35544         REPLACE_LOGBL.
35545         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35546         REPLACE_LOGBL.
35547         * modules/logbl: New file.
35548         * tests/test-math-c++.cc: Check the declaration of logbl.
35549         * doc/posix-functions/logbl.texi: Mention the new module.
35551 2012-04-02  Bruno Haible  <bruno@clisp.org>
35553         Tests for module 'logbf'.
35554         * modules/logbf-tests: New file.
35555         * tests/test-logbf.c: New file.
35557         New module 'logbf'.
35558         * lib/math.in.h (logbf): New declaration.
35559         * lib/logbf.c: New file.
35560         * m4/logbf.m4: New file.
35561         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35563         REPLACE_LOGBF.
35564         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35565         REPLACE_LOGBF.
35566         * modules/logbf: New file.
35567         * tests/test-math-c++.cc: Check the declaration of logbf.
35568         * doc/posix-functions/logbf.texi: Mention the new module.
35570 2012-04-02  Bruno Haible  <bruno@clisp.org>
35572         logb tests: More tests.
35573         * tests/test-logb.h: New file, based on tests/test-logb.c and
35574         tests/test-frexp.h.
35575         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35576         (main): Just invoke test_function.
35577         * modules/logb-tests (Files): Add tests/test-logb.h,
35578         tests/minus-zero.h, tests/randomd.c.
35579         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35581         logb: Provide replacement and workarounds.
35582         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35583         is 1.
35584         * lib/logb.c: New file.
35585         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35586         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
35587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
35588         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
35589         * modules/logb (Files): Add lib/logb.c.
35590         (Depends-on): Add isfinite, frexp, isnand.
35591         (configure.ac): Compile the replacement code logb.c if needed.
35592         * tests/test-math-c++.cc: Check the declaration of logb.
35593         * doc/posix-functions/logb.texi: Mention the replacement and the bug
35594         with subnormal numbers.
35596 2012-04-02  Bruno Haible  <bruno@clisp.org>
35598         log10* tests: Speed up.
35599         * tests/test-log10.h (test_function): Reduce amount of random numbers
35600         to test.
35602 2012-04-01  Bruno Haible  <bruno@clisp.org>
35604         logf-ieee: Fix test whether logf works.
35605         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
35607 2012-04-01  Bruno Haible  <bruno@clisp.org>
35609         log10l: Work around log10l-ieee test failure on IRIX 6.5.
35610         * lib/log10l.c: Include <float.h>
35611         (log10l): On IRIX, normalize the +Infinity value.
35612         * modules/log10l (Depends-on): Add 'float'.
35613         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
35614         +Infinity.
35616         log10f-ieee: Work around test failure on NetBSD 5.1.
35617         * m4/log10f-ieee.m4: New file.
35618         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
35619         test whether log10f works with a negative argument. Replace it if not.
35620         * lib/log10f.c (log10f): For negative arguments, return NaN.
35621         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
35622         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
35623         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
35625         log10f-ieee: Work around test failure on Solaris 9.
35626         * modules/log10f-ieee (Depends-on): Add log10-ieee.
35627         (configure.ac): Require gl_FUNC_LOG10F.
35629         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35630         * m4/log10-ieee.m4: New file.
35631         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
35632         whether log10 works with a negative argument. Replace it if not.
35633         * lib/log10.c (log10): For negative arguments, return NaN.
35634         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
35635         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
35636         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
35638         Tests for module 'log10l-ieee'.
35639         * modules/log10l-ieee-tests: New file.
35640         * tests/test-log10l-ieee.c: New file.
35642         New module 'log10l-ieee'.
35643         * modules/log10l-ieee: New file.
35645         Tests for module 'log10-ieee'.
35646         * modules/log10-ieee-tests: New file.
35647         * tests/test-log10-ieee.c: New file.
35649         New module 'log10-ieee'.
35650         * modules/log10-ieee: New file.
35652         Tests for module 'log10f-ieee'.
35653         * modules/log10f-ieee-tests: New file.
35654         * tests/test-log10f-ieee.c: New file.
35655         * tests/test-log10-ieee.h: New file.
35657         New module 'log10f-ieee'.
35658         * modules/log10f-ieee: New file.
35660 2012-04-01  Bruno Haible  <bruno@clisp.org>
35662         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
35663         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
35664         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
35665         workaround.
35666         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
35667         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
35668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
35669         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
35670         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
35671         (Depends-on): Update conditions.
35672         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
35673         IRIX 6.5, OSF/1 5.1 problems.
35675 2012-04-01  Bruno Haible  <bruno@clisp.org>
35677         log10f: Work around OSF/1 5.1 bug.
35678         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
35679         * lib/log10f.c (log10f): If logf exists, use it and provide just the
35680         workaround.
35681         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
35682         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
35683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
35684         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
35685         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
35686         (Depends-on): Update conditions.
35687         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
35689 2012-04-01  Bruno Haible  <bruno@clisp.org>
35691         log10: Work around OSF/1 5.1 bug.
35692         * lib/math.in.h (log10): New declaration.
35693         * lib/log10.c: New file.
35694         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
35695         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
35696         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
35697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
35698         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
35699         * modules/log10 (Files): Add lib/log10.c.
35700         (Depends-on): Add math.
35701         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
35702         * tests/test-math-c++.cc: Check the declaration of log10.
35703         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
35705 2012-03-31  Bruno Haible  <bruno@clisp.org>
35707         log10l tests: More tests.
35708         * modules/log10l-tests (Files): Add tests/test-log10l.h,
35709         tests/minus-zero.h, tests/randoml.c.
35710         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
35711         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
35712         (main): Invoke test_function.
35714         log10f tests: More tests.
35715         * modules/log10f-tests (Files): Add tests/test-log10.h,
35716         tests/minus-zero.h, tests/randomf.c.
35717         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
35718         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
35719         (main): Invoke test_function.
35721         log10 tests: More tests.
35722         * tests/test-log10.h: New file.
35723         * modules/log10-tests (Files): Add tests/test-log10.h,
35724         tests/minus-zero.h, tests/randomd.c.
35725         (Makefile.am): Add randomd.c to test_log10_SOURCES.
35726         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
35727         (main): Invoke test_function.
35729 2012-03-31  Simon Josefsson  <simon@josefsson.org>
35731         fflush: Fix syntax error.
35732         * lib/fflush.c: Include unused-parameter.h, needed for
35733         _GL_UNUSED_PARAMETER.
35734         * modules/fflush (Depends-on): Add snippet/unused-parameter.
35736 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35738         regex: pacify GCC when compiling GRUB
35739         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
35740         a diagnostic.  Reported by Vladimir Serbinenko in
35741         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
35743 2012-03-29  Eric Blake  <eblake@redhat.com>
35745         stdio: don't assume gets any more
35746         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
35747         support.
35748         * modules/stdio (Makefile.am): Likewise.
35749         * lib/stdio-read.c (gets): Likewise.
35750         * tests/test-stdio-c++.cc: Likewise.
35751         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
35752         * lib/stdio.in.h (gets): Make warning occur in more places.
35753         * doc/posix-functions/gets.texi (gets): Update documentation.
35754         Reported by Christer Solskogen.
35756         maint.mk: fix syntax checks without exclusions
35757         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
35758         Reported by Daniel P. Berrange.
35760         strerror_r: avoid compiler warning
35761         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
35762         level.
35764         fflush: avoid compiler warning
35765         * lib/fflush.c (update_fpos_cache): Mark variables that are
35766         potentially unused.
35768 2012-03-25  Bruno Haible  <bruno@clisp.org>
35770         Tests for module 'localeconv'.
35771         * modules/localeconv-tests: New file.
35772         * tests/test-localeconv.c: New file.
35774         New module 'localeconv'.
35775         * lib/locale.in.h (localeconv): New declaration.
35776         * lib/localeconv.c: New file.
35777         * m4/localeconv.m4: New file.
35778         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
35779         REPLACE_LOCALECONV.
35780         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
35781         REPLACE_LOCALECONV.
35782         * modules/localeconv: New file.
35783         * modules/nl_langinfo (Depends-on): Add localeconv.
35784         * modules/human (Depends-on): Likewise.
35785         * doc/posix-functions/localeconv.texi: Mention the new module.
35787 2012-03-25  Bruno Haible  <bruno@clisp.org>
35789         locale: Provide a complete 'struct lconv'.
35790         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35791         'struct lconv' does not contain int_p_cs_precedes.
35792         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35793         * doc/posix-headers/locale.texi: Update.
35795         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
35796         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
35797         * doc/posix-headers/locale.texi: Update.
35799         locale: Provide a working 'struct lconv'.
35800         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
35801         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35802         'struct lconv' does not even contain decimal_point.
35803         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
35804         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
35805         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35806         * doc/posix-headers/locale.texi: Mention the problems with
35807         'struct lconv'.
35808         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
35810 2012-03-24  Bruno Haible  <bruno@clisp.org>
35812         Enable common subexpression optimization in GCC.
35813         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
35814         macros.
35815         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
35816         GCC attribute 'const'.
35817         (uc_locale_language): Declare with GCC attribute 'pure'.
35818         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
35819         with GCC attribute 'const'.
35820         * lib/unictype.in.h (uc_is_general_category_withtable,
35821         uc_combining_class, uc_combining_class_name,
35822         uc_combining_class_long_name, uc_bidi_class_name,
35823         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
35824         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
35825         uc_decimal_value, uc_digit_value, uc_numeric_value,
35826         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
35827         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
35828         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
35829         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
35830         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
35831         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
35832         Declare with GCC attribute 'const'.
35833         (uc_general_category_name, uc_general_category_long_name,
35834         uc_general_category_byname, uc_general_category,
35835         uc_is_general_category, uc_combining_class_byname,
35836         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
35837         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
35838         Declare with GCC attribute 'pure'.
35839         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
35840         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
35841         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
35842         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
35843         with GCC attribute 'pure'.
35844         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
35845         'const'.
35846         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
35847         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
35848         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
35849         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
35850         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
35851         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
35852         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
35853         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
35854         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
35855         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
35856         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
35857         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
35858         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
35859         GCC attribute 'pure'.
35860         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
35861         'const'.
35862         * lib/uniwidth.in.h (uc_width): Simplify declaration.
35863         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
35864         u32_strwidth): Declare with GCC attribute 'pure'.
35866         Enable common subexpression optimization in GCC.
35867         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35868         (alphasort): Declare with GCC attribute 'pure'.
35869         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35870         (atoll): Declare with GCC attribute 'pure'.
35871         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35872         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35873         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
35874         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
35875         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
35876         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
35877         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
35879 2012-03-24  Bruno Haible  <bruno@clisp.org>
35881         gnulib-tool: Avoid unintended error output from 'cmp'.
35882         * gnulib-tool (func_add_file, func_update_file, func_import): Use
35883         "cmp -s", not "cmp > /dev/null".
35885 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
35887         gnulib-tool: fix imprecise comments w.r.t. an automake bug
35889         It's not just Automake versions < 1.9b that creates an empty
35890         pkgdatadir at installation time if pkgdata_DATA is specified
35891         to empty; modern automake versions do this as well, at least
35892         until automake 1.11.4 (not yet released at the moment of writing,
35893         but soon to appear).  That behaviour was generally considered a
35894         feature rather than a bug, at least until this discussion:
35895         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
35897         See also automake bugs #10997 and #11030.
35899         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
35900         reference to relevant automake bug numbers.
35901         (func_emit_tests_Makefile_am): Likewise.
35903 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
35905         announce-gen: use Digest::SHA when possible
35906         * build-aux/announce-gen: Use Digest::SHA when possible, falling
35907         back to Digest::SHA1 if necessary.
35909 2012-03-20  Jim Meyering  <meyering@redhat.com>
35911         tests: avoid gcc warnings about argv vs. const initializers
35912         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
35913         warnings about discarding 'const' qualifier from pointer target type.
35914         * tests/test-posix_spawn2.c (main): Likewise.
35916 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
35918         README-release: simplify slightly
35919         * top/README-release: Run "git checkout master" only once.
35921 2012-03-15  Mark Wielaard  <mark@klomp.org>
35923         git-merge-changelog: add specific example on how to use with hg.
35924         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
35926 2012-03-18  Mark Wielaard  <mark@klomp.org>
35928         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
35930 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
35932         git-version-gen: don't let "prefix" envvar cause trouble
35933         * build-aux/git-version-gen (prefix): Initialize properly,
35934         so as not to use a value specified via the environment.
35935         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
35937 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35939         regex: diagnose too-large repeat counts in EREs
35940         Previously, the code did not diagnose the too-large repeat count
35941         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
35942         as if it were 'b\{1000000000}', which is unexpected.
35943         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
35944         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
35945         is a reasonable one for this problem.  Another option would be to
35946         create a new REG_OVERFLOW error for repeat counts that are too large.
35947         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
35948         count is too large, so that the caller can distinguish the two cases.
35949         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
35950         "Too large" return code, and that repeat counts are one example of this.
35952 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35954         doc: some glibc x32 integer width issues
35955         * doc/posix-headers/sys_types.texi (sys/types.h):
35956         * doc/posix-headers/time.texi (time.h):
35957         Mention that glibc x32 does not conform to POSIX in a couple of
35958         areas related to integer widths.
35960 2012-03-15  Bruno Haible  <bruno@clisp.org>
35962         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
35963         * lib/fma.c (VOLATILE): New macro.
35964         (FUNC): Use it to work around a GCC compiler bug.
35966 2012-03-13  Bruno Haible  <bruno@clisp.org>
35968         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35969         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
35970         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
35971         REPLACE_HYPOTL to 1.
35972         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
35974 2012-03-13  Bruno Haible  <bruno@clisp.org>
35976         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35977         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
35978         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
35979         REPLACE_REMAINDERL to 1.
35980         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
35981         bug.
35983 2012-03-13  Bruno Haible  <bruno@clisp.org>
35985         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
35986         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
35987         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
35988         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
35989         too big rounding errors.
35990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
35991         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
35992         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
35993         (Depends-on): Update conditions.
35994         * tests/test-sqrtl.c (my_ldexpl): New function.
35995         (main): Add test of a particular value.
35996         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
35998 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36000         doc: Update timer_* platform portability notes.
36001         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36002         that always return ENOSYS.
36003         * doc/posix-functions/timer_delete.texi: Likewise.
36004         * doc/posix-functions/timer_gettime.texi: Likewise.
36005         * doc/posix-functions/timer_settime.texi: Likewise.
36007 2012-03-13  Bruno Haible  <bruno@clisp.org>
36009         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36010         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36011         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36012         REPLACE_CBRTL to 1.
36013         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36015 2012-03-13  Bruno Haible  <bruno@clisp.org>
36017         remainderl: Avoid compilation error on AIX >= 5.2.
36018         * lib/math.in.h (remainderl): Undefine macro from the system header.
36020 2012-03-13  Bruno Haible  <bruno@clisp.org>
36022         Avoid compilation errors with MSVC option -fp:strict.
36023         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36024         * lib/cbrtf.c: Likewise.
36025         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36027 2012-03-12  Bruno Haible  <bruno@clisp.org>
36029         uninorm: Don't crash in out-of-memory conditions.
36030         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36031         gracefully.
36032         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36033         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36035 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36037         quote: fix syntax-check
36038         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36039         also exports quote_quoting_options.
36041 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36043         Collapse list of copyright years to ranges.  See
36044         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36045         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36046         build-aux/csharpexec.sh.in, build-aux/gnupload,
36047         build-aux/install-reloc, build-aux/javacomp.sh.in,
36048         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36049         build-aux/move-if-change, build-aux/reloc-ldflags,
36050         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36052 2012-03-11  Bruno Haible  <bruno@clisp.org>
36054         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36055         * m4/log2f-ieee.m4: New file.
36056         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36057         whether log2f works with a minus zero argument. Replace it if not.
36058         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36059         (Depends-on): Add log2-ieee.
36060         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36061         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36063         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36064         * m4/log2-ieee.m4: New file.
36065         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36066         whether log2 works with a minus zero argument. Replace it if not.
36067         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36068         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36069         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36071         Tests for module 'log2l-ieee'.
36072         * modules/log2l-ieee-tests: New file.
36073         * tests/test-log2l-ieee.c: New file.
36075         New module 'log2l-ieee'.
36076         * modules/log2l-ieee: New file.
36078         Tests for module 'log2-ieee'.
36079         * modules/log2-ieee-tests: New file.
36080         * tests/test-log2-ieee.c: New file.
36082         New module 'log2-ieee'.
36083         * modules/log2-ieee: New file.
36085         Tests for module 'log2f-ieee'.
36086         * modules/log2f-ieee-tests: New file.
36087         * tests/test-log2f-ieee.c: New file.
36088         * tests/test-log2-ieee.h: New file.
36090         New module 'log2f-ieee'.
36091         * modules/log2f-ieee: New file.
36093 2012-03-11  Bruno Haible  <bruno@clisp.org>
36095         Tests for module 'log2l'.
36096         * modules/log2l-tests: New file.
36097         * tests/test-log2l.c: New file.
36099         New module 'log2l'.
36100         * lib/math.in.h (log2l): New declaration.
36101         * lib/log2l.c: New file.
36102         * m4/log2l.m4: New file.
36103         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36105         REPLACE_LOG2L.
36106         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36107         REPLACE_LOG2L.
36108         * modules/log2l: New file.
36109         * tests/test-math-c++.cc: Check the declaration of log2l.
36110         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36111         and OSF/1 problems.
36113 2012-03-11  Bruno Haible  <bruno@clisp.org>
36115         Tests for module 'log2f'.
36116         * modules/log2f-tests: New file.
36117         * tests/test-log2f.c: New file.
36119         New module 'log2f'.
36120         * lib/math.in.h (log2f): New declaration.
36121         * lib/log2f.c: New file.
36122         * m4/log2f.m4: New file.
36123         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36125         REPLACE_LOG2F.
36126         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36127         REPLACE_LOG2F.
36128         * modules/log2f: New file.
36129         * tests/test-math-c++.cc: Check the declaration of log2f.
36130         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36131         and OSF/1 and Cygwin problems.
36133 2012-03-11  Bruno Haible  <bruno@clisp.org>
36135         Tests for module 'log2'.
36136         * modules/log2-tests: New file.
36137         * tests/test-log2.c: New file.
36138         * tests/test-log2.h: New file.
36140         New module 'log2'.
36141         * lib/math.in.h (log2): New declaration.
36142         * lib/log2.c: New file.
36143         * m4/log2.m4: New file.
36144         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36146         REPLACE_LOG2.
36147         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36148         REPLACE_LOG2.
36149         * modules/log2: New file.
36150         * tests/test-math-c++.cc: Check the declaration of log2.
36151         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36152         and OSF/1 and Cygwin problems.
36154 2012-03-11  Bruno Haible  <bruno@clisp.org>
36156         exp2* tests: More tests.
36157         * tests/test-exp2.h (test_function): Test all integral arguments that
36158         don't need to overflow or denormalized numbers.
36159         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36160         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36161         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36163 2012-03-10  Bruno Haible  <bruno@clisp.org>
36165         log1pl-ieee: Work around test failure on AIX 7.1.
36166         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36168         log1pl-ieee: Work around test failure on IRIX 6.5.
36169         * m4/log1pl-ieee.m4: New file.
36170         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36171         test whether log1pl works with a minus zero argument. Replace it if
36172         not.
36173         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36175         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36176         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36177         (Depends-on): Update conditions.
36178         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36179         m4/signbit.m4.
36180         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36181         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36183         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36184         * m4/log1pf-ieee.m4: New file.
36185         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36186         test whether log1pf works with a minus zero argument. Replace it if
36187         not.
36188         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36189         m4/signbit.m4.
36190         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36191         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36193         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36194         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36195         (configure.ac): Require gl_FUNC_LOG1PF.
36197         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36198         * m4/log1p-ieee.m4: New file.
36199         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36200         whether log1p works with a minus zero argument. Replace it if not.
36201         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36203         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36204         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36205         (Depends-on): Update conditions.
36206         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36207         m4/signbit.m4.
36208         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36209         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36211         Tests for module 'log1pl-ieee'.
36212         * modules/log1pl-ieee-tests: New file.
36213         * tests/test-log1pl-ieee.c: New file.
36215         New module 'log1pl-ieee'.
36216         * modules/log1pl-ieee: New file.
36218         Tests for module 'log1p-ieee'.
36219         * modules/log1p-ieee-tests: New file.
36220         * tests/test-log1p-ieee.c: New file.
36222         New module 'log1p-ieee'.
36223         * modules/log1p-ieee: New file.
36225         Tests for module 'log1pf-ieee'.
36226         * modules/log1pf-ieee-tests: New file.
36227         * tests/test-log1pf-ieee.c: New file.
36228         * tests/test-log1p-ieee.h: New file.
36230         New module 'log1pf-ieee'.
36231         * modules/log1pf-ieee: New file.
36233 2012-03-10  Bruno Haible  <bruno@clisp.org>
36235         Tests for module 'log1pl'.
36236         * modules/log1pl-tests: New file.
36237         * tests/test-log1pl.c: New file.
36239         New module 'log1pl'.
36240         * lib/math.in.h (log1pl): New declaration.
36241         * lib/log1pl.c: New file.
36242         * m4/log1pl.m4: New file.
36243         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36245         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36246         * modules/log1pl: New file.
36247         * tests/test-math-c++.cc: Check the declaration of log1pl.
36248         * doc/posix-functions/log1pl.texi: Mention the new module.
36250 2012-03-10  Bruno Haible  <bruno@clisp.org>
36252         Tests for module 'log1pf'.
36253         * modules/log1pf-tests: New file.
36254         * tests/test-log1pf.c: New file.
36256         New module 'log1pf'.
36257         * lib/math.in.h (log1pf): New declaration.
36258         * lib/log1pf.c: New file.
36259         * m4/log1pf.m4: New file.
36260         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36262         REPLACE_LOG1PF.
36263         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36264         REPLACE_LOG1PF.
36265         * modules/log1pf: New file.
36266         * tests/test-math-c++.cc: Check the declaration of log1pf.
36267         * doc/posix-functions/log1pf.texi: Mention the new module.
36269 2012-03-10  Bruno Haible  <bruno@clisp.org>
36271         log1p tests: More tests.
36272         * tests/test-log1p.h: New file.
36273         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36274         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36275         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36276         (main): Invoke test_function.
36278         log1p: Provide replacement for Minix and MSVC.
36279         * lib/math.in.h (log1p): New declaration.
36280         * lib/log1p.c: New file.
36281         * m4/log1p.m4: New file.
36282         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36284         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36285         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36286         (Depends-on): Add math, isnand, log, round.
36287         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36288         HAVE_LOG1P is 0.
36289         * tests/test-math-c++.cc: Check the declaration of log1p.
36290         * doc/posix-functions/log1p.texi: Mention the replacement.
36292 2012-03-10  Bruno Haible  <bruno@clisp.org>
36294         math tests: Small simplification.
36295         * tests/test-exp.h (test_function): Use the same err_bound for
36296         'double' on platforms with sizeof (long double) == sizeof (double)
36297         than on platforms with sizeof (long double) > sizeof (double).
36298         * tests/test-exp2.h (test_function): Likewise.
36299         * tests/test-expm1.h (test_function): Likewise.
36300         * tests/test-log.h (test_function): Likewise.
36302 2012-03-10  Bruno Haible  <bruno@clisp.org>
36304         Fix some comments.
36305         * lib/expl.c: Fix an ambiguous comment.
36306         * lib/expm1.c: Likewise.
36307         * lib/expm1l.c: Likewise.
36308         * lib/exp2.c: Likewise.
36309         * lib/exp2l.c: Likewise.
36311 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36313         regex: allow inclusion of <regex.h> before <limits.h>
36314         Without this patch, portable programs had to include <limits.h> before
36315         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36316         I ran into this problem with a test version of GNU grep on Solaris 8.
36317         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36318         This is done conditionally so that this change can be merged
36319         back to glibc.
36320         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36321         using the included regex.
36323         fts: depend on fdopendir
36324         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36325         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36326         problem was introduced when fdopendir was split out.
36328 2012-03-10  Bruno Haible  <bruno@clisp.org>
36330         Remove unused variables.
36331         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36332         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36334 2012-03-10  Bruno Haible  <bruno@clisp.org>
36336         isnanf-nolibm: Fix last commit.
36337         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36339         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36340         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36342 2012-03-10  Bruno Haible  <bruno@clisp.org>
36344         logf-ieee: Work around test failure on NetBSD 5.1.
36345         * m4/logf-ieee.m4: New file.
36346         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36347         whether logf works with a negative argument. Replace it if not.
36348         * lib/logf.c (logf): For negative arguments, return NaN.
36349         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36350         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36351         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36353         logf-ieee: Work around test failure on Solaris 9.
36354         * modules/logf-ieee (Depends-on): Add log-ieee.
36355         (configure.ac): Require gl_FUNC_LOGF.
36357         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36358         * m4/log-ieee.m4: New file.
36359         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36360         log works with a negative argument. Replace it if not.
36361         * lib/log.c (log): For negative arguments, return NaN.
36362         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36363         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36364         * doc/posix-functions/log.texi: Mention the log-ieee module.
36366         Tests for module 'logl-ieee'.
36367         * modules/logl-ieee-tests: New file.
36368         * tests/test-logl-ieee.c: New file.
36370         New module 'logl-ieee'.
36371         * modules/logl-ieee: New file.
36373         Tests for module 'log-ieee'.
36374         * modules/log-ieee-tests: New file.
36375         * tests/test-log-ieee.c: New file.
36377         New module 'log-ieee'.
36378         * modules/log-ieee: New file.
36380         Tests for module 'logf-ieee'.
36381         * modules/logf-ieee-tests: New file.
36382         * tests/test-logf-ieee.c: New file.
36383         * tests/test-log-ieee.h: New file.
36385         New module 'logf-ieee'.
36386         * modules/logf-ieee: New file.
36388 2012-03-10  Bruno Haible  <bruno@clisp.org>
36390         log: Fix bug introduced on 2012-03-09.
36391         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36393 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36395         timer-time: link explicitly with pthreads on glibc
36396         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36397         to support static linking, when newer glibc is
36398         detected, as that contains pthread emulation of
36399         POSIX timer functions where required.
36400         * modules/timer-time: Depend on threadlib to
36401         pull in the appropriate library to link.
36403 2012-03-10  Bruno Haible  <bruno@clisp.org>
36405         log* tests: More tests.
36406         * tests/test-log.h: New file.
36407         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36408         (main): Invoke test_function.
36409         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36410         (main): Invoke test_function.
36411         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36412         (main): Invoke test_function.
36413         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36414         tests/randomd.c.
36415         (Makefile.am): Add randomd.c to test_log_SOURCES.
36416         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36417         tests/randomf.c.
36418         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36419         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36420         tests/randoml.c.
36421         (Depends-on): Add 'float'.
36422         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36424 2012-03-09  Bruno Haible  <bruno@clisp.org>
36426         logl: Work around OSF/1 5.1 bug.
36427         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36428         * lib/logl.c (logl): If logl exists, use it and provide just the
36429         workaround.
36430         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36431         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36433         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36434         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36435         (Depends-on): Update conditions.
36436         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36438 2012-03-09  Bruno Haible  <bruno@clisp.org>
36440         logf: Work around OSF/1 5.1 bug.
36441         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36442         * lib/logf.c (logf): If logf exists, use it and provide just the
36443         workaround.
36444         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36445         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36447         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36448         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36449         (Depends-on): Update conditions.
36450         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36452 2012-03-09  Bruno Haible  <bruno@clisp.org>
36454         log: Work around OSF/1 5.1 bug.
36455         * lib/math.in.h (log): New declaration.
36456         * lib/log.c: New file.
36457         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36458         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36459         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36461         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36462         * modules/log (Files): Add lib/log.c.
36463         (Depends-on): Add math.
36464         (configure.ac): If REPLACE_LOG is 1, compile an override.
36465         * tests/test-math-c++.cc: Check the declaration of log.
36466         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36468 2012-03-09  Jim Meyering  <meyering@redhat.com>
36470         readtokens.c: adjust wording in a comment
36471         * lib/readtokens.c: Insert omitted "that" in a comment.
36473 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36475         modechange: add notations +40, 00440, etc.
36476         * lib/modechange.c (mode_compile): Support new notations
36477         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36479 2012-03-08  Bruno Haible  <bruno@clisp.org>
36481         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36482         * m4/exp2l-ieee.m4: New file.
36483         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36484         test whether exp2l works with a NaN argument and with a negative
36485         infinity argument. Replace it if not.
36486         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36488         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36489         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36490         (Depends-on): Update conditions.
36491         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36492         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36493         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36495         Tests for module 'exp2l-ieee'.
36496         * modules/exp2l-ieee-tests: New file.
36497         * tests/test-exp2l-ieee.c: New file.
36499         New module 'exp2l-ieee'.
36500         * modules/exp2l-ieee: New file.
36502         Tests for module 'exp2-ieee'.
36503         * modules/exp2-ieee-tests: New file.
36504         * tests/test-exp2-ieee.c: New file.
36506         New module 'exp2-ieee'.
36507         * modules/exp2-ieee: New file.
36509         Tests for module 'exp2f-ieee'.
36510         * modules/exp2f-ieee-tests: New file.
36511         * tests/test-exp2f-ieee.c: New file.
36512         * tests/test-exp2-ieee.h: New file.
36514         New module 'exp2f-ieee'.
36515         * modules/exp2f-ieee: New file.
36517 2012-03-08  Bruno Haible  <bruno@clisp.org>
36519         Tests for module 'exp2l'.
36520         * modules/exp2l-tests: New file.
36521         * tests/test-exp2l.c: New file.
36523         New module 'exp2l'.
36524         * lib/math.in.h (exp2l): New declaration.
36525         * lib/exp2l.c: New file.
36526         * lib/expl-table.c: New file, extracted from lib/expl.c.
36527         * lib/expl.c (gl_expl_table): New declaration.
36528         (expl): Remove expl_table. Update reference.
36529         * m4/exp2l.m4: New file.
36530         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36532         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36533         * modules/exp2l: New file.
36534         * modules/expl (Files): Add lib/expl-table.c.
36535         (configure.ac): Compile also expl-table.c.
36536         * tests/test-math-c++.cc: Check the declaration of exp2l.
36537         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36538         problem.
36540 2012-03-08  Bruno Haible  <bruno@clisp.org>
36542         Tests for module 'exp2f'.
36543         * modules/exp2f-tests: New file.
36544         * tests/test-exp2f.c: New file.
36546         New module 'exp2f'.
36547         * lib/math.in.h (exp2f): New declaration.
36548         * lib/exp2f.c: New file.
36549         * m4/exp2f.m4: New file.
36550         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36552         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36553         * modules/exp2f: New file.
36554         * tests/test-math-c++.cc: Check the declaration of exp2f.
36555         * doc/posix-functions/exp2f.texi: Mention the new module and the
36556         IRIX problem.
36558 2012-03-08  Bruno Haible  <bruno@clisp.org>
36560         Tests for module 'exp2'.
36561         * modules/exp2-tests: New file.
36562         * tests/test-exp2.c: New file.
36563         * tests/test-exp2.h: New file.
36565         New module 'exp2'.
36566         * lib/math.in.h (exp2): New declaration.
36567         * lib/exp2.c: New file.
36568         * m4/exp2.m4: New file.
36569         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36571         REPLACE_EXP2.
36572         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36573         REPLACE_EXP2.
36574         * modules/exp2: New file.
36575         * tests/test-math-c++.cc: Check the declaration of exp2.
36576         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36577         and OpenBSD problems.
36579 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36581         savedir: fix comment typo
36582         * lib/savedir.c (savedirstream): Fix typo in comment.
36584 2012-03-08  Bruno Haible  <bruno@clisp.org>
36586         test-readtokens.c: use const; remove unwarranted cast
36587         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
36589 2012-03-08  Bruno Haible  <bruno@clisp.org>
36591         fmal: Avoid compilation error on AIX.
36592         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
36593         AIX 5.2..7.1.
36595 2012-03-08  Bruno Haible  <bruno@clisp.org>
36597         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
36598         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
36599         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
36600         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
36601         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
36602         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
36603         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
36605 2012-03-08  Bruno Haible  <bruno@clisp.org>
36607         remainderf: Override buggy system function on IRIX 6.5.
36608         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
36609         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
36610         when it exists.
36611         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
36613 2012-03-08  Jim Meyering  <meyering@redhat.com>
36615         test-readtokens.c: avoid const-related compilation warnings
36616         * tests/test-readtokens.c: Avoid const-related compilation warnings.
36618 2012-03-07  Jim Meyering  <meyering@redhat.com>
36619             Bruno Haible  <bruno@clisp.org>
36621         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
36622         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
36623         tests/randomd.c.
36624         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
36625         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
36626         tests/randoml.c.
36627         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
36629 2012-03-07  Bruno Haible  <bruno@clisp.org>
36631         expm1l: Avoid compilation error on AIX.
36632         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
36633         AIX 5.2..7.1.
36635 2012-03-07  Bruno Haible  <bruno@clisp.org>
36637         expm1l: Don't override undeclared system function on IRIX 6.5.
36638         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
36639         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
36640         it exists. Set HAVE_DECL_EXPM1L.
36641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
36642         HAVE_EXPM1L.
36643         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
36644         HAVE_EXPM1L.
36645         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
36647 2012-03-07  Bruno Haible  <bruno@clisp.org>
36649         remainderl: Don't override undeclared system function on IRIX 6.5.
36650         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
36651         HAVE_REMAINDERL.
36652         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
36653         declared when it exists. Set HAVE_DECL_REMAINDERL.
36654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
36655         not HAVE_REMAINDERL.
36656         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
36657         HAVE_REMAINDERL.
36658         * doc/posix-functions/remainderl.texi: Mention missing declaration
36659         problem.
36661 2012-03-07  Bruno Haible  <bruno@clisp.org>
36663         rintf: Don't override undeclared system function on IRIX 6.5.
36664         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
36665         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
36666         exists. Set HAVE_DECL_RINTF.
36667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
36668         HAVE_RINTF.
36669         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
36670         HAVE_RINTF.
36671         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
36673 2012-03-07  Bruno Haible  <bruno@clisp.org>
36675         roundl: Avoid compilation error on AIX.
36676         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
36677         AIX 5.2..7.1.
36679 2012-03-07  Bruno Haible  <bruno@clisp.org>
36681         roundl: Don't override undeclared system function on IRIX 6.5.
36682         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
36683         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
36684         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36685         * modules/roundl (configure.ac): For replacement code, test
36686         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36687         (Depends-on): Update conditions.
36688         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
36690 2012-03-07  Bruno Haible  <bruno@clisp.org>
36692         roundf: Don't override undeclared system function on IRIX 6.5.
36693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
36694         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
36695         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36696         * modules/roundf (configure.ac): For replacement code, test
36697         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36698         (Depends-on): Update conditions.
36699         * modules/roundf-ieee (Depends-on): Update conditions.
36700         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
36702 2012-03-07  Bruno Haible  <bruno@clisp.org>
36704         round: Don't override undeclared system function on IRIX 6.5.
36705         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
36706         argument.
36707         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
36708         also when it is not declared. Set HAVE_ROUND. For replacement code,
36709         test HAVE_ROUND, not HAVE_DECL_ROUND.
36710         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
36711         not HAVE_DECL_ROUND.
36712         (Depends-on): Update conditions.
36713         * modules/round-ieee (Depends-on): Update conditions.
36714         * doc/posix-functions/round.texi: Mention the IRIX problem.
36716 2012-03-07  Bruno Haible  <bruno@clisp.org>
36718         copysignf: Don't override undeclared system function on IRIX 6.5.
36719         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
36720         HAVE_COPYSIGNF.
36721         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
36722         declared when it exists. Set HAVE_DECL_COPYSIGNF.
36723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
36724         not HAVE_COPYSIGNF.
36725         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
36726         HAVE_COPYSIGNF.
36727         * doc/posix-functions/copysignf.texi: Mention missing declaration
36728         problem.
36730 2012-03-07  Jim Meyering  <meyering@redhat.com>
36732         readtokens: add tests
36733         * modules/readtokens-tests: New file.
36734         * tests/test-readtokens.c: New file.
36736 2012-03-07  Jim Meyering  <meyering@redhat.com>
36738         quotearg: the module must now include quote.h
36739         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
36740         So must the module.
36741         * modules/quotearg (Files): Add quote.h.
36743 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
36745         readtokens: avoid core dumps with unusual calling patterns
36746         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
36747         * lib/readtokens.c: Include limits.h.
36748         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
36749         (readtoken): Don't cache the delimiters; the cache code was buggy
36750         if !delim && saved_delim, or if the new n_delim differs from the old.
36751         Also, it wasn't thread-safe.
36753 2012-03-07  Bruno Haible  <bruno@clisp.org>
36755         quote: Adhere to common module description layout.
36756         * modules/quote (Makefile.am): Add back empty section.
36758 2012-03-06  Akim Demaille  <demaille@gostai.com>
36760         quote: fuse into quotearg
36761         This patch is made for the benefit of Bison.
36762         quote does not leave the choice of the quoting style to the user.
36763         quoting_style provides poor customizability, yet quoting_options,
36764         which is very rich, is hidden inside quotearg.c.  So in order to
36765         allow quote customization, move its implementation to quotearg.c.
36766         * lib/quote.c: Remove.
36767         * modules/quote: Adjust.
36768         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
36769         warning: provide all the members of literal structs.
36770         (quote_quoting_options): New.
36771         (quote, quote_n): Import implementation from quote.c.
36772         * lib/quote.h: Import the comments from quote.c.
36773         (quote_quoting_options): New.
36775 2012-03-06  Bruno Haible  <bruno@clisp.org>
36777         Tests for module 'expm1l-ieee'.
36778         * modules/expm1l-ieee-tests: New file.
36779         * tests/test-expm1l-ieee.c: New file.
36781         New module 'expm1l-ieee'.
36782         * modules/expm1l-ieee: New file.
36784         Tests for module 'expm1f-ieee'.
36785         * modules/expm1f-ieee-tests: New file.
36786         * tests/test-expm1f-ieee.c: New file.
36788         New module 'expm1f-ieee'.
36789         * modules/expm1f-ieee: New file.
36791         Tests for module 'expm1-ieee'.
36792         * modules/expm1-ieee-tests: New file.
36793         * tests/test-expm1-ieee.c: New file.
36794         * tests/test-expm1-ieee.h: New file.
36796         New module 'expm1-ieee'.
36797         * modules/expm1-ieee: New file.
36798         * m4/expm1-ieee.m4: New file.
36799         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
36800         whether expm1 works with a minus zero argument. Replace it if not.
36801         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
36802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
36803         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
36804         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
36805         (Depends-on): Update conditions.
36806         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
36807         AIX problem.
36809 2012-03-06  Bruno Haible  <bruno@clisp.org>
36811         Work around expm1f bug on IRIX 6.5.
36812         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
36813         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
36814         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
36815         not work.
36816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
36817         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
36818         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
36819         (Depends-on): Update conditions.
36820         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
36822 2012-03-06  Bruno Haible  <bruno@clisp.org>
36824         Tests for module 'expm1l'.
36825         * modules/expm1l-tests: New file.
36826         * tests/test-expm1l.c: New file.
36828         New module 'expm1l'.
36829         * lib/math.in.h (expm1l): New declaration.
36830         * lib/expm1l.c: New file.
36831         * m4/expm1l.m4: New file.
36832         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
36833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
36834         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
36835         * modules/expm1l: New file.
36836         * tests/test-math-c++.cc: Check the declaration of expm1l.
36837         * doc/posix-functions/expm1l.texi: Mention the new module.
36839 2012-03-06  Bruno Haible  <bruno@clisp.org>
36841         Tests for module 'expm1f'.
36842         * modules/expm1f-tests: New file.
36843         * tests/test-expm1f.c: New file.
36845         New module 'expm1f'.
36846         * lib/math.in.h (expm1f): New declaration.
36847         * lib/expm1f.c: New file.
36848         * m4/expm1f.m4: New file.
36849         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
36850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
36851         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
36852         * modules/expm1f: New file.
36853         * tests/test-math-c++.cc: Check the declaration of expm1f.
36854         * doc/posix-functions/expm1f.texi: Mention the new module.
36856 2012-03-06  Bruno Haible  <bruno@clisp.org>
36858         Tests for module 'expm1'.
36859         * modules/expm1-tests: New file.
36860         * tests/test-expm1.c: New file.
36861         * tests/test-expm1.h: New file.
36863         New module 'expm1'.
36864         * lib/math.in.h (expm1): New declaration.
36865         * lib/expm1.c: New file.
36866         * m4/expm1.m4: New file.
36867         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
36868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
36869         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
36870         * modules/expm1: New file.
36871         * tests/test-math-c++.cc: Check the declaration of expm1.
36872         * doc/posix-functions/expm1.texi: Mention the new module.
36874 2012-03-06  Bruno Haible  <bruno@clisp.org>
36876         math: Ensure declarations of math functions.
36877         * modules/acosf (Depends-on): Add 'extensions'.
36878         * modules/asinf (Depends-on): Likewise.
36879         * modules/atan2f (Depends-on): Likewise.
36880         * modules/atanf (Depends-on): Likewise.
36881         * modules/cbrt (Depends-on): Likewise.
36882         * modules/cbrtf (Depends-on): Likewise.
36883         * modules/cbrtl (Depends-on): Likewise.
36884         * modules/copysignf (Depends-on): Likewise.
36885         * modules/copysignl (Depends-on): Likewise.
36886         * modules/cosf (Depends-on): Likewise.
36887         * modules/coshf (Depends-on): Likewise.
36888         * modules/expf (Depends-on): Likewise.
36889         * modules/fabsf (Depends-on): Likewise.
36890         * modules/fabsl (Depends-on): Likewise.
36891         * modules/fmaf (Depends-on): Likewise.
36892         * modules/fmal (Depends-on): Likewise.
36893         * modules/fmodf (Depends-on): Likewise.
36894         * modules/fmodl (Depends-on): Likewise.
36895         * modules/frexpf (Depends-on): Likewise.
36896         * modules/frexpl (Depends-on): Likewise.
36897         * modules/hypot (Depends-on): Likewise.
36898         * modules/hypotf (Depends-on): Likewise.
36899         * modules/hypotl (Depends-on): Likewise.
36900         * modules/ldexpf (Depends-on): Likewise.
36901         * modules/ldexpl (Depends-on): Likewise.
36902         * modules/log10f (Depends-on): Likewise.
36903         * modules/log10l (Depends-on): Likewise.
36904         * modules/log1p (Depends-on): Likewise.
36905         * modules/logb (Depends-on): Likewise.
36906         * modules/logf (Depends-on): Likewise.
36907         * modules/modff (Depends-on): Likewise.
36908         * modules/modfl (Depends-on): Likewise.
36909         * modules/powf (Depends-on): Likewise.
36910         * modules/remainderf (Depends-on): Likewise.
36911         * modules/remainderl (Depends-on): Likewise.
36912         * modules/rintf (Depends-on): Likewise.
36913         * modules/rintl (Depends-on): Likewise.
36914         * modules/sinf (Depends-on): Likewise.
36915         * modules/sinhf (Depends-on): Likewise.
36916         * modules/sqrtf (Depends-on): Likewise.
36917         * modules/tanf (Depends-on): Likewise.
36918         * modules/tanhf (Depends-on): Likewise.
36919         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
36920         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
36921         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
36922         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
36923         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
36924         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
36925         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
36926         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
36927         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
36928         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
36929         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
36930         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
36931         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
36932         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
36933         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
36934         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
36935         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
36936         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
36937         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
36938         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
36939         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
36940         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
36941         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
36942         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
36943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
36944         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
36945         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
36946         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
36947         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
36948         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
36949         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
36950         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
36951         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36952         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
36953         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
36954         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
36955         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
36956         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
36957         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
36958         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
36959         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
36961 2012-03-06  Bruno Haible  <bruno@clisp.org>
36963         math: Update module names in warnings.
36964         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36965         tanl): Use specific module name in warn-on-use warning.
36967 2012-03-06  Bruno Haible  <bruno@clisp.org>
36969         expl: Simplify computation.
36970         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
36972 2012-03-05  Bruno Haible  <bruno@clisp.org>
36974         exp* tests: More tests.
36975         * tests/test-exp.h: New file.
36976         * tests/test-exp.c: Include <float.h> and test-exp.h.
36977         (main): Invoke test_function.
36978         * tests/test-expf.c: Include <float.h> and test-exp.h.
36979         (main): Invoke test_function.
36980         * tests/test-expl.c: Include <float.h> and test-exp.h.
36981         (main): Invoke test_function.
36982         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
36983         (Makefile.am): Add randomd.c to test_exp_SOURCES.
36984         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
36985         (Makefile.am): Add randomf.c to test_expf_SOURCES.
36986         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
36987         (Depends-on): Add 'float'.
36988         (Makefile.am): Add randoml.c to test_expl_SOURCES.
36990         expl: Fix precision of computed result.
36991         * lib/expl.c: Completely rewritten.
36992         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
36993         (Maintainer): Add me.
36994         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
36996 2012-03-05  Bruno Haible  <bruno@clisp.org>
36998         cbrt* tests: More tests.
36999         * tests/test-cbrt.h: New file.
37000         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37001         (main): Invoke test_function.
37002         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37003         (main): Invoke test_function.
37004         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37005         (main): Invoke test_function.
37006         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37007         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37008         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37009         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37010         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37011         (Depends-on): Add 'float'.
37012         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37014 2012-03-05  Bruno Haible  <bruno@clisp.org>
37016         hypot* tests: More tests.
37017         * tests/test-hypot.h: New file, partially extracted from
37018         tests/test-hypotl.c.
37019         * tests/test-hypot.c: Include test-hypot.h.
37020         (main): Invoke test_function.
37021         * tests/test-hypotf.c: Include test-hypot.h.
37022         (main): Invoke test_function.
37023         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37024         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37025         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37026         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37027         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37028         tests/randomf.c.
37029         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37030         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37031         tests/randoml.c.
37032         (Depends-on): Add 'fpucw', 'float'.
37033         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37035 2012-03-05  Bruno Haible  <bruno@clisp.org>
37037         fpucw: Doc about FreeBSD.
37038         * lib/fpucw.h: Mention FreeBSD in comments.
37040 2012-03-04  Bruno Haible  <bruno@clisp.org>
37042         sqrt* tests: More tests.
37043         * tests/test-sqrt.h: New file.
37044         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37045         (main): Invoke test_function.
37046         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37047         (main): Invoke test_function.
37048         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37049         (main): Invoke test_function.
37050         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37051         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37052         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37053         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37054         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37055         (Depends-on): Add 'float'.
37056         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37058 2012-03-04  Bruno Haible  <bruno@clisp.org>
37060         remainder* tests: More tests.
37061         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37062         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37063         (main): Invoke test_function.
37064         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37065         (main): Invoke test_function.
37066         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37067         (main): Invoke test_function.
37068         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37069         tests/randomd.c.
37070         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37071         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37072         tests/randomf.c.
37073         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37074         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37075         tests/randoml.c.
37076         (Depends-on): Add 'float'.
37077         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37079 2012-03-04  Bruno Haible  <bruno@clisp.org>
37081         remainder, remainderf, remainderl: Fix computation for large quotients.
37082         * lib/remainder.c: Completely rewritten.
37083         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37084         USE_FLOAT.
37085         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37086         USE_LONG_DOUBLE.
37087         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37088         isnand, isinf. Remove round, fma.
37089         * modules/remainderf (Files): Add lib/remainder.c.
37090         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37091         Remove roundf, fmaf.
37092         * modules/remainderl (Files): Add lib/remainder.c.
37093         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37094         isinf. Remove roundl, fmal.
37095         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37096         REMAINDER_LIBM.
37097         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37098         REMAINDERF_LIBM.
37099         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37100         REMAINDERL_LIBM.
37102 2012-03-04  Bruno Haible  <bruno@clisp.org>
37104         fmod* tests: More tests.
37105         * tests/test-fmod.h (my_ldexp): New function.
37106         (test_function): Reduce amount of random numbers to test. Add tests
37107         of very large quotients x / y.
37108         * tests/test-fmod.c (MAX_EXP): New macro.
37109         * tests/test-fmodf.c (MAX_EXP): Likewise.
37110         * tests/test-fmodl.c (MAX_EXP): Likewise.
37112 2012-03-04  Bruno Haible  <bruno@clisp.org>
37114         fmod, fmodl: Fix computation for large quotients x / y.
37115         * lib/fmod.c: Completely rewritten.
37116         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37117         USE_LONG_DOUBLE.
37118         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37119         isnand. Remove fma.
37120         * modules/fmodl (Files): Add lib/fmod.c.
37121         (Depends-on): Add float, isfinite, signbit, fabsl,
37122         frexpl, ldexpl, isnanl. Remove fma.
37123         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37124         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37126 2012-03-03  Bruno Haible  <bruno@clisp.org>
37128         fmod* tests: More tests.
37129         * tests/test-fmod.h: New file.
37130         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37131         (main): Invoke test_function.
37132         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37133         (main): Invoke test_function.
37134         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37135         (main): Invoke test_function.
37136         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37137         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37138         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37139         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37140         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37141         (Depends-on): Add 'float'.
37142         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37144 2012-03-03  Bruno Haible  <bruno@clisp.org>
37146         rint* tests: More tests.
37147         * tests/test-rint.h: New file, partially extracted from
37148         tests/test-rintl.c.
37149         * tests/test-rint.c: Include test-rint.h.
37150         (main): Invoke test_function.
37151         * tests/test-rintf.c: Include test-rint.h.
37152         (main): Invoke test_function.
37153         * tests/test-rintl.c: Include test-rint.h.
37154         (main): Invoke test_function.
37155         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37156         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37157         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37158         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37159         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37160         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37162 2012-03-03  Bruno Haible  <bruno@clisp.org>
37164         modf* tests: More tests.
37165         * tests/test-modf.h: New file.
37166         * tests/test-modf.c: Include <float.h> and test-modf.h.
37167         (main): Invoke test_function.
37168         * tests/test-modff.c: Include <float.h> and test-modf.h.
37169         (main): Invoke test_function.
37170         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37171         (main): Invoke test_function.
37172         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37173         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37174         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37175         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37176         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37177         (Depends-on): Add 'float'.
37178         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37180 2012-03-03  Bruno Haible  <bruno@clisp.org>
37182         fabs* tests: More tests.
37183         * tests/test-fabs.h: New file, partially extracted from
37184         tests/test-fabsl.c.
37185         * tests/test-fabs.c (RANDOM): New macro.
37186         * tests/test-fabsf.c (RANDOM): New macro.
37187         * tests/test-fabsl.c (RANDOM): New macro.
37188         * modules/fabs-tests (Files): Add tests/randomd.c.
37189         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37190         * modules/fabsf-tests (Files): Add tests/randomf.c.
37191         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37192         * modules/fabsl-tests (Files): Add tests/randoml.c.
37193         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37195 2012-03-03  Bruno Haible  <bruno@clisp.org>
37197         ldexp* tests: More tests.
37198         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37199         * tests/test-ldexp.c (RANDOM): New macro.
37200         * tests/test-ldexpf.c (RANDOM): New macro.
37201         * tests/test-ldexpl.c (RANDOM): New macro.
37202         * modules/ldexp-tests (Files): Add tests/randomd.c.
37203         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37204         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37205         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37206         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37207         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37209 2012-03-03  Bruno Haible  <bruno@clisp.org>
37211         frexp* tests: More tests.
37212         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37213         * tests/test-frexp.c (RANDOM): New macro.
37214         * tests/test-frexpf.c (RANDOM): New macro.
37215         * tests/test-frexpl.c (RANDOM): New macro.
37216         * modules/frexp-tests (Files): Add tests/randomd.c.
37217         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37218         * modules/frexpf-tests (Files): Add tests/randomf.c.
37219         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37220         * modules/frexpl-tests (Files): Add tests/randoml.c.
37221         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37223 2012-03-03  Bruno Haible  <bruno@clisp.org>
37225         Support for pseudo-random numbers in tests.
37226         * tests/randomf.c: New file.
37227         * tests/randomd.c: New file.
37228         * tests/randoml.c: New file.
37229         * tests/macros.h (randomf, randomd, randoml): New declarations.
37231 2012-03-03  Bruno Haible  <bruno@clisp.org>
37233         frexp* tests: Refactor.
37234         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37235         * tests/test-frexp.c: Include and use it.
37236         * tests/test-frexpf.c: Likewise.
37237         * tests/test-frexpl.c: Likewise.
37238         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37239         * modules/frexpf-tests (Files): Likewise.
37240         * modules/frexpl-tests (Files): Likewise.
37242 2012-03-02  Jim Meyering  <meyering@redhat.com>
37244         maint: don't specify XZ_OPT=-9ev in dist-related rule
37245         Using xz's -9 option is warranted only if you have a very large
37246         tarball (see xz's documentation for the sizes vs. presets), and
37247         requires 64MiB of memory at decompression time.
37248         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37249         Automake's default of just "-e" is fine.  Override on a
37250         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37252 2012-03-01  Eric Blake  <eblake@redhat.com>
37254         maint.mk: allow announcement for non-gnulib project
37255         * maint.mk (announcement): Skip gnulib version if not used.
37257 2012-03-01  Jim Meyering  <meyering@redhat.com>
37259         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37260         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37261         envvar settings cannot interfere.  Otherwise, setting envvars like
37262         prohibit=foo require=bar, etc. would cause spurious test failures.
37264 2012-03-01  Eric Blake  <eblake@redhat.com>
37266         maint.mk: add per-line exclusions to prohibitions
37267         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37268         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37269         (sc_const_long_option): Use it.
37271 2012-03-01  Bruno Haible  <bruno@clisp.org>
37273         Tests for module 'expl-ieee'.
37274         * modules/expl-ieee-tests: New file.
37275         * tests/test-expl-ieee.c: New file.
37277         New module 'expl-ieee'.
37278         * modules/expl-ieee: New file.
37280         Tests for module 'exp-ieee'.
37281         * modules/exp-ieee-tests: New file.
37282         * tests/test-exp-ieee.c: New file.
37284         New module 'exp-ieee'.
37285         * modules/exp-ieee: New file.
37287         Tests for module 'expf-ieee'.
37288         * modules/expf-ieee-tests: New file.
37289         * tests/test-expf-ieee.c: New file.
37290         * tests/test-exp-ieee.h: New file.
37292         New module 'expf-ieee'.
37293         * modules/expf-ieee: New file.
37295 2012-02-29  Bruno Haible  <bruno@clisp.org>
37297         cbrtl-ieee: Work around test failure on IRIX 6.5.
37298         * m4/cbrtl-ieee.m4: New file.
37299         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37300         test whether cbrtl works with a minus zero argument. Replace it if not.
37301         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37303         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37304         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37305         (Depends-on): Update conditions.
37306         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37307         m4/signbit.m4.
37308         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37309         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37310         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37312         Tests for module 'cbrtl-ieee'.
37313         * modules/cbrtl-ieee-tests: New file.
37314         * tests/test-cbrtl-ieee.c: New file.
37316         New module 'cbrtl-ieee'.
37317         * modules/cbrtl-ieee: New file.
37319         Tests for module 'cbrt-ieee'.
37320         * modules/cbrt-ieee-tests: New file.
37321         * tests/test-cbrt-ieee.c: New file.
37323         New module 'cbrt-ieee'.
37324         * modules/cbrt-ieee: New file.
37326         Tests for module 'cbrtf-ieee'.
37327         * modules/cbrtf-ieee-tests: New file.
37328         * tests/test-cbrtf-ieee.c: New file.
37329         * tests/test-cbrt-ieee.h: New file.
37331         New module 'cbrtf-ieee'.
37332         * modules/cbrtf-ieee: New file.
37334 2012-02-29  Bruno Haible  <bruno@clisp.org>
37336         cbrtf: Work around bug in IRIX 6.5 system function.
37337         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37338         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37339         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37340         work.
37341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37342         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37343         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37344         (Depends-on): Update conditions.
37345         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37347 2012-02-29  Bruno Haible  <bruno@clisp.org>
37349         Tests for module 'cbrtl'.
37350         * modules/cbrtl-tests: New file.
37351         * tests/test-cbrtl.c: New file.
37353         New module 'cbrtl'.
37354         * lib/math.in.h (cbrtl): New declaration.
37355         * lib/cbrtl.c: New file.
37356         * m4/cbrtl.m4: New file.
37357         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37359         HAVE_DECL_CBRTL.
37360         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37361         HAVE_DECL_CBRTL.
37362         * modules/cbrtl: New file.
37363         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37364         * doc/posix-functions/cbrtl.texi: Mention the new module.
37366 2012-02-29  Bruno Haible  <bruno@clisp.org>
37368         Tests for module 'cbrtf'.
37369         * modules/cbrtf-tests: New file.
37370         * tests/test-cbrtf.c: New file.
37372         New module 'cbrtf'.
37373         * lib/math.in.h (cbrtf): New declaration.
37374         * lib/cbrtf.c: New file.
37375         * m4/cbrtf.m4: New file.
37376         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37378         HAVE_DECL_CBRTF.
37379         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37380         HAVE_DECL_CBRTF.
37381         * modules/cbrtf: New file.
37382         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37383         * doc/posix-functions/cbrtf.texi: Mention the new module.
37385 2012-02-29  Bruno Haible  <bruno@clisp.org>
37387         cbrt: Provide replacement on MSVC and Minix.
37388         * lib/math.in.h (cbrt): New declaration.
37389         * lib/cbrt.c: New file.
37390         * m4/cbrt.m4: New file.
37391         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37393         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37394         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37395         (Depends-on): Add dependencies.
37396         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37397         * tests/test-math-c++.cc: Check the declaration of cbrt.
37398         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37399         replacement.
37401 2012-02-29  Bruno Haible  <bruno@clisp.org>
37403         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37404         * m4/hypotl-ieee.m4: New file.
37405         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37406         test whether hypotl works with mixed NaN and Infinity arguments.
37407         Replace it if not.
37408         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37410         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37411         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37412         (Depends-on): Update conditions.
37413         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37414         (Depends-on): Add hypot-ieee.
37415         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37416         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37418         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37419         * m4/hypotf-ieee.m4: New file.
37420         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37421         test whether hypotf works with mixed NaN and Infinity arguments.
37422         Replace it if not.
37423         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37424         (Depends-on): Add hypot-ieee.
37425         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37426         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37428         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37429         * lib/math.in.h (hypot): New declaration.
37430         * lib/hypot.c: New file.
37431         * m4/hypot-ieee.m4: New file.
37432         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37433         whether hypot works with mixed NaN and Infinity arguments. Replace it
37434         if not.
37435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37436         REPLACE_HYPOT.
37437         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37438         * modules/hypot (Files): Add lib/hypot.c.
37439         (Depends-on): Add dependencies.
37440         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37441         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37442         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37443         * tests/test-math-c++.cc: Check the declaration of hypot.
37444         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37446         Tests for module 'hypotl-ieee'.
37447         * modules/hypotl-ieee-tests: New file.
37448         * tests/test-hypotl-ieee.c: New file.
37450         New module 'hypotl-ieee'.
37451         * modules/hypotl-ieee: New file.
37453         Tests for module 'hypot-ieee'.
37454         * modules/hypot-ieee-tests: New file.
37455         * tests/test-hypot-ieee.c: New file.
37457         New module 'hypot-ieee'.
37458         * modules/hypot-ieee: New file.
37460         Tests for module 'hypotf-ieee'.
37461         * modules/hypotf-ieee-tests: New file.
37462         * tests/test-hypotf-ieee.c: New file.
37463         * tests/test-hypot-ieee.h: New file.
37465         New module 'hypotf-ieee'.
37466         * modules/hypotf-ieee: New file.
37468 2012-02-29  Bruno Haible  <bruno@clisp.org>
37470         Remove unused variables.
37471         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37472         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37473         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37474         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37476 2012-02-29  Eric Blake  <eblake@redhat.com>
37478         termios: fix pid_t always, not just for tcgetsid
37479         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37480         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37481         just when building tcgetsid.
37483 2012-02-29  Bruno Haible  <bruno@clisp.org>
37485         Tests for module 'hypotl'.
37486         * modules/hypotl-tests: New file.
37487         * tests/test-hypotl.c: New file.
37489         New module 'hypotl'.
37490         * lib/math.in.h (hypotl): New declaration.
37491         * lib/hypotl.c: New file.
37492         * m4/hypotl.m4: New file.
37493         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37495         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37496         * modules/hypotl: New file.
37497         * tests/test-math-c++.cc: Check the hypotl declaration.
37498         * doc/posix-functions/hypotl.texi: Mention the new module.
37500 2012-02-29  Eric Blake  <eblake@redhat.com>
37502         tcgetsid: fix cygwin header bug
37503         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37505         docs: update cygwin progress
37506         * doc/posix-functions/llround.texi (llround): Added in cygwin
37507         1.7.8.
37508         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37509         * doc/glibc-functions/program_invocation_name.texi
37510         (program_invocation_name): Likewise.
37511         * doc/glibc-functions/program_invocation_short_name.texi
37512         (program_invocation_short_name): Likewise.
37513         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37514         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37515         Likewise.
37516         * doc/posix-functions/pthread_spin_destroy.texi
37517         (pthread_spin_destroy): Added in cygwin 1.7.10.
37518         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37519         Likewise.
37520         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37521         Likewise.
37522         * doc/posix-functions/pthread_spin_trylock.texi
37523         (pthread_spin_trylock): Likewise.
37524         * doc/posix-functions/pthread_spin_unlock.texi
37525         (pthread_spin_unlock): Likewise.
37526         * doc/posix-functions/pthread_setschedprio.texi
37527         (pthread_setschedprio): Likewise.
37528         * doc/posix-functions/pthread_attr_getstack.texi
37529         (pthread_attr_getstack): Likewise.
37530         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37531         (pthread_attr_getstackaddr): Likewise.
37532         * doc/glibc-functions/pthread_getattr_np.texi
37533         (pthread_getattr_np): Likewise.
37534         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37535         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37536         * doc/posix-functions/clock_settime.texi (clock_settime):
37537         Likewise.
37538         * doc/posix-functions/pthread_attr_getguardsize.texi
37539         (pthread_attr_getguardsize): Likewise.
37540         * doc/posix-functions/pthread_attr_setguardsize.texi
37541         (pthread_attr_setguardsize): Likewise.
37542         * doc/posix-functions/pthread_attr_setstack.texi
37543         (pthread_attr_setstack): Likewise.
37544         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37545         (pthread_attr_setstackaddr): Likewise.
37546         * doc/posix-functions/clock_getcpuclockid.texi
37547         (clock_getcpuclockid): Likewise.
37548         * doc/posix-functions/pthread_getcpuclockid.texi
37549         (pthread_getcpuclockid): Likewise.
37550         * doc/glibc-functions/error.texi (error): Likewise.
37551         * doc/glibc-functions/error_at_line.texi (error_at_line):
37552         Likewise.
37553         * doc/glibc-functions/error_message_count.texi
37554         (error_message_count): Likewise.
37555         * doc/glibc-functions/error_one_per_line.texi
37556         (error_one_per_line): Likewise.
37557         * doc/glibc-functions/error_print_progname.texi
37558         (error_print_progname): Likewise.
37559         * doc/posix-functions/pthread_condattr_getclock.texi
37560         (pthread_condattr_getclock): Likewise.
37561         * doc/posix-functions/pthread_condattr_setclock.texi
37562         (pthread_condattr_setclock): Likewise.
37563         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37564         Likewise.
37565         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37566         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37567         * doc/glibc-functions/get_current_dir_name.texi
37568         (get_current_dir_name): Likewise.
37569         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37570         Likewise.
37571         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37572         wrong return type.
37573         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37574         1.7.11.
37576 2012-02-29  Bruno Haible  <bruno@clisp.org>
37578         Tests for module 'hypotf'.
37579         * modules/hypotf-tests: New file.
37580         * tests/test-hypotf.c: New file.
37582         New module 'hypotf'.
37583         * lib/math.in.h (hypotf): New declaration.
37584         * lib/hypotf.c: New file.
37585         * m4/hypotf.m4: New file.
37586         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
37588         REPLACE_HYPOTF.
37589         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
37590         REPLACE_HYPOTF.
37591         * modules/hypotf: New file.
37592         * tests/test-math-c++.cc: Check the hypotf declaration.
37593         * doc/posix-functions/hypotf.texi: Mention the new module.
37595         hypot: Prepare for hypotf module.
37596         * m4/hypot.m4: New file.
37597         * modules/hypot (Files): Add m4/hypot.m4.
37598         (configure.ac): Invoke gl_FUNC_HYPOT.
37600 2012-02-29  Bruno Haible  <bruno@clisp.org>
37602         hypot tests: More tests.
37603         * tests/test-hypot.c: Include <float.h>.
37604         (main): Add tests about overflow and underflow.
37606 2012-02-29  Bruno Haible  <bruno@clisp.org>
37608         math code: Add comments.
37609         * lib/acosl.c: Add comment about related glibc source files.
37610         * lib/asinl.c: Likewise.
37611         * lib/atanl.c: Likewise.
37612         * lib/expl.c: Likewise.
37613         * lib/logl.c: Likewise.
37614         * lib/sincosl.c: Likewise.
37615         * lib/sinl.c: Likewise.
37616         * lib/tanl.c: Likewise.
37617         * lib/trigl.c: Likewise.
37618         * lib/cosl.c: Likewise. Fix comments.
37620 2012-02-28  Bruno Haible  <bruno@clisp.org>
37622         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
37623         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
37624         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
37625         HUGE_VALL are defined.
37626         (numeric_equald): Renamed from numeric_equal.
37627         (numeric_equalf, numeric_equall): New functions.
37628         (main): Check also HUGE_VALF, HUGE_VALL.
37629         * modules/math-tests (Files): Add tests/macros.h.
37630         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
37631         HUGE_VALL.
37633 2012-02-28  Bruno Haible  <bruno@clisp.org>
37635         doc: Move ISO C11 feature notes into POSIX chapters.
37636         * doc/posix-functions/aligned_alloc.texi: Renamed from
37637         doc/glibc-functions/aligned_alloc.texi.
37638         * doc/posix-functions/quick_exit.texi: Renamed from
37639         doc/glibc-functions/quick_exit.texi.
37640         * doc/posix-headers/uchar.texi: Renamed from
37641         doc/glibc-headers/uchar.texi.
37642         * doc/posix-functions/c16rtomb.texi: Renamed from
37643         doc/glibc-functions/c16rtomb.texi.
37644         * doc/posix-functions/c32rtomb.texi: Renamed from
37645         doc/glibc-functions/c32rtomb.texi.
37646         * doc/posix-functions/mbrtoc16.texi: Renamed from
37647         doc/glibc-functions/mbrtoc16.texi.
37648         * doc/posix-functions/mbrtoc32.texi: Renamed from
37649         doc/glibc-functions/mbrtoc32.texi.
37650         * doc/gnulib.texi: Update.
37651         (Glibc uchar.h): Remove section.
37652         Suggested by Eric Blake.
37654 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
37656         stdnoreturn: port to MSVC better
37657         MSVC standard headers use __declspec(noreturn), so #define noreturn
37658         to empty on that platform.  Reported by Bruno Haible in
37659         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
37660         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
37661         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
37663 2012-02-28  Bruno Haible  <bruno@clisp.org>
37665         doc: Mention new glibc headers and functions.
37666         * doc/glibc-headers/uchar.texi: New file.
37667         * doc/glibc-functions/aligned_alloc.texi: New file.
37668         * doc/glibc-functions/c16rtomb.texi: New file.
37669         * doc/glibc-functions/c32rtomb.texi: New file.
37670         * doc/glibc-functions/clock_adjtime.texi: New file.
37671         * doc/glibc-functions/fanotify_init.texi: New file.
37672         * doc/glibc-functions/fanotify_mark.texi: New file.
37673         * doc/glibc-functions/inet6_opt_append.texi: New file.
37674         * doc/glibc-functions/inet6_opt_find.texi: New file.
37675         * doc/glibc-functions/inet6_opt_finish.texi: New file.
37676         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
37677         * doc/glibc-functions/inet6_opt_init.texi: New file.
37678         * doc/glibc-functions/inet6_opt_next.texi: New file.
37679         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
37680         * doc/glibc-functions/inet6_rth_add.texi: New file.
37681         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
37682         * doc/glibc-functions/inet6_rth_init.texi: New file.
37683         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
37684         * doc/glibc-functions/inet6_rth_segments.texi: New file.
37685         * doc/glibc-functions/inet6_rth_space.texi: New file.
37686         * doc/glibc-functions/login.texi: New file.
37687         * doc/glibc-functions/mbrtoc16.texi: New file.
37688         * doc/glibc-functions/mbrtoc32.texi: New file.
37689         * doc/glibc-functions/name_to_handle_at.texi: New file.
37690         * doc/glibc-functions/ntp_gettimex.texi: New file.
37691         * doc/glibc-functions/open_by_handle_at.texi: New file.
37692         * doc/glibc-functions/prlimit.texi: New file.
37693         * doc/glibc-functions/process_vm_readv.texi: New file.
37694         * doc/glibc-functions/process_vm_writev.texi: New file.
37695         * doc/glibc-functions/recvmmsg.texi: New file.
37696         * doc/glibc-functions/scandirat.texi: New file.
37697         * doc/glibc-functions/sendmmsg.texi: New file.
37698         * doc/glibc-functions/setns.texi: New file.
37699         * doc/glibc-functions/timespec_get.texi: New file.
37700         * doc/gnulib.texi: Include them.
37701         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
37702         sections.
37703         Reported by Eric Blake.
37705 2012-02-28  Bruno Haible  <bruno@clisp.org>
37707         Avoid compilation errors with MSVC option -fp:strict.
37708         * lib/floor.c: Use MSVC specific pragma fenv_access.
37709         * lib/ceil.c: Likewise.
37710         * lib/trunc.c: Likewise.
37711         * lib/round.c: Likewise.
37712         * lib/rint.c: Likewise.
37713         * lib/fma.c: Likewise.
37714         * lib/integer_length.c: Likewise.
37715         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37716         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37717         * tests/test-floor2.c: Likewise.
37718         * tests/test-floorf2.c: Likewise.
37719         * tests/test-ceil2.c: Likewise.
37720         * tests/test-ceilf2.c: Likewise.
37721         * tests/test-trunc2.c: Likewise.
37722         * tests/test-truncf2.c: Likewise.
37723         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37725 2012-02-27  Bruno Haible  <bruno@clisp.org>
37727         Tests for module 'sqrtl-ieee'.
37728         * modules/sqrtl-ieee-tests: New file.
37729         * tests/test-sqrtl-ieee.c: New file.
37731         New module 'sqrtl-ieee'.
37732         * modules/sqrtl-ieee: New file.
37734         Tests for module 'sqrt-ieee'.
37735         * modules/sqrt-ieee-tests: New file.
37736         * tests/test-sqrt-ieee.c: New file.
37738         New module 'sqrt-ieee'.
37739         * modules/sqrt-ieee: New file.
37741         Tests for module 'sqrtf-ieee'.
37742         * modules/sqrtf-ieee-tests: New file.
37743         * tests/test-sqrtf-ieee.c: New file.
37744         * tests/test-sqrt-ieee.h: New file.
37746         New module 'sqrtf-ieee'.
37747         * modules/sqrtf-ieee: New file.
37749 2012-02-27  Bruno Haible  <bruno@clisp.org>
37751         remainderl-ieee: Work around test failure on OSF/1.
37752         * m4/remainderl-ieee.m4: New file.
37753         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
37754         present, test whether remainderl works with a zero second argument.
37755         Replace it if not.
37756         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
37757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
37758         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
37759         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
37760         (Depends-on): Update conditions.
37761         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
37762         (Depends-on): Add remainder-ieee.
37763         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
37764         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
37765         module.
37767         remainderf-ieee: Work around test failure on OSF/1.
37768         * m4/remainderf-ieee.m4: New file.
37769         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
37770         present, test whether remainderf works with a zero second argument.
37771         Replace it if not.
37772         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
37773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
37774         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
37775         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
37776         (Depends-on): Update conditions.
37777         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
37778         (Depends-on): Add remainder-ieee.
37779         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
37780         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
37781         module.
37783         remainder-ieee: Work around test failure on OSF/1.
37784         * m4/remainder-ieee.m4: New file.
37785         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
37786         present, test whether remainder works with a zero second argument.
37787         Replace it if not.
37788         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
37789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
37790         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
37791         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
37792         (Depends-on): Update dependencies.
37793         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
37794         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
37795         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
37797         Tests for module 'remainderl-ieee'.
37798         * modules/remainderl-ieee-tests: New file.
37799         * tests/test-remainderl-ieee.c: New file.
37801         New module 'remainderl-ieee'.
37802         * modules/remainderl-ieee: New file.
37804         Tests for module 'remainder-ieee'.
37805         * modules/remainder-ieee-tests: New file.
37806         * tests/test-remainder-ieee.c: New file.
37808         New module 'remainder-ieee'.
37809         * modules/remainder-ieee: New file.
37811         Tests for module 'remainderf-ieee'.
37812         * modules/remainderf-ieee-tests: New file.
37813         * tests/test-remainderf-ieee.c: New file.
37814         * tests/test-remainder-ieee.h: New file.
37816         New module 'remainderf-ieee'.
37817         * modules/remainderf-ieee: New file.
37819 2012-02-27  Bruno Haible  <bruno@clisp.org>
37821         modff, modfl: Fix configure syntax error.
37822         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
37823         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37825 2012-02-27  Bruno Haible  <bruno@clisp.org>
37827         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
37828         * m4/fmodl-ieee.m4: New file.
37829         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
37830         whether fmodl works with zero arguments. Replace it if not.
37831         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
37832         (Depends-on): Add fmod-ieee.
37833         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
37834         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
37836         fmodf-ieee: Work around test failure on OSF/1.
37837         * m4/fmodf-ieee.m4: New file.
37838         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
37839         whether fmodf works with zero arguments. Replace it if not.
37840         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
37841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
37842         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
37843         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
37844         (Depends-on): Update dependencies.
37845         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
37846         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
37847         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
37849         fmodf-ieee: Work around test failure on MSVC 9.
37850         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
37851         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
37853         fmod-ieee: Work around test failures on OSF/1, mingw.
37854         * m4/fmod-ieee.m4: New file.
37855         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
37856         whether fmod works with zero arguments. Replace it if not.
37857         * lib/math.in.h (fmod): New declaration.
37858         * lib/fmod.c: New file.
37859         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
37860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
37861         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
37862         * modules/fmod (Files): Add lib/fmod.c.
37863         (Depends-on): Add math, isinf, trunc, fma.
37864         (configure.ac): Arrange to compile lib/fmod.c if needed.
37865         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
37866         m4/signbit.m4.
37867         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
37868         * tests/test-math-c++.cc: Check the declaration of fmod.
37869         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
37871         fmodl-ieee: Fix test failures.
37872         * lib/fmodl.c (fmodl): Treat Inf specially.
37873         * modules/fmodl (Depends-on): Add isinf.
37875         Tests for module 'fmodl-ieee'.
37876         * modules/fmodl-ieee-tests: New file.
37877         * tests/test-fmodl-ieee.c: New file.
37879         New module 'fmodl-ieee'.
37880         * modules/fmodl-ieee: New file.
37882         Tests for module 'fmod-ieee'.
37883         * modules/fmod-ieee-tests: New file.
37884         * tests/test-fmod-ieee.c: New file.
37886         New module 'fmod-ieee'.
37887         * modules/fmod-ieee: New file.
37889         Tests for module 'fmodf-ieee'.
37890         * modules/fmodf-ieee-tests: New file.
37891         * tests/test-fmodf-ieee.c: New file.
37892         * tests/test-fmod-ieee.h: New file.
37894         New module 'fmodf-ieee'.
37895         * modules/fmodf-ieee: New file.
37897 2012-02-27  Bruno Haible  <bruno@clisp.org>
37899         Tests for module 'rintl-ieee'.
37900         * modules/rintl-ieee-tests: New file.
37901         * tests/test-rintl-ieee.c: New file.
37903         New module 'rintl-ieee'.
37904         * modules/rintl-ieee: New file.
37906         Tests for module 'rint-ieee'.
37907         * modules/rint-ieee-tests: New file.
37908         * tests/test-rint-ieee.c: New file.
37910         New module 'rint-ieee'.
37911         * modules/rint-ieee: New file.
37913         Tests for module 'rintf-ieee'.
37914         * modules/rintf-ieee-tests: New file.
37915         * tests/test-rintf-ieee.c: New file.
37916         * tests/test-rint-ieee.h: New file.
37918         New module 'rintf-ieee'.
37919         * modules/rintf-ieee: New file.
37921 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
37923         regex: re_search etc. should return -2 when memory exhausted
37924         This bug was uncovered when testing 'grep'.  Without the fix,
37925         re_search and friends return -1 when memory is exhausted, but -1
37926         means no match, and this causes grep to falsely report no-match
37927         instead of memory-exhaustion.  See
37928         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
37929         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
37930         trouble; this can occur if re_search_internal ran out of memory.
37932 2012-02-26  Bruno Haible  <bruno@clisp.org>
37934         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
37935         * m4/modfl-ieee.m4: New file.
37936         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
37937         whether modfl works with Inf. Replace it if not.
37938         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
37939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
37940         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
37941         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
37942         (Depends-on): Update dependencies.
37943         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
37944         m4/signbit.m4.
37945         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
37946         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
37948         modfl-ieee: Fix dependencies.
37949         * modules/modfl-ieee (Depends-on): Add modf-ieee.
37951         modfl-ieee: Fix test failures.
37952         * lib/modfl.c (modfl): Treat NaN and Inf specially.
37953         * modules/modfl (Depends-on): Add isfinite, isinf.
37955         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
37956         * m4/modff-ieee.m4: New file.
37957         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
37958         whether modff works with NaN and Inf. Replace it if not.
37959         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
37960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
37961         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
37962         * modules/modff (configure.ac): Consider REPLACE_MODFF.
37963         (Depends-on): Update dependencies.
37964         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
37965         m4/signbit.m4.
37966         (Depends-on): Add modf-ieee.
37967         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
37968         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
37970         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
37971         * m4/modf-ieee.m4: New file.
37972         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
37973         whether modf works with NaN and Inf. Replace it if not.
37974         * lib/math.in.h (modf): New declaration.
37975         * lib/modf.c: New file.
37976         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
37977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
37978         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
37979         * modules/modf (Files): Add lib/modf.c.
37980         (Depends-on): Add math, isfinite, trunc, isinf.
37981         (configure.ac): Addrange to compile lib/modf.c if needed.
37982         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
37983         m4/signbit.m4.
37984         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
37985         * tests/test-math-c++.cc: Check the declaration of modf.
37986         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
37988         Tests for module 'modfl-ieee'.
37989         * modules/modfl-ieee-tests: New file.
37990         * tests/test-modfl-ieee.c: New file.
37992         New module 'modfl-ieee'.
37993         * modules/modfl-ieee: New file.
37995         Tests for module 'modf-ieee'.
37996         * modules/modf-ieee-tests: New file.
37997         * tests/test-modf-ieee.c: New file.
37999         New module 'modf-ieee'.
38000         * modules/modf-ieee: New file.
38002         Tests for module 'modff-ieee'.
38003         * modules/modff-ieee-tests: New file.
38004         * tests/test-modff-ieee.c: New file.
38005         * tests/test-modf-ieee.h: New file.
38007         New module 'modff-ieee'.
38008         * modules/modff-ieee: New file.
38010 2012-02-26  Bruno Haible  <bruno@clisp.org>
38012         Tests for module 'fabsl-ieee'.
38013         * modules/fabsl-ieee-tests: New file.
38014         * tests/test-fabsl-ieee.c: New file.
38016         New module 'fabsl-ieee'.
38017         * modules/fabsl-ieee: New file.
38019         Tests for module 'fabs-ieee'.
38020         * modules/fabs-ieee-tests: New file.
38021         * tests/test-fabs-ieee.c: New file.
38023         New module 'fabs-ieee'.
38024         * modules/fabs-ieee: New file.
38026         Tests for module 'fabsf-ieee'.
38027         * modules/fabsf-ieee-tests: New file.
38028         * tests/test-fabsf-ieee.c: New file.
38029         * tests/test-fabs-ieee.h: New file.
38031         New module 'fabsf-ieee'.
38032         * modules/fabsf-ieee: New file.
38034 2012-02-26  Bruno Haible  <bruno@clisp.org>
38036         Tests for module 'fmal-ieee'.
38037         * modules/fmal-ieee-tests: New file.
38038         * tests/test-fmal-ieee.c: New file.
38040         New module 'fmal-ieee'.
38041         * modules/fmal-ieee: New file.
38043         Tests for module 'fma-ieee'.
38044         * modules/fma-ieee-tests: New file.
38045         * tests/test-fma-ieee.c: New file.
38047         New module 'fma-ieee'.
38048         * modules/fma-ieee: New file.
38050         Tests for module 'fmaf-ieee'.
38051         * modules/fmaf-ieee-tests: New file.
38052         * tests/test-fmaf-ieee.c: New file.
38053         * tests/test-fma-ieee.h: New file.
38055         New module 'fmaf-ieee'.
38056         * modules/fmaf-ieee: New file.
38058 2012-02-26  Bruno Haible  <bruno@clisp.org>
38060         Tests for module 'ldexpl-ieee'.
38061         * modules/ldexpl-ieee-tests: New file.
38062         * tests/test-ldexpl-ieee.c: New file.
38064         New module 'ldexpl-ieee'.
38065         * modules/ldexpl-ieee: New file.
38067         Tests for module 'ldexp-ieee'.
38068         * modules/ldexp-ieee-tests: New file.
38069         * tests/test-ldexp-ieee.c: New file.
38071         New module 'ldexp-ieee'.
38072         * modules/ldexp-ieee: New file.
38074         Tests for module 'ldexpf-ieee'.
38075         * modules/ldexpf-ieee-tests: New file.
38076         * tests/test-ldexpf-ieee.c: New file.
38077         * tests/test-ldexp-ieee.h: New file.
38079         New module 'ldexpf-ieee'.
38080         * modules/ldexpf-ieee: New file.
38082 2012-02-26  Bruno Haible  <bruno@clisp.org>
38084         Refactor frexp*-ieee tests.
38085         * tests/test-frexp-ieee.h: New file.
38086         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38087         (main): Just call test_function.
38088         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38089         (main): Just call test_function.
38090         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38091         (main): Just call test_function.
38092         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38093         * modules/frexp-ieee-tests (Files): Likewise.
38094         * modules/frexpl-ieee-tests (Files): Likewise.
38096         Tests for module 'frexpl-ieee'.
38097         * modules/frexpl-ieee-tests: New file.
38098         * tests/test-frexpl-ieee.c: New file.
38100         New module 'frexpl-ieee'.
38101         * modules/frexpl-ieee: New file.
38103         Tests for module 'frexp-ieee'.
38104         * modules/frexp-ieee-tests: New file.
38105         * tests/test-frexp-ieee.c: New file.
38107         New module 'frexp-ieee'.
38108         * modules/frexp-ieee: New file.
38110         Tests for module 'frexpf-ieee'.
38111         * modules/frexpf-ieee-tests: New file.
38112         * tests/test-frexpf-ieee.c: New file.
38114         New module 'frexpf-ieee'.
38115         * modules/frexpf-ieee: New file.
38117 2012-02-26  Bruno Haible  <bruno@clisp.org>
38119         roundl-ieee tests: More tests.
38120         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38121         (main): Add tests for [MX] shaded specification in POSIX.
38122         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38123         (Depends-on): Add isnanl-nolibm.
38125         round-ieee tests: More tests.
38126         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38127         (main): Add tests for [MX] shaded specification in POSIX.
38128         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38129         (Depends-on): Add isnand-nolibm.
38131         roundf-ieee tests: More tests.
38132         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38133         (main): Add tests for [MX] shaded specification in POSIX.
38134         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38135         (Depends-on): Add isnanf-nolibm.
38137         truncl-ieee tests: More tests.
38138         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38139         (main): Add tests for [MX] shaded specification in POSIX.
38140         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38141         (Depends-on): Add isnanl-nolibm.
38143         trunc-ieee tests: More tests.
38144         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38145         (main): Add tests for [MX] shaded specification in POSIX.
38146         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38147         (Depends-on): Add isnand-nolibm.
38149         truncf-ieee tests: More tests.
38150         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38151         (main): Add tests for [MX] shaded specification in POSIX.
38152         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38153         (Depends-on): Add isnanf-nolibm.
38155         ceill-ieee tests: More tests.
38156         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38157         (main): Add tests for [MX] shaded specification in POSIX.
38158         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38159         (Depends-on): Add isnanl-nolibm.
38161         ceil-ieee tests: More tests.
38162         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38163         (main): Add tests for [MX] shaded specification in POSIX.
38164         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38165         (Depends-on): Add isnand-nolibm.
38167         ceilf-ieee tests: More tests.
38168         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38169         (main): Add tests for [MX] shaded specification in POSIX.
38170         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38171         (Depends-on): Add isnanf-nolibm.
38173         floorl-ieee tests: More tests.
38174         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38175         (main): Add tests for [MX] shaded specification in POSIX.
38176         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38177         (Depends-on): Add isnanl-nolibm.
38179         floor-ieee tests: More tests.
38180         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38181         (main): Add tests for [MX] shaded specification in POSIX.
38182         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38183         (Depends-on): Add isnand-nolibm.
38185         floorf-ieee tests: More tests.
38186         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38187         (main): Add tests for [MX] shaded specification in POSIX.
38188         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38189         (Depends-on): Add isnanf-nolibm.
38191 2012-02-26  Bruno Haible  <bruno@clisp.org>
38193         fpieee: More comments.
38194         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38196 2012-02-25  Bruno Haible  <bruno@clisp.org>
38198         Tests for module 'log10l'.
38199         * modules/log10l-tests: New file.
38200         * tests/test-log10l.c: New file.
38201         * tests/test-math-c++.cc: Check the declaration of log10l.
38203         New module 'log10l'.
38204         * lib/math.in.h (log10l): New declaration.
38205         * lib/log10l.c: New file.
38206         * m4/log10l.m4: New file.
38207         * modules/log10l: New file.
38208         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38210         HAVE_DECL_LOG10L.
38211         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38212         HAVE_DECL_LOG10L.
38213         * doc/posix-functions/log10l.texi: Mention the new module.
38215 2012-02-25  Bruno Haible  <bruno@clisp.org>
38217         fmodl, remainder*: Avoid wrong results due to rounding errors.
38218         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38219         expected bounds.
38220         * lib/remainderf.c (remainderf): Likewise.
38221         * lib/remainder.c (remainder): Likewise.
38222         * lib/remainderl.c (remainderl): Likewise.
38224 2012-02-25  Bruno Haible  <bruno@clisp.org>
38226         Tests for module 'remainderl'.
38227         * modules/remainderl-tests: New file.
38228         * tests/test-remainderl.c: New file.
38229         * tests/test-math-c++.cc: Check the declaration of remainderl.
38231         New module 'remainderl'.
38232         * lib/math.in.h (remainderl): New declaration.
38233         * lib/remainderl.c: New file.
38234         * m4/remainderl.m4: New file.
38235         * modules/remainderl: New file.
38236         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38238         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38239         HAVE_REMAINDERL.
38240         * doc/posix-functions/remainderl.texi: Mention the new module.
38242 2012-02-25  Bruno Haible  <bruno@clisp.org>
38244         Tests for module 'remainderf'.
38245         * modules/remainderf-tests: New file.
38246         * tests/test-remainderf.c: New file.
38247         * tests/test-math-c++.cc: Check the declaration of remainderf.
38249         New module 'remainderf'.
38250         * lib/math.in.h (remainderf): New declaration.
38251         * lib/remainderf.c: New file.
38252         * m4/remainderf.m4: New file.
38253         * modules/remainderf: New file.
38254         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38256         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38257         HAVE_REMAINDERF.
38258         * doc/posix-functions/remainderf.texi: Mention the new module.
38260 2012-02-25  Bruno Haible  <bruno@clisp.org>
38262         remainder: Support for MSVC.
38263         * lib/math.in.h (remainder): New declaration.
38264         * lib/remainder.c: New file.
38265         * m4/remainder.m4: New file.
38266         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38267         (Depends-on): Add math, round, fma.
38268         (configure.ac): Use results of gl_FUNC_REMAINDER.
38269         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38271         HAVE_DECL_REMAINDER.
38272         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38273         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38274         * tests/test-math-c++.cc: Check the declaration of remainder.
38275         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38276         problems are fixed.
38278 2012-02-25  Bruno Haible  <bruno@clisp.org>
38280         Tests for module 'fmodl'.
38281         * modules/fmodl-tests: New file.
38282         * tests/test-fmodl.c: New file.
38283         * tests/test-math-c++.cc: Check the declaration of fmodl.
38285         New module 'fmodl'.
38286         * lib/math.in.h (fmodl): New declaration.
38287         * lib/fmodl.c: New file.
38288         * m4/fmodl.m4: New file.
38289         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38291         REPLACE_FMODL.
38292         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38293         REPLACE_FMODL.
38294         * modules/fmodl: New file.
38295         * doc/posix-functions/fmodl.texi: Mention the new module.
38297 2012-02-25  Bruno Haible  <bruno@clisp.org>
38299         Tests for module 'modfl'.
38300         * modules/modfl-tests: New file.
38301         * tests/test-modfl.c: New file.
38302         * tests/test-math-c++.cc: Check the declaration of modfl.
38304         New module 'modfl'.
38305         * lib/math.in.h (modfl): New declaration.
38306         * lib/modfl.c: New file.
38307         * m4/modfl.m4: New file.
38308         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38310         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38311         * modules/modfl: New file.
38312         * doc/posix-functions/modfl.texi: Mention the new module.
38314 2012-02-25  Bruno Haible  <bruno@clisp.org>
38316         Tests for module 'fabsl'.
38317         * modules/fabsl-tests: New file.
38318         * tests/test-fabsl.c: New file.
38319         * tests/test-math-c++.cc: Check the declaration of fabsl.
38321         New module 'fabsl'.
38322         * lib/math.in.h (fabsl): New declaration.
38323         * lib/fabsl.c: New file.
38324         * m4/fabsl.m4: New file.
38325         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38327         REPLACE_FABSL.
38328         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38329         REPLACE_FABSL.
38330         * modules/fabsl: New file.
38331         * doc/posix-functions/fabsl.texi: Mention the new module.
38333 2012-02-25  Bruno Haible  <bruno@clisp.org>
38335         fabs tests: More tests.
38336         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38337         (zero): New variable.
38338         (main): Add tests for signed zero.
38339         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38341         fabsf tests: More tests.
38342         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38343         (zero): New variable.
38344         (main): Add tests for signed zero.
38345         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38347 2012-02-24  Bruno Haible  <bruno@clisp.org>
38349         atanl: Provide function definition on MSVC.
38350         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38351         function pointer.
38352         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38354 2012-02-24  Bruno Haible  <bruno@clisp.org>
38356         acosl: Provide function definition on MSVC.
38357         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38358         function pointer.
38359         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38361 2012-02-24  Bruno Haible  <bruno@clisp.org>
38363         asinl: Provide function definition on MSVC.
38364         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38365         function pointer.
38366         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38368 2012-02-24  Bruno Haible  <bruno@clisp.org>
38370         tanl: Provide function definition on MSVC.
38371         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38372         function pointer.
38373         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38375 2012-02-24  Bruno Haible  <bruno@clisp.org>
38377         cosl: Provide function definition on MSVC.
38378         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38379         function pointer.
38380         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38382 2012-02-24  Bruno Haible  <bruno@clisp.org>
38384         sinl: Provide function definition on MSVC.
38385         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38386         function pointer.
38387         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38389 2012-02-24  Bruno Haible  <bruno@clisp.org>
38391         logl: Provide function definition on MSVC.
38392         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38393         function pointer.
38394         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38396 2012-02-24  Bruno Haible  <bruno@clisp.org>
38398         expl: Provide function definition on MSVC.
38399         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38400         function pointer.
38401         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38403 2012-02-24  Bruno Haible  <bruno@clisp.org>
38405         sqrtl: Provide function definition on MSVC.
38406         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38407         a function pointer.
38408         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38410 2012-02-24  Bruno Haible  <bruno@clisp.org>
38412         ceill: Provide function definition on MSVC.
38413         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38414         used as a function pointer.
38415         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38417 2012-02-24  Bruno Haible  <bruno@clisp.org>
38419         floorl: Provide function definition on MSVC.
38420         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38421         used as a function pointer.
38422         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38424 2012-02-24  Bruno Haible  <bruno@clisp.org>
38426         ceilf: Provide function definition on MSVC.
38427         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38428         used as a function pointer.
38429         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38431 2012-02-24  Bruno Haible  <bruno@clisp.org>
38433         floorf: Provide function definition on MSVC.
38434         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38435         used as a function pointer.
38436         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38438 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38440         stdnoreturn: new module
38441         This implements a replacement for C11's <stdnoreturn.h>.
38442         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38443         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38444         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38445         * tests/test-stdnoreturn.c: New files.
38447 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38449         regex: fix false multibyte matches in some regular expressions
38450         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38451         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38452         * lib/regex_internal.c (re_string_skip_chars):
38453         Fix miscomputation of remain_len that may cause incomplete
38454         multi-byte character and false match.
38456 2012-02-24  Jim Meyering  <meyering@redhat.com>
38458         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38459         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38460         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38461         Remove now-unnecessary str''cmp obfuscation.
38462         Suggested by Akim Demaille.
38464 2012-02-24  Bruno Haible  <bruno@clisp.org>
38466         streq: Rename macro.
38467         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38468         * NEWS: Mention the change.
38469         * lib/mbrtowc.c (mbrtowc): Update.
38470         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38471         * lib/wcwidth.c (wcwidth): Update.
38472         Suggested by Akim Demaille and Jim Meyering.
38474 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38476         regex: fix typo in definition of MIN
38477         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38478         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38480 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38481             Bruno Haible  <bruno@clisp.org>
38483         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38484         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38485         entries into a stack-allocated buffer directly.
38486         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38488 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38489             Bruno Haible  <bruno@clisp.org>
38491         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38493          - There were several instances of this pattern:
38495              for (;;) {
38496                n = acl (f, GETACLCNT, 0, NULL);
38497                [ allocate an array A of size N ]
38498                if (acl (f, GETACL, n, a) == n)
38499                  break;
38500              }
38502            This loop might never terminate if some other process is constantly
38503            manipulating the file's ACL.  The loop should be rewritten to
38504            terminate.
38506          - The acl (... GETACLNT ...) call is merely an optimization; its value
38507            is merely a hint as to how big to make the array.  A better
38508            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38509            and just guess a reasonably-big size, growing the size and trying
38510            again if it's not large enough.  This guarantees termination, and
38511            saves a system call.
38513         * lib/acl-internal.h: Include <limits.h>.
38514         (MIN, SIZE_MAX): New macros.
38515         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38516         a stack-allocated buffer, and use malloc if it does not fit. Don't
38517         use GETACLCNT.
38518         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38520 2012-02-19  Bruno Haible  <bruno@clisp.org>
38522         acl: Fix endless loop on Solaris with vxfs.
38523         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38524         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38525         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38526         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38527         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38528         Reported by Bill Jones in
38529         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38531 2012-02-19  Bruno Haible  <bruno@clisp.org>
38533         acl: Fix copy-acl test failure on Solaris 11.0.
38534         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38535         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38536         that this function returns 0 in some more cases.
38538 2012-02-19  Bruno Haible  <bruno@clisp.org>
38540         acl: Update doc references.
38541         * doc/acl-resources.txt: Update links to Solaris documentation.
38543 2012-02-19  Bruno Haible  <bruno@clisp.org>
38545         Fix test failure in many locales on Solaris 11.
38546         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38547         'tr' arguments.
38548         * tests/test-pipe-filter-ii1.c (main): Likewise.
38549         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38550         expressions in the C locale.
38551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38552         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38554 2012-02-19  Bruno Haible  <bruno@clisp.org>
38556         gnulib-tool: Improve usage message.
38557         * gnulib-tool (func_usage): Move doc of --help and --version to the
38558         section "Operation modes".
38560 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38562         README-release: make it easier to execute commands
38563         * top/README-release: break commands out on to separate lines.
38565 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38567         GNUmakefile: simplify detection of unconfigured trees
38568         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38569         whether the tree make is being run from is already configured or
38570         not.  Related simplifications.
38572 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38574         * gnulib-tool (func_usage): Document --help and --version.
38576 2012-02-11  Jim Meyering  <meyering@redhat.com>
38578         bootstrap: don't exit 0 upon gnulib-tool failure
38579         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38580         its exit status, not 0.
38582 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38584         README-release: various improvements
38585         * top/README-release: Give a command to push changes for the
38586         release.  Add "distcheck" to list of other pre-release checks.
38587         Fix instance of "make stable" which should be "make TYPE".
38589 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38591         maint: replace FSF snail-mail addresses with URLs
38592         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
38593         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
38594         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
38595         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
38596         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
38597         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
38598         * lib/check-version.c, lib/check-version.h, lib/config.charset:
38599         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
38600         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
38601         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
38602         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
38603         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
38604         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
38605         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
38606         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
38607         * lib/glthread/thread.c, lib/glthread/thread.h:
38608         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
38609         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
38610         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
38611         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
38612         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
38613         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
38614         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
38615         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
38616         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
38617         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
38618         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
38619         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
38620         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
38621         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
38622         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
38623         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
38624         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
38625         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
38626         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
38627         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
38628         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
38629         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
38630         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
38631         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
38632         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
38633         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
38634         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
38635         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
38636         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
38637         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
38638         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
38639         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
38640         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
38641         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
38642         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
38643         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
38644         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
38645         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
38646         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
38647         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
38648         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
38649         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
38650         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
38651         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
38652         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
38653         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
38654         * tests/test-poll.c, tests/test-quotearg-simple.c:
38655         * tests/test-quotearg.c, tests/test-quotearg.h:
38656         * tests/test-round-ieee.c, tests/test-round1.c:
38657         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
38658         * tests/test-roundl-ieee.c, tests/test-roundl.c:
38659         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
38660         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
38661         * tests/test-strerror.c, tests/test-strerror_r.c:
38662         * tests/test-strsignal.c, tests/test-strverscmp.c:
38663         * tests/test-xmemdup0.c:
38664         Replace FSF snail mail addresses with URLs, as per GNU coding
38665         standards.  See glibc bug
38666         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
38668 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38670         README-release: capitalize a word and split a line
38671         * top/README-release: Fix punctuation and spacing.
38673 2012-02-08  Akim Demaille  <demaille@gostai.com>
38675         fatal-signal: use C prototypes (with explicit void).
38676         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38677         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
38679 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38681         regex: spelling fix
38682         * lib/regexec.c: spelling fix
38684         regex: rely on stdint.h for SIZE_MAX
38685         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
38687 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38689         regex: merge glibc changes
38691         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
38692         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
38693         (init_word_char): Work even if bitset words are not exactly 32 or
38694         64 bits wide.  Don't assume there are no padding bits.
38695         * lib/regex.c [_LIBC]: Do not include <config.h>.
38696         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
38697         and -Wtype-limits.
38698         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
38699         needless disagreement with glibc.  All uses changed.  Define it to
38700         1 only if _GNU_SOURCE, to match glibc.
38701         (_REG_RM_NAME): Remove; no longer needed, since the names in
38702         question are now all protected by __USE_GNU.
38703         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
38704         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
38705         * lib/regex_internal.h (MIN): New macro.
38707         2012-01-03 Ulrich Drepper <drepper@gmail.com>
38708         * lib/regcomp.c (init_word_char): Optimize regex a bit.
38710         2011-12-30 Jakub Jelinek <jakub@redhat.com>
38711         * lib/regex_internal.c (re_string_fetch_byte_case):
38712         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
38713         is miscompiled, and it turns out it is because of an incorrect
38714         attribute on re_string_fetch_byte_case.  Unlike
38715         re_string_peek_byte_case, this one is really not pure, it modifies
38716         memory (increments pstr->cur_idx), and with the pure attribute GCC
38717         assumed it doesn't and it cached the presumed value of
38718         regexp->cur_idx in a variable across the
38719          for (;; ++i)
38720            {
38721              if (i >= BRACKET_NAME_BUF_SIZE)
38722                return REG_EBRACK;
38723              if (token->type == OP_OPEN_CHAR_CLASS)
38724                ch = re_string_fetch_byte_case (regexp);
38725              else
38726                ch = re_string_fetch_byte (regexp);
38727              if (re_string_eoi(regexp))
38728                return REG_EBRACK;
38729              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
38730                break;
38731              elem->opr.name[i] = ch;
38732            }
38734         2011-11-29 Andreas Schwab <schwab@redhat.com>
38735         * lib/regcomp.c (build_equiv_class):
38736         Fix access after end of search string in regex matcher.
38738         2011-11-12 Ulrich Drepper <drepper@redhat.com>
38739         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
38741         2011-10-12 Ulrich Drepper <drepper@redhat.com>
38742         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
38744         2011-10-11 Ulrich Drepper <drepper@redhat.com>
38745         * lib/regcomp.c (parse_branch, parse_sub_exp):
38746         More regex memory leak fixes and tests.
38747         (parse_sub_exp, parse_bracket_exp):
38748         Fix memory leak for some invalid regular expressions.
38750         2011-05-28 Ulrich Drepper <drepper@gmail.com>
38751         * lib/regex_internal.c, lib/regexec.c:
38752         Fix unnecessary overallocation due to incomplete character.  When
38753         incomplete characters are found at the end of a string the code
38754         ran amok and allocated lots of memory.  Stricter limits are now in
38755         place.
38757         2011-05-20 Reuben Thomas <rrt@sc3d.org>
38758         * lib/regex.h: Update documentation.
38760         2011-05-16 Aharon Robbins <arnold@skeeve.com>
38761         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
38763         2010-05-05 Andreas Schwab <schwab@redhat.com>
38764         * lib/regexec.c (find_collation_sequence_value):
38765         Fix lookup of collation sequence value during regexp matching.
38767         2010-01-22 Ulrich Drepper <drepper@redhat.com>
38768         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
38770         2008-01-16 Ulrich Drepper <drepper@redhat.com>
38771         * lib/regex.h: Cleanup namespace.
38773         2007-11-26 Ulrich Drepper <drepper@redhat.com>
38774         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
38776         2007-08-26 Ulrich Drepper <drepper@redhat.com>
38777         * lib/regex_internal.h: Prevent some declarations and definitions
38778         to be seen when used in tests.
38780         2005-05-06 Ulrich Drepper <drepper@redhat.com>
38781         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
38782         __libc_lock_* macros if not _LIBC.
38783         (struct re_dfa_t): Add lock.
38785 2012-02-07  Eric Blake  <eblake@redhat.com>
38787         maint.mk: also prohibit lower-case @var@
38788         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
38789         lower case, like @top_srcdir@.
38791 2012-02-04  Eric Blake  <eblake@redhat.com>
38793         canonicalize: avoid uninitialized memory use
38794         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
38795         random '/' left in dest.
38796         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
38798 2012-02-04  Bruno Haible  <bruno@clisp.org>
38800         isatty: Fix test failure of ptsname_r on native Windows.
38801         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
38802         and don't set errno.
38803         (isatty): Test first whether fd is valid. Set errno when returning 0.
38805 2012-02-04  Bruno Haible  <bruno@clisp.org>
38807         spawn-pipe tests: Fix a NULL program name in a diagnostic.
38808         * tests/test-spawn-pipe-main.c: Include progname.h.
38809         (main): Invoke set_program_name.
38810         * modules/spawn-pipe-tests (Depends-on): Add progname.
38812         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
38813         * tests/test-nonblocking-socket-main.c: Include progname.h.
38814         (main): Invoke set_program_name.
38815         * modules/nonblocking-socket-tests (Depends-on): Add progname.
38817         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
38818         * tests/test-nonblocking-pipe-main.c: Include progname.h.
38819         (main): Invoke set_program_name.
38820         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
38822 2012-02-04  Eric Blake  <eblake@redhat.com>
38824         canonicalize-lgpl: fix // handling
38825         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
38827         canonicalize: fix // handling
38828         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
38829         /// to //, since only // is special.
38831 2012-02-04  Bruno Haible  <bruno@clisp.org>
38833         ioctl: Fix test failure on native Windows.
38834         * lib/ioctl.c: Include msvc-nothrow.h.
38835         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
38837 2012-02-04  Bruno Haible  <bruno@clisp.org>
38839         fsync: Avoid test failure on native Windows.
38840         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
38841         read-only.
38843 2012-02-04  Bruno Haible  <bruno@clisp.org>
38845         sys_select: Avoid syntax error on OpenBSD 5.0.
38846         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
38847         currently being included, just include the system's <sys/select.h>.
38849 2012-02-04  Bruno Haible  <bruno@clisp.org>
38851         sys_select: Avoid syntax error on OpenBSD 5.0.
38852         * lib/sys_select.in.h: Include <signal.h> only after the include_next
38853         <sys/select.h>, not before.
38854         Reported by Jiri B <jirib@devio.us>.
38856 2012-02-04  Bruno Haible  <bruno@clisp.org>
38858         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
38859         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
38860         global variables.
38861         * tests/test-get-rusage-data.c (main): Likewise.
38862         Reported by Jim Meyering.
38864 2012-02-04  Bruno Haible  <bruno@clisp.org>
38866         stdioext: Fix last commit.
38867         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
38869 2012-02-03  Bruno Haible  <bruno@clisp.org>
38871         stdioext: Add tentative support for Plan9.
38872         * lib/stdio-impl.h: Include <errno.h>.
38873         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
38874         * lib/freadable.c (freadable): Likewise.
38875         * lib/fwritable.c (fwritable): Likewise.
38876         * lib/fbufmode.c (fbufmode): Likewise.
38877         * lib/freading.c (freading): Likewise.
38878         * lib/fwriting.c (fwriting): Likewise.
38879         * lib/freadptr.c (freadptr): Likewise.
38880         * lib/freadseek.c (freadptrinc): Likewise.
38881         * lib/freadahead.c (freadahead): Likewise.
38882         * lib/fpurge.c (fpurge): Likewise.
38883         * lib/fseeko.c (rpl_fseeko): Likewise.
38884         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
38885         Reported by Jens Staal <staal1978@gmail.com>.
38887 2012-02-02  Jim Meyering  <meyering@redhat.com>
38889         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
38890         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
38891         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
38892         not even to try to add the attribute.  Instead, add a pragma to suppress
38893         the suggestion/warning.
38895 2012-01-31  Karl Berry  <karl@gnu.org>
38897         setstate doc: typo.
38898         * doc/posix-functions/setstate.texi (setstate): { not (.
38900 2012-01-31  Bruno Haible  <bruno@clisp.org>
38902         popen: Make more robust on Windows.
38903         * lib/popen.c: On native Windows, use the _popen based code even if
38904         HAVE_POPEN is set.
38905         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
38906         environment variable on native Windows.
38908 2012-01-30  Bruno Haible  <bruno@clisp.org>
38910         pclose: Fix typo.
38911         * lib/stdio.in.h (pclose): Fix typo in warning message.
38913 2012-01-30  Bruno Haible  <bruno@clisp.org>
38915         doc about getlogin_r, setstate.
38916         * doc/posix-functions/getlogin_r.texi: List the incompatible
38917         declaration problem under "not fixed by gnulib".
38918         * doc/posix-functions/setstate.texi: Mention incompatible declaration
38919         problem on Solaris 11 and other platforms.
38921 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
38922             Bruno Haible  <bruno@clisp.org>
38924         poll tests: Make test more robust.
38925         * tests/test-poll.c: Include macros.h.
38926         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
38927         return value of various I/O operations.
38928         * modules/poll-tests (Files): Add tests/macros.h.
38930 2012-01-30  Bruno Haible  <bruno@clisp.org>
38932         sys_stat: Fix support for mingw64 and MSVC.
38933         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
38934         header files already do it.
38935         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
38936         stat itself.
38937         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
38939 2012-01-30  Bruno Haible  <bruno@clisp.org>
38941         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
38942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
38943         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
38945 2012-01-29  Bruno Haible  <bruno@clisp.org>
38947         quotearg: Fix test failure on MacOS X 10.5.
38948         * tests/test-quotearg-simple.c: Include localcharset.h.
38949         (main): If the locale encoding is not ASCII, bypass the tests of
38950         locale_quoting_style and clocale_quoting_style.
38951         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
38953 2012-01-29  Jim Meyering  <meyering@redhat.com>
38955         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
38956         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
38957         detect uses of canonicalize_file_name.
38959 2012-01-28  Bruno Haible  <bruno@clisp.org>
38961         test-framework-sh: Fix test failure with AIX 7.1 diff.
38962         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
38963         in column 1, like 'diff -c' does.
38964         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
38965         whether 'diff -u' is used. Instead, test whether the output contains
38966         some '@' character.
38968 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38970         strtoimax: eliminate need for stdint.h, inttypes.h checks
38971         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
38972         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
38973         the prerequisites for a recently-introduced strtoimax test.
38974         I guess this might cause strtoimax to be replaced when not
38975         strictly necessary on older hosts, but this shouldn't introduce
38976         any bugs and it should make Emacs 'configure' faster on typical
38977         modern hosts.  Problem discovered when importing the latest gnulib
38978         to an Emacs test version.
38979         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
38981 2012-01-28  Bruno Haible  <bruno@clisp.org>
38983         sys_time: Override 'struct timeval' on some native Windows platforms.
38984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
38985         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
38986         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
38987         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
38988         needs to be overridden.
38989         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
38990         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
38991         * tests/test-sys_select.c: Check that the tv_sec member has the same
38992         size as a 'time_t'.
38993         * tests/test-sys_time.c: Likewise.
38994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
38995         is set, set also REPLACE_GETTIMEOFDAY.
38996         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
38997         convert the resulting 'struct timeval' before returning.
38998         * lib/select.c: Include <sys/time.h>.
38999         (select, timeval): Undefine at the right place.
39000         * modules/select (Depends-on): Add sys_time.
39001         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39002         some Windows platforms.
39003         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39005 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39007         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39008         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39009         an integer.
39010         * lib/fcntl.c (dupfd): Likewise.
39011         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39013 2012-01-28  Bruno Haible  <bruno@clisp.org>
39015         fcntl: Avoid compilation error on native Windows.
39016         * modules/fcntl (Depends-on): Add 'close'.
39018 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39020         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39021         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39022         pointer to an integer.
39023         * lib/poll.c (IsConsoleHandle): Likewise.
39024         * lib/isatty.c (IsConsoleHandle): Likewise.
39026 2012-01-28  Jim Meyering  <meyering@redhat.com>
39028         doc: clarify README-release
39029         * top/README-release: Clarify: you should make a point to have
39030         the latest stable versions of build tools in your PATH, and the
39031         reference to buildreq is solely for its list of tool names, not
39032         for its minimal-functional version numbers.
39033         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39035         maint.mk: use more readable (yet functionally equivalent) quoting
39036         It is common to quote a single quote in a single quoted string like
39037         this:  '...'\''...'.  Unless you know the idiom, that looks like
39038         gibberish, so prefer to double-quote the string when possible.
39039         Then you can use a more readable, lone single quote: "...'..."
39040         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39041         "don't" is more readable than the equivalent 'don'\''t'.
39042         (sc_cast_of_x_alloc_return_value): Likewise.
39043         (sc_cast_of_alloca_return_value): Likewise.
39044         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39045         rather than '\'':'\''.
39047 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39049         stdalign: relax _Alignof and tighten _Alignas test
39050         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39051         as it was too strict: alignof must divide offsetof, but it need
39052         not equal offsetof.  Inspired by Joseph S. Myers's comment
39053         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39054         Conversely, tighten the _Alignas test a bit, as the resulting
39055         alignment must be exactly 8.
39057 2012-01-27  Bruno Haible  <bruno@clisp.org>
39059         stdalign: Document the last change.
39060         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39062 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39064         stdalign: check that alignof and offsetof are consistent
39065         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39066         Problem reported for gnulib by Richard W.M. Jones in
39067         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39069 2012-01-27  Jim Meyering  <meyering@redhat.com>
39071         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39072         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39073         convert a sequence with gaps to the minimal containing range.
39074         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39075         * tests/test-update-copyright.sh: Test for this.
39076         The FSF confirmed it is ok to do this, assuming there is at
39077         least one significant change per year in the affected range:
39078         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39080 2012-01-26  Bruno Haible  <bruno@clisp.org>
39082         pipe2: refine doc about thread-safety
39083         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39084         multithread-safety problem.
39085         * doc/glibc-functions/accept4.texi: Likewise.
39087 2012-01-26  Bruno Haible  <bruno@clisp.org>
39089         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39090         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39091         In the test program, include <fcntl.h>, for O_RDONLY.
39093 2012-01-26  Eric Blake  <eblake@redhat.com>
39095         pipe2: document lack of thread-safety in replacement
39096         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39097         issue in replacement.
39098         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39099         Based on a report by Eric Wong.
39101 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39102             Bruno Haible  <bruno@clisp.org>
39104         malloca: Avoid warnings on x86_64 mingw64.
39105         * lib/malloca.c: Include <stdint.h>.
39106         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39107         * modules/malloca (Depends-on): Add stdint.
39108         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39110 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39112         obstack: remove __STDC__ conditionals
39113         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39114         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39115         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39116         m4/include_next.m4 as the only gnulib-maintained places that still
39117         refer to __STDC__.
39119 2012-01-24  Bruno Haible  <bruno@clisp.org>
39121         havelib: Modern quoting.
39122         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39123         the recent change to the GNU coding standards.
39125 2012-01-24  Bruno Haible  <bruno@clisp.org>
39127         stdint: Improve support for Android.
39128         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39129         Reported by Simon Josefsson <simon@josefsson.org>.
39131 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39133         doc: omit trailing empty lines from INSTALL etc.
39134         * doc/Makefile (INSTALL): Omit trailing empty lines.
39135         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39136         omit trailing empty lines.  This simplifies the build procedure.
39138 2012-01-23  Jim Meyering  <meyering@redhat.com>
39140         tests: avoid spurious warnings about gl_sockets_startup
39141         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39142         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39143         reporting a "statement with no effect".
39144         * tests/test-accept.c (main): Mark as "(void)".
39145         * tests/test-accept4.c (main): Likewise.
39146         * tests/test-bind.c (main): Likewise.
39147         * tests/test-connect.c (main): Likewise.
39148         * tests/test-getpeername.c (main): Likewise.
39149         * tests/test-getsockname.c (main): Likewise.
39150         * tests/test-getsockopt.c (main): Likewise.
39151         * tests/test-listen.c (main): Likewise.
39152         * tests/test-recv.c (main): Likewise.
39153         * tests/test-recvfrom.c (main): Likewise.
39154         * tests/test-send.c (main): Likewise.
39155         * tests/test-sendto.c (main): Likewise.
39156         * tests/test-setsockopt.c (main): Likewise.
39157         * tests/test-shutdown.c (main): Likewise.
39159 2012-01-21  Bruno Haible  <bruno@clisp.org>
39161         locale-fr.m4: Fix for Android.
39162         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39163         failure of the test program on Bionic libc.
39165 2012-01-21  Jim Meyering  <meyering@redhat.com>
39167         bootstrap: fail when bootstrap_post_import_hook fails
39168         Otherwise, it's far too easy to miss diagnostics emitted
39169         between gnulib-tool's output and that of running configure.
39170         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39172 2012-01-17  Jim Meyering  <meyering@redhat.com>
39174         maint: enable sc_trailing_blank
39175         * build-aux/pmccabe.css: Remove trailing blanks.
39176         * doc/acl-cygwin.txt: Likewise.
39177         * doc/gnu-oids.texi: Likewise
39178         * cfg.mk: Enable sc_trailing_blank.
39179         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39181 2012-01-17  Jim Meyering  <meyering@redhat.com>
39183         maint: enable sc_prohibit_openat_without_use
39184         * cfg.mk: Enable sc_prohibit_openat_without_use.
39185         Exempt lib/selinux-at.c.
39187 2012-01-17  Jim Meyering  <meyering@redhat.com>
39189         maint: enable sc_prohibit_cloexec_without_use
39190         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39191         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39193 2012-01-17  Jim Meyering  <meyering@redhat.com>
39195         maint: enable sc_prohibit_intprops_without_use
39196         * cfg.mk: Enable sc_prohibit_intprops_without_use
39197         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39199 2012-01-17  Jim Meyering  <meyering@redhat.com>
39201         maint: enable sc_prohibit_hash_pjw_without_use
39202         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39203         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39204         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39205         following " (".
39207 2012-01-17  Jim Meyering  <meyering@redhat.com>
39209         maint: enable double-word-prohibiting rule
39210         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39211         Exempt three files.
39213 2012-01-17  Jim Meyering  <meyering@redhat.com>
39215         maint: remove empty lines at EOF, but excluding modules/*
39216         Apply syntax rules at home as well as abroad.  Most changes
39217         were induced by running this:
39218           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39219             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39220             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39221         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39222         Exempt modules/* and two binary files.
39223         Also exempt doc/INSTALL*, per request from Bruno Haible.
39224         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39225         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39226         * doc/Copyright/request-assign.future: Likewise.
39227         * doc/Copyright/request-disclaim.changes: Likewise.
39228         * doc/INSTALL: Likewise.
39229         * doc/INSTALL.ISO: Likewise.
39230         * doc/INSTALL.UTF-8: Likewise.
39231         * doc/acl-cygwin.txt: Likewise.
39232         * doc/acl-resources.txt: Likewise.
39233         * doc/fdl-1.2.texi: Likewise.
39234         * doc/fdl-1.3.texi: Likewise.
39235         * doc/fdl.texi: Likewise.
39236         * lib/argp-pin.c: Likewise.
39237         * lib/round.c: Likewise.
39238         * lib/unicase/u16-totitle.c: Likewise.
39239         * lib/unictype/block_test.c: Likewise.
39240         * lib/uninorm/canonical-decomposition.c: Likewise.
39241         * m4/README: Likewise.
39242         * m4/relocatable-lib.m4: Likewise.
39243         * tests/test-isnand-nolibm.c: Likewise.
39244         * tests/test-isnand.c: Likewise.
39245         * tests/uninorm/NormalizationTest.txt: Likewise.
39247 2012-01-17  Jim Meyering  <meyering@redhat.com>
39249         maint: add framework to run syntax-check rules against gnulib sources
39250         * cfg.mk: New file, to disable all currently-failing tests.
39251         We'll enable them one by one, as they are made to pass.
39252         * Makefile (sc_maint): New rule.
39254 2012-01-21  Bruno Haible  <bruno@clisp.org>
39256         stdint: Add support for Android.
39257         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39258         include the system's <stdint.h>.
39259         Reported by Simon Josefsson <simon@josefsson.org>.
39261 2012-01-19  Jim Meyering  <meyering@redhat.com>
39263         bootstrap: add bootstrap_post_import_hook
39264         Bison does still need something like the gnulib_mk_hook whose
39265         invocation I had to remove along with slurp in commit 767ccd40.
39266         Technically, we could get along without it, but doing so would
39267         have required living with a warning and a mandatory post-bootstrap
39268         automake rerun.
39269         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39270         (bootstrap_post_import_hook): New function.
39271         Invoke it after gnulib-tool --import and before autoreconf.
39273 2012-01-18  Jim Meyering  <meyering@redhat.com>
39275         gitlog-to-changelog: don't use "no_"-prefixed variable name
39276         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39277         to enable both --cluster and --no-cluster.  Change variable name,
39278         s/\$no_cluster/$cluster/, and reverse usage to match.
39280         gitlog-to-changelog: use "||", not "or" in expressions
39281         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39282         expressions.
39284 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39286         gitlog-to-changelog: new option --no-cluster
39287         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39288         clustering of adjacent commit messages.
39290 2012-01-17  Jim Meyering  <meyering@redhat.com>
39292         maint: spell file systems with two words, not one
39293         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39294         two words, not one.
39296 2012-01-16  Jim Meyering  <meyering@redhat.com>
39298         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39299         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39301 2012-01-16  Eric Blake  <eblake@redhat.com>
39303         bootstrap: cater to autoconf 2.59
39304         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39305         is not available.
39307         bootstrap: properly check for libtool
39308         * build-aux/bootstrap (libtoolize): Also run libtool when older
39309         usage is detected.
39311 2012-01-15  Bruno Haible  <bruno@clisp.org>
39313         Improve support for MSVC 9.
39314         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39315         clashes on MSVC.
39316         * lib/fcntl.in.h: Likewise.
39317         * lib/stdlib.in.h: Likewise.
39318         * lib/sys_stat.in.h: Likewise.
39320 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39322         gnupload: we hold the master copy of this script now
39323         For motivation and more information, see:
39324         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39325         * build-aux/gnupload: Make it clear in the heading comments that the
39326         master copy of this file is maintained by gnulib.  Since we are at
39327         it, bump its copyright year and ...
39328         ($scriptversion): ... the date in its version.
39329         ($usage): Patches and bug reports should be sent to the gnulib list,
39330         not the automake one.
39331         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39332         anymore.
39334 2012-01-15  Bruno Haible  <bruno@clisp.org>
39336         Fix module 'random'.
39337         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39338         initstate, setstate are declared.
39340 2012-01-14  Bruno Haible  <bruno@clisp.org>
39342         Tests for module 'random'.
39343         * modules/random-tests: New file.
39344         * tests/test-random.c: New file, based on tests/test-random_r.c.
39346         New module 'random'.
39347         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39348         declarations.
39349         * lib/random.c: New file, based on glibc/stdlib/random.c.
39350         * m4/random.m4: New file.
39351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39352         HAVE_RANDOM.
39353         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39354         * modules/random: New file.
39355         * config/srclist.txt: Add an entry for random.c.
39356         * doc/posix-functions/random.texi: Mention the 'random' module.
39357         * doc/posix-functions/initstate.texi: Likewise.
39358         * doc/posix-functions/setstate.texi: Likewise.
39359         * doc/posix-functions/srandom.texi: Likewise.
39361 2012-01-12  Bruno Haible  <bruno@clisp.org>
39363         random_r: Use common idioms.
39364         * lib/random_r.c: Include <stdlib.h> first.
39366         random_r: Override incompatible API on AIX, OSF/1.
39367         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39368         Override the system function if REPLACE_RANDOM_R is 1.
39369         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39370         and OSF/1, set REPLACE_RANDOM_R.
39371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39372         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39373         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39374         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39375         * doc/glibc-functions/random_r.texi: Likewise.
39376         * doc/glibc-functions/setstate_r.texi: Likewise.
39378         random_r: Support for MSVC 9.
39379         * lib/random_r.c: Include stdint.h, not inttypes.h.
39381 2012-01-12  Eric Blake  <eblake@redhat.com>
39383         inet_ntop: guard extra work by IF_LINT
39384         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39385         better code generation when not checking for warnings.
39386         Suggested by Paul Eggert and Jim Meyering.
39388         strptime: fix regression on mingw
39389         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39390         Fix regression.  Reported by Bruno Haible.
39392 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39393             Bruno Haible  <bruno@clisp.org>
39395         copy-file: add error-code-returning variant.
39396         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39397         (qcopy_file_preserving): New declaration.
39398         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39399         copy_file_preserving. Change return type to 'int'. Don't emit an error
39400         message here.
39401         (copy_file_preserving): New function.
39402         * tests/test-copy-file.c: Include <stdlib.h>.
39403         (main): Test qcopy_file_preserving if the environment variable
39404         NO_STDERR_OUTPUT is set.
39405         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39406         with NO_STDERR_OUTPUT
39407         * tests/test-copy-file-2.sh: Likewise.
39409 2012-01-10  Bruno Haible  <bruno@clisp.org>
39411         copy-file: Use 'quote' module consistently.
39412         * lib/copy-file.c (copy_file_preserving): Use quote().
39414         copy-file: Refactor.
39415         * lib/copy-file.c: Include quote.h.
39416         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39417         message here.
39418         * modules/copy-file (Depends-on): Add quote.
39420         acl: Export qcopy_acl.
39421         * lib/acl.h (qcopy_acl): New declaration.
39422         * lib/copy-acl.c (qcopy_acl): Make non-static.
39424         acl: Rename a local variable.
39425         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39427         acl: Align return values of copy_acl and qcopy_acl.
39428         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39429         maybe < -1.
39431 2012-01-11  Eric Blake  <eblake@redhat.com>
39433         strptime: silence gcc warnings
39434         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39435         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39436         Reported by Daniel P. Berrange.
39438         inet_ntop: silence gcc warning
39439         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39440         Reported by Daniel P. Berrange.
39442 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39444         getloadavg test: skip the test on GNU/Linux without /proc mounted
39445         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39446         file.  When /proc is not mounted, it always fails with ENOENT.
39447         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39448         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39450 2012-01-10  Bruno Haible  <bruno@clisp.org>
39452         regex: Avoid link error on MSVC 9.
39453         * modules/regex (Depends-on): Add wctype.
39455 2012-01-10  Bruno Haible  <bruno@clisp.org>
39457         doc: Mention --with-tests option.
39458         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39459         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39460         --with-tests.
39461         Reported by Reuben Thomas.
39463 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39465         users.txt: order package names lexicographically.
39466         * users.txt: Order package names lexicographically.
39468 2012-01-10  Jim Meyering  <meyering@redhat.com>
39470         maint.mk: fix description in comment
39471         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39473         ignore-value: remove deprecated ignore_ptr function
39474         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39475         * NEWS: Note this.
39477 2012-01-09  Jim Meyering  <meyering@redhat.com>
39479         test-init.sh: avoid a subshell
39480         * tests/test-init.sh: Remove protective subshell.
39481         Suggested by Bernhard Voelker.  While a subshell is normally
39482         required to protect against older shells (Solaris, FreeBSD) that
39483         warn about a missing program before performing redirection, the
39484         shell-selection tests performed by init.sh probably exclude any
39485         offending shell.
39487 2012-01-08  Bruno Haible  <bruno@clisp.org>
39489         setlocale tests: Avoid test failure on Solaris 11.0.
39490         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39491         variable.
39493 2012-01-08  Bruno Haible  <bruno@clisp.org>
39495         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39496         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39498         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39499         macro.
39500         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39501         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39502         * lib/spawn_faction_addopen.c: Add workaround implementation if
39503         HAVE_WORKING_POSIX_SPAWN.
39504         * modules/spawn (Makefile): Substitute
39505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39506         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39507         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39509         (Depends-on): Update conditions.
39510         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39511         the Solaris 11 bug.
39513 2012-01-08  Bruno Haible  <bruno@clisp.org>
39515         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39516         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39518         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39519         macro.
39520         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39521         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39522         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39523         HAVE_WORKING_POSIX_SPAWN.
39524         * modules/spawn (Makefile): Substitute
39525         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39526         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39527         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39528         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39529         (Depends-on): Update conditions.
39530         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39531         the Solaris 11 bug.
39533 2012-01-08  Bruno Haible  <bruno@clisp.org>
39535         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39536         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39539         HAVE_WORKING_POSIX_SPAWN.
39540         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39541         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39542         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39543         * lib/spawn_faction_addclose.c: Add workaround implementation if
39544         HAVE_WORKING_POSIX_SPAWN.
39545         * modules/spawn (Makefile): Substitute
39546         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39547         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39548         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39549         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39550         (Depends-on): Update conditions.
39551         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39552         the Solaris 11 bug.
39554 2012-01-08  Bruno Haible  <bruno@clisp.org>
39556         doc: Update for Solaris 11.0.
39557         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39558         * m4/printf.m4: Update comments.
39560 2012-01-08  Bruno Haible  <bruno@clisp.org>
39562         mktime: Avoid compilation error on Solaris 11.
39563         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39565 2012-01-08  Bruno Haible  <bruno@clisp.org>
39567         doc: Small fix.
39568         * doc/posix-headers/nl_types.texi: Correct platforms list.
39570 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39572         Add lgpl-3.0 module.
39573         * MODULES.html.sh (Support for building documentation): Add
39574         lgpl-3.0.
39575         * modules/lgpl-3.0: New file.
39577 2012-01-08  Jim Meyering  <meyering@redhat.com>
39579         select.c: indent with spaces, not TABs
39580         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39582 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39584         quotearg: do not use grave accent for left quote
39585         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39586         locale_quoting_style.
39587         (quotearg_buffer_restyled): Fix example.
39588         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
39590 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39592         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
39593         Most programs do not have translation catalogs for English and much
39594         less separate catalogs for British and American English.  Drop the
39595         suggestion to translators about these two, and provide it
39596         automatically for Unicode locales.  Like most programs, even those
39597         using American English, we use single quotation marks.  This conflicts
39598         with the American typographic convention, but works better when you
39599         cite the entire error message within double quotes.  It also tries not
39600         to clash with established practice and with what non-gnulib programs
39601         will usually do.
39602         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
39603         using an UTF-8 or GB-18030 locale.  The list of other locales with
39604         quotes was provided by Bruno Haible.
39605         (quotearg_buffer_restyled): Adjust instructions to translators.
39606         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
39607         text, since this would be wrong when using Unicode.
39608         * modules/quotearg: Depend on c-strcaseeq.
39610 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39612         quotearg: fix Wikipedia link
39613         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
39615 2012-01-07  Simon Josefsson  <simon@josefsson.org>
39617         Fix for mingw with MSVC9.
39618         * m4/ld-version-script.m4: Check that compiler rejects version
39619         scripts with syntax errors.  Reported by Bruno Haible
39620         <bruno@clisp.org>.
39622 2012-01-06  Bruno Haible  <bruno@clisp.org>
39624         Talk about "native Windows API", not "Woe32".
39625         * lib/accept4.c: Update comments to mention native Windows.
39626         * lib/execute.c: Likewise.
39627         * lib/fatal-signal.c: Likewise.
39628         * lib/localcharset.c: Likewise.
39629         * lib/nanosleep.c: Likewise.
39630         * lib/nl_langinfo.c: Likewise.
39631         * lib/pclose.c: Likewise.
39632         * lib/pipe-filter-gi.c: Likewise.
39633         * lib/pipe-filter-ii.c: Likewise.
39634         * lib/pipe.c: Likewise.
39635         * lib/pipe2.c: Likewise.
39636         * lib/popen.c: Likewise.
39637         * lib/progreloc.c: Likewise.
39638         * lib/relocatable.c: Likewise.
39639         * lib/sigaction.c: Likewise.
39640         * lib/sigprocmask.c: Likewise.
39641         * lib/spawn-pipe.h: Likewise.
39642         * lib/spawn-pipe.c: Likewise.
39643         * lib/spawni.c: Likewise.
39644         * lib/stat-time.h: Likewise.
39645         * lib/w32spawn.h: Likewise.
39646         * tests/test-isatty.c: Likewise.
39647         * lib/config.charset: More comments.
39648         * doc/gnulib-intro.texi: Mention native Windows.
39649         * doc/posix-functions/_Exit_C99.texi: Likewise.
39650         * doc/posix-headers/fcntl.texi: Likewise.
39652 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39654         argp: Avoid crash if translator uses % characters in a translation.
39655         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
39656         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
39658 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
39660         doc: C11 and C++11 are now official
39661         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
39662         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
39663         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
39664         * modules/stdalign:
39665         Replace references to draft C1X to C11, and to draft C++0X to C++11.
39667 2012-01-06  Bruno Haible  <bruno@clisp.org>
39669         uc-is-grapheme-break tests: Tweak.
39670         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
39671         message.
39673 2012-01-06  Bruno Haible  <bruno@clisp.org>
39675         test-init.sh: correct the test for diff -u
39676         * tests/test-init.sh: Also redirect stdout to /dev/null.
39678 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39680         Use ', not `, for quoting output.
39681         * build-aux/announce-gen (usage, sizes, print_news_deltas)
39682         (print_changelog_deltas, get_tool_versions, main program):
39683         * build-aux/git-version-gen:
39684         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
39685         * build-aux/move-if-change (help):
39686         * build-aux/useless-if-before-free (usage, main program):
39687         * check-module (parse_module_file, usage)
39688         (find_included_lib_files, check_module):
39689         * lib/argmatch.c (main) [TEST]:
39690         * lib/argp-help.c (_help):
39691         * lib/getopt1.c (main) [TEST]:
39692         * lib/git-merge-changelog.c (usage):
39693         * lib/xstrtol-error.c (xstrtol_error):
39694         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
39695         * m4/argz.m4 (gl_FUNC_ARGZ):
39696         * m4/bison.m4 (gl_BISON):
39697         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
39698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
39699         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39700         * m4/fpending.m4 (gl_PREREQ_FPENDING):
39701         * m4/gc-random.m4 (gl_GC_RANDOM):
39702         * m4/intl.m4 (gt_CHECK_DECL):
39703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
39704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
39705         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
39706         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
39707         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
39708         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
39709         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
39710         * tests/test-dirname.c (main):
39711         * tests/test-getpass.c (main):
39712         * tests/test-iconvme.c (main):
39713         * tests/test-parse-datetime.c (LOG):
39714         * tests/test-xstrtoimax.sh:
39715         * tests/test-xstrtol.sh:
39716         * tests/test-xstrtoll.sh:
39717         * tests/test-xstrtoumax.sh:
39718         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
39719         * top/GNUmakefile (abort-due-to-no-makefile):
39720         Quote 'like this', not `like this', as per the recent change to
39721         the GNU coding standards.
39723 2012-01-05  Bruno Haible  <bruno@clisp.org>
39725         strtoimax: Don't force a replacement on systems where intmax_t is int.
39726         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
39727         'intmax_t' is not larger than 'int'.
39728         Reported by Pádraig Brady <P@draigBrady.com>.
39730 2012-01-05  Bruno Haible  <bruno@clisp.org>
39732         doc: Mention NetBSD bugs.
39733         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
39734         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
39736 2012-01-05  Bruno Haible  <bruno@clisp.org>
39738         strtoumax tests: Enhance tests.
39739         * tests/test-strtoumax.c (main): Add tests for large values.
39741 2012-01-05  Bruno Haible  <bruno@clisp.org>
39743         strtoimax: Work around AIX 5.1 bug.
39744         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
39745         definition.
39746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
39747         Set HAVE_STRTOIMAX.
39748         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
39749         REPLACE_STRTOIMAX.
39750         * modules/inttypes-incomplete (Makefile.am): Substitute
39751         REPLACE_STRTOIMAX.
39752         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39753         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
39754         (Depends-on): Update conditions.
39755         * tests/test-strtoimax.c (main): Add tests for large values.
39756         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
39758 2012-01-05  Bruno Haible  <bruno@clisp.org>
39760         inttypes: Modernize.
39761         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
39762         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
39763         (Makefile.am): Update inttypes.h rule.
39765 2012-01-05  Jim Meyering  <meyering@redhat.com>
39767         init.sh: don't waste a subshell just to redirect stderr
39768         * tests/init.sh: In testing for diff -u and diff -c, use a
39769         stderr-redirecting exec inside `...` rather than a subshell.
39771         test-init.sh: avoid failure on HP-UX 11.00
39772         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
39773         resolves to diff -c or cmp.  Reported by Bruno Haible.
39775 2012-01-05  Bruno Haible  <bruno@clisp.org>
39777         Tests for module 'strtoull'.
39778         * modules/strtoull-tests: New file.
39779         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
39781 2012-01-05  Bruno Haible  <bruno@clisp.org>
39783         Tests for module 'strtoll'.
39784         * modules/strtoll-tests: New file.
39785         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
39787 2012-01-05  Bruno Haible  <bruno@clisp.org>
39789         Tests for module 'strtoul'.
39790         * modules/strtoul-tests: New file.
39791         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
39793 2012-01-05  Bruno Haible  <bruno@clisp.org>
39795         Tests for module 'strtol'.
39796         * modules/strtol-tests: New file.
39797         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
39799 2012-01-04  Jim Meyering  <meyering@redhat.com>
39801         test-init.sh: accommodate Solaris 5.10's different diff -u output
39802         * tests/test-init.sh: Also exempt @@ lines from the comparison
39803         of diff output, since Solaris 5.10 and GNU diff formats differ.
39804         Reported by Stefano Lattarini.
39806 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39808         test-posixtm: don't assume signed integer wraparound
39809         * tests/test-posixtm.c (main): Don't assume wraparound semantics
39810         after signed integer overflow.  Inspired by (though it may not
39811         fix) Bruno Haible's bug report in
39812         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
39814         Spell out "Windows 9x" and "Windows XP".
39815         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
39816         "Windows 9x" and "WinXP" with "Windows XP".
39818 2012-01-04  Jim Meyering  <meyering@redhat.com>
39820         test-vc-list-files-cvs.sh: remove obsolete comment
39821         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
39822         double exit.  Now that's all encapsulated via skip_ and Exit.
39824 2012-01-04  Bruno Haible  <bruno@clisp.org>
39826         Talk about "native Windows API", not "Win32".
39827         * lib/classpath.c: Update comments to mention native Windows.
39828         * lib/csharpexec.c: Likewise.
39829         * lib/dup2.c: Likewise.
39830         * lib/error.c: Likewise.
39831         * lib/fcntl.c: Likewise.
39832         * lib/filename.h: Likewise.
39833         * lib/findprog.c: Likewise.
39834         * lib/get-rusage-as.c: Likewise.
39835         * lib/get-rusage-data.c: Likewise.
39836         * lib/getpagesize.c: Likewise.
39837         * lib/javaexec.c: Likewise.
39838         * lib/msvc-inval.c: Likewise.
39839         * lib/msvc-nothrow.c: Likewise.
39840         * lib/nanosleep.c: Likewise.
39841         * lib/nonblocking.c: Likewise.
39842         * lib/printf-parse.c: Likewise.
39843         * lib/setlocale.c: Likewise.
39844         * lib/sigaction.c: Likewise.
39845         * lib/strerror_r.c: Likewise.
39846         * lib/tmpdir.c: Likewise.
39847         * lib/vasnprintf.c: Likewise.
39848         * lib/w32spawn.h: Likewise.
39849         * lib/waitpid.c: Likewise.
39850         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
39851         * m4/locale-ar.m4: Likewise.
39852         * m4/locale-fr.m4: Likewise.
39853         * m4/locale-ja.m4: Likewise.
39854         * m4/locale-tr.m4: Likewise.
39855         * m4/locale-zh.m4: Likewise.
39856         * m4/printf.m4: Likewise.
39857         * tests/test-cloexec.c: Likewise.
39858         * tests/test-copy-acl.sh: Likewise.
39859         * tests/test-copy-file.sh: Likewise.
39860         * tests/test-file-has-acl.sh: Likewise.
39861         * tests/test-set-mode-acl.sh: Likewise.
39862         * tests/test-dup-safer.c: Likewise.
39863         * tests/test-dup2.c: Likewise.
39864         * tests/test-dup3.c: Likewise.
39865         * tests/test-fcntl.c: Likewise.
39866         * tests/test-nonblocking-pipe.h: Likewise.
39867         * tests/test-nonblocking-socket.h: Likewise.
39868         * tests/test-pipe.c: Likewise.
39869         * tests/test-pipe2.c: Likewise.
39870         * tests/test-spawn-pipe-child.c: Likewise.
39871         * doc/acl-resources.txt: Likewise.
39872         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39873         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
39874         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
39875         * lib/localcharset.c: Update comments to mention native Windows.
39876         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39877         * lib/localename.c: Likewise.
39878         * lib/progreloc.c: Likewise.
39879         * lib/relocatable.c: Likewise.
39880         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
39881         (windows_compute_revents): Renamed from win32_compute_revents.
39882         (windows_compute_revents_socket): Renamed from
39883         win32_compute_revents_socket.
39884         * lib/select.c: Update comments to mention native Windows.
39885         (windows_poll_handle): Renamed from win32_poll_handle.
39886         * m4/threadlib.m4: Update comments to mention native Windows.
39887         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
39888         --enable-threads=windows instead of --enable-threads=win32. Set
39889         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
39890         * lib/glthread/lock.h: Update comments to mention native Windows.
39891         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
39892         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
39893         USE_WIN32_THREADS.
39894         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
39895         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
39896         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
39897         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
39898         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
39899         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
39900         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
39901         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
39902         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
39903         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
39904         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
39905         * tests/test-tls.c: Likewise.
39906         Rationale:
39907         Microsoft renamed the "Win32 API" to "Windows API", as it is available
39908         on both 32-bit and 64-bit Windows systems.
39909         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
39910         line of distinction is between "native Windows" on one side and Unix/
39911         POSIX systems on the other side. More details in
39912         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
39913         Suggested by Paul Eggert.
39915 2012-01-03  Bruno Haible  <bruno@clisp.org>
39917         isatty: Support for MSVC 9.
39918         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
39919         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
39920         (_isatty_nothrow): New function.
39921         (isatty): Use it instead of _isatty.
39922         (IsConsoleHandle): Add comment, from Paolo Bonzini.
39923         * lib/poll.c (IsConsoleHandle): Likewise.
39924         * lib/select.c (IsConsoleHandle): Likewise.
39925         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
39926         (gl_PREREQ_ISATTY): New macro.
39927         * modules/isatty (Depends-on): Add msvc-inval.
39928         (configure.ac): Invoke gl_PREREQ_ISATTY.
39930 2012-01-03  Jim Meyering  <meyering@redhat.com>
39932         maint.mk: remove temporary transition aid from over 1.5 years ago
39933         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
39934         purpose was to aid in the transition (avoiding silent malfunction)
39935         from that old name to the new _sc_search_regexp.  This shim was
39936         added by commit 219c504b.
39938         init.sh: do not try to accommodate compare arguments starting with "-"
39939         * tests/init.sh (compare_dev_null_): Do not try to accommodate
39940         compare arguments that start with "-".  Besides, we do not worry
39941         about this when invoking diff or cmp; why start now with sed?
39942         Using "--" to separate options from argument would trigger sed
39943         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
39944         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
39946 2012-01-02  Bruno Haible  <bruno@clisp.org>
39948         Enhance tests for module 'isatty'.
39949         * modules/isatty-tests (Depends-on): Add pipe-posix.
39950         * tests/test-isatty.c: Include <fcntl.h>.
39951         (DEV_NULL): New macro.
39952         (main): Test the resut of isatty() also on regular files, pipes, and
39953         /dev/null.
39955         New module 'isatty'.
39956         * lib/unistd.in.h (isatty): New declaration.
39957         * lib/isatty.c: New file, based on an idea of
39958         Bastien Roucariès <roucaries.bastien@gmail.com>.
39959         * m4/isatty.m4: New file.
39960         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
39961         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
39962         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
39963         REPLACE_ISATTY.
39964         * modules/isatty: New file.
39965         * doc/posix-functions/isatty.texi: Mention the new module.
39966         Suggested by Paolo Bonzini.
39968 2012-01-02  Bruno Haible  <bruno@clisp.org>
39970         canonicalize: Tweak 2011-12-29 commit.
39971         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
39972         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
39974 2012-01-02  Jim Meyering  <meyering@redhat.com>
39976         gitlog-to-changelog: describe input syntax in --help output
39977         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
39979         gitlog-to-changelog: fix typo in --help: show backslash before email @
39980         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
39981         in sources, but not in actual output.
39983 2011-12-30  Jim Meyering  <meyering@redhat.com>
39985         gitlog-to-changelog: don't malfunction when name contains %-directive
39986         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
39987         in a name string cause trouble.  E.g., with a user name of "%s",
39988         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
39990 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
39992         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
39993         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
39994         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
39995         the "  (tiny change)" notation that is appended to the standard
39996         ChangeLog "date  name  email" header line.
39998 2012-01-01  Jim Meyering  <meyering@redhat.com>
40000         test-framework-sh: init.sh: fix "make dist" failure
40001         When using gnulib-tool's --with-tests option and any module that
40002         depends on test-framework-sh, "make dist" would fail due to the
40003         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40004         in the gltests directory, and not in the gllib/ directory.
40005         One way to work around that is to move the EXTRA_DIST += init.sh
40006         from the primary module to the -tests one:
40007         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40008         * modules/test-framework-sh (Makefile.am): ...not here.
40009         Reported by Tom G. Christensen in
40010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40012         version-etc: update copyright year reported by --version
40013         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40015 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40017         canonicalize: only stat() if required
40018         * lib/canonicalize.c (canonicalize_filename_mode):
40019         Avoid calling l?stat() when both CAN_MISSING,
40020         and CAN_NOLINKS are set, as we neither need
40021         to resolve symlinks or test component existence.
40023 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40025         doc: cover st_ino issues once; add OpenVMS etc.
40026         * doc/posix-functions/stat.texi (stat):
40027         * doc/posix-functions/lstat.texi (lstat):
40028         * doc/posix-functions/fstatat.texi (fstatat):
40029         * doc/posix-functions/fstat.texi (fstat):
40030         Move general 'struct stat' stuff to sys_stat.texi,
40031         leaving behind a pointer.
40032         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40033         Merge duplicate info about 'struct stat' problems into here.
40034         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40035         and suggest partial workarounds.
40037         same-inode: port to OpenVMS
40038         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40039         three st_ino values.
40041 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40043         canonicalize: fix references to stat() and lstat()
40044         * lib/canonicalize.c (canonicalize_filename_mode):
40045         Ensure references always resolve to a replacement
40046         function if required (even via a macro).
40048 2011-12-30  Jim Meyering  <meyering@redhat.com>
40050         gitlog-to-changelog: remove a little duplication
40051         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40052         rather than twice.
40054 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40056         canonicalize: add support for not resolving symlinks
40057         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40058         indicate we don't want to follow symlinks.  Also
40059         provide CAN_MODE_MASK to aid setting these existing
40060         mutually exclusive values.
40061         * lib/canonicalize.c (canonicalize_filename_mode):
40062         Extract the flags from can_mode parameter, which
40063         are currently just used to select between stat()
40064         and lstat().  Also ensure that mutually exclusive
40065         values are flagged immediately as invalid.
40066         * tests/test-canonicalize.c: Verify symlinks are
40067         not followed, and that invalid flag combinations
40068         are diagnosed.
40070 2011-12-25  Jim Meyering  <meyering@redhat.com>
40072         gitlog-to-changelog: do not clump multi-paragraph entries
40073         Identical header lines (date,name,email+coauthors) are suppressed,
40074         thus putting all entries with those same characteristics under
40075         a single header.  However, when a log entry consists of two or
40076         more paragraphs, it may not be clear where it starts and ends.
40077         This change makes it so that such an entry is always separated
40078         from others by a header line, even when that header would
40079         otherwise be suppressed.
40080         * build-aux/gitlog-to-changelog: Implement the above.
40081         Inspired by a related request from Stefano Lattarini in
40082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40084 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40086         announce-gen: fix `cmd' typo in diagnostic
40087         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40088         diagnostic: a missing '$' meant that the command was not output.
40090 2011-12-23  Jim Meyering  <meyering@redhat.com>
40092         test-framework-sh: distribute init.sh
40093         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40094         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40095         fail due to the lack of init.sh.
40097         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40098         * modules/atexit-tests: Rather than listing tests/init.sh,
40099         now that there's a module for it, simply depend on that new module.
40100         * modules/closein-tests: Likewise.
40101         * modules/exclude-tests: Likewise.
40102         * modules/getcwd-tests: Likewise.
40103         * modules/perror-tests: Likewise.
40104         * modules/pread-tests: Likewise.
40105         * modules/pwrite-tests: Likewise.
40106         * modules/vc-list-files-tests: Likewise.
40107         * modules/verify-tests: Likewise.
40108         * modules/xalloc-die-tests: Likewise.
40109         * modules/xstrtoimax-tests: Likewise.
40110         * modules/xstrtol-tests: Likewise.
40111         * modules/xstrtoll-tests: Likewise.
40112         * modules/xstrtoumax-tests: Likewise.
40113         * modules/yesno-tests: Likewise.
40115 2011-12-22  Jim Meyering  <meyering@redhat.com>
40117         test-framework-sh: add minimal tests of init.sh's compare function
40118         * modules/test-framework-sh-tests: New file.
40119         * tests/test-init.sh: New file.
40121         test-framework-sh: new module
40122         * modules/test-framework-sh: New file.
40123         * MODULES.html.sh (Support for maintaining and releasing projects):
40124         List it.
40126         init.sh: do not emit simulated diff output to stderr
40127         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40129 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40131         .gitignore: ignore gnulib.dvi and regex.info
40132         * doc/.gitignore:add gnulib.dvi and regex.info
40134 2011-12-22  Jim Meyering  <meyering@redhat.com>
40136         init.sh: correct previous change
40137         * tests/init.sh (compare): My previous change was wrong.
40138         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40140         init.sh: avoid unwarranted test failure when using "set -e"
40141         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40142         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40143         a use like "compare exp out" would get evoke an unconditional failure.
40145 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40147         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40148         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40149         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40150         autoreconf that did not.
40151         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40152         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40154 2011-12-17  Jim Meyering  <meyering@redhat.com>
40156         bootstrap: remove some now-unneeded code
40157         This script arose back when gnulib-tool was young.
40158         Since then, it has seen improvements that render much of this
40159         script unnecessary.  In particular, it can now make symlinks
40160         to the files it uses.  Also, I no longer see as much value in
40161         marking files as read-only via comments.
40162         If you relied on the symlink-creation feature of the preceding
40163         version of this script, you can get most of that functionality
40164         by adding the --symlink option to the definition of
40165         gnulib_tool_option_extras in your bootstrap.conf file.
40166         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40167         Run autopoint and libtoolize *before* gnulib-tool.
40168         After it, run an abbreviated autoreconf, rather than a loop around
40169         all tools.
40170         (slirp, bt_mark_as_generated): Remove functions.
40172 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40174         ftoastr: fix typo
40175         * lib/ftoastr.h: Fix misspelling in comment.
40177 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40179         * top/README-release: fix punctuation.
40181 2011-12-17  Jim Meyering  <meyering@redhat.com>
40183         bootstrap: correct the recent buildreq change
40184         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40185         had no effect.
40186         * build-aux/bootstrap (buildreq): Bracket each search term with
40187         "*...*", so that the shell "case" statement works as intended.
40188         Add comments.
40190 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40192         build: let bootstrap resort to wget when downloading .po files
40193         * build-aux/bootstrap (download_po_files): Fallback to wget when
40194         downloading the .po files via rsync fails.  This is necessary to
40195         bootstrap from behind a strict firewall.
40197 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40199         stdint: don't assume C++11 when compiling with g++
40200         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40201         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40202         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40203         work also in C++ before C++11, as that improperly inhibits
40204         generating a substitute stdint.h for that case.
40206 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40208         alloca: protect comment from gnulib-tool
40209         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40210         that gnulib-tool doesn't think it's a license, and munge it to
40211         say "GCC version 3".
40213 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40215         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40216         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40217         $(abs_top_builddir) instead of $(top_builddir).
40219 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40221         strftime-tests: also test nanoseconds
40222         * tests/test-strftime.c (T): Add a test of %N.
40224 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40226         inttypes, stdint: add C++11 support
40227         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40228         when including inttypes.h and stdint.h.  Support this change to
40229         the standard.
40230         * doc/posix-headers/inttypes.texi (inttypes.h):
40231         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40232         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40233         Define if not defined already, for the benefit of pre-C++11 hosts.
40234         Define the standard format macros (e.g., PRId8) always.
40235         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40236         Likewise, if __cpluspus.  Define the standard constant and limit
40237         macros (e.g., INT8_C, INT8_MAX) always.
40238         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40239         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40240         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40241         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40242         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40243         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40244         Likewise.
40246 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40248         nonblocking tests: Fix test failure on Linux/PPC.
40249         Suggested by Prerna Saxena in
40250         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40251         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40252         Set to 1100000.
40254 2011-12-12  Jim Meyering  <meyering@redhat.com>
40256         argmatch: don't hard-code `' when listing valid option arguments
40257         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40258         use the quote function to add quotes.  Use fputs rather than
40259         fprintf for the format string with no format directive.
40261 2011-12-07  Eric Blake  <eblake@redhat.com>
40263         bootstrap: detect tools required by gnulib-tool
40264         * build-aux/bootstrap (buildreq): Provide minimum implicit
40265         dependencies.
40266         * DEPENDENCIES: Mention patch as a prereq.
40268 2011-12-04  Bruno Haible  <bruno@clisp.org>
40270         sethostname: Port to Windows platforms.
40271         * lib/sethostname.c: Provide an alternate implementation for Windows
40272         platforms.
40273         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40274         (main): Skip the test if sethostname() fails with EPERM. On Windows
40275         platforms, don't check the result of gethostname().
40277 2011-12-04  Bruno Haible  <bruno@clisp.org>
40278             Jim Meyering  <meyering@redhat.com>
40280         tests: Avoid spurious error message on platforms without mktemp program.
40281         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40283 2011-12-04  Bruno Haible  <bruno@clisp.org>
40285         sethostname: Fix documentation.
40286         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40287         "not fixed" section.
40289 2011-12-03  Bruno Haible  <bruno@clisp.org>
40291         gnulib-tool: Verify that the License field is present and non-empty.
40292         * gnulib-tool (func_get_license_raw): New function, extracted from
40293         func_get_license.
40294         (func_get_license): Use it. Warn if the module is not a test module and
40295         has no license.
40296         Suggested by Jim Meyering.
40298 2011-12-03  Bruno Haible  <bruno@clisp.org>
40300         sethostname tests: Fix link error on mingw.
40301         * tests/test-sethostname1.c: New file, extracted from
40302         tests/test-sethostname.c.
40303         * tests/test-sethostname2.c: New file, extracted from
40304         tests/test-sethostname.c.
40305         * tests/test-sethostname.c: Remove file.
40306         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40307         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40308         (Depends-on): Add gethostname.
40309         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40310         Link the latter with $(GETHOSTNAME_LIB).
40312         sethostname tests: Fix compilation error on mingw.
40313         * tests/test-sethostname.c: Don't include <sys/types.h>.
40314         (geteuid): Use a dummy value without uid_t.
40315         * modules/sethostname-tests (Depends-on): Remove sys_types.
40317         sethostname tests: Avoid a gcc warning.
40318         * tests/test-sethostname.c (main): Remove an unused variable.
40320         Tweak last commit.
40321         * modules/sethostname-tests (Files): Sort by decreasing importance.
40322         (configure.ac): Check for geteuid.
40323         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40324         the test when there's nothing to test. Drop an unnecessary cast.
40325         Improve an error message. Verify that the final sethostname() call
40326         succeeds.
40328 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40330         Add a test suite for the sethostname module.
40331         * modules/sethostname-tests: New file.  A test program
40332         for the sethostname module.
40333         * tests/test-sethostname.c: Likewise.
40335 2011-12-03  Bruno Haible  <bruno@clisp.org>
40337         Tweak last commit.
40338         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40339         Fix preprocessor directives indentation. Fix typos.
40340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40341         * modules/unistd (Makefile): Likewise.
40343 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40345         Integrate the sethostname module into unistd.
40346         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40347         into the unistd.h header.
40348         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40349         preprocessor directives.
40350         * modules/unistd: Setup the Makefile substitutions of the
40351         SETHOSTNAME preprocessor directives.
40353 2011-12-03  Bruno Haible  <bruno@clisp.org>
40355         Tweak last commit.
40356         * lib/sethostname.c: Don't include <string.h>.
40357         (sethostname): No need to copy the argument string to the stack. Don't
40358         call clearerr. Preserve errno when fprintf failed.
40359         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40360         Don't invoke AC_REPLACE_FUNCS.
40361         * modules/sethostname (Link): Remove empty section.
40362         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40363         failure problem.
40365 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40367         New module 'sethostname'.
40368         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40369         for systems that lack it.
40370         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40371         sethostname declaration and function.
40372         * modules/sethostname: New file.  Define the sethostname module.
40374 2011-12-03  Bruno Haible  <bruno@clisp.org>
40376         Tweak last commit.
40377         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40379 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40381         Split the HOST_NAME_MAX detection into a separate m4 macro.
40382         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40383         macro so it can be used by the pending sethostname module.
40385 2011-12-03  Bruno Haible  <bruno@clisp.org>
40387         Fix module descriptions syntax.
40388         * modules/argv-iter (License): Fix syntax.
40389         * modules/di-set (License): Likewise.
40390         * modules/ino-map (License): Likewise.
40391         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40393 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40395         stdalign: port to Clang 3.0
40396         Problem reported by Simon Josefsson in
40397         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40398         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40399         which has <stdalign.h> but which does not define alignof.
40400         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40402 2011-12-01  Eric Blake  <eblake@redhat.com>
40404         mktempd: silence dd usage
40405         * build-aux/mktempd (rand_bytes): Silence dd.
40407 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40409         manywarnings: Don't mention gcc version in docstring.
40410         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40411         Jim Meyering <meyering@redhat.com>.
40413 2011-11-30  Jim Meyering  <meyering@redhat.com>
40415         hash: mark a few floating point constants with "f" suffix
40416         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40417         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40418         floating point constants with "f", since they're destined to be
40419         saved/used as "float"s.
40421 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40423         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40424         * tests/test-float.c (test_long_double): Correct and re-enable the
40425         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40427 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40429         Avoid subtracting two pointers that don't point into the same block.
40430         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40431         only pointers into the same memory block are subtracted. We cannot
40432         assume that sizeof (ptrdiff_t) == sizeof (void *).
40434 2011-11-29  Eric Blake  <eblake@redhat.com>
40436         maint.mk: add syntax check for use of compare from init.sh
40437         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40438         moved here from coreutils.
40440         manywarnings: drop -Wunsuffixed-float-constants
40441         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40442         '1.0D', which is the only way to silence this warning for 'double'.
40444 2011-11-29  Jim Meyering  <meyering@redhat.com>
40446         hash: mark compute_bucket_size with the pure attribute
40447         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40449         quotearg, propername: correct pragma guard expression
40450         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40451         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40453 2011-11-28  Jim Meyering  <meyering@redhat.com>
40455         propername: do not mark proper_name with the const attribute
40456         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40457         since it examines data pointed to by its parameter.
40458         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40459         the suggestion from -Wsuggest-attribute=const.
40461         propername: mark one more function as const
40462         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40464 2011-11-27  Jim Meyering  <meyering@redhat.com>
40466         mark functions with const and pure attributes
40468         Mark functions per suggestions from gcc-4.6 when using these options:
40469         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40470         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40471         Follow these guidelines: when possible, apply the attribute to
40472         an extern declaration, not to its definition.  Apply it to the
40473         definition only when the definition is static.
40474         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40475         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40476         * lib/base64.h (isbase64): Likewise.
40477         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40478         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40479         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40480         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40481         (c_tolower, c_toupper): Likewise.
40482         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40483         * lib/chdir-long.c (find_non_slash): Likewise.
40484         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40485         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40486         * lib/file-type.h (file_type): Likewise.
40487         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40488         * lib/filevercmp.c (verrevcmp): Likewise.
40489         * lib/freadahead.h (freadahead): Likewise.
40490         * lib/fts.c (fts_maxarglen): Likewise.
40491         * lib/hash-pjw.h (hash_pjw): Likewise.
40492         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40493         * lib/hash.c (is_prime, next_prime): Likewise.
40494         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40495         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40496         (hash_table_ok, hash_get_first, hash_string): Likewise.
40497         (compute_bucket_size): Likewise.
40498         * lib/i-ring.h (i_ring_empty): Likewise.
40499         * lib/isnan.c (isnanl): Likewise.
40500         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40501         * lib/memcasecmp.h (memcasecmp): Likewise.
40502         * lib/memchr2.h (memchr2): Likewise.
40503         * lib/memcmp2.h (memcmp2): Likewise.
40504         * lib/parse-datetime.y (lookup_zone): Likewise.
40505         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40506         [!WINDOWS_SOCKETS]: Likewise.
40507         * lib/strnlen1.h (strnlen1): Likewise.
40508         * lib/uniwidth.in.h (uc_width): Likewise.
40509         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40510         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40511         (quoting_options_from_style): Add a comment.
40512         * lib/propername.h (proper_name): Add a comment.
40514 2011-11-27  Bruno Haible  <bruno@clisp.org>
40516         Remove unused macros from !_LIBC code in glibc-borrowed files.
40517         * lib/fnmatch.c (STRCOLL): Remove macro.
40518         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40519         * lib/glob.c (__stat, __readdir64): Remove macros.
40520         * lib/tempname.c (__open64, __xstat64): Remove macros.
40521         Suggested by Paul Eggert.
40523 2011-11-27  Bruno Haible  <bruno@clisp.org>
40525         getcwd: Fix link error on MSVC 9.
40526         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40528 2011-11-27  Bruno Haible  <bruno@clisp.org>
40530         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40531         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40532         HAVE_OPENDIR is 0.
40533         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40534         HAVE_CLOSEDIR is 0.
40535         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40536         is 0.
40537         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40539 2011-11-27  Bruno Haible  <bruno@clisp.org>
40541         getcwd: Fix bug from 2011-08-17.
40542         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40543         platforms that need it.
40544         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40545         code of 4 to be a failure, not a success. This ensures that
40546         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40548 2011-11-27  Bruno Haible  <bruno@clisp.org>
40550         binary-io tests: Avoid test failure on mingw when libtool is used.
40551         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40552         Don't verify the size of t-bin-out1.tmp here.
40553         * tests/test-binary-io.sh: Verify it here.
40554         Reported by Simon Josefsson.
40556 2011-11-26  Bruno Haible  <bruno@clisp.org>
40558         Fix conflict between two instantiations of module 'unistd'.
40559         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40560         ${include_guard_prefix} also in the autoconf snippet.
40561         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40563         GNULIB_UNISTD_H_GETOPT.
40564         * modules/getopt-posix (configure.ac): Set the
40565         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40566         * modules/getopt-gnu (configure.ac): Likewise.
40567         * modules/unistd (Makefile.am): Change the substitution value of
40568         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40569         Reported by Simon Josefsson.
40571 2011-11-25  Bruno Haible  <bruno@clisp.org>
40573         pagealign_alloc: Doc and comments.
40574         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40575         module.
40576         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40578 2011-11-25  Jim Meyering  <meyering@redhat.com>
40580         test-update-copyright.sh: avoid false-positive failure
40581         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40582         around false positive failure on Cygwin/Windows.  The latter was
40583         matching erroneously-created files with names like
40584         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40586 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40588         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
40589         * m4/valgrind-tests.m4: Check that the parameters that will be
40590         used works, not just a subset of them.  Reported by Bruno Haible
40591         <bruno@clisp.org>.
40593 2011-11-24  Jim Meyering  <meyering@redhat.com>
40595         test-stdalign.c: comment out long double tests
40596         * tests/test-stdalign.c: Don't try to reduce alignment of long double
40597         variables.  That provokes errors like this from gcc-4.7.0 20111124:
40598         error: '_Alignas' specifiers cannot reduce alignment of \
40599         'static_longdouble_alignas'.
40601 2011-11-22  Jim Meyering  <meyering@redhat.com>
40603         init.sh: make "compare /dev/null FILE" output more readable
40604         * tests/init.sh (compare_): Document the preferred order of arguments.
40605         (emit_diff_u_header_): New function.
40606         (compare_dev_null_): Emit a simulated diff, rather than just the
40607         contents of the unexpected file.  Suggestion from Bruno Haible.
40609 2011-11-21  Jim Meyering  <meyering@redhat.com>
40610             Eric Blake  <eblake@redhat.com>
40612         init.sh: work around OSF/1 5.1's mishandling of /dev/null
40613         * tests/init.sh: Make our compare function slightly more portable.
40614         Reported by Bruno Haible in
40615         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
40617 2011-11-21  Simon Josefsson  <simon@josefsson.org>
40619         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
40620         before using it, in code that ends up in config.h.
40622 2011-11-20  Bruno Haible  <bruno@clisp.org>
40624         getcwd: Work around getcwd bug on AIX 5..7.
40625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
40626         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
40627         Use a different value for gl_cv_func_getcwd_path_max. Move the
40628         definition of HAVE_PARTLY_WORKING_GETCWD from here...
40629         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
40630         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
40631         Define HAVE_MINIMALLY_WORKING_GETCWD.
40632         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
40633         where it is not even minimally working, that is, on AIX.
40634         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
40635         m4/getcwd-path-max.m4.
40636         (main): Update exit code computation.
40637         * doc/posix-functions/getcwd.texi: Mention list of platforms where
40638         getcwd does not handle long file names.
40640 2011-11-20  Bruno Haible  <bruno@clisp.org>
40642         getcwd: Fix bug from 2009-09-10.
40643         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
40644         like "no".
40646 2011-11-20  Simon Josefsson  <simon@josefsson.org>
40648         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
40650 2011-11-20  Bruno Haible  <bruno@clisp.org>
40652         fma tests: Avoid shadowing local variables.
40653         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
40654         expected.
40656 2011-11-20  Bruno Haible  <bruno@clisp.org>
40658         copysignf tests: Fix.
40659         * tests/test-copysignf.c: Fix signature check.
40661 2011-11-20  Bruno Haible  <bruno@clisp.org>
40663         fma: Remove unused code.
40664         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
40665         unused macros.
40667 2011-11-20  Bruno Haible  <bruno@clisp.org>
40669         sethostname: Fix doc about AIX.
40670         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
40671         sethostname; it has it.
40673         sethostname: Mention more portability problems.
40674         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
40675         problem.
40676         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
40678 2011-11-19  Bruno Haible  <bruno@clisp.org>
40680         Depend on module fcntl-h when AT_FDCWD is used.
40681         * modules/utimens (Depends-on): Add fcntl-h.
40682         * modules/areadlinkat (Depends-on): Likewise.
40683         * modules/areadlinkat-with-size (Depends-on): Likewise.
40684         * modules/faccessat (Depends-on): Likewise.
40685         * modules/fchmodat (Depends-on): Likewise.
40686         * modules/fchownat (Depends-on): Likewise.
40687         * modules/getcwd (Depends-on): Likewise.
40688         * modules/mkdirat (Depends-on): Likewise.
40689         * modules/mkfifoat (Depends-on): Likewise.
40690         * modules/readlinkat (Depends-on): Likewise.
40691         * modules/symlinkat (Depends-on): Likewise.
40692         * modules/dup2-tests (Depends-on): Likewise.
40693         * modules/fdutimensat-tests (Depends-on): Likewise.
40694         * modules/futimens-tests (Depends-on): Likewise.
40696 2011-11-19  Bruno Haible  <bruno@clisp.org>
40698         euidaccess: Update a comment.
40699         * lib/euidaccess.c: Update comment about platforms with faccessat.
40701 2011-11-19  Bruno Haible  <bruno@clisp.org>
40703         openat: Fix file list.
40704         * modules/openat (Files): Remove lib/at-func.c.
40706 2011-11-19  Bruno Haible  <bruno@clisp.org>
40708         fstatat: Simplify.
40709         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
40710         gnulib should define rpl_fstatat, there is a
40711         "#define fstatat rpl_fstatat" in <sys/stat.h>.
40713 2011-11-19  Bruno Haible  <bruno@clisp.org>
40715         Ensure 'inline' can be used in tests/test-utimens-common.h.
40716         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
40717         * modules/futimens-tests (configure.ac): Likewise.
40718         * modules/utimens-tests (configure.ac): Likewise.
40719         * modules/utimensat-tests (configure.ac): Likewise.
40721 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40723         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
40724         not hash_insert0.
40725         (hash_insert_if_absent): Doc fix.
40727 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40729         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
40731 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
40733         test-getcwd: disambiguate exit status
40734         * tests/test-getcwd.c (test_long_name): Return 0..7.
40735         (main): Exit with an unambiguous exit status.  The old
40736         code yielded a mysterious mixture of two failure codes.
40738         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
40739         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
40740         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
40741         rpl_fstatat or fstatat.  This should fix the other problem
40742         reported by Kai Habel in
40743         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40744         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
40745         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
40746         and I reproduced it on a Solaris 8 host we still have in production.
40748 2011-11-18  Jim Meyering  <meyering@redhat.com>
40750         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
40751         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
40752         Add a sentence to the comment.
40753         (hash_insert0): New function that simply calls hash_insert_if_absent.
40754         * lib/hash.h (hash_insert_if_absent): Declare it.
40755         (hash_insert0): Add deprecation attribute.
40756         (_GL_ATTRIBUTE_DEPRECATED): Define.
40757         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
40758         not hash_insert0.
40759         * NEWS: Mention it, even though it's not really an incompatible change.
40761 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
40763         openat: avoid compilation failure due to lack of <errno.h> inclusion
40764         * lib/openat.c: Include <errno.h>.
40766 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40768         * modules/getcwd (Depends-on): Add fdopendir.
40769         This fixes one of the two problems reported by Kai Habel in
40770         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40772         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
40773         stdalign problem reported by Ian Beckwith in
40774         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
40775         * modules/crypto/gc-arcfour (Depends-on):
40776         Depend conditionally on crypto/arcfour.
40777         * modules/crypto/gc-arctwo (Depends-on):
40778         Depend conditionally on crypto/arctwo.
40779         * modules/crypto/gc-des (Depends-on):
40780         Depend conditionally on crypto/des.
40781         * modules/crypto/gc-hmac-md5 (Depends-on):
40782         Depend conditionally on crypto/hmac-md5.
40783         * modules/crypto/gc-hmac-sha1 (Depends-on):
40784         Depend conditionally on crypto/hmac-sha1.
40785         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
40786         * modules/crypto/gc-md4 (Depends-on):
40787         Depend conditionally on crypto/md4.
40788         * modules/crypto/gc-md5 (Depends-on):
40789         Depend conditionally on crypto/md5.
40790         * modules/crypto/gc-rijndael (Depends-on):
40791         Depend conditionally on crypto/rijndael.
40792         * modules/crypto/gc-sha1 (Depends-on):
40793         Depend conditionally on crypto/sha1.
40794         * modules/crypto/gc-arcfour:
40795         * modules/crypto/gc-arctwo:
40796         * modules/crypto/gc-des:
40797         * modules/crypto/gc-hmac-md5:
40798         * modules/crypto/gc-hmac-sha1:
40799         * modules/crypto/gc-md2:
40800         * modules/crypto/gc-md4:
40801         * modules/crypto/gc-md5:
40802         * modules/crypto/gc-rijndael:
40803         * modules/crypto/gc-sha1:
40804         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
40805         now that the conditional dependencies do the work for us.
40807 2011-11-17  Jim Meyering  <meyering@redhat.com>
40809         tests: factor st_ctime-comparison out of two headers
40810         * tests/test-utimens-common.h (ctime_compare): Define.
40811         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
40812         * tests/test-lutimens.h (test_lutimens): Likewise.
40813         * tests/test-utimens.h (test_utimens): Likewise.
40815         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
40816         Invoke the test program via an init.sh-using wrapper.
40817         * tests/test-getcwd.sh: New file.
40818         * modules/getcwd-tests (Files): Add it.
40819         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
40821 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
40823         gitlog-to-changelog: support multi-author commits.
40824         The FSF cares about keeping track of all authors of patches to its
40825         projects, but Git doesn't provide obvious support for multi-author
40826         changesets. Consensus seems to be forming around the use of extra
40827         Signed-off-by inspired lines in the log message formatted as
40828         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
40829         multi-author commits between version control systems.
40830         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
40831         log message and output in standard ChangeLog multi-author format.
40832         Reported by Peter Rosin <peda@lysator.liu.se>
40834 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
40835             Bruno Haible  <bruno@clisp.org>
40837         Fix some modules' file list.
40838         * modules/fstatat (Files): Add m4/lstat.m4.
40839         * modules/openat (Files): Likewise.
40840         * modules/unlinkat (Files): Likewise.
40842 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
40844         maint.mk: fix tight-scope.mk generation in VPATH builds.
40845         * top/maint.mk (tight-scope.mk): Make sure to prefix file
40846         reference with $(srcdir) so that the file is found correctly even
40847         when running `make syntax-check' in a VPATH build.
40849 2011-11-13  Bruno Haible  <bruno@clisp.org>
40850             Jim Meyering  <meyering@redhat.com>
40852         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
40853         * tests/init.sh (compare): Remove "No differences encountered" or
40854         synonymous output from the 'diff' program.
40856 2011-11-13  Bruno Haible  <bruno@clisp.org>
40858         Makefile: Tweak indentation.
40859         * Makefile: Use tab as first character in every line that contains rule
40860         commands.
40862 2011-11-13  Bruno Haible  <bruno@clisp.org>
40864         Syntax check for copyright statements.
40865         * check-copyright: New file.
40866         * Makefile (sc_check_copyright): New rule.
40868 2011-11-13  Simon Josefsson  <simon@josefsson.org>
40870         * build-aux/git-version-gen: Add --prefix to configure the tag
40871         match string.
40873 2011-11-13  Simon Josefsson  <simon@josefsson.org>
40875         * build-aux/git-version-gen: Add --help and --version.
40877 2011-11-12  Jim Meyering  <meyering@redhat.com>
40879         revamp the other test-exclude?.sh scripts to use init.sh, too
40880         * tests/test-exclude1.sh: Use init.sh.
40881         * tests/test-exclude2.sh: Likewise.
40882         * tests/test-exclude3.sh: Likewise.
40883         * tests/test-exclude4.sh: Likewise.
40884         * tests/test-exclude5.sh: Likewise.
40885         * tests/test-exclude6.sh: Likewise.
40886         * tests/test-exclude7.sh: Likewise.
40887         * tests/test-exclude8.sh: Likewise.
40888         * modules/exclude-tests (Files): List init.sh.
40890         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
40891         These shell scripts ignored failure of the binary test-exclude,
40892         so making the latter return 77 didn't cause them to be skipped.
40893         * tests/test-exclude5.sh: Exit with test-exclude's error status
40894         when that program fails.  Revamp to use init.sh.
40895         * tests/test-exclude2.sh: Likewise.
40897         test-exclude: fix a typo
40898         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
40900 2011-11-11  Bruno Haible  <bruno@clisp.org>
40902         obstack: Fix compilation error on MSVC 9.
40903         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
40905 2011-11-11  Jim Meyering  <meyering@redhat.com>
40907         test-exclude: skip tests rather than failing on deficient systems
40908         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
40909         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
40910         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
40911         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
40913 2011-11-10  Bruno Haible  <bruno@clisp.org>
40915         ptsname_r test: Avoid gcc warning on glibc systems.
40916         * tests/test-ptsname_r.c (null_ptr): New function.
40917         (test_errors): Use it.
40919 2011-11-10  Bruno Haible  <bruno@clisp.org>
40921         ptsname_r: Avoid compilation error on OSF/1 5.1.
40922         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
40923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
40924         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
40925         function is not declared or incompatibly declared.
40926         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
40927         * modules/ptsname_r (Depends-on, configure.ac): Update.
40928         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
40930 2011-11-10  Bruno Haible  <bruno@clisp.org>
40932         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
40933         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
40934         When cross-compiling, guess yes on all platforms except AIX.
40935         Reported by Ludovic Courtès <ludo@gnu.org>.
40937 2011-11-09  Bruno Haible  <bruno@clisp.org>
40939         ptsname_r tests: Fix bugs.
40940         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
40941         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
40943 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40945         fstatat: work with cross-compilation
40946         Problem reported by Ludovic Courtès in
40947         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
40948         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
40949         "cross-compiling" and assume the bug is present.  Replace
40950         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
40951         an inverted sense, to be more conservative about our assumptions.
40952         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
40954 2011-11-09  Bruno Haible  <bruno@clisp.org>
40956         Improve MODULES.html output.
40957         * modules/mkfifoat (Description): Use the word "function".
40958         * modules/readlinkat (Description): Likewise.
40959         * modules/symlinkat (Description): Likewise.
40961 2011-11-09  Eric Blake  <eblake@redhat.com>
40963         ptsname_r-tests: new test module
40964         * modules/ptsname_r-tests: New module.
40965         * tests/test-ptsname_r.c: New file.
40967         ptsname_r: new module
40968         * modules/ptsname_r: New module.
40969         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
40970         * lib/ptsname.c (__ptsname_r): Split...
40971         * lib/ptsname_r.c: ...into new file.
40972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
40973         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
40974         * modules/stdlib (Makefile.am): Substitute witnesses.
40975         * lib/stdlib.in.h (ptsname_r): Declare it.
40976         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
40977         * MODULES.html.sh (Misc): Likewise.
40978         * modules/ptsname (Depends-on): Alter dependency.
40979         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
40981 2011-11-09  Jim Meyering  <meyering@redhat.com>
40983         announce-gen: be more concise when there's only one URL+tarball
40984         * build-aux/announce-gen (get_tool_versions): When you distribute
40985         only one type of tarball, combine the first two "Here are..."
40986         sections and make the key-checking grammar independent of
40987         how many tarballs there are.
40989 2011-11-09  Eric Blake  <eblake@redhat.com>
40991         openpty: provide a stub on mingw
40992         * lib/pty.in.h (includes): Provide forward declarations.
40993         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
40995         raise: fix mingw handling of SIGPIPE
40996         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
40998 2011-11-08  Bruno Haible  <bruno@clisp.org>
41000         More conditional dependencies.
41001         * modules/faccessat (Depends-on): Add conditions.
41002         * modules/fchmodat (Depends-on): Likewise.
41003         * modules/fchownat (Depends-on): Likewise.
41004         * modules/fstatat (Depends-on): Likewise.
41005         * modules/mkfifoat (Depends-on): Likewise.
41006         * modules/readlinkat (Depends-on): Likewise.
41007         * modules/symlinkat (Depends-on): Likewise.
41008         * modules/unlinkat (Depends-on): Likewise.
41009         * modules/utimensat (Depends-on): Likewise.
41010         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41011         * modules/linkat (Depends-on): Refine the conditions.
41012         * modules/renameat (Depends-on): Likewise.
41014 2011-11-08  Bruno Haible  <bruno@clisp.org>
41016         faccessat: Move AC_LIBOBJ invocation to module description.
41017         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41018         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41019         invocation from here...
41020         * modules/faccessat (configure.ac): ... to here. Invoke
41021         gl_PREREQ_FACCESSAT.
41023 2011-11-08  Bruno Haible  <bruno@clisp.org>
41025         faccessat: Simplify autoconf macro.
41026         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41027         gl_FUNC_EUIDACCESS.
41029 2011-11-08  Bruno Haible  <bruno@clisp.org>
41031         renameat: Fix dependencies.
41032         * modules/renameat (Depends-on): Add stdbool.
41034 2011-11-08  Bruno Haible  <bruno@clisp.org>
41036         mkfifoat: Fix module description.
41037         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41038         not gl_UNISTD_MODULE_INDICATOR.
41040 2011-11-08  Bruno Haible  <bruno@clisp.org>
41042         fstatat: Remove unused dependency.
41043         * modules/fstatat (Depends-on): Remove fstat.
41045 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41047         GNUmakefile: behave when Makefile is missing.
41048         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41050 2011-11-08  Bruno Haible  <bruno@clisp.org>
41052         openat: Conditionalize dependencies.
41053         * lib/openat.c: Reduce the scope of some #includes.
41054         * modules/openat (Depends-on): Add conditions.
41056 2011-11-07  Jim Meyering  <meyering@redhat.com>
41058         maint.mk: extract GPG key ID without using a temporary file
41059         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41060         without using a temporary file.  Based on a suggestion from Werner Koch
41061         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41063 2011-11-07  Eric Blake  <eblake@redhat.com>
41065         grantpt: fix typo
41066         * lib/stdlib.in.h (grantpt): Check correct function.
41068         maint.mk: silence new syntax check
41069         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41071 2011-11-06  Bruno Haible  <bruno@clisp.org>
41073         Doc about floating-point and math API.
41074         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41075         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41077 2011-11-06  Bruno Haible  <bruno@clisp.org>
41079         stdalign tests: Skip the test when compiled by Sun C.
41080         * tests/test-stdalign.c (main): Skip the test on Sun C.
41082 2011-11-06  Bruno Haible  <bruno@clisp.org>
41084         ansi-c++-opt: Complete the 2011-06-05 change.
41085         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41086         does not support namespaces, set the variable to "no", not to ":".
41088 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41090         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41092 2011-11-06  Bruno Haible  <bruno@clisp.org>
41094         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41095         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41096         (minus_zerol) [HP-UX]: New macro.
41097         (unary_minus) [HP-UX]: New function.
41098         (copysignl) [HP-UX]: Use unary_minus function.
41100 2011-11-06  Bruno Haible  <bruno@clisp.org>
41102         ldexp, ldexpf, ldexpl: Enhance tests.
41103         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41104         and tests/test-ldexpl.c.
41105         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41106         LDEXP, MIN_EXP, MAX_EXP): New macros.
41107         Include test-ldexp.h.
41108         (main): Just call test_function.
41109         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41110         infinity.h, nan.h.
41111         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41112         MAX_EXP): New macros.
41113         Include test-ldexp.h.
41114         (x, y): Remove variables.
41115         (main): Just call test_function.
41116         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41117         infinity.h, nan.h.
41118         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41119         MAX_EXP): New macros.
41120         Include test-ldexp.h.
41121         (x, y): Remove variables.
41122         (main): Just call test_function.
41123         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41124         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41125         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41126         (Depends-on): Add isnand-nolibm, signbit, float.
41127         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41128         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41129         (Depends-on): Add isnanf-nolibm, signbit, float.
41131 2011-11-06  Bruno Haible  <bruno@clisp.org>
41133         math tests: Cosmetics.
41134         * tests/test-math-c++.cc: Reorder declarations.
41136 2011-11-05  Bruno Haible  <bruno@clisp.org>
41138         fma*: Simplify test.
41139         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41140         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41142         Tests for module 'fmal'.
41143         * modules/fmal-tests: New file.
41144         * tests/test-fmal1.c: New file.
41145         * tests/test-fmal2.c: New file.
41147         New module 'fmal'.
41148         * lib/math.in.h (fmal): New declaration.
41149         * lib/fmal.c: New file.
41150         * m4/fmal.m4: New file.
41151         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41153         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41154         REPLACE_FMAL.
41155         * modules/fmal: New file.
41156         * doc/posix-functions/fmal.texi: Mention the new module and the various
41157         bugs.
41159         Tests for module 'fmaf'.
41160         * modules/fmaf-tests: New file.
41161         * tests/test-fmaf1.c: New file.
41162         * tests/test-fmaf2.c: New file.
41164         New module 'fmaf'.
41165         * lib/math.in.h (fmaf): New declaration.
41166         * lib/fmaf.c: New file.
41167         * m4/fmaf.m4: New file.
41168         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41170         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41171         REPLACE_FMAF.
41172         * modules/fmaf: New file.
41173         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41174         bugs.
41176         Tests for module 'fma'.
41177         * modules/fma-tests: New file.
41178         * tests/test-fma1.c: New file.
41179         * tests/test-fma1.h: New file.
41180         * tests/test-fma2.c: New file.
41181         * tests/test-fma2.h: New file.
41183         New module 'fma'.
41184         * lib/math.in.h (fma): New declaration.
41185         * lib/fma.c: New file.
41186         * m4/fma.m4: New file.
41187         * m4/fegetround.m4: New file.
41188         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41190         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41191         REPLACE_FMA.
41192         * modules/fma: New file.
41193         * doc/posix-functions/fma.texi: Mention the new module and the various
41194         bugs.
41196         Extend gl_MATHFUNC.
41197         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41198         Support 'void' as argument type.
41199         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41201 2011-11-05  Jim Meyering  <meyering@redhat.com>
41203         maint.mk: also prohibit inclusion of dirent.h without use
41204         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41206 2011-11-05  Bruno Haible  <bruno@clisp.org>
41208         ldexpl tests: Avoid test failure on MSVC 9.
41209         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41210         value. Needed in order to enforce the conversion from a value greater
41211         than LDBL_MAX to Infinity.
41213 2011-11-05  Bruno Haible  <bruno@clisp.org>
41215         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41216         * modules/at-internal: New file, extracted from modules/openat.
41217         * modules/openat-h: New file.
41218         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41219         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41220         * modules/openat (Description): Add reference to POSIX function.
41221         (Files): Remove lib/openat.h, lib/openat-proc.c.
41222         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41223         intprops, unistd.
41224         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41225         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41226         gl_FCNTL_MODULE_INDICATOR.
41227         (Include): Remove unistd.h, openat.h.
41228         * modules/areadlinkat (Files): Add lib/at-func.c.
41229         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41230         openat-die, openat-h, save-cwd.
41231         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41232         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41233         openat-die, openat-h, save-cwd, unistd.
41234         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41235         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41236         openat-h, save-cwd. Remove fcntl-h, openat.
41237         * modules/fchmodat (Files): Remove lib/openat.h.
41238         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41239         openat, stdbool, unistd.
41240         * modules/fchownat (Files): Remove lib/openat.h.
41241         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41242         openat, stdbool, sys_stat.
41243         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41244         lib/openat-proc.c.
41245         (Depends-on): Add at-internal.
41246         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41247         * modules/fstatat (Files): Remove lib/openat.h.
41248         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41249         stdbool, unistd.
41250         * modules/fts (Depends-on): Add openat-h.
41251         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41252         openat.
41253         * modules/mkdirat (Files): Remove lib/openat.h.
41254         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41255         openat, stdbool, sys_stat.
41256         * modules/mkfifoat (Files): Add lib/at-func.c.
41257         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41258         openat-h, save-cwd. Remove fcntl-h, openat.
41259         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41260         * modules/readlinkat (Files): Add lib/at-func.c.
41261         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41262         openat-h, save-cwd. Remove fcntl-h, openat.
41263         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41264         openat.
41265         * modules/selinux-at (Files): Add lib/at-func.c.
41266         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41267         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41268         * modules/symlinkat (Files): Add lib/at-func.c.
41269         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41270         openat-h, save-cwd. Remove fcntl-h, openat.
41271         * modules/unlinkat (Files): Remove lib/openat.h.
41272         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41273         stdbool.
41274         * modules/utimensat (Files): Add lib/at-func.c.
41275         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41276         openat-die, openat-h, save-cwd.
41277         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41278         * modules/fdutimensat-tests (Depends-on): Add openat.
41279         * modules/fstatat-tests (Depends-on): Add openat-h.
41280         * modules/readlinkat-tests (Depends-on): Add openat.
41281         * modules/symlinkat-tests (Depends-on): Add openat.
41283 2011-11-05  Bruno Haible  <bruno@clisp.org>
41285         openat: Include <stdbool.h>.
41286         * lib/openat.c: Include <stdbool.h>.
41288 2011-11-04  Bruno Haible  <bruno@clisp.org>
41290         fchownat, renameat, unlinkat: Fix dependencies.
41291         * modules/fchownat (Depends-on): Add fstatat.
41292         * modules/renameat (Depends-on): Likewise.
41293         * modules/unlinkat (Depends-on): Likewise.
41295 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41297         openat: remove direct dependency on dirent
41298         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41299         and hasn't been needed ever since fdopendir was split into its own
41300         module on 2009-08-31.
41301         * modules/openat (Depends-on): Remove dirent.
41303 2011-11-04  Bruno Haible  <bruno@clisp.org>
41305         renameat: Optimize code size.
41306         * modules/renameat (configure.ac): Don't compile at-func2.c if
41307         REPLACE_RENAMEAT is 1.
41309 2011-11-04  Bruno Haible  <bruno@clisp.org>
41311         openat tests: Fix file list.
41312         * modules/openat-tests (Files): Add tests/test-open.h.
41314 2011-11-04  Bruno Haible  <bruno@clisp.org>
41316         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41317         * modules/fchmodat (Depends-on): Add openat-die.
41318         * modules/fchownat (Depends-on): Likewise.
41319         * modules/linkat (Depends-on): Likewise.
41320         * modules/renameat (Depends-on): Likewise.
41321         * modules/openat (Depends-on): Add dirent.
41323 2011-11-04  Jim Meyering  <meyering@redhat.com>
41325         at-func*.c: fix comments
41326         * lib/at-func2.c: Correct/improve first-line comment.
41327         * lib/at-func.c: Correct grammar in first-line comment.
41329 2011-11-04  Bruno Haible  <bruno@clisp.org>
41331         New module 'mkdirat', split off from module 'openat'.
41332         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41333         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41334         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41335         * modules/mkdirat: New file, extracted from modules/openat.
41336         * modules/openat (Files): Remove lib/mkdirat.c.
41337         (Depends-on): Remove mkdir.
41338         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41339         (Include): Remove <sys/stat.h>.
41340         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41341         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41342         tests/test-mkdir.h.
41343         (Depends-on): Remove ignore-value.
41344         (Makefile.am): Remove rules for test-mkdirat.
41345         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41346         of module 'openat'.
41347         * NEWS: Mention the change.
41349 2011-11-04  Bruno Haible  <bruno@clisp.org>
41351         closedir: Avoid warning on mingw.
41352         * lib/closedir.c: Include <unistd.h>.
41354 2011-11-04  Bruno Haible  <bruno@clisp.org>
41356         New module 'fstatat', split off from module 'openat'.
41357         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41358         defined.
41359         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41360         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41361         gl_FUNC_FSTATAT.
41362         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41363         * modules/fstatat: New file, extracted from modules/openat.
41364         * modules/openat (Files): Remove lib/fstatat.c.
41365         (Depends-on): Remove lstat.
41366         (configure.ac): Remove AC_LIBOBJ of fstatat.
41367         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41368         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41369         tests/test-lstat.h, tests/test-stat.h.
41370         (Depends-on): Remove getcwd-lgpl.
41371         (Makefile.am): Remove rules for test-fstatat.
41372         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41373         of module 'openat'.
41374         * NEWS: Mention the change.
41375         * modules/getcwd (Depends-on): Add fstatat.
41376         * modules/linkat (Depends-on): Likewise.
41377         * modules/mkfifoat-tests (Depends-on): Likewise.
41378         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41380 2011-11-03  Bruno Haible  <bruno@clisp.org>
41382         New module 'unlinkat', split off from module 'openat'.
41383         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41384         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41385         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41386         * modules/unlinkat: New file, extracted from modules/openat. Correct
41387         the dependency conditions.
41388         * modules/openat (Files): Remove lib/unlinkat.c.
41389         (Depends-on): Remove rmdir, unlink.
41390         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41391         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41392         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41393         tests/test-rmdir.h, tests/test-unlink.h.
41394         (Depends-on): Remove unlinkdir.
41395         (Makefile.am): Remove rules for test-unlinkat.
41396         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41397         of module 'openat'.
41398         * NEWS: Mention the change.
41399         * modules/linkat-tests (Depends-on): Add unlinkat.
41400         * modules/mkfifoat-tests (Depends-on): Likewise.
41401         * modules/readlinkat-tests (Depends-on): Likewise.
41403 2011-11-02  Bruno Haible  <bruno@clisp.org>
41405         New module 'fchmodat', split off from module 'openat'.
41406         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41407         defined.
41408         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41409         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41410         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41411         * modules/fchmodat: New file, extracted from modules/openat.
41412         * modules/openat (Files): Remove lib/fchmodat.c.
41413         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41414         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41415         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41416         (Makefile.am): Remove rules for test-fchmodat.
41417         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41418         of module 'openat'.
41419         * NEWS: Mention the change.
41421 2011-11-02  Jim Meyering  <meyering@redhat.com>
41423         putenv: indent #definition of "environ" to placate cppi
41424         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41426         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41427         Git logs are often treated as immutable, because editing them
41428         changes the SHA1 checksums of all descendants.  Thus, errors in
41429         git logs tend to stay there forever.  However, when we generate
41430         a ChangeLog file -- typically for distribution -- from that git log,
41431         we can actually make corrections in the generated file.  The key
41432         lies in recording in machine-readable/applicable form the desired
41433         corrections.  See --help for description and an example.
41434         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41435         (usage): Describe it; alphabetize option descriptions.
41436         (main): Honor the new option, carefully.
41438 2011-11-01  Jim Meyering  <meyering@redhat.com>
41440         gitlog-to-changelog: avoid an infloop
41441         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41442         that ends up being empty.
41444 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41446         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41447         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41448         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41449         contains (possibly-quoted) backslashes.  This should avoid
41450         all-too-common shell bugs if COMPLICATED contains backslashes in
41451         the "wrong" places.  Reported by David Evans in
41452         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41453         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41454         because we want ASCII ranges.  Is there some reason we don't use
41455         the C locale everywhere in this script?
41456         (func_module, top level): Avoid unwanted pathname expansion when
41457         $repo_url_prefix or $repo_url_suffix_repl contain shell
41458         metacharacters like '?' and '*'.
41460 2011-11-01  Bruno Haible  <bruno@clisp.org>
41462         fchownat: Improve description.
41463         * modules/fchownat (Description): Add link to function.
41465 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41467         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41468         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41469         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41470         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41472 2011-11-01  Bruno Haible  <bruno@clisp.org>
41474         alignof: Avoid collision with stdalign module.
41475         * lib/alignof.h (alignof): Remove macro.
41476         * NEWS: Mention the change.
41477         Reported by Paul Eggert.
41479 2011-11-01  Bruno Haible  <bruno@clisp.org>
41481         New module 'fchownat', split off from module 'openat'.
41482         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41483         defined.
41484         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41485         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41486         invoke gl_FUNC_FCHOWNAT.
41487         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41488         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41489         * modules/fchownat: New file, extracted from modules/openat.
41490         * modules/openat (Files): Remove lib/fchownat.c.
41491         (Depends-on): Remove lchown.
41492         (configure.ac): Remove AC_LIBOBJ of fchownat.
41493         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41494         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41495         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41496         (Depends-on): Remove mgetgroups, usleep, stat-time.
41497         (configure.ac): Remove test for getegid.
41498         (Makefile.am): Remove rules for test-fchownat.
41499         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41500         of module 'openat'.
41501         * NEWS: Mention the change.
41503 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41505         stdalign: port better to MSVC and to Sun C 5.11
41506         This fixes some of the problems reported by Bruno Haible in
41507         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41508         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41509         shortcomings of MSVC and of Sun C 5.11.
41510         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41511         around __declspec arg.
41512         * modules/stdalign-tests (Files): Add tests/macros.h.
41513         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41514         Include macros.h, for ASSERT.
41515         (DECLARE_ALIGNED): Remove.
41516         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41517         to catch bug), and to 1 if not (simplifies the rest of the code).
41518         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41519         (CHECK_AUTO): Remove.
41520         (CHECK_ALIGNED): Check only the alignment of the static vars,
41521         since auto var alignment isn't supported by Sun C 5.11.
41522         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41523         ASSERT failures are easier to diagnose.
41525 2011-10-31  Bruno Haible  <bruno@clisp.org>
41527         doc about some IRIX 5.3 problems.
41528         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41529         on IRIX 5.3.
41530         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41531         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41532         5.3.
41533         * doc/posix-functions/grantpt.texi: Likewise.
41534         * doc/posix-functions/unlockpt.texi: Likewise.
41535         * doc/posix-functions/lgamma.texi: Likewise.
41536         * doc/posix-functions/nextafter.texi: Likewise.
41537         * doc/posix-functions/remainder.texi: Likewise.
41538         * doc/posix-functions/select.texi: Mention misplaced declaration on
41539         IRIX 5.3.
41540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41542 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41544         gitlog-to-changelog: fix git-log invocation.
41545         git-log mishandles date strings before 1970-01-01 UTC, and there is
41546         no use to specify --since=1970-01-01 by default anyway.
41547         * build-aux/gitlog-to-changelog: By default, when no --since option
41548         was given, do not specify explicit --since option to git-log.
41550 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41552         gitlog-to-changelog: new option --append-dot.
41553         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41554         first non-blank line of each commit message terminated with a dot.
41556 2011-10-30  Bruno Haible  <bruno@clisp.org>
41558         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41559         * lib/ffsl.h: Include <config.h>.
41560         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41562 2011-10-30  Jim Meyering  <meyering@redhat.com>
41564         GNUmakefile: reenable "make syntax-check" for most projects
41565         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41566         build-aux variable", "syntax-check" would do nothing but succeed with
41567         the "No version control files detected..." diagnostic (unless you
41568         happened to override _build-aux via cfg.mk).
41569         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41570         to precede inclusion of maint.mk.  Otherwise, these variables would
41571         be used undefined in any project that does not override the default.
41573 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41575         gitlog-to-changelog: treat a message with only blank lines as empty.
41576         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41577         trailing blank lines before the code that issues a warning about an
41578         empty commit message.
41580 2011-10-30  Jim Meyering  <meyering@redhat.com>
41582         test-parse-datetime.c: avoid new DST-related false positive test failure
41583         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41584         based on the time/date we'll convert, not the current time.
41585         Otherwise, the moment we cross a DST boundary like today's in
41586         Europe, (CEST to CET), that offset ends up being one hour off.
41588 2011-10-27  Bruno Haible  <bruno@clisp.org>
41590         fstat: Tweak documentation.
41591         * modules/fstat (Description): More precise description.
41593 2011-10-27  Bruno Haible  <bruno@clisp.org>
41595         Update documentation regarding 'largefile' module.
41596         * doc/posix-functions/fstat.texi: Tweak wording.
41597         * doc/posix-functions/opendir.texi: Mention that the module fixes the
41598         problems with huge directories and/or small ino_t types.
41599         * doc/posix-functions/readdir.texi: Likewise.
41600         * doc/posix-functions/rewinddir.texi: Likewise.
41602 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
41604         maint.mk: don't maintain a second build-aux variable.
41605         * maint.mk (build_aux): Removed.  The maintainer-makefile module
41606         depends on GNUmakefile, which already maintains a cfg.mk
41607         overridable $(_build-aux) for projects with a non-standard
41608         build-aux directory location, although without the $(srcdir)
41609         prefix.  Use that variable consistently instead of introducing a
41610         second one.  Adjust all call sites.
41612 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41614         Add stdalign module and use it in other modules.
41615         This is based on a previous proposal by Bruno Haible
41616         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
41618         stdalign: new module
41619         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
41620         * modules/stdalign: New files.
41621         * MODULES.html.sh (c1x_core_properties): Add stdalign.
41622         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
41624         stdalign-tests: new module
41625         * modules/stdalign-tests, tests/test-stdalign.c: New files.
41627         argp: use stdalign
41628         * lib/argp-parse.c: Include <stdalign.h>.
41629         (alignof): Remove.
41630         * modules/argp (Depends-on): Add stdalign.
41632         crypto libraries: use stdalign
41633         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
41634         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
41635         Do not include <stdlib.h> twice, in md4.c.
41636         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
41637         because we are accessing a pointer's bit-pattern, not a size.
41638         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
41639         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
41640         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
41641         * modules/crypto/sha512: Likewise.
41643         sys_socket: use stdalign, not alignof
41644         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
41645         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
41647 2011-10-27  Bruno Haible  <bruno@clisp.org>
41649         raise test: Avoid a test failure on Linux/MIPS.
41650         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
41651         because 99 is a valid signal on Linux/MIPS.
41653 2011-10-27  Bruno Haible  <bruno@clisp.org>
41655         nonblocking tests: Fix test failure on Linux/MIPS.
41656         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
41657         Set to 270000.
41659 2011-10-27  Bruno Haible  <bruno@clisp.org>
41661         utimensat: Work around problem on Linux/hppa.
41662         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
41663         values.
41664         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
41666 2011-10-25  Jim Meyering  <meyering@redhat.com>
41668         maint.mk: fix a bug in sc_prohibit_stddef_without_use
41669         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
41670         after symbols like NULL, size_t, etc.
41671         Reported by Alfred M. Szmidt.
41673         maint.mk: exempt ENODATA from a syntax-check rule
41674         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
41675         from the sc_prohibit_always-defined_macros syntax-check rule.
41676         Add a comment.  See this for more details:
41677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
41679 2011-10-23  Jim Meyering  <meyering@redhat.com>
41681         fts: close parent dir FD before returning from post-traversal fts_read
41682         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
41683         unlink A, even though an FD open on A remained.  This is suboptimal
41684         (holding a file descriptor open longer than needed), but otherwise not
41685         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
41686         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
41687         that represents a real problem: it causes the removal of A to fail
41688         with e.g., "rm: cannot remove `A': Device or resource busy"
41690         fts visits each directory twice and keeps a cache (fts_fd_ring) of
41691         directory file descriptors.  After completing the final, FTS_DP,
41692         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
41693         cache, but then proceeded to add a new FD to it via the subsequent
41694         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
41695         final file descriptor would be closed only via fts_close's call to
41696         fd_ring_clear.  Now, it is usually closed earlier, via the final
41697         FTS_DP-returning fts_read call.
41698         * lib/fts.c (restore_initial_cwd): New function, converted from
41699         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
41700         Update callers.
41701         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
41702         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
41704 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
41705             Bruno Haible  <bruno@clisp.org>
41706             Jim Meyering  <jim@meyering.net>
41708         readme-release: improve safety of release prep instructions.
41709         * README-release: Don't git pull all branches when only master
41710         is needed for the release process.
41711         Run make maintainer-clean before changing trees and merging.
41712         Don't try to run ./configure right after git pull in case files
41713         that influence the bootstrap process have changed, move the
41714         ./configure step to after running ./bootstrap.
41715         Don't bootstrap "one last time"... it's the first time!
41717 2011-10-22  Bruno Haible  <bruno@clisp.org>
41719         errno, strerror-override: Support for MSVC 10.
41720         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
41721         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
41722         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
41723         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
41724         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
41725         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
41726         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
41727         Assign values compatible with MSVC 10.
41728         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
41729         New macros.
41730         (GNULIB_defined_EWINSOCK): New macro.
41731         * lib/strerror-override.c (strerror_override): Update accordingly.
41732         * lib/strerror-override.h: Likewise.
41733         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
41734         longer equal to the corresponding errno value.
41735         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41737 2011-10-22  Bruno Haible  <bruno@clisp.org>
41739         perror: Recognize when test program crashes.
41740         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
41741         strerror, set gl_cv_func_perror_works to no.
41742         Reported by Daniel Richard G. <skunk@iskunk.org>.
41744         perror: Fix indentation.
41745         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
41747 2011-10-22  Bruno Haible  <bruno@clisp.org>
41749         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
41750         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
41751         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
41752         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
41753         functions, not as a macro.
41754         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
41755         macros.
41756         (isfinite, isinf, isnan, signbit): Check overloaded functions and
41757         absence of macro.
41758         Suggested by Eric Blake.
41759         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41761 2011-10-21  Bruno Haible  <bruno@clisp.org>
41763         relocatable-prog-wrapper: Don't leave object files behind.
41764         * build-aux/install-reloc: Re-synchronize list of .o files to be
41765         removed with list of compilation units.
41767 2011-10-20  Bruno Haible  <bruno@clisp.org>
41769         openpty, posix_openpt: Remove code duplication.
41770         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
41771         * lib/openpty.c: Include <stdlib.h>.
41772         (openpty): Use posix_openpt on all platforms except IRIX.
41773         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
41775 2011-10-20  Bruno Haible  <bruno@clisp.org>
41777         unlockpt: Detect invalid argument.
41778         * lib/unlockpt.c: Include <fcntl.h>.
41779         (unlockpt): Check whether fd is valid, using fcntl().
41780         * modules/unlockpt (Depends-on): Add fcntl-h.
41782 2011-10-20  Bruno Haible  <bruno@clisp.org>
41784         openpty: Avoid compilation error on AIX 6.1.
41785         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
41787 2011-10-20  Bruno Haible  <bruno@clisp.org>
41789         posix_openpt: Support for OpenBSD.
41790         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
41791         (posix_openpt) [OpenBSD]: New code.
41792         * lib/grantpt.c: Include <fcntl.h>.
41793         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
41794         * modules/grantpt (Depends-on): Add fcntl-h.
41796 2011-10-20  Bruno Haible  <bruno@clisp.org>
41798         posix_openpt test: Coding style.
41799         * tests/test-posix_openpt.c: Use GNU coding style.
41801 2011-10-20  Bruno Haible  <bruno@clisp.org>
41803         grantpt: Support --avoid=pt_chown.
41804         * modules/grantpt (Files): Add lib/pty-private.h.
41806 2011-10-20  Bruno Haible  <bruno@clisp.org>
41808         posix_openpt: Fix autoconf macro.
41809         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
41810         unneeded check for _getpty.
41812 2011-10-20  Bruno Haible  <bruno@clisp.org>
41814         openpty: Update comments.
41815         * lib/openpty.c: Add comments about Minix.
41817 2011-10-19  Eric Blake  <eblake@redhat.com>
41819         openpty: relax license
41820         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
41822         pt_chown: use configmake to simplify build
41823         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
41825         ptsname and others: relax license
41826         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
41827         * modules/unlockpt (License): Likewise.
41828         * modules/pt_chown (License): Likewise.
41829         * modules/ptsname (License): Likewise.
41830         * modules/ttyname_r (License): Likewise.
41832 2011-10-19  Jim Meyering  <meyering@redhat.com>
41834         posix_openpt: remove spurious #endif
41835         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
41837 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
41839         maint.mk: Respect $(build_aux) in web-manual rule.
41840         * top/maint.mk (web-manual): Find gen-announce script in user's
41841         $(build_aux) directory instead of hard-coding 'build-aux'.
41843 2011-10-19  Bruno Haible  <bruno@clisp.org>
41845         posix_openpt: Fix compilation error.
41846         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
41847         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
41848         Mention the openpty module as an alternative.
41850 2011-10-19  Bruno Haible  <bruno@clisp.org>
41852         Support for old NeXTstep 3.3 frexp().
41853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
41854         execution time of the test to 5 seconds.
41855         Reported by Daniel Richard G. <skunk@iskunk.org>.
41857 2011-10-19  Bruno Haible  <bruno@clisp.org>
41859         Support for old NeXTstep 3.3 sed.
41860         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
41861         part, use /.../, not \|...|. Escape periods in the header file name.
41862         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
41863         Reported by Daniel Richard G. <skunk@iskunk.org>.
41865 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41867         Support for old NeXTstep 3.3 gcc.
41868         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
41869         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
41870         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
41871         * lib/spawn.in.h (_Restrict_arr_): Likewise.
41872         * lib/regex.h (_Restrict_arr_): Likewise.
41873         * lib/regex_internal.h (re_token_t): Likewise.
41874         * lib/regexec.c (check_node_accept_bytes): Likewise.
41875         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
41877 2011-10-18  Eric Blake  <eblake@redhat.com>
41879         posix_openpt: new module
41880         * modules/posix_openpt: New module.
41881         * m4/posix_openpt.m4: New file.
41882         * lib/posix_openpt.c: Likewise.
41883         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41884         (gl_STDLIB_H_DEFAULTS): Set defaults.
41885         * modules/stdlib (Makefile.am): Substitute macros.
41886         * lib/stdlib.in.h (posix_openpt): Declare.
41887         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
41888         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
41889         * modules/posix_openpt-tests: New test module.
41890         * tests/test-posix_openpt.c: New test.
41892 2011-10-15  Bruno Haible  <bruno@clisp.org>
41894         xstrtoll: Fix compilation failure.
41895         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
41896         from lib/strtol.c.
41897         * doc/posix-headers/limits.texi: Mention missing numerical limits on
41898         some platforms.
41899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41901 2011-10-15  Bruno Haible  <bruno@clisp.org>
41903         vasnprintf: Optimize bit search operation.
41904         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
41905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
41906         gl_DOUBLE_EXPONENT_LOCATION.
41907         * modules/vasnprintf (Files): Add m4/exponentd.m4.
41908         * modules/unistdio/u8-vasnprintf (Files): Likewise.
41909         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
41910         * modules/unistdio/u16-vasnprintf (Files): Likewise.
41911         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
41912         * modules/unistdio/u32-vasnprintf (Files): Likewise.
41913         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
41914         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
41915         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
41917 2011-10-15  Bruno Haible  <bruno@clisp.org>
41919         vasnprintf: Fix comments.
41920         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
41922 2011-10-14  Bruno Haible  <bruno@clisp.org>
41924         Tests for module 'integer_length_ll'.
41925         * modules/integer_length_ll-tests: New file.
41926         * tests/test-integer_length_ll.c: New file.
41928         New module 'integer_length_ll'.
41929         * lib/integer_length_ll.c: New file.
41930         * modules/integer_length_ll: New file.
41932 2011-10-14  Bruno Haible  <bruno@clisp.org>
41934         Tests for module 'integer_length_l'.
41935         * modules/integer_length_l-tests: New file.
41936         * tests/test-integer_length_l.c: New file.
41938         New module 'integer_length_l'.
41939         * lib/integer_length_l.c: New file.
41940         * modules/integer_length_l: New file.
41942 2011-10-14  Bruno Haible  <bruno@clisp.org>
41944         Tests for module 'integer_length'.
41945         * modules/integer_length-tests: New file.
41946         * tests/test-integer_length.c: New file.
41948         New module 'integer_length'.
41949         * lib/integer_length.h: New file.
41950         * lib/integer_length.c: New file.
41951         * modules/integer_length: New file.
41953 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41955         popen: Fix dependency conditions.
41956         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
41958 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
41960         perror: Fix autoconf test.
41961         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
41962         <stdlib.h> and <string.h>.
41964 2011-10-14  Bruno Haible  <bruno@clisp.org>
41966         ffsl: Optimize on 64-bit platforms.
41967         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
41968         unrolling.
41970 2011-10-13  Bruno Haible  <bruno@clisp.org>
41972         ffsl: Optimize on 32-bit platforms.
41973         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
41974         use ffs() without a loop.
41976         ffsl, ffsll: Optimize for GCC.
41977         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
41978         * lib/ffsl.c (GCC_BUILTIN): New macro.
41979         * lib/ffsll.c (GCC_BUILTIN): Likewise.
41981 2011-10-13  Bruno Haible  <bruno@clisp.org>
41983         ffs, bcopy, memset: Support symbol renaming via config.h.
41984         * lib/ffs.c: Include <config.h>.
41985         * lib/bcopy.c: Likewise.
41986         * lib/memset.c: Likewise.
41988 2011-10-10  Bruno Haible  <bruno@clisp.org>
41990         atanl: Simplify for platforms where 'long double' == 'double'.
41991         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
41992         alternative implementation.
41993         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41994         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
41995         * modules/atanl (Depends-on): Add atan. Update conditions.
41997 2011-10-10  Bruno Haible  <bruno@clisp.org>
41999         acosl: Simplify for platforms where 'long double' == 'double'.
42000         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42001         alternative implementation.
42002         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42003         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42004         * modules/acosl (Depends-on): Add acos. Update conditions.
42006 2011-10-10  Bruno Haible  <bruno@clisp.org>
42008         asinl: Simplify for platforms where 'long double' == 'double'.
42009         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42010         alternative implementation.
42011         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42012         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42013         * modules/asinl (Depends-on): Add asin. Update conditions.
42015 2011-10-10  Bruno Haible  <bruno@clisp.org>
42017         tanl: Simplify for platforms where 'long double' == 'double'.
42018         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42019         implementation.
42020         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42021         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42022         * modules/tanl (Depends-on): Add tan. Update conditions.
42023         (configure.ac): Don't compile trigl.c if
42024         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42026 2011-10-10  Bruno Haible  <bruno@clisp.org>
42028         cosl: Simplify for platforms where 'long double' == 'double'.
42029         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42030         implementation.
42031         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42032         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42033         * modules/cosl (Depends-on): Add cos. Update conditions.
42034         (configure.ac): Don't compile sincosl.c and trigl.c if
42035         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42037 2011-10-10  Bruno Haible  <bruno@clisp.org>
42039         sinl: Simplify for platforms where 'long double' == 'double'.
42040         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42041         implementation.
42042         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42043         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42044         * modules/sinl (Depends-on): Add sin. Update conditions.
42045         (configure.ac): Don't compile sincosl.c and trigl.c if
42046         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42048 2011-10-10  Bruno Haible  <bruno@clisp.org>
42050         logl: Simplify for platforms where 'long double' == 'double'.
42051         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42052         implementation.
42053         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42054         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42055         * modules/logl (Depends-on): Add log. Update conditions.
42057 2011-10-10  Bruno Haible  <bruno@clisp.org>
42059         expl: Simplify for platforms where 'long double' == 'double'.
42060         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42061         implementation.
42062         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42063         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42064         * modules/expl (Depends-on): Add exp. Update conditions.
42066 2011-10-10  Bruno Haible  <bruno@clisp.org>
42068         sqrtl: Simplify for platforms where 'long double' == 'double'.
42069         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42070         alternative implementation.
42071         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42072         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42073         * modules/sqrtl (Depends-on): Update conditions.
42075 2011-10-10  Bruno Haible  <bruno@clisp.org>
42077         ldexpl: Simplify for platforms where 'long double' == 'double'.
42078         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42079         alternative implementation.
42080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42081         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42082         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42084 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42086         ffsll: set correct witness
42087         * modules/ffsll (configure.ac): Fix typo.
42089 2011-10-10  Bruno Haible  <bruno@clisp.org>
42091         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42092         * lib/printf-frexpl.c: Include <config.h>.
42093         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42094         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42095         second time.
42096         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42097         gl_LONG_DOUBLE_VS_DOUBLE.
42098         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42099         conditions.
42101 2011-10-10  Bruno Haible  <bruno@clisp.org>
42103         frexpl: Simplify for platforms where 'long double' == 'double'.
42104         * lib/frexpl.c: Include <config.h>.
42105         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42106         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42107         time.
42108         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42109         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42110         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42111         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42112         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42113         conditions.
42115 2011-10-10  Jim Meyering  <meyering@redhat.com>
42117         test-renameat: don't leave behind a temporary file
42118         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42119           ERROR: files left in build directory after distclean:
42120           ./gltests/test-renameat.too
42121           make[1]: *** [distcleancheck] Error 1
42122         Reported by Tom G. Christensen.
42124 2011-10-09  Bruno Haible  <bruno@clisp.org>
42126         rint: Determine RINT_LIBM correctly on AIX 7.
42127         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42128         directly, not only through a function pointer. Also accept an optional
42129         4th argument with extra code.
42130         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42131         rintf() call by gcc when optimizing.
42133         mathfunc.m4: Refactor.
42134         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42135         m4 variable.
42137 2011-10-09  Bruno Haible  <bruno@clisp.org>
42139         rintl: Simplify for platforms where 'long double' == 'double'.
42140         * lib/rintl.c: Include <config.h>.
42141         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42142         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42143         time.
42144         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42145         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42146         * modules/rintl (Depends-on): Add rint. Update conditions.
42148 2011-10-09  Bruno Haible  <bruno@clisp.org>
42150         roundl: Simplify for platforms where 'long double' == 'double'.
42151         * lib/roundl.c: Include <config.h>.
42152         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42153         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42154         time.
42155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42156         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42157         * modules/roundl (Depends-on): Add round. Update conditions.
42159 2011-10-09  Bruno Haible  <bruno@clisp.org>
42161         truncl: Simplify for platforms where 'long double' == 'double'.
42162         * lib/truncl.c: Include <config.h>.
42163         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42164         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42165         time.
42166         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42167         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42168         * modules/truncl (Depends-on): Add trunc. Update conditions.
42170 2011-10-09  Bruno Haible  <bruno@clisp.org>
42172         ceill: Simplify for platforms where 'long double' == 'double'.
42173         * lib/ceill.c: Include <config.h>.
42174         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42175         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42176         time.
42177         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42178         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42179         * modules/ceill (Depends-on): Add ceil. Update conditions.
42181 2011-10-09  Bruno Haible  <bruno@clisp.org>
42183         floorl: Simplify for platforms where 'long double' == 'double'.
42184         * lib/floorl.c: Include <config.h>.
42185         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42186         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42187         time.
42188         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42189         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42190         * modules/floorl (Depends-on): Add floor. Update conditions.
42192 2011-10-09  Bruno Haible  <bruno@clisp.org>
42194         rint: Fix ordering constraints.
42195         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42196         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42197         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42199 2011-10-09  Bruno Haible  <bruno@clisp.org>
42201         copysignl: Simplify for platforms where 'long double' == 'double'.
42202         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42203         alternative.
42204         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42205         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42206         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42208 2011-10-09  Bruno Haible  <bruno@clisp.org>
42210         Tests for module 'rintl'.
42211         * modules/rintl-tests: New file.
42212         * tests/test-rintl.c: New file.
42214         New module 'rintl'.
42215         * lib/math.in.h (rintl): New declaration.
42216         * lib/rintl.c: New file.
42217         * m4/rintl.m4: New file.
42218         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42220         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42221         * modules/rintl: New file.
42222         * tests/test-math-c++.cc: Check the declaration of rintl.
42223         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42224         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42225         * doc/posix-functions/rintl.texi: Mention the new module.
42227 2011-10-09  Bruno Haible  <bruno@clisp.org>
42229         Tests for module 'rintf'.
42230         * modules/rintf-tests: New file.
42231         * tests/test-rintf.c: New file.
42233         New module 'rintf'.
42234         * lib/math.in.h (rintf): New declaration.
42235         * lib/rintf.c: New file.
42236         * m4/rintf.m4: New file.
42237         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42239         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42240         * modules/rintf: New file.
42241         * tests/test-math-c++.cc: Check the declaration of rintf.
42242         * doc/posix-functions/rintf.texi: Mention the new module.
42244 2011-10-09  Bruno Haible  <bruno@clisp.org>
42246         rint: Support for MSVC.
42247         * lib/math.in.h (rint): New declaration.
42248         * lib/rint.c: New file.
42249         * m4/rint.m4: New file.
42250         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42252         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42253         * modules/rint (Description): Fix.
42254         (Files): Add lib/rint.c, m4/rint.m4.
42255         (Depends-on): Add math.
42256         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42257         gl_MATH_MODULE_INDICATOR.
42258         * tests/test-math-c++.cc: Check the declaration of rint.
42259         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42260         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42261         * doc/posix-functions/rint.texi: Mention the replacement provided by
42262         the module.
42264         rint tests: More tests.
42265         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42266         minus-zero.h, infinity.h, nan.h.
42267         (main): Skip the test if the current rounding mode is not standard. Add
42268         tests for negative numbers, minus zero, infinity, NaN.
42269         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42270         tests/nan.h.
42271         (Depends-on): Add isnand-nolibm.
42273 2011-10-09  Bruno Haible  <bruno@clisp.org>
42275         Tests for module 'copysignl'.
42276         * modules/copysignl-tests: New file.
42277         * tests/test-copysignl.c: New file.
42279         New module 'copysignl'.
42280         * lib/math.in.h (copysignl): New declaration.
42281         * lib/copysignl.c: New file.
42282         * m4/copysignl.m4: New file.
42283         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42285         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42286         HAVE_COPYSIGNL.
42287         * modules/copysignl: New file.
42288         * tests/test-math-c++.cc: Check the declaration of copysignl.
42289         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42290         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42291         * doc/posix-functions/copysignl.texi: Mention the new module.
42293 2011-10-09  Bruno Haible  <bruno@clisp.org>
42295         Tests for module 'copysignf'.
42296         * modules/copysignf-tests: New file.
42297         * tests/test-copysignf.c: New file.
42299         New module 'copysignf'.
42300         * lib/math.in.h (copysignf): New declaration.
42301         * lib/copysignf.c: New file.
42302         * m4/copysignf.m4: New file.
42303         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42305         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42306         HAVE_COPYSIGNF.
42307         * modules/copysignf: New file.
42308         * tests/test-math-c++.cc: Check the declaration of copysignf.
42309         * doc/posix-functions/copysignf.texi: Mention the new module.
42311 2011-10-09  Bruno Haible  <bruno@clisp.org>
42313         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42315         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42316         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42318         gl_SIGNAL_H_DEFAULTS.
42320 2011-10-09  Bruno Haible  <bruno@clisp.org>
42322         poll: Make macro safer.
42323         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42324         ac_cv_header_poll_h is not set.
42326 2011-10-09  Bruno Haible  <bruno@clisp.org>
42328         copysign: Provide replacement.
42329         * lib/math.in.h (copysign): New declaration.
42330         * lib/copysign.c: New file.
42331         * m4/copysign.m4: New file.
42332         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42334         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42335         HAVE_COPYSIGN.
42336         * modules/copysign (Description): Clarify.
42337         (Files): Add lib/copysign.c, m4/copysign.m4.
42338         (Depends-on): Add math, signbit.
42339         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42340         gl_MATH_MODULE_INDICATOR.
42341         * tests/test-math-c++.cc: Check the declaration of copysign.
42342         * doc/posix-functions/copysign.texi: Mention the effects of the module
42343         on Minix and MSVC.
42345 2011-10-09  Bruno Haible  <bruno@clisp.org>
42347         isinf: Ensure macro on AIX 5.1.
42348         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42349         macro.
42350         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42352 2011-10-09  Bruno Haible  <bruno@clisp.org>
42354         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42355         * modules/snprintf-posix-tests (configure.ac): Require
42356         gl_LONG_DOUBLE_VS_DOUBLE.
42357         * modules/sprintf-posix-tests (configure.ac): Likewise.
42358         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42359         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42360         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42361         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42362         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42363         tests on platforms where 'long double' is the same as 'double'.
42364         * tests/test-sprintf-posix.h (test_function): Likewise.
42365         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42366         * tests/test-vasprintf-posix.c (test_function): Likewise.
42368         *printf: Fix for platforms where 'long double' == 'double'.
42369         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42370         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42371         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42372         * modules/fprintf-posix (Files): Likewise.
42373         * modules/obstack-printf-posix (Files): Likewise.
42374         * modules/snprintf-posix (Files): Likewise.
42375         * modules/sprintf-posix (Files): Likewise.
42376         * modules/vasnprintf (Files): Likewise.
42377         * modules/vasnprintf-posix (Files): Likewise.
42378         * modules/vasprintf-posix (Files): Likewise.
42379         * modules/vdprintf-posix (Files): Likewise.
42380         * modules/vfprintf-posix (Files): Likewise.
42381         * modules/vsnprintf-posix (Files): Likewise.
42382         * modules/vsprintf-posix (Files): Likewise.
42383         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42384         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42385         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42386         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42387         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42388         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42389         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42391         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42392         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42393         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42394         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42395         'long double'.
42396         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42398         isinf: Fix for platforms where 'long double' == 'double'.
42399         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42400         Don't blindly assume 80-bit 'long double'.
42402         isfinite: Fix for platforms where 'long double' == 'double'.
42403         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42404         Don't blindly assume 80-bit 'long double'.
42406         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42407         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42408         * modules/isfinite-tests (configure.ac): Require
42409         gl_LONG_DOUBLE_VS_DOUBLE.
42410         * modules/isinf-tests (configure.ac): Likewise.
42411         * modules/isnan-tests (configure.ac): Likewise.
42412         * modules/isnanl-tests (configure.ac): Likewise.
42413         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42414         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42415         tests on platforms where 'long double' is the same as 'double'.
42416         * tests/test-isinf.c (test_isinfl): Likewise.
42417         * tests/test-isnan.c (test_long_double): Likewise.
42418         * tests/test-isnanl.h (main): Likewise.
42420 2011-10-08  Bruno Haible  <bruno@clisp.org>
42422         Tests for module 'tanhf'.
42423         * modules/tanhf-tests: New file.
42424         * tests/test-tanhf.c: New file.
42426         New module 'tanhf'.
42427         * lib/math.in.h (tanhf): New declaration.
42428         * lib/tanhf.c: New file.
42429         * m4/tanhf.m4: New file.
42430         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42432         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42433         * modules/tanhf: New file.
42434         * tests/test-math-c++.cc: Check the declaration of tanhf.
42435         * doc/posix-functions/tanhf.texi: Mention the new module.
42437         tanh: Use a .m4 file.
42438         * m4/tanh.m4: New file.
42439         * modules/tanh (Files): Add it.
42440         (configure.ac): Just invoke gl_FUNC_TANH.
42442 2011-10-08  Bruno Haible  <bruno@clisp.org>
42444         Tests for module 'coshf'.
42445         * modules/coshf-tests: New file.
42446         * tests/test-coshf.c: New file.
42448         New module 'coshf'.
42449         * lib/math.in.h (coshf): New declaration.
42450         * lib/coshf.c: New file.
42451         * m4/coshf.m4: New file.
42452         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42454         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42455         * modules/coshf: New file.
42456         * tests/test-math-c++.cc: Check the declaration of coshf.
42457         * doc/posix-functions/coshf.texi: Mention the new module.
42459         cosh: Use a .m4 file.
42460         * m4/cosh.m4: New file.
42461         * modules/cosh (Files): Add it.
42462         (configure.ac): Just invoke gl_FUNC_COSH.
42464 2011-10-08  Bruno Haible  <bruno@clisp.org>
42466         Tests for module 'sinhf'.
42467         * modules/sinhf-tests: New file.
42468         * tests/test-sinhf.c: New file.
42470         New module 'sinhf'.
42471         * lib/math.in.h (sinhf): New declaration.
42472         * lib/sinhf.c: New file.
42473         * m4/sinhf.m4: New file.
42474         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42476         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42477         * modules/sinhf: New file.
42478         * tests/test-math-c++.cc: Check the declaration of sinhf.
42479         * doc/posix-functions/sinhf.texi: Mention the new module.
42481         sinh: Use a .m4 file.
42482         * m4/sinh.m4: New file.
42483         * modules/sinh (Files): Add it.
42484         (configure.ac): Just invoke gl_FUNC_SINH.
42486 2011-10-08  Bruno Haible  <bruno@clisp.org>
42488         Tests for module 'atan2f'.
42489         * modules/atan2f-tests: New file.
42490         * tests/test-atan2f.c: New file.
42492         New module 'atan2f'.
42493         * lib/math.in.h (atan2f): New declaration.
42494         * lib/atan2f.c: New file.
42495         * m4/atan2f.m4: New file.
42496         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42498         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42499         * modules/atan2f: New file.
42500         * tests/test-math-c++.cc: Check the declaration of atan2f.
42501         * doc/posix-functions/atan2f.texi: Mention the new module.
42503         atan2: Use a .m4 file.
42504         * m4/atan2.m4: New file.
42505         * modules/atan2 (Files): Add it.
42506         (configure.ac): Just invoke gl_FUNC_ATAN2.
42508 2011-10-08  Bruno Haible  <bruno@clisp.org>
42510         Tests for module 'atanf'.
42511         * modules/atanf-tests: New file.
42512         * tests/test-atanf.c: New file.
42514         New module 'atanf'.
42515         * lib/math.in.h (atanf): New declaration.
42516         * lib/atanf.c: New file.
42517         * m4/atanf.m4: New file.
42518         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42520         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42521         * modules/atanf: New file.
42522         * tests/test-math-c++.cc: Check the declaration of atanf.
42523         * doc/posix-functions/atanf.texi: Mention the new module.
42525         atan: Use a .m4 file.
42526         * m4/atan.m4: New file.
42527         * modules/atan (Files): Add it.
42528         (configure.ac): Just invoke gl_FUNC_ATAN.
42530 2011-10-08  Bruno Haible  <bruno@clisp.org>
42532         Tests for module 'acosf'.
42533         * modules/acosf-tests: New file.
42534         * tests/test-acosf.c: New file.
42536         New module 'acosf'.
42537         * lib/math.in.h (acosf): New declaration.
42538         * lib/acosf.c: New file.
42539         * m4/acosf.m4: New file.
42540         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42542         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42543         * modules/acosf: New file.
42544         * tests/test-math-c++.cc: Check the declaration of acosf.
42545         * doc/posix-functions/acosf.texi: Mention the new module.
42547         acos: Use a .m4 file.
42548         * m4/acos.m4: New file.
42549         * modules/acos (Files): Add it.
42550         (configure.ac): Just invoke gl_FUNC_ACOS.
42552 2011-10-08  Bruno Haible  <bruno@clisp.org>
42554         Tests for module 'asinf'.
42555         * modules/asinf-tests: New file.
42556         * tests/test-asinf.c: New file.
42558         New module 'asinf'.
42559         * lib/math.in.h (asinf): New declaration.
42560         * lib/asinf.c: New file.
42561         * m4/asinf.m4: New file.
42562         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42564         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42565         * modules/asinf: New file.
42566         * tests/test-math-c++.cc: Check the declaration of asinf.
42567         * doc/posix-functions/asinf.texi: Mention the new module.
42569         asin: Use a .m4 file.
42570         * m4/asin.m4: New file.
42571         * modules/asin (Files): Add it.
42572         (configure.ac): Just invoke gl_FUNC_ASIN.
42574 2011-10-08  Bruno Haible  <bruno@clisp.org>
42576         Tests for module 'tanf'.
42577         * modules/tanf-tests: New file.
42578         * tests/test-tanf.c: New file.
42580         New module 'tanf'.
42581         * lib/math.in.h (tanf): New declaration.
42582         * lib/tanf.c: New file.
42583         * m4/tanf.m4: New file.
42584         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42586         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
42587         * modules/tanf: New file.
42588         * tests/test-math-c++.cc: Check the declaration of tanf.
42589         * doc/posix-functions/tanf.texi: Mention the new module.
42591         tan: Use a .m4 file.
42592         * m4/tan.m4: New file.
42593         * modules/tan (Files): Add it.
42594         (configure.ac): Just invoke gl_FUNC_TAN.
42596 2011-10-08  Bruno Haible  <bruno@clisp.org>
42598         Tests for module 'cosf'.
42599         * modules/cosf-tests: New file.
42600         * tests/test-cosf.c: New file.
42602         New module 'cosf'.
42603         * lib/math.in.h (cosf): New declaration.
42604         * lib/cosf.c: New file.
42605         * m4/cosf.m4: New file.
42606         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
42607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
42608         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
42609         * modules/cosf: New file.
42610         * tests/test-math-c++.cc: Check the declaration of cosf.
42611         * doc/posix-functions/cosf.texi: Mention the new module.
42613         cos: Use a .m4 file.
42614         * m4/cos.m4: New file.
42615         * modules/cos (Files): Add it.
42616         (configure.ac): Just invoke gl_FUNC_COS.
42618 2011-10-08  Bruno Haible  <bruno@clisp.org>
42620         Tests for module 'sinf'.
42621         * modules/sinf-tests: New file.
42622         * tests/test-sinf.c: New file.
42624         New module 'sinf'.
42625         * lib/math.in.h (sinf): New declaration.
42626         * lib/sinf.c: New file.
42627         * m4/sinf.m4: New file.
42628         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
42629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
42630         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
42631         * modules/sinf: New file.
42632         * tests/test-math-c++.cc: Check the declaration of sinf.
42633         * doc/posix-functions/sinf.texi: Mention the new module.
42635         sin: Use a .m4 file.
42636         * m4/sin.m4: New file.
42637         * modules/sin (Files): Add it.
42638         (configure.ac): Just invoke gl_FUNC_SIN.
42640 2011-10-08  Bruno Haible  <bruno@clisp.org>
42642         Tests for module 'powf'.
42643         * modules/powf-tests: New file.
42644         * tests/test-powf.c: New file.
42646         New module 'powf'.
42647         * lib/math.in.h (powf): New declaration.
42648         * lib/powf.c: New file.
42649         * m4/powf.m4: New file.
42650         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
42651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
42652         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
42653         * modules/powf: New file.
42654         * tests/test-math-c++.cc: Check the declaration of powf.
42655         * doc/posix-functions/powf.texi: Mention the new module.
42657         pow: Use a .m4 file.
42658         * m4/pow.m4: New file.
42659         * modules/pow (Files): Add it.
42660         (configure.ac): Just invoke gl_FUNC_POW.
42662 2011-10-08  Bruno Haible  <bruno@clisp.org>
42664         Tests for module 'log10f'.
42665         * modules/log10f-tests: New file.
42666         * tests/test-log10f.c: New file.
42668         New module 'log10f'.
42669         * lib/math.in.h (log10f): New declaration.
42670         * lib/log10f.c: New file.
42671         * m4/log10f.m4: New file.
42672         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
42673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
42674         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
42675         * modules/log10f: New file.
42676         * tests/test-math-c++.cc: Check the declaration of log10f.
42677         * doc/posix-functions/log10f.texi: Mention the new module.
42679         log10: Use a .m4 file.
42680         * m4/log10.m4: New file.
42681         * modules/log10 (Files): Add it.
42682         (configure.ac): Just invoke gl_FUNC_LOG10.
42684 2011-10-08  Bruno Haible  <bruno@clisp.org>
42686         Tests for module 'logf'.
42687         * modules/logf-tests: New file.
42688         * tests/test-logf.c: New file.
42690         New module 'logf'.
42691         * lib/math.in.h (logf): New declaration.
42692         * lib/logf.c: New file.
42693         * m4/logf.m4: New file.
42694         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
42695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
42696         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
42697         * modules/logf: New file.
42698         * tests/test-math-c++.cc: Check the declaration of logf.
42699         * doc/posix-functions/logf.texi: Mention the new module.
42701         log: Use a .m4 file.
42702         * m4/log.m4: New file.
42703         * modules/log (Files): Add it.
42704         (configure.ac): Just invoke gl_FUNC_LOG.
42706 2011-10-08  Bruno Haible  <bruno@clisp.org>
42708         Tests for module 'expf'.
42709         * modules/expf-tests: New file.
42710         * tests/test-expf.c: New file.
42712         New module 'expf'.
42713         * lib/math.in.h (expf): New declaration.
42714         * lib/expf.c: New file.
42715         * m4/expf.m4: New file.
42716         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
42717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
42718         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
42719         * modules/expf: New file.
42720         * tests/test-math-c++.cc: Check the declaration of expf.
42721         * doc/posix-functions/expf.texi: Mention the new module.
42723         exp: Use a .m4 file.
42724         * m4/exp.m4: New file.
42725         * modules/exp (Files): Add it.
42726         (configure.ac): Just invoke gl_FUNC_EXP.
42728 2011-10-08  Bruno Haible  <bruno@clisp.org>
42730         Tests for module 'sqrtf'.
42731         * modules/sqrtf-tests: New file.
42732         * tests/test-sqrtf.c: New file.
42734         New module 'sqrtf'.
42735         * lib/math.in.h (sqrtf): New declaration.
42736         * lib/sqrtf.c: New file.
42737         * m4/sqrtf.m4: New file.
42738         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
42739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
42740         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
42741         * modules/sqrtf: New file.
42742         * tests/test-math-c++.cc: Check the declaration of sqrtf.
42743         * doc/posix-functions/sqrtf.texi: Mention the new module.
42745 2011-10-08  Bruno Haible  <bruno@clisp.org>
42747         Tests: Avoid link failures w.r.t. libintl.
42748         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
42749         $(LIBINTL).
42750         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
42751         $(LIBINTL).
42752         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
42753         against $(LIBINTL).
42754         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
42755         $(LIBINTL).
42756         * modules/openat-tests (Makefile.am): Link test-fchmodat against
42757         $(LIBINTL).
42758         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
42760 2011-10-08  Bruno Haible  <bruno@clisp.org>
42762         pow tests: Defeat compiler optimizations.
42763         * tests/test-pow.c (main): Assign arguments to x and y before use.
42765 2011-10-08  Bruno Haible  <bruno@clisp.org>
42767         gnulib-tool: Improve last commit.
42768         * gnulib-tool (func_modules_transitive_closure): Simplify code.
42769         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
42770         ignore dependencies that are not among the modules list.
42772 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
42774         gnulib-tool: don't follow dependencies to avoided modules
42775         This fixes a bug that is related to the previous one.
42776         * gnulib-tool (func_modules_transitive_closure)
42777         (func_emit_autoconf_snippets):
42778         Check whether a dependency is acceptable before using it.
42779         (--extract-dependencies): Report an error if --avoid is also used,
42780         since this combination of options is not yet supported.
42782         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
42783         Problem reported by Peter Dyballa in
42784         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
42785         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
42786         when echoing "$condition".
42788 2011-10-07  Bruno Haible  <bruno@clisp.org>
42790         Fix documentation about math functions on MacOS X.
42791         * doc/posix-functions/exp2.texi: Don't say the function is missing on
42792         MacOS X 10.5.
42793         * doc/posix-functions/fdim.texi: Likewise.
42794         * doc/posix-functions/feclearexcept.texi: Likewise.
42795         * doc/posix-functions/fegetenv.texi: Likewise.
42796         * doc/posix-functions/fegetround.texi: Likewise.
42797         * doc/posix-functions/feholdexcept.texi: Likewise.
42798         * doc/posix-functions/feraiseexcept.texi: Likewise.
42799         * doc/posix-functions/fesetenv.texi: Likewise.
42800         * doc/posix-functions/fesetround.texi: Likewise.
42801         * doc/posix-functions/fetestexcept.texi: Likewise.
42802         * doc/posix-functions/feupdateenv.texi: Likewise.
42803         * doc/posix-functions/fmax.texi: Likewise.
42804         * doc/posix-functions/fmin.texi: Likewise.
42805         * doc/posix-functions/log2.texi: Likewise.
42806         * doc/posix-functions/modff.texi: Likewise.
42807         * doc/posix-functions/nan.texi: Likewise.
42808         * doc/posix-functions/nanf.texi: Likewise.
42809         * doc/posix-functions/nextafterf.texi: Likewise.
42810         * doc/posix-functions/remquo.texi: Likewise.
42812 2011-10-07  Bruno Haible  <bruno@clisp.org>
42814         modff: Drop assumption about library that defines modff.
42815         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
42816         AC_CHECK_FUNCS.
42817         * modules/modff (Files): Add m4/mathfunc.m4.
42819 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
42821         raise tests: Avoid a GCC warning.
42822         * tests/test-raise.c (handler): Use _Noreturn.
42824 2011-10-07  Bruno Haible  <bruno@clisp.org>
42826         Tests for module 'ldexpf'.
42827         * modules/ldexpf-tests: New file.
42828         * tests/test-ldexpf.c: New file.
42830         New module 'ldexpf'.
42831         * lib/math.in.h (ldexpf): New declaration.
42832         * lib/ldexpf.c: New file.
42833         * m4/ldexpf.m4: New file.
42834         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
42835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
42836         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
42837         * modules/ldexpf: New file.
42838         * tests/test-math-c++.cc: Check the declaration of ldexpf.
42839         * doc/posix-functions/ldexpf.texi: Mention the new module.
42841 2011-10-06  Bruno Haible  <bruno@clisp.org>
42843         frexpf: Work around problems on IRIX and mingw.
42844         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
42845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
42846         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
42847         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
42848         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
42849         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
42850         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
42852 2011-10-06  Bruno Haible  <bruno@clisp.org>
42854         fabsf: Drop assumption about library that defines fabsf.
42855         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
42856         AC_CHECK_FUNCS.
42857         * modules/fabsf (Files): Add m4/mathfunc.m4.
42859 2011-10-06  Bruno Haible  <bruno@clisp.org>
42861         frexpf: Drop assumption about library that defines frexpf.
42862         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
42863         'int *', 'float *', 'long double *', 'float', 'long double'.
42864         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
42865         AC_CHECK_FUNCS.
42866         * modules/frexpf (Files): Add m4/mathfunc.m4.
42868         Tests for module 'frexpf'.
42869         * modules/frexpf-tests: New file.
42870         * tests/test-frexpf.c: New file.
42872         New module 'frexpf'.
42873         * lib/math.in.h (frexpf): New declaration.
42874         * lib/frexpf.c: New file.
42875         * m4/frexpf.m4: New file.
42876         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
42877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
42878         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
42879         * modules/frexpf: New file.
42880         * tests/test-math-c++.cc: Check the declaration of frexpf.
42881         * doc/posix-functions/frexpf.texi: Mention the new module.
42883 2011-10-06  Bruno Haible  <bruno@clisp.org>
42885         math: Sort function declarations of math.in.h.
42886         * lib/math.in.h (frexp, logb): Move declarations.
42888 2011-10-05  Bruno Haible  <bruno@clisp.org>
42890         Tests for module 'modff'.
42891         * modules/modff-tests: New file.
42892         * tests/test-modff.c: New file.
42894         New module 'modff'.
42895         * lib/math.in.h (modff): New declaration.
42896         * lib/modff.c: New file.
42897         * m4/modff.m4: New file.
42898         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
42899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
42900         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
42901         * modules/modff: New file.
42902         * tests/test-math-c++.cc: Check the declaration of modff.
42903         * doc/posix-functions/modff.texi: Mention the new module.
42905         modf tests: Make test sharper.
42906         * tests/test-modf.c (main): Strengthen upper bound.
42908         modf: Use a .m4 file.
42909         * m4/modf.m4: New file.
42910         * modules/modf (Files): Add it.
42911         (configure.ac): Just invoke gl_FUNC_MODF.
42913 2011-10-05  Bruno Haible  <bruno@clisp.org>
42915         Tests for module 'fmodf'.
42916         * modules/fmodf-tests: New file.
42917         * tests/test-fmodf.c: New file.
42919         New module 'fmodf'.
42920         * lib/math.in.h (fmodf): New declaration.
42921         * lib/fmodf.c: New file.
42922         * m4/fmodf.m4: New file.
42923         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
42924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
42925         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
42926         * modules/fmodf: New file.
42927         * tests/test-math-c++.cc: Check the declaration of fmodf.
42928         * doc/posix-functions/fmodf.texi: Mention the new module.
42930         fmod: Use a .m4 file.
42931         * m4/fmod.m4: New file.
42932         * modules/fmod (Files): Add it.
42933         (configure.ac): Just invoke gl_FUNC_FMOD.
42935 2011-10-05  Bruno Haible  <bruno@clisp.org>
42937         Tests for module 'fabsf'.
42938         * modules/fabsf-tests: New file.
42939         * tests/test-fabsf.c: New file.
42941         New module 'fabsf'.
42942         * lib/math.in.h (fabsf): New declaration.
42943         * lib/fabsf.c: New file.
42944         * m4/fabsf.m4: New file.
42945         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
42946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
42947         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
42948         * modules/fabsf: New file.
42949         * tests/test-math-c++.cc: Check the declaration of fabsf.
42950         * doc/posix-functions/fabsf.texi: Mention the new module.
42952         fabs: Use a .m4 file.
42953         * m4/fabs.m4: New file.
42954         * modules/fabs (Files): Add it.
42955         (configure.ac): Just invoke gl_FUNC_FABS.
42957 2011-10-05  Jim Meyering  <meyering@redhat.com>
42959         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
42960         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
42961         ls -lL regression introduced in coreutils-8.12, it does so at the
42962         cost of an additional stat call in the common case.  Besides, now
42963         that the kernel change that prompted commit 95f7c57f has been reverted
42964         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
42965         we have no use for commit 95f7c57f, "file-has-acl: use
42966         acl_extended_file_nofollow if available".
42968 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
42970         file-has-acl: revert unintended change in behavior of ls -L
42971         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
42972         derived from...
42973         (file_has_acl): ...code here.  Call it.
42974         This problem was introduced with 2011-07-22 commit 95f7c57f,
42975         "file-has-acl: use acl_extended_file_nofollow if available".
42976         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
42978 2011-10-03  Bruno Haible  <bruno@clisp.org>
42980         poll: Avoid link errors on MSVC.
42981         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
42982         * modules/poll (Depends-on): Add sockets.
42983         (Link): New section.
42984         * NEWS: Mention the change.
42985         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
42986         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
42987         $(LIB_POLL) instead of $(LIBSOCKET).
42989 2011-10-03  Bruno Haible  <bruno@clisp.org>
42991         sys_select tests: Fix link error on MSVC 9.
42992         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
42993         with $(LIB_SELECT) instead of $(LIBSOCKET).
42995 2011-10-03  Bruno Haible  <bruno@clisp.org>
42997         sys_select: Fix compilation error on mingw.
42998         * lib/sys_select.in.h: On native Windows, include <io.h>.
43000 2011-10-03  Bruno Haible  <bruno@clisp.org>
43002         wmemset: Support for MSVC.
43003         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43004         whether wmemset() exists.
43006 2011-10-03  Bruno Haible  <bruno@clisp.org>
43008         wmemmove: Support for MSVC.
43009         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43010         whether wmemmove() exists.
43012 2011-10-03  Bruno Haible  <bruno@clisp.org>
43014         wmemcpy: Support for MSVC.
43015         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43016         whether wmemcpy() exists.
43018 2011-10-03  Bruno Haible  <bruno@clisp.org>
43020         wmemcmp: Support for MSVC.
43021         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43022         whether wmemcmp() exists.
43024 2011-10-03  Bruno Haible  <bruno@clisp.org>
43026         wmemchr: Support for MSVC.
43027         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43028         whether wmemchr() exists.
43030 2011-10-03  Bruno Haible  <bruno@clisp.org>
43032         glthread/*, strsignal: Support for MSVC.
43033         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43034         including <winsock.h> on MSVC 9.
43035         * lib/glthread/lock.h: Likewise.
43036         * lib/glthread/thread.h: Likewise.
43037         * lib/glthread/tls.h: Likewise.
43038         * lib/glthread/yield.h: Likewise.
43039         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43040         if HAVE_UNISTD_H is false.
43041         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43043 2011-10-03  Bruno Haible  <bruno@clisp.org>
43045         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43046         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43047         Set to 100000.
43049 2011-10-03  Bruno Haible  <bruno@clisp.org>
43051         acl: Fix specification.
43052         * lib/file-has-acl.c (file_has_acl): Fix specification.
43054 2011-10-03  Bruno Haible  <bruno@clisp.org>
43056         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43057         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43058         (compute_curr_prefix, shared_library_fullname,
43059         find_shared_library_fullname, get_shared_library_fullname, relocate):
43060         Use it together with PIC && INSTALLDIR.
43061         Reported by <jojelino@gmail.com>
43062         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43064 2011-10-01  Jim Meyering  <meyering@redhat.com>
43066         maint.mk: adjust a release-related rule not to require use of gzip
43067         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43068         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43069         projects that build only .tar.xz files.  Also fix an erroneous test.
43071         test-linkat: don't leave behind a temporary file
43072         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43073         Otherwise, coreutils' "make distcheck" would fail with this:
43074           Only in /c/cu/tests/torture/coreutils/test/\
43075             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43076           make[2]: *** [my-distcheck] Error 1
43078         float, math: add omitted file
43079         * lib/itold.c: Add file, required for yesterday's float change.
43081 2011-10-01  Bruno Haible  <bruno@clisp.org>
43083         isinf: Fix for OpenBSD/x86.
43084         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43085         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43086         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43088 2011-10-01  Bruno Haible  <bruno@clisp.org>
43090         isfinite: Fix syntax error in configure test.
43091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43093         isfinite: Fix typo.
43094         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43095         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43097 2011-10-01  Bruno Haible  <bruno@clisp.org>
43099         nonblocking tests: Fix test failure on Linux/IA-64.
43100         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43101         Set to 270000.
43103 2011-10-01  Bruno Haible  <bruno@clisp.org>
43105         mkfifoat tests: Fix a test failure on mingw.
43106         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43107         with error ENOSYS.
43109 2011-09-30  Bruno Haible  <bruno@clisp.org>
43111         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43112         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43113         'long double'. Set REPLACE_ITOLD.
43114         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43115         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43116         * lib/itold.c: New file.
43117         * modules/float (Files): Add lib/itold.c.
43118         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43119         (Makefile.am): Substitute REPLACE_ITOLD.
43120         * modules/math (Depends-on): Add float.
43121         (Makefile.am): Substitute REPLACE_ITOLD.
43122         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43123         * doc/posix-headers/math.texi: Likewise.
43124         * doc/posix-functions/logl.texi: Likewise.
43126 2011-09-30  Bruno Haible  <bruno@clisp.org>
43128         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43129         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43130         Set to 140000.
43132 2011-09-30  Bruno Haible  <bruno@clisp.org>
43134         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43135         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43136         invocation, say "right after AC_PROG_CC_STDC", not "right after
43137         AC_PROG_CC".
43138         Reported by Gary V. Vaughan <gary@gnu.org>.
43140 2011-09-30  Bruno Haible  <bruno@clisp.org>
43142         Centralize C99 requirement.
43143         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43144         * modules/stdarg (configure.ac-early): Invoke it instead of
43145         AC_PROG_CC_STDC.
43146         Reported by Gary V. Vaughan and Paul Eggert.
43148 2011-09-29  Bruno Haible  <bruno@clisp.org>
43150         float: Fix LDBL_MAX value on Linux/PowerPC.
43151         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43152         on Linux/PowerPC.
43153         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43154         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43155         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43156         platform.
43157         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43159 2011-09-29  Bruno Haible  <bruno@clisp.org>
43161         doc: Improve doc about gl_EARLY.
43162         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43163         AC_PROG_CC_STDC invocation.
43164         Reported by Gary V. Vaughan <gary@gnu.org>.
43166 2011-09-28  Bruno Haible  <bruno@clisp.org>
43168         fgetc, fputc, fread, fwrite tests: Fix link error.
43169         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43170         on non-MSVC platforms.
43171         * tests/test-fputc.c (main): Likewise.
43172         * tests/test-fread.c (main): Likewise.
43173         * tests/test-fwrite.c (main): Likewise.
43174         Reported by Jim Meyering.
43176 2011-09-27  Bruno Haible  <bruno@clisp.org>
43178         fputc, fwrite tests: Avoid test failure on MSVC.
43179         * tests/test-fgetc.c: Include msvc-inval.h.
43180         (main): Invoke gl_msvc_inval_ensure_handler.
43181         * tests/test-fputc.c: Include msvc-inval.h.
43182         (main): Invoke gl_msvc_inval_ensure_handler.
43183         * tests/test-fread.c: Include msvc-inval.h.
43184         (main): Invoke gl_msvc_inval_ensure_handler.
43185         * tests/test-fwrite.c: Include msvc-inval.h.
43186         (main): Invoke gl_msvc_inval_ensure_handler.
43187         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43188         * modules/fputc-tests (Depends-on): Likewise.
43189         * modules/fread-tests (Depends-on): Likewise.
43190         * modules/fwrite-tests (Depends-on): Likewise.
43192 2011-09-27  Bruno Haible  <bruno@clisp.org>
43194         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43195         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43196         (raise): Remove older, duplicated declaration.
43197         (_gl_raise_SIGPIPE): New declaration.
43198         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43199         (rpl_raise): Remove function.
43200         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43201         a gnulib-defined SIGPIPE here.
43202         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43203         'sigprocmask' has detected missing signal-blocking and the module
43204         'sigpipe' is enabled.
43205         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43207 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43209         base64-tests: avoid memory leak
43210         * tests/test-base64.c (main): Plug memory leak.
43212         base32: new module
43213         * modules/base32: New module.
43214         * lib/base32.c: New file.
43215         * lib/base32.h: Likewise.
43216         * m4/base32.m4: Likewise.
43217         * modules/base32-tests: New test.
43218         * tests/test-base32.c: Likewise.
43219         * MODULES.html.sh (Misc): Mention it.
43221 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43223         gnulib: use more-standard license notice wording
43224         * gnulib-tool (func_emit_copyright_notice): When emitting a
43225         license notice into a file, use the standard wording as suggested
43226         by the current information for GNU maintainers, except say "file"
43227         rather than "program".  The new wording gives a license version
43228         number, which addresses an issue raised by Glenn Morris in
43229         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43230         * m4/onceonly.m4: Use that same wording here, too.
43232         dup2: minor simplification
43233         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43234         as lib/dup2.c no longer uses 'inline'.
43236 2011-09-25  Bruno Haible  <bruno@clisp.org>
43238         strings: Fix compilation error on MSVC.
43239         * lib/strings.in.h: Include <stddef.h> for size_t.
43241 2011-09-25  Bruno Haible  <bruno@clisp.org>
43243         fflush et al.: Document limitation on MSVC.
43244         * doc/posix-functions/fflush.texi: Document possible crash in handling
43245         mode other than DEFAULT_HANDLING.
43246         * doc/posix-functions/fgetc.texi: Likewise.
43247         * doc/posix-functions/fputc.texi: Likewise.
43248         * doc/posix-functions/fread.texi: Likewise.
43249         * doc/posix-functions/fwrite.texi: Likewise.
43251 2011-09-25  Bruno Haible  <bruno@clisp.org>
43253         msvc-inval: Allow three invalid parameter handling modes.
43254         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43255         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43256         macros.
43257         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43258         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43259         SANE_LIBRARY_HANDLING as a no-op.
43260         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43261         <stdlib.h>.
43262         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43264 2011-09-25  Bruno Haible  <bruno@clisp.org>
43266         msvc-inval: Make handler multithread-safe.
43267         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43268         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43269         declarations.
43270         (gl_msvc_inval_current): New declaration.
43271         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43272         Operate on the structure returned by gl_msvc_inval_current().
43273         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43274         Remove varaiables.
43275         (tls_index, tls_initialized): New variables.
43276         (not_per_thread): New variable.
43277         (gl_msvc_inval_current): New function.
43278         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43279         returned by gl_msvc_inval_current().
43281 2011-09-25  Bruno Haible  <bruno@clisp.org>
43283         msvc-inval: Install handler globally.
43284         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43285         !_MSC_VER.
43286         (gl_msvc_invalid_parameter_handler): Remove declaration.
43287         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43288         declarations.
43289         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43290         Install the handler globally, don't uninstall it.
43291         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43292         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43293         currently valid, call RaiseException instead.
43294         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43295         for !_MSC_VER.
43297 2011-09-25  Bruno Haible  <bruno@clisp.org>
43299         strerror_r-posix: Fix for MSVC 9.
43300         * lib/strerror_r.c (local_snprintf): New function.
43301         (snprintf): Define to local_snprintf, not to _snprintf.
43303 2011-09-25  Bruno Haible  <bruno@clisp.org>
43305         ftruncate: Support for MSVC 9.
43306         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43307         (chsize_nothrow): New function.
43308         (chsize): Redefine as a macro.
43309         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43310         * modules/ftruncate (Depends-on): Add msvc-inval.
43312 2011-09-25  Bruno Haible  <bruno@clisp.org>
43314         New module 'fstat'.
43315         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43316         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43317         * lib/fchdir.c (rpl_fstat): Remove function.
43318         * m4/fstat.m4: New file.
43319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43320         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43321         declared.
43322         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43323         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43324         * modules/fstat: New file.
43325         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43326         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43327         is set.
43328         * doc/posix-functions/fstat.texi: Mention the new module and the
43329         problem on MSVC.
43330         * NEWS: Mention the change.
43331         * modules/acl (Depends-on): Add fstat.
43332         * modules/chdir-safer (Depends-on): Likewise.
43333         * modules/chown (Depends-on): Likewise.
43334         * modules/copy-file (Depends-on): Likewise.
43335         * modules/fchdir (Depends-on): Likewise.
43336         * modules/fdopendir (Depends-on): Likewise.
43337         * modules/fopen (Depends-on): Likewise.
43338         * modules/fts (Depends-on): Likewise.
43339         * modules/getcwd (Depends-on): Likewise.
43340         * modules/isapipe (Depends-on): Likewise.
43341         * modules/linkat (Depends-on): Likewise.
43342         * modules/lseek (Depends-on): Likewise.
43343         * modules/mkdir-p (Depends-on): Likewise.
43344         * modules/open (Depends-on): Likewise.
43345         * modules/openat (Depends-on): Likewise.
43346         * modules/read-file (Depends-on): Likewise.
43347         * modules/renameat (Depends-on): Likewise.
43348         * modules/utimens (Depends-on): Likewise.
43350 2011-09-25  Bruno Haible  <bruno@clisp.org>
43352         linkat: Fix compilation on MSVC 9.
43353         * lib/linkat.c: Don't include <stdint.h>.
43355 2011-09-25  Bruno Haible  <bruno@clisp.org>
43357         fclose: Support for MSVC 9.
43358         * lib/fclose.c: Include msvc-inval.h.
43359         (fclose_nothrow): New function.
43360         (rpl_fclose): Use it.
43361         * modules/fclose (Depends-on): Add msvc-inval.
43362         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43364 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43366         dup2: minor simplifications
43367         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43368         that it's a performance win.
43369         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43370         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43372 2011-09-24  Jim Meyering  <meyering@redhat.com>
43374         test-futimens: avoid a warning from gcc -Wshadow
43375         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43376         to avoid a shadowing warning.
43378 2011-09-24  Bruno Haible  <bruno@clisp.org>
43380         fdopen: Support for MSVC 9.
43381         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43382         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43383         * lib/fdopen.c: Include msvc-inval.h.
43384         (fdopen_nothrow): New function.
43385         (rpl_fdopen): Use it.
43386         * modules/fdopen (Depends-on): Add msvc-inval.
43387         * modules/fclose-tests (Depends-on): Add fdopen.
43388         * modules/fflush-tests (Depends-on): Likewise.
43389         * modules/fgetc-tests (Depends-on): Likewise.
43390         * modules/fputc-tests (Depends-on): Likewise.
43391         * modules/fread-tests (Depends-on): Likewise.
43392         * modules/freopen-tests (Depends-on): Likewise.
43393         * modules/fseeko-tests (Depends-on): Likewise.
43394         * modules/ftello-tests (Depends-on): Likewise.
43395         * modules/fwrite-tests  (Depends-on): Likewise.
43396         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43398 2011-09-24  Bruno Haible  <bruno@clisp.org>
43400         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43401         * modules/fgetc-tests (Depends-on): Add unistd.
43402         * modules/fputc-tests (Depends-on): Likewise.
43403         * modules/fread-tests (Depends-on): Likewise.
43404         * modules/fwrite-tests (Depends-on): Likewise.
43406 2011-09-24  Bruno Haible  <bruno@clisp.org>
43408         dup: Simplify autoconf test.
43409         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43410         on gl_MSVC_INVAL's result.
43412 2011-09-24  Bruno Haible  <bruno@clisp.org>
43414         Tests for function fwrite().
43415         * modules/fwrite-tests: New file.
43416         * tests/test-fwrite.c: New file.
43417         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43419         Tests for function fread().
43420         * modules/fread-tests: New file.
43421         * tests/test-fread.c: New file.
43422         * modules/stdio-tests (Depends-on): Add fread-tests.
43424         Activate fputc tests.
43425         * modules/stdio-tests (Depends-on): Add fputc-tests.
43427         Enhance fgetc, fputc tests.
43428         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43429         * tests/test-fputc.c (main): Likewise.
43431 2011-09-24  Bruno Haible  <bruno@clisp.org>
43433         write: Support for MSVC 9.
43434         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43435         is not 1.
43436         * lib/write.c (write_nothrow): New function.
43437         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43438         not 1. Use write_nothrow.
43439         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43440         invalid parameter handler.
43441         (gl_PREREQ_WRITE): New macro.
43442         * modules/write (Depends-on): Add msvc-inval.
43443         (configure.ac): Invoke gl_PREREQ_WRITE.
43444         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43446 2011-09-24  Bruno Haible  <bruno@clisp.org>
43448         read: Fix last commit.
43449         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43451 2011-09-24  Bruno Haible  <bruno@clisp.org>
43453         dup2: Fix last commit.
43454         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43455         (rpl_dup2): Disable fcntl workaround on native Windows.
43457         sigprocmask: Make code safer.
43458         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43459         section that changes macro definitions for this compilation unit.
43461 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43463         dup2: clarify by coalescing Windows-specific material
43464         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43465         "msvc-nothrow.h"' to the Windows-specific section, so that the
43466         Emacs source need not contain these include files.
43467         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43468         Windows-specific fixes into this function rather than just the
43469         nothrow fix, as this shortens and clarifies the code.  Always
43470         define as a function, as that's a bit cleaner than having it be
43471         sometimes a function and sometimes a macro.
43472         (rpl_dup2): Move the Windows-specific stuff out of here and into
43473         ms_windows_dup2.  Don't protect the Haiku-related fix with
43474         "#if !defined __linux__", as the same code also works around
43475         a Linux kernel bug, and it doesn't add any system calls on any
43476         platform.  Add comment about FreeBSD 6.1.
43478         sigprocmask: move #include directive
43479         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43480         Windows-specific section, so that the Emacs source need not
43481         contain msvc-inval.h.
43483 2011-09-23  Bruno Haible  <bruno@clisp.org>
43485         read: Support for MSVC 9.
43486         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43487         is not 1.
43488         * lib/read.c (read_nothrow): New function.
43489         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43490         read_nothrow.
43491         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43492         invalid parameter handler.
43493         (gl_PREREQ_READ): New macro.
43494         * modules/read (Depends-on): Add msvc-inval.
43495         (configure.ac): Invoke gl_PREREQ_READ.
43496         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43498 2011-09-23  Bruno Haible  <bruno@clisp.org>
43500         close: Support for MSVC 9.
43501         * lib/close.c: Include <errno.h>, msvc-inval.h.
43502         (close_nothrow): New function.
43503         (rpl_close): Use it.
43504         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43505         invalid parameter handler.
43506         * modules/close (Depends-on): Add msvc-inval.
43507         * modules/dup2-tests (Depends-on): Add close.
43508         * modules/dup3-tests (Depends-on): Likewise.
43509         * modules/fcntl-tests (Depends-on): Likewise.
43510         * modules/spawn-pipe-tests (Depends-on): Likewise.
43511         * modules/unistd-safer-tests (Depends-on): Likewise.
43512         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43514 2011-09-23  Bruno Haible  <bruno@clisp.org>
43516         New module 'dup'.
43517         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43518         Allow replacement.
43519         * lib/dup.c: New file.
43520         * lib/fchdir.c (rpl_dup): Remove function.
43521         * m4/dup.m4: New file.
43522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43523         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43525         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43526         * modules/dup: New file.
43527         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43528         'dup' module is in use.
43529         * modules/fdopendir (Depends-on): Add dup.
43530         * modules/fdutimensat-tests (Depends-on): Likewise.
43531         * modules/fts (Depends-on): Likewise.
43532         * modules/futimens-tests (Depends-on): Likewise.
43533         * modules/posix_spawnp-tests (Depends-on): Likewise.
43534         * modules/unistd-safer-tests (Depends-on): Likewise.
43535         * modules/utimens-tests (Depends-on): Likewise.
43536         * doc/posix-functions/dup.texi: Mention the new module and the problem
43537         on MSVC.
43539 2011-09-23  Bruno Haible  <bruno@clisp.org>
43541         getdtablesize: Support for MSVC 9.
43542         * lib/getdtablesize.c: Include msvc-inval.h.
43543         (_setmaxstdio_nothrow): New function.
43544         (_setmaxstdio): Redefine it.
43545         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43546         * modules/getdtablesize (Depends-on): Add msvc-inval.
43547         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43549 2011-09-23  Bruno Haible  <bruno@clisp.org>
43551         signal-h: Rename from signal.
43552         * modules/signal-h: Renamed from modules/signal.
43553         * modules/pthread_sigmask (Depends-on): Update.
43554         * modules/raise (Depends-on): Likewise.
43555         * modules/sigaction (Depends-on): Likewise.
43556         * modules/sigpipe (Depends-on): Likewise.
43557         * modules/sigprocmask (Depends-on): Likewise.
43558         * modules/sys_select (Depends-on): Likewise.
43559         * modules/signal-h-tests: Renamed from modules/signal-tests.
43560         (Files, Depends-on, Makefile.am): Update.
43561         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43562         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43563         (Files, Makefile.am): Update.
43564         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43565         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43566         * modules/signal: New placeholder file.
43567         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43568         * doc/posix-headers/signal.texi: Update.
43569         * NEWS: Mention the change.
43571 2011-09-23  Bruno Haible  <bruno@clisp.org>
43573         sigprocmask: Avoid crashes through signal() on MSVC 9.
43574         * lib/sigprocmask.c: Include msvc-inval.h.
43575         (signal_nothrow): New function.
43576         (signal): Redefine it.
43577         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43578         * modules/sigprocmask (Depends-on): Add msvc-inval.
43579         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43581 2011-09-23  Bruno Haible  <bruno@clisp.org>
43583         Tests for module 'raise'.
43584         * modules/raise-tests: New file.
43585         * tests/test-raise.c: New file.
43587         raise: Support for MSVC.
43588         * lib/signal.in.h (raise): New declaration.
43589         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
43590         for native Windows platforms.
43591         * m4/raise.m4: New file.
43592         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
43593         HAVE_RAISE, REPLACE_RAISE.
43594         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
43595         REPLACE_RAISE.
43596         * modules/raise (Status, Notice): Remove fields.
43597         (Files): Add m4/raise.m4.
43598         (Depends-on): Add signal, msvc-inval.
43599         (configure.ac): Use the common idioms.
43600         (Maintainer): Add me.
43601         * tests/test-signal-c++.cc: Check the signature of raise.
43602         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
43604 2011-09-23  Bruno Haible  <bruno@clisp.org>
43606         pipe2: Fix compilation on pre-C99 compilers.
43607         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
43609 2011-09-23  Bruno Haible  <bruno@clisp.org>
43611         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
43612         * lib/msvc-nothrow.h: New file.
43613         * lib/msvc-nothrow.c: New file.
43614         * m4/msvc-nothrow.m4: New file.
43615         * modules/msvc-nothrow: New file.
43616         * lib/dup2.c: Include msvc-nothrow.h.
43617         (rpl_dup2): No need to protect _get_osfhandle call here.
43618         * lib/accept4.c: Include msvc-nothrow.h.
43619         * lib/error.c: Likewise.
43620         * lib/fcntl.c: Likewise.
43621         * lib/lseek.c: Likewise.
43622         * lib/nonblocking.c: Likewise.
43623         * lib/poll.c: Likewise.
43624         * lib/read.c: Likewise.
43625         * lib/select.c: Likewise.
43626         * lib/sockets.h: Likewise.
43627         * lib/sockets.c: Likewise.
43628         * lib/stdio-read.c: Likewise.
43629         * lib/stdio-write.c: Likewise.
43630         * lib/write.c: Likewise.
43631         * lib/w32sock.h: Likewise.
43632         * lib/w32spawn.h: Likewise.
43633         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
43634         * lib/fsync.c: Likewise.
43635         * lib/isapipe.c: Likewise.
43636         * modules/dup2 (Depends-on): Add msvc-nothrow.
43637         * modules/accept4 (Depends-on): Likewise.
43638         * modules/error (Depends-on): Likewise.
43639         * modules/fcntl (Depends-on): Likewise.
43640         * modules/lseek (Depends-on): Likewise.
43641         * modules/nonblocking (Depends-on): Likewise.
43642         * modules/poll (Depends-on): Likewise.
43643         * modules/read (Depends-on): Likewise.
43644         * modules/select (Depends-on): Likewise.
43645         * modules/sockets (Depends-on): Likewise.
43646         * modules/sigpipe (Depends-on): Likewise.
43647         * modules/write (Depends-on): Likewise.
43648         * modules/accept (Depends-on): Likewise.
43649         * modules/bind (Depends-on): Likewise.
43650         * modules/connect (Depends-on): Likewise.
43651         * modules/gethostname (Depends-on): Likewise.
43652         * modules/getpeername (Depends-on): Likewise.
43653         * modules/getsockname (Depends-on): Likewise.
43654         * modules/getsockopt (Depends-on): Likewise.
43655         * modules/ioctl (Depends-on): Likewise.
43656         * modules/listen (Depends-on): Likewise.
43657         * modules/recv (Depends-on): Likewise.
43658         * modules/recvfrom (Depends-on): Likewise.
43659         * modules/send (Depends-on): Likewise.
43660         * modules/sendto (Depends-on): Likewise.
43661         * modules/setsockopt (Depends-on): Likewise.
43662         * modules/shutdown (Depends-on): Likewise.
43663         * modules/socket (Depends-on): Likewise.
43664         * modules/execute (Depends-on): Likewise.
43665         * modules/spawn-pipe (Depends-on): Likewise.
43666         * modules/flock (Depends-on): Likewise.
43667         * modules/fsync (Depends-on): Likewise.
43668         * modules/isapipe (Depends-on): Likewise.
43669         * tests/test-cloexec.c: Include msvc-nothrow.h.
43670         * tests/test-dup-safer.c: Likewise.
43671         * tests/test-dup2.c: Likewise.
43672         * tests/test-dup3.c: Likewise.
43673         * tests/test-fcntl.c: Likewise.
43674         * tests/test-pipe.c: Likewise.
43675         * tests/test-pipe2.c: Likewise.
43676         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
43677         * modules/unistd-safer-tests (Depends-on): Likewise.
43678         * modules/dup2-tests (Depends-on): Likewise.
43679         * modules/dup3-tests (Depends-on): Likewise.
43680         * modules/fcntl-tests (Depends-on): Likewise.
43681         * modules/pipe-posix-tests (Depends-on): Likewise.
43682         * modules/pipe2-tests (Depends-on): Likewise.
43684 2011-09-23  Bruno Haible  <bruno@clisp.org>
43686         dup2: Make code more maintainable.
43687         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
43688         (rpl_dup2): Use it.
43689         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
43690         * modules/dup2 (configure.ac): Invoke it.
43691         Reported by Paul Eggert.
43693 2011-09-23  Bruno Haible  <bruno@clisp.org>
43695         msvc-inval: Fix compilation error.
43696         * lib/msvc-inval.h: Include <excpt.h>.
43698 2011-09-23  Bruno Haible  <bruno@clisp.org>
43700         mkdir: Tweak for MSVC 9.
43701         * lib/sys_stat.in.h: Update comments.
43702         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
43704         Tests for module 'chdir'.
43705         * modules/chdir-tests: New file.
43706         * tests/test-chdir.c: New file.
43708         New module 'chdir'.
43709         * modules/chdir: New file.
43710         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
43711         (chdir): New declaration.
43712         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
43713         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
43714         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
43715         * tests/test-unistd-c++.cc: Check signature of chdir.
43716         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
43717         * modules/chdir-long (Depends-on): Add chdir.
43718         * modules/fchdir (Depends-on): Likewise.
43719         * modules/rename (Depends-on): Likewise.
43720         * modules/savewd (Depends-on): Likewise.
43722         rmdir: Support for mingw, MSVC 9.
43723         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
43724         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
43726         getcwd: Tweak for MSVC 9.
43727         * lib/unistd.in.h: Update comments.
43728         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
43730 2011-09-22  Bruno Haible  <bruno@clisp.org>
43732         strerror_r-posix: Avoid a link error on MSVC.
43733         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
43734         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
43736 2011-09-22  Bruno Haible  <bruno@clisp.org>
43738         select: Avoid link errors on MSVC.
43739         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
43740         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
43741         * modules/pselect (Link): Likewise.
43742         * NEWS: Mention the change.
43743         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
43744         test-select-stdin against $(LIB_SELECT).
43745         * modules/pselect-tests (Makefile.am): Link test-pselect against
43746         $(LIB_SELECT).
43748 2011-09-22  Bruno Haible  <bruno@clisp.org>
43750         select: Avoid compilation error on MSVC.
43751         * lib/select.c: Don't include <stdbool.h>.
43753 2011-09-21  Bruno Haible  <bruno@clisp.org>
43755         Consolidate all uses of PATH_MAX in *.m4 files.
43756         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
43757         macros.
43758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
43759         and gl_PATHMAX_SNIPPET.
43760         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
43761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43762         * modules/chdir-long (Files): Add m4/pathmax.m4.
43763         * modules/getcwd (Files): Likewise.
43765 2011-09-21  Bruno Haible  <bruno@clisp.org>
43767         ftruncate: Un-deprecate, concentrate on Win32 support.
43768         * modules/ftruncate (Status, Notice): Remove sections.
43769         (Depends-on): Add largefile.
43770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
43771         non-mingw platforms.
43772         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
43773         include <io.h>.
43774         * modules/perror-tests (Depends-on): Add ftruncate.
43775         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
43776         'ftruncate' module.
43778 2011-09-21  Bruno Haible  <bruno@clisp.org>
43780         Add dependencies to new dirent related modules.
43781         * modules/opendir (Depends-on): Add closedir.
43782         * modules/getcwd (Depends-on): Add opendir, closedir.
43783         * modules/dirent-safer-tests (Depends-on): Likewise.
43784         * modules/fdopendir-tests (Depends-on): Likewise.
43785         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
43786         * modules/renameat-tests (Depends-on): Likewise.
43788 2011-09-21  Bruno Haible  <bruno@clisp.org>
43790         opendir: Avoid compilation error on mingw.
43791         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
43792         * modules/opendir (Depends-on): Add unistd.
43794 2011-09-21  Bruno Haible  <bruno@clisp.org>
43796         ftruncate tests: Avoid a test failure on mingw.
43797         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
43799 2011-09-21  Bruno Haible  <bruno@clisp.org>
43801         select tests: Avoid test failures on OSF/1 5.1 and mingw.
43802         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
43803         native Windows.
43805 2011-09-21  Bruno Haible  <bruno@clisp.org>
43807         New module 'fdopen'.
43808         * lib/stdio.in.h (fdopen): New declaration.
43809         * lib/fdopen.c: New file.
43810         * m4/fdopen.m4: New file.
43811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
43812         REPLACE_FDOPEN.
43813         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
43814         REPLACE_FDOPEN.
43815         * modules/fdopen: New file.
43816         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
43817         * tests/test-stdio-c++.cc: Check signature of fdopen.
43818         * doc/posix-functions/fdopen.texi: Mention the new module.
43820 2011-09-21  Bruno Haible  <bruno@clisp.org>
43822         unlockpt tests: Avoid test failure on NetBSD 5.1.
43823         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
43824         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
43826 2011-09-21  Bruno Haible  <bruno@clisp.org>
43828         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
43829         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
43830         * tests/test-getlogin_r.c (main): Likewise.
43832 2011-09-20  Bruno Haible  <bruno@clisp.org>
43834         time tests: Don't require pid_t.
43835         * doc/posix-headers/time.texi: Revert last change.
43836         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
43837         * tests/test-time.c: Comment out the check for pid_t.
43839 2011-09-20  Bruno Haible  <bruno@clisp.org>
43841         fsync tests: Avoid a test failure on mingw.
43842         * tests/test-fsync.c (main): Allow a failure with EIO.
43844 2011-09-20  Bruno Haible  <bruno@clisp.org>
43846         euidaccess: Update comments.
43847         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
43849 2011-09-20  Bruno Haible  <bruno@clisp.org>
43851         Ensure EBADF returns for socket functions on mingw.
43852         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
43853         descriptor is invalid.
43854         * lib/bind.c (rpl_bind): Likewise.
43855         * lib/connect.c (rpl_connect): Likewise.
43856         * lib/getpeername.c (rpl_getpeername): Likewise.
43857         * lib/getsockname.c (rpl_getsockname): Likewise.
43858         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43859         * lib/listen.c (rpl_listen): Likewise.
43860         * lib/recv.c (rpl_recv): Likewise.
43861         * lib/recvfrom.c (rpl_recvfrom): Likewise.
43862         * lib/send.c (rpl_send): Likewise.
43863         * lib/sendto.c (rpl_sendto): Likewise.
43864         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43865         * lib/shutdown.c (rpl_shutdown): Likewise.
43867 2011-09-20  Bruno Haible  <bruno@clisp.org>
43869         select tests: EBADF tests.
43870         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
43871         test_bad_fd): New functions.
43872         (test_function): Invoke also test_bad_fd.
43874 2011-09-20  Bruno Haible  <bruno@clisp.org>
43876         Tests for module 'posix_spawn_file_actions_addopen.
43877         * modules/posix_spawn_file_actions_addopen-tests: New file.
43878         * tests/test-posix_spawn_file_actions_addopen.c: New file.
43880         Tests for module 'posix_spawn_file_actions_adddup2'.
43881         * modules/posix_spawn_file_actions_adddup2-tests: New file.
43882         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
43884         Tests for module 'posix_spawn_file_actions_addclose'.
43885         * modules/posix_spawn_file_actions_addclose-tests: New file.
43886         * tests/test-posix_spawn_file_actions_addclose.c: New file.
43888 2011-09-20  Bruno Haible  <bruno@clisp.org>
43890         Tests for module 'unlockpt'.
43891         * modules/unlockpt-tests: New file.
43892         * tests/test-unlockpt.c: New file.
43893         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
43895         Tests for module 'grantpt'.
43896         * modules/grantpt-tests: New file.
43897         * tests/test-grantpt.c: New file.
43898         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
43900 2011-09-20  Bruno Haible  <bruno@clisp.org>
43902         freopen tests: EBADF tests.
43903         * tests/test-freopen.c: Include errno.h, unistd.h.
43904         (main): Add tests for EBADF, commented out for the moment.
43906         fclose tests: EBADF tests.
43907         * tests/test-fclose.c (main): Add tests for EBADF.
43909         fflush tests: EBADF tests.
43910         * tests/test-fflush.c: Include errno.h, macros.h.
43911         (main): Add tests for EBADF.
43913         ftello tests: EBADF tests.
43914         * tests/test-ftello4.sh: New file.
43915         * tests/test-ftello4.c: New file.
43916         * modules/ftello-tests (Files): Add them.
43917         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
43919         fseeko tests: EBADF tests.
43920         * tests/test-fseeko4.sh: New file.
43921         * tests/test-fseeko4.c: New file.
43922         * modules/fseeko-tests (Files): Add them.
43923         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
43925         Tests for function fputc().
43926         * modules/fputc-tests: New file.
43927         * tests/test-fputc.c: New file.
43928         * modules/stdio-tests (Depends-on): Add fputc-tests.
43930         Tests for function fgetc().
43931         * modules/fgetc-tests: New file.
43932         * tests/test-fgetc.c: New file.
43933         * modules/stdio-tests (Depends-on): Add fgetc-tests.
43935         Tests for function fdopen().
43936         * modules/fdopen-tests: New file.
43937         * tests/test-fdopen.c: New file.
43938         * modules/stdio-tests (Depends-on): Add fdopen-tests.
43940         Tests for module 'vdprintf'.
43941         * modules/vdprintf-tests: New file.
43942         * tests/test-vdprintf.c: New file.
43944         Tests for module 'dprintf'.
43945         * modules/dprintf-tests: New file.
43946         * tests/test-dprintf.c: New file.
43948 2011-09-20  Bruno Haible  <bruno@clisp.org>
43950         Tests for module 'ioctl'.
43951         * modules/ioctl-tests: New file.
43952         * tests/test-ioctl.c: New file.
43954 2011-09-20  Bruno Haible  <bruno@clisp.org>
43956         fcntl tests: EBADF tests.
43957         * tests/test-fcntl.c (main): Add more tests for EBADF.
43959 2011-09-20  Bruno Haible  <bruno@clisp.org>
43961         utimensat tests: EBADF tests.
43962         * tests/test-utimensat.c (main): Add tests for EBADF.
43964         renameat tests: EBADF tests.
43965         * tests/test-renameat.c (main): Add tests for EBADF.
43967         mkfifoat tests: EBADF tests.
43968         * tests/test-mkfifoat.c (main): Add tests for EBADF.
43970         readlinkat tests: EBADF tests.
43971         * tests/test-readlinkat.c (main): Add tests for EBADF.
43973         symlinkat tests: EBADF tests.
43974         * tests/test-symlinkat.c (main): Add tests for EBADF.
43976         linkat tests: EBADF tests.
43977         * tests/test-linkat.c (main): Add tests for EBADF.
43979         Tests for module 'faccessat'.
43980         * modules/faccessat-tests: New file.
43981         * tests/test-faccessat.c: New file.
43983         fdopendir tests: EBADF tests.
43984         * tests/test-fdopendir.c (main): Add more tests for EBADF.
43986         openat tests: EBADF tests.
43987         * tests/test-fchownat.c (main): Add tests for EBADF.
43988         * tests/test-fstatat.c (main): Likewise.
43989         * tests/test-mkdirat.c (main): Likewise.
43990         * tests/test-openat.c (main): Likewise.
43991         * tests/test-unlinkat.c (main): Likewise.
43992         * tests/test-fchmodat.c: New file.
43993         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
43994         (Makefile.am): Also run 'test-fchmodat'.
43996 2011-09-20  Bruno Haible  <bruno@clisp.org>
43998         utimens, futimens, fdutimensat tests: EBADF tests.
43999         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44001         Tests for function fstat().
44002         * modules/fstat-tests: New file.
44003         * tests/test-fstat.c: New file.
44004         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44006 2011-09-20  Bruno Haible  <bruno@clisp.org>
44008         test-ttyname_r tests: EBADF tests.
44009         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44011         Tests for module 'isatty'.
44012         * modules/isatty-tests: New file.
44013         * tests/test-isatty.c: New file.
44015         Tests for module 'write'.
44016         * modules/write-tests: New file.
44017         * tests/test-write.c: New file.
44019         Tests for module 'read'.
44020         * modules/read-tests: New file.
44021         * tests/test-read.c: New file.
44023         pwrite tests: EBADF tests.
44024         * tests/test-pwrite.c (main): Add tests for EBADF.
44026         pread tests: EBADF tests.
44027         * tests/test-pread.c (main): Add tests for EBADF.
44029         lseek tests: EBADF tests.
44030         * tests/test-lseek.c (main): Add more tests for EBADF.
44032         Tests for module 'ftruncate'.
44033         * modules/ftruncate-tests: New file.
44034         * tests/test-ftruncate.sh: New file.
44035         * tests/test-ftruncate.c: New file.
44037         fsync tests: EBADF tests.
44038         * tests/test-fsync.c (main): Add more tests for EBADF.
44040         fdatasync tests: EBADF tests.
44041         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44043         Tests for module 'fchown'.
44044         * modules/fchown-tests: New file.
44045         * tests/test-fchown.c: New file.
44047         Tests for module 'fchmod'.
44048         * modules/fchmod-tests: New file.
44049         * tests/test-fchmod.c: New file.
44051         fchdir tests: EBADF tests.
44052         * tests/test-fchdir.c (main): Add more tests for EBADF.
44054         dup2 tests: EBADF tests.
44055         * tests/test-dup2.c (main): Add more tests for EBADF.
44057         Tests for module 'dup'.
44058         * modules/dup-tests: New file.
44059         * tests/test-dup.c: New file.
44061         Tests for module 'close'.
44062         * modules/close-tests: New file.
44063         * tests/test-close.c: New file.
44065 2011-09-20  Bruno Haible  <bruno@clisp.org>
44067         Tests for module 'shutdown'.
44068         * modules/shutdown-tests: New file.
44069         * tests/test-shutdown.c: New file.
44071         Tests for module 'setsockopt'.
44072         * modules/setsockopt-tests: New file.
44073         * tests/test-setsockopt.c: New file.
44075         Tests for module 'sendto'.
44076         * modules/sendto-tests: New file.
44077         * tests/test-sendto.c: New file.
44079         Tests for module 'send'.
44080         * modules/send-tests: New file.
44081         * tests/test-send.c: New file.
44083         Tests for module 'recvfrom'.
44084         * modules/recvfrom-tests: New file.
44085         * tests/test-recvfrom.c: New file.
44087         Tests for module 'recv'.
44088         * modules/recv-tests: New file.
44089         * tests/test-recv.c: New file.
44091         Tests for module 'listen'.
44092         * modules/listen-tests: New file.
44093         * tests/test-listen.c: New file.
44095         Tests for module 'getsockopt'.
44096         * modules/getsockopt-tests: New file.
44097         * tests/test-getsockopt.c: New file.
44099         Tests for module 'getsockname'.
44100         * modules/getsockname-tests: New file.
44101         * tests/test-getsockname.c: New file.
44103         Tests for module 'getpeername'.
44104         * modules/getpeername-tests: New file.
44105         * tests/test-getpeername.c: New file.
44107         Tests for module 'connect'.
44108         * modules/connect-tests: New file.
44109         * tests/test-connect.c: New file.
44111         Tests for module 'bind'.
44112         * modules/bind-tests: New file.
44113         * tests/test-bind.c: New file.
44115         accept4 tests: Fix for native Windows.
44116         * tests/test-accept4.c: Include sockets.h.
44117         (main): Invoke gl_sockets_startup.
44118         * modules/accept4-tests (Depends-on): Add sockets.
44120         accept tests: Fix for native Windows.
44121         * tests/test-accept.c: Include sockets.h.
44122         (main): Invoke gl_sockets_startup.
44123         * modules/accept-tests (Depends-on): Add sockets.
44125 2011-09-19  Bruno Haible  <bruno@clisp.org>
44127         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44128         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44129         do...while(0).
44130         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44131         Suggested by Paul Eggert.
44133 2011-09-19  Bruno Haible  <bruno@clisp.org>
44135         sched: Ensure pid_t is defined.
44136         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44137         not define pid_t.
44138         * lib/sched.in.h: Include <sys/types.h>.
44139         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44142 2011-09-19  Bruno Haible  <bruno@clisp.org>
44144         msvc-inval: Ensure the entire expansion is a single statement.
44145         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44146         of braces.
44148 2011-09-19  Jim Meyering  <meyering@redhat.com>
44150         tests: use printf, not echo in init.sh's warn_ function
44151         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44152         misbehave when given strings containing a backslash or starting
44153         with e.g., -n.  James Youngman suggested setting IFS.
44155 2011-09-19  Eric Blake  <eblake@redhat.com>
44157         futimens: enhance test
44158         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44159         closed non-negative fd.
44161         date: accept 'hence' as opposite of 'ago'
44162         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44163         * tests/test-parse-datetime.c (main): Enhance test.
44164         Suggested by Jesse Wilson.
44166 2011-09-19  Jim Meyering  <meyering@redhat.com>
44168         getcwd: don't fail in a deep directory on a system without openat
44169         Before this change, getcwd would fail when called from a directory
44170         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44171         the non-openat implementation used "..", "../..", "../../..", etc.
44172         to access ancestor directories.  With too many, that string would
44173         be longer than PATH_MAX.
44174         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44175         using gnulib's openat replacement.
44176         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44177         we're using the replacement function.
44179 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44181         maint.mk: avoid warnings from perl about missing files
44182         * top/maint.mk (def_sym_regex): Ignore files listed in
44183         $(gl_other_headers_) that do not exist, say because a project
44184         does not use a corresponding module.
44186 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44188         stat: use pathmax.h only if needed
44189         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44190         This is better for Emacs, which does not have a mingw port and
44191         therefore can avoid the pathmax module.
44193         utimens: remove dependency on dup2
44194         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44195         to work around the Linux kernel bug.
44196         * modules/utimens (Depends-on): Remove dup2.
44198 2011-09-18  Bruno Haible  <bruno@clisp.org>
44200         inet_ntop, inet_pton: Look for it also in libresolv.
44201         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44202         libnsl, search for it in libresolv.
44203         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44204         Needed on Solaris 7.
44206 2011-09-18  Bruno Haible  <bruno@clisp.org>
44208         accept, accept4 tests: Avoid link error on Solaris.
44209         * modules/accept-tests (Makefile.am): Link test-accept against
44210         $(LIBSOCKET).
44211         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44212         $(LIBSOCKET).
44214         accept4: Avoid link error on Solaris.
44215         * modules/accept4 (Link): New section.
44217         socket functions: Avoid link errors on Solaris.
44218         * modules/accept (Depends-on): Add socketlib.
44219         (Link): New section.
44220         * modules/bind (Depends-on): Add socketlib.
44221         (Link): New section.
44222         * modules/connect (Depends-on): Add socketlib.
44223         (Link): New section.
44224         * modules/getpeername (Depends-on): Add socketlib.
44225         (Link): New section.
44226         * modules/getsockname (Depends-on): Add socketlib.
44227         (Link): New section.
44228         * modules/getsockopt (Depends-on): Add socketlib.
44229         (Link): New section.
44230         * modules/listen (Depends-on): Add socketlib.
44231         (Link): New section.
44232         * modules/recv (Depends-on): Add socketlib.
44233         (Link): New section.
44234         * modules/recvfrom (Depends-on): Add socketlib.
44235         (Link): New section.
44236         * modules/send (Depends-on): Add socketlib.
44237         (Link): New section.
44238         * modules/sendto (Depends-on): Add socketlib.
44239         (Link): New section.
44240         * modules/setsockopt (Depends-on): Add socketlib.
44241         (Link): New section.
44242         * modules/shutdown (Depends-on): Add socketlib.
44243         (Link): New section.
44244         * modules/socket (Depends-on): Add socketlib.
44245         (Link): New section.
44247 2011-09-18  Bruno Haible  <bruno@clisp.org>
44249         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44250         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44251         than 5 seconds.
44252         * modules/ptsname-tests (configure.ac): Test for alarm.
44254 2011-09-18  Bruno Haible  <bruno@clisp.org>
44256         posix_spawn_file_actions_add*: Fix module dependencies.
44257         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44258         posix_spawn_file_actions_init.
44259         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44260         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44262 2011-09-18  Bruno Haible  <bruno@clisp.org>
44264         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44265         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44266         * tests/test-renameat.c (main): Likewise.
44268 2011-09-18  Bruno Haible  <bruno@clisp.org>
44270         Tests for module 'accept4'.
44271         * modules/accept4-tests: New file.
44272         * tests/test-accept4.c: New file.
44274 2011-09-18  Bruno Haible  <bruno@clisp.org>
44276         Tests for module 'accept'.
44277         * modules/accept-tests: New file.
44278         * tests/test-accept.c: New file.
44280 2011-09-18  Bruno Haible  <bruno@clisp.org>
44282         dup2: Support for MSVC.
44283         * lib/dup2.c: Include msvc-inval.h.
44284         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44285         _get_osfhandle calls.
44286         * modules/dup2 (Depends-on): Add msvc-inval.
44287         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44289         New module 'msvc-inval'.
44290         * lib/msvc-inval.h: New file.
44291         * lib/msvc-inval.c: New file.
44292         * m4/msvc-inval.m4: New file.
44293         * modules/msvc-inval: New file.
44295 2011-09-17  Bruno Haible  <bruno@clisp.org>
44297         Tests for module 'pclose'.
44298         * modules/pclose-tests: New file.
44300         New module 'pclose'.
44301         * lib/stdio.in.h (pclose): New declaration.
44302         * lib/pclose.c: New file.
44303         * m4/pclose.m4: New file.
44304         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44305         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44306         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44307         * modules/pclose: New file.
44308         * modules/popen-tests (Depends-on): Add pclose.
44309         * modules/popen-safer-tests (Depends-on): Likewise.
44310         * doc/posix-functions/pclose.texi: Mention the new module.
44312 2011-09-17  Bruno Haible  <bruno@clisp.org>
44314         popen: Support for MSVC.
44315         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44316         * lib/popen.c (popen): Provide alternate definition for native Windows.
44317         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44319         * modules/popen (Depends-on, configure.ac): Update condition.
44320         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44321         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44322         fixed.
44324 2011-09-17  Bruno Haible  <bruno@clisp.org>
44326         isnanl, isnand, isnanf: Work around MSVC bug.
44327         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44329 2011-09-17  Bruno Haible  <bruno@clisp.org>
44331         sys_socket tests: Fix recent mistake.
44332         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44334 2011-09-17  Bruno Haible  <bruno@clisp.org>
44336         putenv: Support for MSVC.
44337         * modules/putenv (Depends-on): Add environ.
44338         * lib/putenv.c (environ): Disable declaration.
44339         * lib/unistd.in.h: Update comment.
44341 2011-09-17  Bruno Haible  <bruno@clisp.org>
44343         math: Avoid macro redefinition warnings on MSVC.
44344         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44345         Undefine before redefining.
44347 2011-09-17  Bruno Haible  <bruno@clisp.org>
44349         doc: Mention functions which are declared as macros.
44350         * doc/posix-functions/*[fl].texi: Mention that some functions are
44351         defined as macros with arguments only.
44353 2011-09-17  Bruno Haible  <bruno@clisp.org>
44355         Add dependencies to new dirent related modules.
44356         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44357         * modules/fts (Depends-on): Likewise.
44358         * modules/glob (Depends-on): Likewise.
44359         * modules/savedir (Depends-on): Likewise.
44360         * modules/scandir (Depends-on): Likewise.
44361         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44362         * modules/fdopendir (Depends-on): Add opendir.
44364 2011-09-17  Bruno Haible  <bruno@clisp.org>
44366         inet_pton: Support for MSVC on Windows Vista or newer.
44367         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44368         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44369         HAVE_DECL_INET_PTON is defined.
44370         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44371         On platforms with <winsock2.h>, test whether inet_pton is declared in
44372         <ws2tcpip.h>. If so, arrange to replace it.
44373         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44374         REPLACE_INET_PTON.
44375         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44376         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44377         (Depends-on, configure.ac): Update condition.
44378         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44380 2011-09-17  Bruno Haible  <bruno@clisp.org>
44382         inet_ntop: Support for MSVC on Windows Vista or newer.
44383         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44384         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44385         HAVE_DECL_INET_NTOP is defined.
44386         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44387         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44388         <ws2tcpip.h>. If so, arrange to replace it.
44389         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44390         REPLACE_INET_NTOP.
44391         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44392         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44393         (Depends-on, configure.ac): Update condition.
44394         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44396 2011-09-16  Eric Blake  <eblake@redhat.com>
44398         test-fsync: yet another enhancement
44399         * tests/test-fsync.c (main): Also test behavior on read-only text
44400         file.
44402 2011-09-16  Bruno Haible  <bruno@clisp.org>
44404         Enhance fsync, fdatasync tests.
44405         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44406         * tests/test-fdatasync.c (main): Likewise.
44408 2011-09-16  Bruno Haible  <bruno@clisp.org>
44410         Support for MSVC compiler: Ensure mode_t gets defined.
44411         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44412         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44414         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44415         * tests/test-fcntl-h.c: Check that mode_t is defined.
44416         * tests/test-sys_stat.c: Likewise.
44417         * tests/test-sys_types.c: Likewise.
44418         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44419         * doc/posix-headers/sys_stat.texi: Likewise.
44420         * doc/posix-headers/sys_types.texi: Likewise.
44422 2011-09-16  Bruno Haible  <bruno@clisp.org>
44424         sys_stat: Support for MSVC.
44425         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44426         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44427         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44428         MSVC.
44430 2011-09-16  Bruno Haible  <bruno@clisp.org>
44432         Support for MSVC compiler: Ensure off_t gets defined.
44433         * lib/unistd.in.h: Include <sys/types.h>.
44434         * tests/test-fcntl-h.c: Check that off_t is defined.
44435         * tests/test-sys_stat.c: Likewise.
44436         * tests/test-sys_types.c: Likewise.
44438 2011-09-16  Eric Blake  <eblake@redhat.com>
44440         fdatasync: port to Solaris
44441         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44442         * modules/fdatasync (Link): Document it.
44443         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44445         fdatasync: port to MacOS X 10.7
44446         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44447         declared.
44448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44449         * modules/unistd (Makefile.am): Substitute it.
44450         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44451         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44453         fdatasync: minor improvements
44454         * modules/fdatasync (Depends-on): Add condition for fsync.
44455         * lib/fdatasync.c (fdatasync): Add comment.
44456         * tests/test-unistd-c++.cc: Test fdatasync.
44458         unistd: update refs to newer POSIX
44459         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44460         Suggested by Bruno Haible.
44462         fdatasync: new module
44463         * modules/fsync (Description): Document difference to fdatasync.
44464         * modules/fdatasync: New module.
44465         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44466         * lib/fdatasync.c (fdatasync): Likewise.
44467         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44468         defaults.
44469         * modules/unistd (Makefile.am): Set witnesses.
44470         * lib/unistd.in.h (fdatasync): Declare.
44471         * MODULES.html.sh: Document it.
44472         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44473         * modules/fdatasync-tests: New test.
44474         * tests/test-fdatasync.c: Likewise.
44476 2011-09-16  Eric Blake  <eblake@redhat.com>
44478         test-fsync: enhance tests
44479         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44480         * tests/test-fsync.c (main): Enhance test.
44482 2011-09-15  Bruno Haible  <bruno@clisp.org>
44484         Support for MSVC compiler: Ensure ssize_t gets defined.
44485         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44486         * doc/posix-headers/stdio.texi: Likewise.
44487         * modules/stdio (Depends-on): Add ssize_t.
44488         * modules/sys_socket (Depends-on): Likewise.
44489         * modules/sys_types (Depends-on): Likewise.
44490         * modules/sys_uio (Depends-on): Likewise.
44491         * modules/unistd (Depends-on): Likewise.
44492         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44493         * tests/test-sys_types.c: Check that ssize_t is defined.
44495 2011-09-14  Bruno Haible  <bruno@clisp.org>
44497         Avoid using #, the m4 comment starter character, near brackets.
44498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44499         delimiter character in sed expressions.
44500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44501         Suggested by Eric Blake.
44503         Properly quote AC_CHECK_DECLS' 4th argument.
44504         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44505         argument.
44506         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44507         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44508         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44509         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44510         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44511         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44512         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44513         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44514         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44515         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44516         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44517         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44518         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44519         * m4/isinf.m4 (gl_ISINF): Likewise.
44520         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44521         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44523         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44525         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44526         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44527         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44528         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44529         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44533         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44535         Reported by Eric Blake.
44537         Properly quote AC_CHECK_DECL's 4th argument.
44538         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44539         argument.
44540         * m4/argp.m4 (gl_ARGP): Likewise.
44541         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44542         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44543         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44544         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44545         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44546         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44548         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44550         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44551         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44552         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44553         Reported by Eric Blake.
44555 2011-09-14  Eric Blake  <eblake@redhat.com>
44557         opendir: avoid compile warning
44558         * lib/opendir.c (includes): Always include errno.h.
44559         Reported by Tatsuro MATSUOKA.
44561 2011-09-14  Jim Meyering  <meyering@redhat.com>
44563         maint.mk: sc_tight_scope: propagate failure from sub-make
44564         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44565         Reported by Martin von Gagern.
44567 2011-09-13  Bruno Haible  <bruno@clisp.org>
44569         tempname: Support for MSVC.
44570         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44571         MSVC.
44572         * modules/tempname (Depends-on): Add fcntl-h.
44574 2011-09-13  Bruno Haible  <bruno@clisp.org>
44576         sys_time: Support for MSVC.
44577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44578         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44579         include <winsock2.h>.
44580         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44581         function declarations that collide with POSIX.
44582         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44583         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44585 2011-09-13  Bruno Haible  <bruno@clisp.org>
44587         stat: Support for MSVC.
44588         * lib/stat.c: Include pathmax.h.
44589         * modules/stat (Depends-on): Add pathmax.
44591         pathmax: Support for native Windows.
44592         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
44594 2011-09-12  Bruno Haible  <bruno@clisp.org>
44596         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
44597         * lib/dirent.in.h (struct dirent): New type.
44598         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
44599         DT_WHT): New macros.
44600         (DIR): New type.
44601         (opendir, closedir): Declare only if the module 'opendir' is enabled.
44602         (readdir, rewinddir): New declarations.
44603         * lib/dirent-private.h: New file.
44604         * lib/opendir.c: New file.
44605         * lib/readdir.c: New file.
44606         * lib/rewinddir.c: New file.
44607         * lib/closedir.c: New file.
44608         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
44609         * m4/opendir.m4: New file.
44610         * m4/readdir.m4: New file.
44611         * m4/rewinddir.m4: New file.
44612         * m4/closedir.m4: New file.
44613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
44614         REPLACE_CLOSEDIR here.
44615         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
44616         readdir, rewinddir are declared.
44617         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
44618         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
44619         HAVE_REWINDDIR, HAVE_CLOSEDIR.
44620         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
44621         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
44622         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
44623         * modules/opendir: New file.
44624         * modules/readdir: New file.
44625         * modules/rewinddir: New file.
44626         * modules/closedir: New file.
44627         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
44628         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
44629         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
44630         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
44631         * NEWS: Mention the 'fchdir' change.
44633 2011-09-11  Bruno Haible  <bruno@clisp.org>
44635         asm-underscore.m4: Support for MSVC.
44636         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
44637         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
44639 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
44641         Doc about crypt functions.
44642         * doc/posix-functions/crypt.texi: Expand range of glibc versions
44643         needing for _GNU_SOURCE to get crypt.
44644         * doc/posix-functions/encrypt.texi: Likewise.
44645         * doc/posix-functions/setkey.texi: Likewise.
44647 2011-09-11  Bruno Haible  <bruno@clisp.org>
44649         doc: Update regarding MSVC 9.
44650         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
44651         tested".
44652         * doc/posix-functions/*.texi: Update with info about MSVC 9.
44653         * doc/posix-headers/*.texi: Likewise.
44654         * doc/pastposix-functions/*.texi: Likewise.
44655         * doc/glibc-functions/*.texi: Likewise.
44656         * doc/glibc-headers/*.texi: Likewise.
44658 2011-09-11  Bruno Haible  <bruno@clisp.org>
44660         unistd et al.: Don't assume <unistd.h> exists.
44661         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
44662         does not exist.
44663         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
44664         exist. But include <stdlib.h>.
44665         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
44666         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
44667         symlink() does not exist.
44668         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
44669         include <io.h> instead.
44670         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
44671         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
44672         include <direct.h> instead.
44673         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44675         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
44676         <io.h> instead.
44677         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
44678         correctly if the system does not have hard links.
44679         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
44680         <direct.h> instead.
44681         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44682         it when looking for function declarations.
44683         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
44684         <direct.h> and <io.h> instead.
44685         * doc/posix-headers/unistd.texi: More details about MSVC problem.
44687 2011-09-11  Bruno Haible  <bruno@clisp.org>
44689         strcase: Support for MSVC.
44690         * modules/strcase (Status, Notice): Remove obsoletion mark.
44691         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
44692         * doc/posix-functions/strncasecmp.texi: Likewise.
44694         strings: Don't assume <strings.h> exists.
44695         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
44696         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
44697         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
44698         * doc/posix-headers/strings.texi: Mention the MSVC problem.
44700 2011-09-11  Bruno Haible  <bruno@clisp.org>
44702         dirent: Don't assume <dirent.h> exists.
44703         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
44704         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
44705         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
44706         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
44708 2011-09-11  Bruno Haible  <bruno@clisp.org>
44710         Fix wint_t on MSVC.
44711         * lib/wchar.in.h (wint_t): On MSVC, override it.
44712         * lib/wctype.in.h (wint_t): Likewise.
44713         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
44714         MSVC.
44715         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
44716         * doc/posix-headers/wctype.texi: Likewise.
44718 2011-09-11  Bruno Haible  <bruno@clisp.org>
44720         sys_types: Fix typo.
44721         * lib/sys_types.in.h: Fix typo in comment.
44722         Reported by Paul Eggert.
44724         Support for MSVC compiler: Ensure size_t gets defined.
44725         * modules/strings (Depends-on): Add 'sys_types'.
44726         * modules/sys_uio (Depends-on): Likewise.
44727         * lib/sys_uio.in.h: Update comment.
44729         C++ tests for module 'sys_types'.
44730         * modules/sys_types-c++-tests: New file.
44731         * tests/test-sys_types-c++.cc: New file.
44733         Tests for module 'sys_types'.
44734         * modules/sys_types-tests: New file.
44735         * tests/test-sys_types.c: New file.
44737         New module 'sys_types'.
44738         * lib/sys_types.in.h: New file.
44739         * m4/sys_types_h.m4: New file.
44740         * modules/sys_types: New file.
44741         * doc/posix-headers/sys_types.texi: Mention the new module and the
44742         size_t problem on MSVC 9.
44744 2011-09-11  Bruno Haible  <bruno@clisp.org>
44746         Support for MSVC compiler: Avoid division by a literal 0.
44747         * lib/math.in.h (NAN): Define through a function call also on MSVC.
44748         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
44749         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
44750         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
44751         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
44752         * tests/infinity.h: New file.
44753         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
44754         on MSVC.
44755         * tests/test-ceilf1.c: Include infinity.h.
44756         (main): Use Infinityf.
44757         * tests/test-ceil1.c: Include infinity.h.
44758         (main): Use Infinityd.
44759         * tests/test-ceill.c: Include infinity.h.
44760         (main): Use Infinityl.
44761         * tests/test-dprintf-posix.c: Include infinity.h.
44762         (test_function): Use Infinityd.
44763         * tests/test-floorf1.c: Include infinity.h.
44764         (main): Use Infinityf.
44765         * tests/test-floor1.c: Include infinity.h.
44766         (main): Use Infinityd.
44767         * tests/test-floorl.c: Include infinity.h.
44768         (main): Use Infinityl.
44769         * tests/test-fprintf-posix.c: Include infinity.h.
44770         (test_function): Use Infinityd.
44771         * tests/test-frexp.c: Include infinity.h.
44772         (main): Use Infinityd.
44773         * tests/test-frexpl.c: Include infinity.h.
44774         (main): Use Infinityl.
44775         * tests/test-isfinite.c: Include infinity.h.
44776         (test_isfinitef): Use Infinityf.
44777         (test_isfinited): Use Infinityd.
44778         (test_isfinitel): Use Infinityl.
44779         * tests/test-isinf.c: Include infinity.h.
44780         (test_isinff): Use Infinityf.
44781         (test_isinfd): Use Infinityd.
44782         (test_isinfl): Use Infinityl.
44783         * tests/test-isnan.c: Include infinity.h.
44784         (test_float): Use Infinityf.
44785         (test_double): Use Infinityd.
44786         (test_long_double): Use Infinityl.
44787         * tests/test-isnanf.h: Include infinity.h.
44788         (main): Use Infinityf.
44789         * tests/test-isnand.h: Include infinity.h.
44790         (main): Use Infinityd.
44791         * tests/test-isnanl.h: Include infinity.h.
44792         (main): Use Infinityl.
44793         * tests/test-ldexpl.c: Include infinity.h.
44794         (main): Use Infinityl.
44795         * tests/test-printf-posix.h: Include infinity.h.
44796         (test_function): Use Infinityd.
44797         * tests/test-roundf1.c: Include infinity.h.
44798         (main): Use Infinityf.
44799         * tests/test-round1.c: Include infinity.h.
44800         (main): Use Infinityd.
44801         * tests/test-roundl.c: Include infinity.h.
44802         (main): Use Infinityl.
44803         * tests/test-signbit.c: Include infinity.h.
44804         (test_signbitf): Use Infinityf.
44805         (test_signbitd): Use Infinityd.
44806         (test_signbitl): Use Infinityl.
44807         * tests/test-snprintf-posix.h: Include infinity.h.
44808         (test_function): Use Infinityd, Infinityl.
44809         * tests/test-sprintf-posix.h: Include infinity.h.
44810         (test_function): Use Infinityd, Infinityl.
44811         * tests/test-truncf1.c: Include infinity.h.
44812         (main): Use Infinityf.
44813         * tests/test-trunc1.c: Include infinity.h.
44814         (main): Use Infinityd.
44815         * tests/test-truncl.c: Include infinity.h.
44816         (main): Use Infinityl.
44817         * tests/test-vasnprintf-posix.c: Include infinity.h.
44818         (test_function): Use Infinityd, Infinityl.
44819         * tests/test-vasprintf-posix.c: Include infinity.h.
44820         (test_function): Use Infinityd, Infinityl.
44821         * modules/ceilf-tests (Files): Add tests/infinity.h.
44822         * modules/ceil-tests (Files): Likewise.
44823         * modules/ceill-tests (Files): Likewise.
44824         * modules/dprintf-posix-tests (Files): Likewise.
44825         * modules/floorf-tests (Files): Likewise.
44826         * modules/floor-tests (Files): Likewise.
44827         * modules/floorl-tests (Files): Likewise.
44828         * modules/fprintf-posix-tests (Files): Likewise.
44829         * modules/frexp-tests (Files): Likewise.
44830         * modules/frexp-nolibm-tests (Files): Likewise.
44831         * modules/frexpl-tests (Files): Likewise.
44832         * modules/frexpl-nolibm-tests (Files): Likewise.
44833         * modules/isfinite-tests (Files): Likewise.
44834         * modules/isinf-tests (Files): Likewise.
44835         * modules/isnan-tests (Files): Likewise.
44836         * modules/isnanf-tests (Files): Likewise.
44837         * modules/isnanf-nolibm-tests (Files): Likewise.
44838         * modules/isnand-tests (Files): Likewise.
44839         * modules/isnand-nolibm-tests (Files): Likewise.
44840         * modules/isnanl-tests (Files): Likewise.
44841         * modules/isnanl-nolibm-tests (Files): Likewise.
44842         * modules/ldexpl-tests (Files): Likewise.
44843         * modules/printf-posix-tests (Files): Likewise.
44844         * modules/roundf-tests (Files): Likewise.
44845         * modules/round-tests (Files): Likewise.
44846         * modules/roundl-tests (Files): Likewise.
44847         * modules/signbit-tests (Files): Likewise.
44848         * modules/snprintf-posix-tests (Files): Likewise.
44849         * modules/sprintf-posix-tests (Files): Likewise.
44850         * modules/truncf-tests (Files): Likewise.
44851         * modules/trunc-tests (Files): Likewise.
44852         * modules/truncl-tests (Files): Likewise.
44853         * modules/vasnprintf-posix-tests (Files): Likewise.
44854         * modules/vasprintf-posix-tests (Files): Likewise.
44855         * modules/vdprintf-posix-tests (Files): Likewise.
44856         * modules/vfprintf-posix-tests (Files): Likewise.
44857         * modules/vprintf-posix-tests (Files): Likewise.
44858         * modules/vsnprintf-posix-tests (Files): Likewise.
44859         * modules/vsprintf-posix-tests (Files): Likewise.
44860         * modules/xprintf-posix-tests (Files): Likewise.
44862 2011-09-11  Bruno Haible  <bruno@clisp.org>
44864         Ensure pid_t gets defined.
44865         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
44866         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44867         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44868         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44869         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
44870         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44871         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44872         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44873         * tests/test-fcntl-h.c: Check that pid_t is defined.
44874         * tests/test-sched.c: Likewise.
44875         * tests/test-termios.c: Likewise.
44876         * tests/test-time.c: Likewise.
44877         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
44878         * doc/posix-headers/signal.texi: Likewise.
44879         * doc/posix-headers/sys_types.texi: Likewise.
44880         * doc/posix-headers/time.texi: Likewise.
44882 2011-09-11  Bruno Haible  <bruno@clisp.org>
44884         acl: Fix compilation on Solaris 10 (older version).
44885         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
44886         of ACE_EVERYONE.
44887         * lib/set-mode-acl.c (qset_acl): Likewise.
44888         Reported by Christian Jullien <eligis@orange.fr>.
44890 2011-09-10  Bruno Haible  <bruno@clisp.org>
44892         iconv, unsetenv: Add support for MSVC compiler.
44893         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
44894         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
44896 2011-09-10  Bruno Haible  <bruno@clisp.org>
44898         *printf: Add support for MSVC compiler.
44899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
44900         handles the exception caused by the %n directive. When cross-compiling,
44901         guess no on native Windows.
44902         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
44903         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
44904         emulate it through vsnprintf.
44905         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
44906         * doc/posix-functions/dprintf.texi: Update documentation regarding
44907         MSVC 9.
44908         * doc/posix-functions/fprintf.texi: Likewise.
44909         * doc/posix-functions/printf.texi: Likewise.
44910         * doc/posix-functions/snprintf.texi: Likewise.
44911         * doc/posix-functions/sprintf.texi: Likewise.
44912         * doc/posix-functions/swprintf.texi: Likewise.
44913         * doc/posix-functions/vdprintf.texi: Likewise.
44914         * doc/posix-functions/vfprintf.texi: Likewise.
44915         * doc/posix-functions/vprintf.texi: Likewise.
44916         * doc/posix-functions/vsnprintf.texi: Likewise.
44917         * doc/posix-functions/vsprintf.texi: Likewise.
44918         * doc/glibc-functions/asprintf.texi: Likewise.
44919         * doc/glibc-functions/obstack_printf.texi: Likewise.
44920         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44921         * doc/glibc-functions/vasprintf.texi: Likewise.
44923 2011-09-10  Bruno Haible  <bruno@clisp.org>
44925         nocrash: Add support for native Windows.
44926         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
44928 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
44929             Bruno Haible  <bruno@clisp.org>
44931         absolute-header, include-next: Add support for MSVC compiler.
44932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
44933         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
44934         directory separator in #line directives.
44935         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
44936         recognize also backslash as directory separator in #line directives.
44938 2011-09-08  Jim Meyering  <meyering@redhat.com>
44940         maint.mk: mark the post-release commit log with "maint: " prefix
44941         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
44942         one-line commit-log summary.
44944 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
44945             Bruno Haible  <bruno@clisp.org>
44947         Doc about crypt functions.
44948         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
44949         systems.
44950         * doc/posix-functions/encrypt.texi: Likewise.
44951         * doc/posix-functions/setkey.texi: Likewise.
44953 2011-09-08  Simon Josefsson  <simon@josefsson.org>
44955         * lib/gc.h: Fix copyright header.
44957 2011-09-07  Bruno Haible  <bruno@clisp.org>
44959         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
44960         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
44961         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
44963 2011-09-07  Bruno Haible  <bruno@clisp.org>
44965         openat: Work around compilation error with OSF/1 5.1 DTK cc.
44966         * lib/fopen.c: Use different syntax for include of <stdio.h>.
44967         * lib/freopen.c: Likewise.
44968         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
44969         * lib/lstat.c: Likewise.
44970         * lib/stat.c: Likewise.
44971         * lib/open.c: Use different syntax for include of <fcntl.h>.
44972         * lib/openat.c: Include fcntl.h again, explicitly.
44974 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
44976         parse-datetime: document the newly accepted format
44977         * doc/parse-datetime.texi (Combined date and time of day items):
44978         New section.
44980 2011-09-06  Bruno Haible  <bruno@clisp.org>
44982         acl: Fix a test failure on newer Solaris 10 with ZFS.
44983         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
44984         ENOSYS as no ACL.
44985         Reported by Jim Meyering.
44987 2011-09-06  Bruno Haible  <bruno@clisp.org>
44989         acl: Update for AIX >= 5.3 with NFS.
44990         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
44991         ENOSYS as no ACL.
44993         acl: Fix a test failure on AIX >= 5.3 with NFS.
44994         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
44995         as no ACL.
44997 2011-09-06  Bruno Haible  <bruno@clisp.org>
44999         acl: Fix a test failure on IRIX 6.5 with NFS.
45000         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45001         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45002         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45003         * lib/copy-acl.c (qcopy_acl): Likewise.
45005 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45007         openat: port to AIX 7.1 with large files
45008         AIX 7.1 does a "#define openat open64at" if large files are in use,
45009         so we can't simply #undef openat.  Use the orig_openat trick (similar
45010         to orig_open in lib/open.c) to work around the problem.  Problem
45011         reported by Kevin Brott for GNU tar, in the thread containing
45012         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45013         * lib/openat.c (__need_system_fcntl_h): Define first.
45014         Include <fcntl.h> and <sys/types.h> before undefining.
45015         (orig_openat) [HAVE_OPENAT]: New inline function.
45016         (openat) [HAVE_OPENAT]: Do not undef.
45017         (rpl_openat): Use orig_openat, not openat.
45019 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45020             Bruno Haible  <bruno@clisp.org>
45022         acl: Avoid errors on NonStop Kernel.
45023         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45024         ENOTSUP errors.
45026 2011-09-05  Bruno Haible  <bruno@clisp.org>
45028         acl: Clean up Solaris code.
45029         * lib/acl-internal.h: Remove no-op #if.
45030         * lib/file-has-acl.c: Likewise.
45031         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45032         * lib/copy-acl.c (qcopy_acl): Likewise.
45034 2011-09-05  Bruno Haible  <bruno@clisp.org>
45036         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45037         binaries built on the original Solaris 10.
45038         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45039         trivial.
45041 2011-09-05  Bruno Haible  <bruno@clisp.org>
45043         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45044         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45045         10.
45046         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45047         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45048         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45049         instead of acl_get, facl_get, acl_set, facl_set.
45051 2011-09-05  Bruno Haible  <bruno@clisp.org>
45053         copy-file: Try unit tests on more file systems.
45054         * tests/test-copy-file-1.sh: New file.
45055         * tests/test-copy-file-2.sh: New file.
45056         * modules/copy-file-tests (Files): Add them.
45057         (Makefile.am): Add them to TESTS.
45059         acl: Try unit tests on more file systems.
45060         * tests/test-file-has-acl-1.sh: New file.
45061         * tests/test-file-has-acl-2.sh: New file.
45062         * tests/test-set-mode-acl-1.sh: New file.
45063         * tests/test-set-mode-acl-2.sh: New file.
45064         * tests/test-copy-acl-1.sh: New file.
45065         * tests/test-copy-acl-2.sh: New file.
45066         * modules/acl-tests (Files): Add them.
45067         (Makefile.am): Add them to TESTS.
45069 2011-09-04  Bruno Haible  <bruno@clisp.org>
45071         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45072         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45073         10.
45074         (OLD_ALLOW, OLD_DENY): New macros.
45075         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45076         ACE_ACCESS_ALLOWED_ACE_TYPE.
45077         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45078         ACE_ACCESS_DENIED_ACE_TYPE.
45079         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45080         (NEW_ACE_EXECUTE): Fix value.
45081         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45082         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45083         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45084         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45085         NEW_ACE_SYNCHRONIZE): New macros.
45086         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45087         instead of acl_fromtext, acl_set, facl_set.
45088         Fixes a coreutils/tests/cp/perm failure.
45090 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45092         openat: test for fstatat (..., 0) bug
45093         Further testing with tar suggests that fstatat (..., 0)
45094         does not work in general, on AIX 7.1; see
45095         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45096         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45097         replacement fstatat (which is what older AIX releases were using
45098         anyway).
45099         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45100         use is now changed to orig_fstatat.  This was probably the right
45101         thing to do anyway.
45102         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45103         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45104         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45105         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45106         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45107         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45108         if the bug is found.
45110         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45111         This tests for another fstatat bug on AIX 7.1:
45112         fstatat (AT_FDCWD, ..., 0) does not work.  See
45113         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45114         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45115         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45116         (rpl_fstatat): Adjust so that it works around either (or both)
45117         bugs if present.
45118         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45120 2011-09-03  Karl Berry  <karl@gnu.org>
45122         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45123         in index entries.
45125 2011-09-02  Bruno Haible  <bruno@clisp.org>
45127         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45128         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45129         values of AR, ARFLAGS, RANLIB.
45130         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45132 2011-09-02  Bruno Haible  <bruno@clisp.org>
45134         Find 'ar' program that fits with --host argument.
45135         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45137 2011-09-02  Bruno Haible  <bruno@clisp.org>
45139         tests: init.sh: Support any non-GNU diff.
45140         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45141         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45142         Solaris 8.
45144 2011-09-02  Bruno Haible  <bruno@clisp.org>
45146         tests: init.sh: work also with any non-GNU diff that supports -u
45147         * tests/init.sh: Relax check for diff -u support.
45148         Rather than checking for GNU diff via --version, simply check
45149         for support for -u itself.  Useful at least on OpenBSD 4.9,
45150         AIX 7.1, IRIX 6.5, and Solaris 10.
45152 2011-09-01  Bruno Haible  <bruno@clisp.org>
45154         strtoimax, strtoumax: Document problem on HP-UX 11.
45155         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45156         * doc/posix-functions/strtoumax.texi: Likewise.
45158 2011-09-01  Bruno Haible  <bruno@clisp.org>
45160         strtoumax: Avoid link error on OSF/1 with DTK cc.
45161         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45162         defined as a function.
45163         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45164         strtoumax is defined, not whether it is declared.
45166 2011-09-01  Bruno Haible  <bruno@clisp.org>
45168         strtoimax: Avoid link error on OSF/1 with DTK cc.
45169         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45170         defined as a function.
45171         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45172         strtoimax is defined, not whether it is declared.
45174 2011-09-01  Bruno Haible  <bruno@clisp.org>
45176         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45177         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45178         as a function.
45179         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45180         whether it is declared.
45182 2011-09-01  Bruno Haible  <bruno@clisp.org>
45184         imaxabs: Avoid link error on OSF/1 with DTK cc.
45185         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45186         as a function.
45187         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45188         whether it is declared.
45190 2011-09-01  Bruno Haible  <bruno@clisp.org>
45192         Tests for module 'strtoumax'.
45193         * modules/strtoumax-tests: New file.
45194         * tests/test-strtoumax.c: New file.
45196         Tests for module 'strtoimax'.
45197         * modules/strtoimax-tests: New file.
45198         * tests/test-strtoimax.c: New file.
45200         Tests for module 'imaxdiv'.
45201         * modules/imaxdiv-tests: New file.
45202         * tests/test-imaxdiv.c: New file.
45204         Tests for module 'imaxabs'.
45205         * modules/imaxabs-tests: New file.
45206         * tests/test-imaxabs.c: New file.
45208 2011-09-01  Bruno Haible  <bruno@clisp.org>
45210         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45211         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45212         pthread_create.
45214 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45216         openat: work around AIX 7.1 fstatat issue
45217         This should fix the problem that was not properly fixed
45218         in the previous change, dated 2011-08-30.
45219         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45220         __need_system_stat_h defined.
45221         (orig_fstatat) [HAVE_FSTATAT]: New function.
45222         (rpl_fstatat): Go back to the old way of doing things,
45223         except call orig_fstatat instead of fstatat.
45224         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45225         Remove unnecessary check whether fstatat fills in st_size etc.
45227 2011-09-01  Bruno Haible  <bruno@clisp.org>
45229         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45230         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45231         just include the system's header.
45233 2011-08-31  Jim Meyering  <meyering@redhat.com>
45235         tests: avoid spurious assertion failure in test-float.c on ppc64
45236         * tests/test-float.c (test_long_double): Comment out an assertion,
45237         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45238         with gcc-4.4.4.
45240         maint: indent with spaces, not TABs
45241         I need to get in the habit of running gnulib's "make check".
45242         Both of these would have been caught.
45243         * m4/largefile.m4: Indent with spaces, not TABs.
45244         * lib/parse-datetime.y (iso_8601_time): Likewise.
45245         Spotted by Pádraig Brady.
45247         test-parse-datetime.c: accommodate a relatively strict gcc warning
45248         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45249         to avoid a warning from gcc's -Werror=missing-declarations.
45250         Insert a few spaces-before-funcall-parenthesis.
45252 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45254         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45255         The parser now accepts ISO 8601 date-time strings with "T" as the
45256         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45257         with a space between the date and time strings.  Now it also parses
45258         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45259         variants like "2004-02-29T16:21:42.333-07:00"
45260         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45261         of day representation using the 'T' separator character.
45262         * doc/parse-datetime.texi (General date syntax): replace use of
45263         deprecated --iso-8601 option with --rfc-3339 in example of date
45264         command output formats that can be parsed.
45265         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45266         lib/parse-datetime.y.
45267         (gmt_offset): New function.
45268         (main): Add additional test cases to validate ISO8601 extended
45269         date and time of day parsing.
45271 2011-08-31  Bruno Haible  <bruno@clisp.org>
45273         freopen: Documentation.
45274         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45275         name.
45276         Reported by Claudio Bley <claudio.bley@gmail.com>.
45278 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45280         freopen: Don't crash if the filename argument is NULL.
45281         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45282         NULL.
45284 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45286         openat: work around AIX 7.1 fstatat bug
45287         Problem reported by Kevin Brott for GNU tar, in the thread containing
45288         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45289         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45290         FSTATAT_ST_SIZE_ETC_BROKEN.
45291         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45292         rpl_fstatat.
45293         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45294         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45295         AC_CHECK_FUNCS_ONCE for fstatat.
45296         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45297         fchmodat, mkdirat, openat and unlinkat.
45299 2011-08-30  Bruno Haible  <bruno@clisp.org>
45301         Avoid endless recursions if config.h includes some header files.
45302         * lib/fopen.c (__need_FILE): Define already before including config.h.
45303         * lib/freopen.c (__need_FILE): Likewise.
45304         * lib/open.c (__need_system_fcntl_h): Likewise.
45305         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45306         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45307         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45309 2011-08-25  Karl Berry  <karl@gnu.org>
45311         * config/srclist.txt (ylwrap): new try.
45312         * build-aux/ylwrap: new file.
45314 2011-08-23  Bruno Haible  <bruno@clisp.org>
45316         tmpdir: Use a good default directory on native Windows.
45317         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45318         (P_tmpdir): Default to _P_tmpdir on native Windows.
45319         (path_search): On native Windows, try the value returned by GetTempPath
45320         before trying P_tmpdir.
45321         * modules/tmpdir (Depends-on): Add pathmax.
45322         Suggested by John Darrington <john@darrington.wattle.id.au>.
45324 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45326         doc: fix typo in README-release
45327         * top/README-release: Capitalize first word of a sentence.
45329 2011-08-19  Jim Meyering  <meyering@redhat.com>
45331         fts: do not exhaust memory when processing million-entry directories
45332         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45333         directory would require about 256*N bytes of memory.  Thus, it was
45334         easy to construct a directory too large to be processed by any of
45335         those tools.  With this change, fts' maximum memory utilization is
45336         now limited to around 30MB.
45337         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45338         (fts_read): When we've processed the final entry (i.e., when
45339         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45340         using the parent entry to read any remaining entries.  Dispatch
45341         depending on what fts_build returns:
45342         - NULL+stop, aka failure: stop
45343         - NULL otherwise: move up in the dir hierarchy
45344         - non-NULL: handle this new entry
45345         (fts_build): Declare and use new local, continue_readdir.
45346         Prepare to be called from fts_read, when the entries
45347         from a partially-read directory have just been exhausted.
45348         In that case, we'll skip the opendir and instead use the parent's
45349         fts_dirp and derive dir_fd from that.
45350         Finally, in the readdir loop, if we read max_entries entries,
45351         exit the loop ensuring *not* to call closedir.  This is required
45352         so that fts_dirp can be reused on a subsequent call.
45353         Prompted by Ben England's report of memory exhaustion in find
45354         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45356         maint: fts: move decl of `dp' down into while loop; split a long line
45357         * lib/fts.c (fts_build): No semantic change.
45359         fts: add/use new struct member, fts_dirp
45360         We are about to use this to manage any directory with
45361         too many entries to read all of them into memory at once.
45362         To do that, we'll need to save the DIR* pointer in each
45363         affected FTSENT struct.
45364         * lib/fts_.h: Include <dirent.h>.
45365         (struct FTSENT) [fts_dirp]: New member.
45366         * lib/fts.c (closedir_and_clear): Define.
45367         Use it in place of closedir so that we are sure to
45368         clear the new fts_dirp member when done with it.
45369         (fts_alloc): Initialize the new member.
45370         (fts_lfree): Free, if needed.
45372         maint: fts: give __opendir2 a new parameter and rename
45373         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45374         than surreptitiously using sole caller's "dir_fd".
45375         (fts_opendir): Rename from __opendir2.
45377         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45378         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45380         maint: fts.c: correct off-by-one indentation
45381         * lib/fts.c (fts_build): Correct indentation, change style
45382         of a couple of block comments, and bracing style.
45384         maint: fts.c: move __opendir2 #define "up" out of function body
45385         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45387         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45388         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45389         out for a long time and besides was useful only on BSD systems.
45391 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45393         regex: port to Stratus OpenVOS
45394         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45395         define to empty, rather than attempting nonportable optimizations.
45396         Problem reported by Paul Green in:
45397         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45398         and fix suggested by Eric Blake in:
45399         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45401 2011-08-17  Eric Blake  <eblake@redhat.com>
45403         getcwd: fix test failures on mingw
45404         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45405         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45406         test if long directory cannot be created, and allow mingw errno.
45408         getcwd-lgpl: fix m4 to match relaxed test for BSD
45409         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45410         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45411         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45412         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45413         signature problem.
45415         getcwd: fix compilation on mingw64
45416         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45417         getcwd.
45418         Reported by Marc-André Lureau.
45420         pipe2: silence compiler warning
45421         * lib/pipe2.c (pipe2): Hide label if it is not used.
45423 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45425         relocatable-prog: fix link error
45426         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45427         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45428         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45429         into modules/relocatable-lib without noticing that
45430         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45431         also needs to build relocatable.c.
45433 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45435         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45437         shell code: it contained a 'break' that was not in a loop.
45438         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45439         via a shell-language loop; this may have been true in old Autoconf
45440         versions, but it's not true in Autoconf 2.68.  I found this bug
45441         when testing coreutils git on Solaris 8, whose shell complains
45442         about the syntax error.
45444 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45446         * lib/base64.c: Fix comment to reference RFC 4648.
45447         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45448         <gvtulder@gmail.com>.
45450 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45452         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45454         po/Makefile.in.in: fix make -q problem
45455         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45456         rule, since there's no file named 'check-macro-version' and its
45457         use as a file breaks make -q.
45458         (all): Don't depend on check-macro-version.
45459         (CHECK_MACRO_VERSION): New macro.
45460         (stamp-po): Use it.
45462         configmake: fix make -q problem
45463         * modules/configmake (configmake.h): Update configmake.h's time stamp
45464         even if the file does not change.  Otherwise, 'make -q' fails.
45465         Problem reported by Simon Josefsson in
45466         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45468 2011-08-11  Jim Meyering  <meyering@redhat.com>
45470         git-version-gen: correct the advice in a comment
45471         * build-aux/git-version-gen: Correct comment.
45472         Don't recommend to list .tarball-version in .gitignore.
45474 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45476         base64: fix off-by-one buffer size bug
45477         Problem and (trivial) fix reported by Gijs van Tulder in
45478         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45479         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45480         * tests/test-base64.c (main): Catch the bug.
45482 2011-08-10  Eric Blake  <eblake@redhat.com>
45484         closein: correct comments
45485         * lib/closein.c (close_stdin): Improve comments.
45487 2011-08-09  Bruno Haible  <bruno@clisp.org>
45489         More tests for 'fseeko'.
45490         * tests/test-fseeko3.c: New file, from Eric Blake.
45491         * tests/test-fseeko3.sh: New file.
45492         * modules/fseeko-tests (Files): Add them.
45493         (TESTS): Add test-fseeko3.sh.
45494         (check_PROGRAMS): Add test-fseeko3.
45496 2011-08-09  Eric Blake  <eblake@redhat.com>
45498         fseeko: remove unneeded hack
45499         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45501         fseeko: fix bug on glibc
45502         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45503         Reported by John W. Eaton.
45505 2011-08-08  Bruno Haible  <bruno@clisp.org>
45507         unictype/base: Fix interoperability with preinstalled libunistring.
45508         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45509         Reported by Simon Josefsson.
45511 2011-08-08  Bruno Haible  <bruno@clisp.org>
45513         iswblank: Detect declaration correctly.
45514         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45515         AC_CHECK_DECLS invocation.
45517 2011-08-08  Bruno Haible  <bruno@clisp.org>
45519         tcgetsid: Detect declaration correctly.
45520         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45521         AC_CHECK_DECLS invocation.
45522         Reported by Simon Josefsson.
45524 2011-08-08  Eric Blake  <eblake@redhat.com>
45526         largefile: fix typo that regressed large file support
45527         * modules/largefile (configure.ac-early): Fix section name.
45529 2011-08-06  Karl Berry  <karl@gnu.org>
45531         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45532         a separate module.
45534 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45536         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45537         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45538         get prototype for free.
45540 2011-08-04  Bruno Haible  <bruno@clisp.org>
45542         Tests for module 'pathmax'.
45543         * modules/pathmax-tests: New file.
45544         * tests/test-pathmax.c: New file.
45546         canonicalize-lgpl: Support larger filenames on the Hurd.
45547         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45548         Reported by Paul Eggert.
45550         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45551         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45552         * lib/chdir-long.h: Include pathmax.h.
45553         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45554         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45555         (PATH_MAX): Remove code that is done by pathmax.h.
45556         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45557         * lib/tmpfile.c: Add a comment.
45558         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45559         * modules/chdir-long (Depends-on): Add pathmax.
45560         * modules/getcwd (Depends-on): Add pathmax.
45561         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45562         is not defined.
45563         * doc/posix-headers/limits.texi: Mention the pathmax module.
45564         * NEWS: Mention the change.
45566 2011-08-02  Bruno Haible  <bruno@clisp.org>
45568         pthread_sigmask: Actually use results of gl_THREADLIB.
45569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45570         gl_THREADLIB, not gl_[]THREADLIB.
45571         Reported by Eric Blake.
45573 2011-08-02  Jim Meyering  <meyering@redhat.com>
45575         maint.mk: relax the default _gl_TS_function_match regexp
45576         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45577         space between function name and "(" in an "extern" declaration.
45578         That would fail to match a decl with no space there: extern void foo();
45580 2011-07-31  Iain Nicol  <iain@thenicols.net>
45582         git-version-gen: document that EXTRA_DIST must include .version
45583         * build-aux/git-version-gen: In the how-to-use comment, document
45584         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45585         will fail when run from an unpacked distribution tarball.
45587 2011-08-01  Bruno Haible  <bruno@clisp.org>
45589         wctype-h: Fix last change.
45590         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
45591         REPLACE_TOWLOWER to 0.
45592         Reported by Sam Steingold <sds@gnu.org>.
45594 2011-07-31  Bruno Haible  <bruno@clisp.org>
45596         frexpl: Update autoconf test.
45597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
45598         according to changes of 2011-06-20.
45600 2011-07-31  Bruno Haible  <bruno@clisp.org>
45602         sys_utsname: Add support for Minix.
45603         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
45604         <sys/utsname.h>.
45605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45606         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
45608 2011-07-31  Bruno Haible  <bruno@clisp.org>
45610         strings: Add support for Minix.
45611         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
45612         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
45613         * doc/posix-headers/strings.texi: Document the Minix problem.
45615 2011-07-31  Bruno Haible  <bruno@clisp.org>
45617         wctype-h: Add support for Minix.
45618         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
45619         REPLACE_TOWLOWER.
45620         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
45621         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
45622         REPLACE_ISWCNTRL.
45624 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
45626         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
45627         This is a performance improvement for 64-bit hosts: it causes the
45628         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
45630 2011-07-31  Bruno Haible  <bruno@clisp.org>
45632         stdioext: Add support for Minix.
45633         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
45634         * lib/fpurge.c (fpurge): Likewise.
45635         * lib/freadahead.c (freadahead): Likewise.
45636         * lib/freadable.c (freadable): Likewise.
45637         * lib/freading.c (freading): Likewise.
45638         * lib/freadptr.c (freadptr): Likewise.
45639         * lib/freadseek.c (freadptrinc): Likewise.
45640         * lib/fseeko.c (rpl_fseeko): Likewise.
45641         * lib/fseterr.c (fseterr): Likewise.
45642         * lib/fwritable.c (fwritable): Likewise.
45643         * lib/fwriting.c (fwriting): Likewise.
45644         * lib/fflush.c (clear_ungetc_buffer): Update comment.
45645         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
45647 2011-07-31  Bruno Haible  <bruno@clisp.org>
45649         errno: Port to Minix.
45650         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
45651         ECONNABORTED are defined.
45652         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
45653         GNULIB_defined_ECONNABORTED): New macros.
45654         * lib/strerror-override.h (strerror_override): Test also
45655         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
45656         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
45657         ECONNABORTED.
45658         * doc/posix-headers/errno.texi: Mention the Minix problem.
45660 2011-07-31  Bruno Haible  <bruno@clisp.org>
45662         Work around declaration collisions on Minix.
45663         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
45664         defined, set REPLACE_MBSINIT.
45665         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
45666         defined, set REPLACE_MBRTOWC.
45667         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
45668         set REPLACE_MBRLEN.
45669         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
45670         defined, set REPLACE_MBSRTOWCS.
45671         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
45672         defined, set REPLACE_WCRTOMB.
45673         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
45674         defined, set REPLACE_WCSRTOMBS.
45676 2011-07-31  Bruno Haible  <bruno@clisp.org>
45678         Add support for Minix with ACK compiler.
45679         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
45680         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
45681         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
45683 2011-07-31  Bruno Haible  <bruno@clisp.org>
45685         Documentation about Minix.
45686         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
45687         * doc/glibc-headers/*.texi: Likewise.
45688         * doc/posix-functions/*.texi: Likewise.
45689         * doc/glibc-functions/*.texi: Likewise.
45691 2011-07-31  Bruno Haible  <bruno@clisp.org>
45693         snippet/warn-on-use: Fix indentation.
45694         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
45696 2011-07-25  Jim Meyering  <meyering@redhat.com>
45698         tests: test-update-copyright.sh: remove unnecessary "rm" commands
45699         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
45700         commands.
45702 2011-07-27  Jim Meyering  <meyering@redhat.com>
45704         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
45705         * top/maint.mk (gl_extract_significant_defines_): Now that
45706         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
45707         gnulib/lib/signal.in.h, and now that we recommend to
45708         define-if-undefined those two symbols in application code,
45709         we must filter them out of the "significant" list.
45710         This avoids a "make syntax-check" failure in coreutils.
45712 2011-07-26  Eric Blake  <eblake@redhat.com>
45714         warnings: add comments about previous patch
45715         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
45716         * m4/include_next.m4: Likewise.
45717         * m4/warn-on-use.m4: Likewise.
45718         * m4/warnings.m4: Likewise, and simplify use.
45719         Suggested by Stefano Lattarini.
45721         include-next, warnings: support older autoconf
45722         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
45723         AS_VAR_PUSHDEF in a way that works with older autoconf.
45724         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
45725         Reported by Daniel P. Berrange.
45727 2011-07-25  Bruno Haible  <bruno@clisp.org>
45729         fseek, ftell: Fix doc.
45730         * doc/posix-functions/fseek.texi: Reword statement about
45731         AC_SYS_LARGEFILE.
45732         * doc/posix-functions/ftell.texi: Likewise.
45734 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45735             Bruno Haible  <bruno@clisp.org>
45737         Add dependencies to the 'largefile' module.
45738         * modules/fopen (Depends-on): Add 'largefile'.
45739         * modules/freopen (Depends-on): Likewise.
45740         * modules/fseeko (Depends-on): Likewise.
45741         * modules/ftello (Depends-on): Likewise.
45742         * modules/glob (Depends-on): Likewise.
45743         * modules/lseek (Depends-on): Likewise.
45744         * modules/lstat (Depends-on): Likewise.
45745         * modules/mkostemp (Depends-on): Likewise.
45746         * modules/mkostemps (Depends-on): Likewise.
45747         * modules/mkstemp (Depends-on): Likewise.
45748         * modules/mkstemps (Depends-on): Likewise.
45749         * modules/open (Depends-on): Likewise.
45750         * modules/openat (Depends-on): Likewise.
45751         * modules/pread (Depends-on): Likewise.
45752         * modules/pwrite (Depends-on): Likewise.
45753         * modules/scandir (Depends-on): Likewise.
45754         * modules/stat (Depends-on): Likewise.
45755         * modules/tmpfile (Depends-on): Likewise.
45756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
45757         since the containing module now depends on the largefile module.
45758         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
45759         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
45760         off_t is fixed by gnulib.
45761         * doc/posix-functions/freopen.texi: Likewise.
45762         * doc/posix-functions/fseeko.texi: Likewise.
45763         * doc/posix-functions/fstatat.texi: Likewise.
45764         * doc/posix-functions/ftello.texi: Likewise.
45765         * doc/posix-functions/glob.texi: Likewise.
45766         * doc/posix-functions/lseek.texi: Likewise.
45767         * doc/posix-functions/lstat.texi: Likewise.
45768         * doc/posix-functions/mkstemp.texi: Likewise.
45769         * doc/posix-functions/open.texi: Likewise.
45770         * doc/posix-functions/openat.texi: Likewise.
45771         * doc/posix-functions/pread.texi: Likewise.
45772         * doc/posix-functions/pwrite.texi: Likewise.
45773         * doc/posix-functions/scandir.texi: Likewise.
45774         * doc/posix-functions/stat.texi: Likewise.
45775         * doc/posix-functions/tmpfile.texi: Likewise.
45776         * doc/glibc-functions/mkostemp.texi: Likewise.
45777         * doc/glibc-functions/mkostemps.texi: Likewise.
45778         * doc/glibc-functions/mkstemps.texi: Likewise.
45780 2011-07-25  Bruno Haible  <bruno@clisp.org>
45782         fcntl: Move AC_LIBOBJ invocation to module description.
45783         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
45784         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
45786         fcntl: Remove call-in from fchdir.m4.
45787         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
45788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
45790         dup3: Remove potential call-in from fchdir.m4.
45791         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
45792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
45794         dup2: Move AC_LIBOBJ invocation to module description.
45795         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
45796         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
45797         Don't invoke AC_LIBOBJ.
45798         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
45800         dup2: Remove call-in from fchdir.m4.
45801         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
45802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
45804         fclose: Move AC_LIBOBJ invocation to module description.
45805         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
45806         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
45807         to 1.
45808         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
45810         fclose: Remove call-in from close.m4.
45811         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
45812         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
45814         close: Move AC_LIBOBJ invocation to module description.
45815         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
45816         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
45817         1.
45818         * modules/close (configure.ac): Invoke AC_LIBOBJ.
45820         close: Remove call-in from fchdir.m4.
45821         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
45822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
45824         open: Move AC_LIBOBJ invocation to module description.
45825         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
45826         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
45827         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
45829         open: Remove call-in from fchdir.m4.
45830         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
45831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
45833         fchdir: Start to remove gl_REPLACE_* idiom.
45834         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
45835         (gl_FUNC_FCHDIR): Invoke it.
45837 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45839         * lib/ftell.c (ftell): Comment out cast.
45841         close: use gl_REPLACE_FCLOSE only if defined
45842         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
45843         is defined.  The close module doesn't depend on the fclose module
45844         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
45845         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
45846         I reproduced the problem with "./gnulib-tool --test close sys_socket".
45848 2011-07-24  Jim Meyering  <meyering@redhat.com>
45850         test-select.h: avoid warning when using gcc's -Wmissing-declarations
45851         * tests/test-select.h (test_function): Declare as "static".
45853 2011-07-24  Bruno Haible  <bruno@clisp.org>
45855         doc: Mention the effects of AC_SYS_LARGEFILE.
45856         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
45857         on this function.
45858         * doc/posix-functions/aio_error.texi: Likewise.
45859         * doc/posix-functions/aio_fsync.texi: Likewise.
45860         * doc/posix-functions/aio_read.texi: Likewise.
45861         * doc/posix-functions/aio_return.texi: Likewise.
45862         * doc/posix-functions/aio_suspend.texi: Likewise.
45863         * doc/posix-functions/aio_write.texi: Likewise.
45864         * doc/posix-functions/fgetpos.texi: Likewise.
45865         * doc/posix-functions/fopen.texi: Likewise.
45866         * doc/posix-functions/freopen.texi: Likewise.
45867         * doc/posix-functions/fsetpos.texi: Likewise.
45868         * doc/posix-functions/fstatvfs.texi: Likewise.
45869         * doc/posix-functions/ftruncate.texi: Likewise.
45870         * doc/posix-functions/ftw.texi: Likewise.
45871         * doc/posix-functions/getrlimit.texi: Likewise.
45872         * doc/posix-functions/glob.texi: Likewise.
45873         * doc/posix-functions/lio_listio.texi: Likewise.
45874         * doc/posix-functions/lockf.texi: Likewise.
45875         * doc/posix-functions/mkstemp.texi: Likewise.
45876         * doc/posix-functions/mmap.texi: Likewise.
45877         * doc/posix-functions/nftw.texi: Likewise.
45878         * doc/posix-functions/openat.texi: Likewise.
45879         * doc/posix-functions/opendir.texi: Likewise.
45880         * doc/posix-functions/posix_fadvise.texi: Likewise.
45881         * doc/posix-functions/posix_fallocate.texi: Likewise.
45882         * doc/posix-functions/pread.texi: Likewise.
45883         * doc/posix-functions/pwrite.texi: Likewise.
45884         * doc/posix-functions/readdir.texi: Likewise.
45885         * doc/posix-functions/readdir_r.texi: Likewise.
45886         * doc/posix-functions/rewinddir.texi: Likewise.
45887         * doc/posix-functions/scandir.texi: Likewise.
45888         * doc/posix-functions/seekdir.texi: Likewise.
45889         * doc/posix-functions/setrlimit.texi: Likewise.
45890         * doc/posix-functions/statvfs.texi: Likewise.
45891         * doc/posix-functions/telldir.texi: Likewise.
45892         * doc/posix-functions/tmpfile.texi: Likewise.
45893         * doc/posix-functions/truncate.texi: Likewise.
45894         * doc/glibc-functions/fallocate.texi: Likewise.
45895         * doc/glibc-functions/fstatfs.texi: Likewise.
45896         * doc/glibc-functions/fts_children.texi: Likewise.
45897         * doc/glibc-functions/fts_read.texi: Likewise.
45898         * doc/glibc-functions/getdirentries.texi: Likewise.
45899         * doc/glibc-functions/mkostemp.texi: Likewise.
45900         * doc/glibc-functions/mkostemps.texi: Likewise.
45901         * doc/glibc-functions/mkstemps.texi: Likewise.
45902         * doc/glibc-functions/preadv.texi: Likewise.
45903         * doc/glibc-functions/pwritev.texi: Likewise.
45904         * doc/glibc-functions/sendfile.texi: Likewise.
45905         * doc/glibc-functions/statfs.texi: Likewise.
45907 2011-07-24  Bruno Haible  <bruno@clisp.org>
45909         doc: Fix typo.
45910         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
45912 2011-07-24  Bruno Haible  <bruno@clisp.org>
45914         doc: Mention fsusage.
45915         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
45917 2011-07-24  Bruno Haible  <bruno@clisp.org>
45919         doc: Mention new glibc headers and functions.
45920         * doc/glibc-headers/gshadow.texi: New file.
45921         * doc/glibc-functions/endsgent.texi: New file.
45922         * doc/glibc-functions/fgetsgent.texi: New file.
45923         * doc/glibc-functions/fgetsgent_r.texi: New file.
45924         * doc/glibc-functions/getsgent.texi: New file.
45925         * doc/glibc-functions/getsgent_r.texi: New file.
45926         * doc/glibc-functions/getsgnam.texi: New file.
45927         * doc/glibc-functions/getsgnam_r.texi: New file.
45928         * doc/glibc-functions/putsgent.texi: New file.
45929         * doc/glibc-functions/setsgent.texi: New file.
45930         * doc/glibc-functions/sgetsgent.texi: New file.
45931         * doc/glibc-functions/sgetsgent_r.texi: New file.
45932         * doc/glibc-functions/malloc_info.texi: New file.
45933         * doc/glibc-functions/preadv.texi: New file.
45934         * doc/glibc-functions/pwritev.texi: New file.
45935         * doc/glibc-functions/register_printf_modifier.texi: New file.
45936         * doc/glibc-functions/register_printf_specifier.texi: New file.
45937         * doc/glibc-functions/register_printf_type.texi: New file.
45938         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
45939         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
45940         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
45941         * doc/glibc-functions/pthread_getname_np.texi: New file.
45942         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
45943         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
45944         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
45945         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
45946         * doc/glibc-functions/pthread_setname_np.texi: New file.
45947         * doc/glibc-functions/pthread_sigqueue.texi: New file.
45948         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
45949         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
45950         * doc/glibc-functions/qsort_r.texi: New file.
45951         * doc/glibc-functions/quick_exit.texi: New file.
45952         * doc/glibc-functions/syncfs.texi: New file.
45953         * doc/gnulib.texi: Include them.
45954         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
45955         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
45956         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
45957         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
45958         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
45959         * doc/glibc-functions/execvpe.texi: Likewise.
45961 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45963         ftell: don't include <unistd.h>
45964         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
45965         guaranteed to define off_t, and the ftell module depends on the
45966         stdio module.
45968         ftell: do not assume wraparound signed arithmetic
45969         * lib/ftell.c: Include <limits.h>.
45970         (ftell): Don't assume wraparound signed arithmetic.
45972 2011-07-24  Bruno Haible  <bruno@clisp.org>
45974         close: No longer depend on module 'fclose'.
45975         * modules/close (Depends-on): Remove fclose.
45976         * NEWS: Mention the change.
45977         Suggested by Sam Steingold <sds@gnu.org>.
45979 2011-07-24  Bruno Haible  <bruno@clisp.org>
45981         fsusage: Enable large volume support on AIX >= 5.2.
45982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
45983         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
45984         instead of STAT_STATVFS.
45985         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
45987         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
45988         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
45989         f_blocks field only on MacOS X.
45991         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
45992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
45993         * modules/fsusage (Depends-on): Add largefile.
45995 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45997         * README: Modernize discussion of signed integers.
45998         Assuming overflow wraparound is no longer safe.
45999         Mention ones' complement and signed magnitude.
46001 2011-07-22  Bruno Haible  <bruno@clisp.org>
46003         select tests, pselect tests: Refactor.
46004         * tests/test-select.h: New file, extracted from tests/test-select.c.
46005         (select_fn): New type.
46006         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46007         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46008         test_pipe): Add my_select argument.
46009         (test_function): Renamed from main. Add my_select argument.
46010         * tests/test-select.c: Move most code to tests/test-select.h. Include
46011         test-select.h.
46012         * modules/select-tests (Files): Add tests/test-select.h.
46013         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46014         (my_select, main): New functions.
46015         * modules/pselect-tests (Files): Add tests/test-select.h,
46016         tests/macros.h, tests/signature.h.
46017         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46018         (configure.ac): Check for <sys/wait.h>.
46020 2011-07-22  Bruno Haible  <bruno@clisp.org>
46022         sys_select tests: Check the signature of FD_*.
46023         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46024         signature tests from here...
46025         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46026         here.
46027         * modules/sys_select-tests (Files): Add tests/signature.h.
46029 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46031         largefile: new module, replacing large-inode
46032         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46033         * MODULES.html.sh: Add largefile, remove large-inode.
46034         * modules/largefile, m4/largefile.m4: New files.
46035         * modules/large-inode, m4/large-inode.m4: Remove.
46037         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46038         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46039         implementations that use only 32 bits to count blocks.
46040         On typical hosts with 1024-byte blocks, this fails with file
46041         systems as small as 4 TiB.  Problem reported by Herb Wartens
46042         <http://debbugs.gnu.org/9140> and this should also fix a similar
46043         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46045         large-inode: New module
46046         * MODULES.html.sh: Add it.
46047         * modules/large-inode, m4/large-inode.m4: New files.
46049         extensions: Enable extensions on MacOS X 10.5 and later.
46050         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46052 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46054         file-has-acl: use acl_extended_file_nofollow if available
46055         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46056         (acl_extended_file): New macro.
46057         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46058         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46060 2011-07-21  Bruno Haible  <bruno@clisp.org>
46062         Declare system functions in a way that works with C++.
46063         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46064         declare fdopendir as extern "C".
46065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46066         declare frexpl as extern "C".
46067         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46068         declare gai_strerror as extern "C".
46069         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46070         programs, declare gai_strerror as extern "C".
46071         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46072         declare getlogin_r as extern "C".
46073         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46074         as extern "C".
46075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46076         declare ldexpl as extern "C".
46077         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46078         as extern "C".
46079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46080         program, declare getmntinfo as extern "C".
46081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46082         stpncpy as extern "C".
46083         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46084         program, declare __xpg_strerror_r as extern "C".
46085         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46086         strndup as extern "C".
46087         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46088         declare memset and bzero as extern "C".
46089         Reported by Sam Steingold <sds@gnu.org>.
46091 2011-07-12  Jim Meyering  <meyering@redhat.com>
46093         maint.mk: prohibit inclusion of "verify.h" without use
46094         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46096 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46098         timer-time: A new module to check for timer_settime()
46099         * m4/timer_time.m4: Check for the posix function.
46100         * modules/timer-time: Add the new module.
46101         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46102         Mention it.
46104 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46105             Bruno Haible  <bruno@clisp.org>
46107         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46109         not defined, assume POSIX threads and look for pthread_sigmask in
46110         $LIBS, without changing $CPPFLAGS.
46112 2011-07-19  Bruno Haible  <bruno@clisp.org>
46114         strstr: Update cross-compilation guess.
46115         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46116         CPUs, guess no, in view of glibc
46117         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46118         Suggested by Eric Blake. Reported by Reuben Thomas.
46120 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46122         getopt-gnu: suppress core dumps from detection code
46123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46124         to suppress core dumps that may well occur on glibc systems.
46125         * modules/getopt-gnu: Depend on nocrash.
46127 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46129         pthread_sigmask: ensure usleep is declared
46130         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46131         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46133 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46135         doc: Document NonStop portability issues.
46136         * doc/posix-functions/sigaction.texi (sigaction):
46137         * doc/posix-headers/signal.texi (signal.h):
46138         Document NonStop.  See Joachim Schmitz in
46139         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46141 2011-07-15  Bruno Haible  <bruno@clisp.org>
46143         ffsl, ffsll: Avoid unportable behaviour.
46144         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46146 2011-07-15  Bruno Haible  <bruno@clisp.org>
46148         ffs: More tests.
46149         * tests/test-ffs.c (NBITS): New macro.
46150         (main): Add more tests.
46151         * tests/test-ffsl.c (NBITS): New macro.
46152         (main): Add more tests.
46153         * tests/test-ffsll.c (NBITS): New macro.
46154         (main): Add more tests.
46156 2011-07-15  Eric Blake  <eblake@redhat.com>
46158         ffsl, ffsll: new modules
46159         * modules/ffsl: New file.
46160         * modules/ffsll: Likewise.
46161         * m4/ffsl.m4: Likewise.
46162         * m4/ffsll.m4: Likewise.
46163         * lib/ffsl.c: Likewise.
46164         * lib/ffsl.h: Likewise.
46165         * lib/ffsll.c: Likewise.
46166         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46167         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46168         * modules/string (Makefile.am): Substitute witnesses.
46169         * lib/strings.in.h (ffsl, ffsll): Declare.
46170         * modules/ffsl-tests: New test file.
46171         * modules/ffsll-tests: Likewise.
46172         * tests/test-ffsl.c: Likewise.
46173         * tests/test-ffsll.c: Likewise.
46174         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46175         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46176         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46178         ffs: fix m4 prerequisite
46179         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46181         ffs: avoid undefined behavior
46182         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46183         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46184         Reported by Bruno Haible.
46186 2011-07-12  Bruno Haible  <bruno@clisp.org>
46188         pthread_sigmask: Rely on module 'threadlib'.
46189         * modules/pthread_sigmask (Depends-on): Add threadlib.
46190         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46191         is defined.
46193 2011-07-12  Bruno Haible  <bruno@clisp.org>
46195         regex: Depend on module 'strcase'.
46196         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46198 2011-07-12  Jim Meyering  <meyering@redhat.com>
46200         warn-on-use: fix typo in file name
46201         * modules/snippet/warn-on-use (Files): Correct file name:
46202         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46204 2011-07-12  Bruno Haible  <bruno@clisp.org>
46206         strings: Document module.
46207         * doc/posix-headers/strings.texi: Mention module 'strings'.
46209 2011-07-12  Bruno Haible  <bruno@clisp.org>
46211         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46212         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46213         (Files, Makefile.am): Update.
46214         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46215         * modules/stdlib (Depends-on): Update.
46217 2011-07-12  Bruno Haible  <bruno@clisp.org>
46219         * NEWS: Mention the changes.
46221         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46222         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46223         (Files, Makefile.am): Update.
46224         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46225         * modules/arpa_inet (Depends-on): Update.
46226         * modules/ctype (Depends-on): Update.
46227         * modules/dirent (Depends-on): Update.
46228         * modules/fcntl-h (Depends-on): Update.
46229         * modules/glob (Depends-on): Update.
46230         * modules/iconv-h (Depends-on): Update.
46231         * modules/inttypes-incomplete (Depends-on): Update.
46232         * modules/langinfo (Depends-on): Update.
46233         * modules/locale (Depends-on): Update.
46234         * modules/math (Depends-on): Update.
46235         * modules/netdb (Depends-on): Update.
46236         * modules/poll-h (Depends-on): Update.
46237         * modules/pty (Depends-on): Update.
46238         * modules/search (Depends-on): Update.
46239         * modules/signal (Depends-on): Update.
46240         * modules/spawn (Depends-on): Update.
46241         * modules/stdio (Depends-on): Update.
46242         * modules/stdlib (Depends-on): Update.
46243         * modules/string (Depends-on): Update.
46244         * modules/strings (Depends-on): Update.
46245         * modules/sys_file (Depends-on): Update.
46246         * modules/sys_ioctl (Depends-on): Update.
46247         * modules/sys_select (Depends-on): Update.
46248         * modules/sys_socket (Depends-on): Update.
46249         * modules/sys_stat (Depends-on): Update.
46250         * modules/sys_time (Depends-on): Update.
46251         * modules/sys_times (Depends-on): Update.
46252         * modules/sys_utsname (Depends-on): Update.
46253         * modules/sys_wait (Depends-on): Update.
46254         * modules/termios (Depends-on): Update.
46255         * modules/time (Depends-on): Update.
46256         * modules/unistd (Depends-on): Update.
46257         * modules/wchar (Depends-on): Update.
46258         * modules/wctype-h (Depends-on): Update.
46259         * MODULES.html.sh (Support for building libraries and executables):
46260         Update.
46262         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46263         * modules/snippet/unused-parameter: Renamed from
46264         modules/unused-parameter.
46265         (Files, Makefile.am): Update.
46266         * build-aux/snippet/unused-parameter.h: Renamed from
46267         build-aux/unused-parameter.h.
46268         * modules/selinux-h (Depends-on): Update.
46269         * modules/unistr/base (Depends-on): Update.
46270         * MODULES.html.sh (Core language properties): Update.
46272         Rename module 'link-warning' to 'snippet/link-warning'.
46273         * modules/snippet/link-warning: Renamed from modules/link-warning.
46274         (Files, Makefile.am): Update.
46275         * build-aux/snippet/link-warning.h: Renamed from
46276         build-aux/link-warning.h.
46277         * MODULES.html.sh (Support for building libraries and executables):
46278         Update.
46280         Rename module 'c++defs' to 'snippet/c++defs'.
46281         * modules/snippet/c++defs: Renamed from modules/c++defs.
46282         (Files, Makefile.am): Update.
46283         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46284         * modules/arpa_inet (Depends-on): Update.
46285         * modules/ctype (Depends-on): Update.
46286         * modules/dirent (Depends-on): Update.
46287         * modules/fcntl-h (Depends-on): Update.
46288         * modules/glob (Depends-on): Update.
46289         * modules/iconv-h (Depends-on): Update.
46290         * modules/langinfo (Depends-on): Update.
46291         * modules/locale (Depends-on): Update.
46292         * modules/math (Depends-on): Update.
46293         * modules/netdb (Depends-on): Update.
46294         * modules/poll-h (Depends-on): Update.
46295         * modules/pty (Depends-on): Update.
46296         * modules/search (Depends-on): Update.
46297         * modules/signal (Depends-on): Update.
46298         * modules/spawn (Depends-on): Update.
46299         * modules/stdio (Depends-on): Update.
46300         * modules/stdlib (Depends-on): Update.
46301         * modules/string (Depends-on): Update.
46302         * modules/strings (Depends-on): Update.
46303         * modules/sys_ioctl (Depends-on): Update.
46304         * modules/sys_select (Depends-on): Update.
46305         * modules/sys_socket (Depends-on): Update.
46306         * modules/sys_stat (Depends-on): Update.
46307         * modules/sys_time (Depends-on): Update.
46308         * modules/sys_wait (Depends-on): Update.
46309         * modules/termios (Depends-on): Update.
46310         * modules/time (Depends-on): Update.
46311         * modules/unistd (Depends-on): Update.
46312         * modules/wchar (Depends-on): Update.
46313         * modules/wctype-h (Depends-on): Update.
46315         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46316         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46317         (Files, Makefile.am): Update.
46318         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46319         * modules/argv-iter (Depends-on): Update.
46320         * modules/arpa_inet (Depends-on): Update.
46321         * modules/dirent (Depends-on): Update.
46322         * modules/fcntl-h (Depends-on): Update.
46323         * modules/fnmatch (Depends-on): Update.
46324         * modules/getopt-posix (Depends-on): Update.
46325         * modules/glob (Depends-on): Update.
46326         * modules/iconv-h (Depends-on): Update.
46327         * modules/inttypes-incomplete (Depends-on): Update.
46328         * modules/locale (Depends-on): Update.
46329         * modules/math (Depends-on): Update.
46330         * modules/netdb (Depends-on): Update.
46331         * modules/search (Depends-on): Update.
46332         * modules/signal (Depends-on): Update.
46333         * modules/spawn (Depends-on): Update.
46334         * modules/stdio (Depends-on): Update.
46335         * modules/stdlib (Depends-on): Update.
46336         * modules/string (Depends-on): Update.
46337         * modules/strings (Depends-on): Update.
46338         * modules/sys_socket (Depends-on): Update.
46339         * modules/sys_stat (Depends-on): Update.
46340         * modules/sys_time (Depends-on): Update.
46341         * modules/sys_times (Depends-on): Update.
46342         * modules/sys_utsname (Depends-on): Update.
46343         * modules/time (Depends-on): Update.
46344         * modules/unistd (Depends-on): Update.
46345         * modules/wchar (Depends-on): Update.
46346         * MODULES.html.sh (Support for building libraries and executables):
46347         Update.
46349 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46351         Improvements on _Noreturn and related modules.
46353         modules/_Exit-tests: test _Noreturn too
46354         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46355         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46356         (main): Use them.
46358         stdnoreturn, stdnoreturn-tests: remove modules
46359         They're not needed here and a bit premature for use elsewhere.  See
46360         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46361         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46362         * tests/test-stdnoreturn.c: Remove files.
46363         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46364         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46365         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46366         and using noreturn.
46367         * modules/openat, modules/sigpipe-die, modules/xalloc:
46368         * modules/xmemdup0, modules/xstrtol:
46369         Remove dependency on stdnoreturn.
46371         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46372         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46373         Reparenthesize to avoid GCC warning.
46374         Support Microsoft's syntax.
46375         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46377         _Noreturn-tests: remove module
46378         * modules/_Noreturn-tests: Remove.
46379         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46380         * tests/test-_Noreturn.c: Remove.
46381         * tests/test-stdnoreturn.c: Merge from the old
46382         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46384 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46386         _Noreturn, stdnoreturn, and related modules.
46388         * top/maint.mk: Adjust to new noreturn support.
46389         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46390         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46392         xalloc: use stdnoreturn.h
46393         * lib/xalloc.h: Include <stdnoreturn.h>.
46394         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46395         * modules/xalloc (Depends-on): Add stdnoreturn.
46397         xstrtol: use stdnoreturn.h
46398         * lib/xstrtol.h: Include <stdnoreturn.h>.
46399         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46400         * modules/xstrtol (Depends-on): Add stdnoreturn.
46402         xmemdup0: use stdnoreturn.h
46403         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46404         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46405         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46407         sigpipe-die: use stdnoreturn.h
46408         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46409         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46410         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46412         openat: use stdnoreturn.h
46413         * lib/openat.h: Include <stdnoreturn.h>.
46414         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46415         * modules/openat (Depends-on): Add stdnoreturn.
46417         * lib/openat-die.c (openat_save_fail): Modernize comment.
46419         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46421         * lib/glthread/thread.h: Modernize comment.
46423         obstack: use _Noreturn
46424         * lib/obstack.c (__attribute__): Remove macro.
46425         (print_and_abort): Use _Noreturn.
46427         c-stack: use _Noreturn
46428         * lib/c-stack.c (die, overflow_handler, segv_handler):
46429         Use _Noreturn rather than __attribute__((noreturn)).
46431         argmatch-tests, exclude_tests: use _Noreturn
46432         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46433         Remove.
46434         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46436         stdlib: use _Noreturn
46437         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46438         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46439         * modules/stdlib (Depends-on): Add _Noreturn.
46440         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46442         stdnoreturn-tests: new module
46443         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46445         stdnoreturn: new module
46446         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46447         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46449         _Noreturn-tests: new module
46450         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46452         _Noreturn: new module
46453         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46454         New section, mentioning it.
46455         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46457         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46459 2011-07-11  Eric Blake  <eblake@redhat.com>
46461         ffs: new module
46462         * modules/ffs: New file.
46463         * m4/ffs.m4: Likewise.
46464         * lib/ffs.c: Likewise.
46465         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46466         * modules/strings (Makefile.am): Substitute witness.
46467         (Depends-on): Add c++defs.
46468         * lib/strings.in.h (ffs): Declare.
46469         * modules/ffs-tests: New test file.
46470         * tests/test-ffs.c: Test new module.
46471         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46472         * doc/posix-functions/ffs.texi (ffs): Likewise.
46474         regex: avoid compiler warning
46475         * lib/regex.c (includes): Include <strings.h>, for use of
46476         strcasecmp in regcomp.c.
46477         Reported by Joachim Schmitz.
46479 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46481         stdint: respect system's intmax_t if INTMAX_MAX
46482         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46483         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46484         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46485         long but int64_t is long long, and where we will clash with the
46486         system intmax_t if we override it.  See
46487         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46488         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46489         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46490         similarly for UINTMAX_C.
46492 2011-07-08  Bruno Haible  <bruno@clisp.org>
46494         pthread_sigmask tests: Avoid a compiler warning.
46495         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46496         non-zero.
46498         sigprocmask tests: A better way to avoid a compiler warning.
46499         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46500         (main): Complain if system() returns non-zero.
46501         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46503 2011-07-08  Bruno Haible  <bruno@clisp.org>
46505         pthread_sigmask: Work around IRIX bug.
46506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46507         bug.
46508         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46509         there may be unblocked pending signals.
46510         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46512 2011-07-08  Bruno Haible  <bruno@clisp.org>
46514         pthread_sigmask: Work around Cygwin bug.
46515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46516         bug.
46517         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46518         the system's pthread_sigmask function.
46519         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46521 2011-07-08  Bruno Haible  <bruno@clisp.org>
46523         pthread_sigmask: Work around bug in single-threaded implementation.
46524         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46525         FreeBSD, HP-UX, Solaris bug.
46526         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46527         * lib/pthread_sigmask.c: Include <stddef.h>.
46528         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46529         the system's pthread_sigmask function.
46530         * modules/pthread_sigmask (configure.ac): Invoke
46531         gl_PREREQ_PTHREAD_SIGMASK.
46532         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46533         HP-UX, Solaris.
46535 2011-07-08  Eric Blake  <eblake@redhat.com>
46537         test-sigprocmask: avoid compiler warning
46538         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46539         * tests/test-sigprocmask.c (main): Use it to silence warning.
46540         Reported by Jim Meyering.
46542         test-snprintf: avoid compiler warning
46543         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46544         * tests/test-vsnprintf.c (main): Likewise.
46545         Reported by Jim Meyering.
46547 2011-07-08  Bruno Haible  <bruno@clisp.org>
46549         Tests for module 'pthread_sigmask'.
46550         * modules/pthread_sigmask-tests: New file.
46551         * tests/test-pthread_sigmask1.c: New file, based on
46552         tests/test-sigprocmask.c.
46553         * tests/test-pthread_sigmask2.c: New file.
46555 2011-07-08  Jim Meyering  <meyering@redhat.com>
46557         test-getopt.h: avoid warning about an unused variable
46558         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46560 2011-07-07  Jim Meyering  <meyering@redhat.com>
46562         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46563         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46564         now that it no longer contains leading TABs.
46565         Remove unused "url=FIXME" statement.
46567 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46569         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46570         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46571         When gl_THREADLIB is not in use, assume that the POSIX sematics
46572         are desired.  This is better for Emacs, which uses POSIX semantics
46573         on GNUish and/or POSIXish platforms, and does not use threads at
46574         all otherwise.
46576         pthread_sigmask: fix typo when testing for libraries
46577         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46578         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46580 2011-07-08  Eric Blake  <eblake@redhat.com>
46582         fts: introduce FTS_NOATIME
46583         * lib/fts_.h (FTS_NOATIME): New bit flag.
46584         (FTS_OPTIONMASK): Adjust.
46585         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46586         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
46588 2011-07-08  Bruno Haible  <bruno@clisp.org>
46590         Tests for module 'thread'.
46591         * modules/thread-tests: New file.
46592         * tests/test-thread_self.c: New file.
46593         * tests/test-thread_create.cc: New file.
46595 2011-07-08  Bruno Haible  <bruno@clisp.org>
46597         thread: Avoid gcc warnings when using gl_thread_self().
46598         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
46599         'void *'.
46600         (gl_thread_self_pointer): Update.
46602 2011-07-07  Bruno Haible  <bruno@clisp.org>
46604         signal-c++-tests: Check declaration of pthread_sigmask.
46605         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
46606         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
46607         $(LIB_PTHREAD_SIGMASK).
46609 2011-07-07  Bruno Haible  <bruno@clisp.org>
46611         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46612         * lib/signal.in.h (pthread_sigmask): Override if
46613         REPLACE_PTHREAD_SIGMASK is 1.
46614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46615         REPLACE_PTHREAD_SIGMASK.
46616         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
46617         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
46618         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
46619         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46620         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
46622 2011-07-07  Bruno Haible  <bruno@clisp.org>
46624         pthread_sigmask: Ensure declaration in <signal.h>.
46625         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
46626         include <pthread.h>.
46627         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
46628         problem.
46630 2011-07-07  Bruno Haible  <bruno@clisp.org>
46632         pthread_sigmask: Document the module.
46633         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
46635 2011-07-07  Bruno Haible  <bruno@clisp.org>
46637         pthread_sigmask: Follow gnulib conventions.
46638         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
46639         gl_PTHREAD_SIGMASK.
46640         * modules/pthread_sigmask (configure.ac): Update.
46642 2011-07-07  Bruno Haible  <bruno@clisp.org>
46644         pthread_sigmask: Make declaration C++ safe.
46645         * lib/signal.in.h: In two special conditions, just do an #include_next.
46646         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46647         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
46648         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46649         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46650         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
46651         not REPLACE_PTHREAD_MASK.
46652         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
46653         not REPLACE_PTHREAD_MASK.
46654         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46656 2011-07-07  Bruno Haible  <bruno@clisp.org>
46658         pthread_sigmask: Fix return value.
46659         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
46660         * lib/pthread_sigmask.c: New file.
46661         * modules/pthread_sigmask (Files): Add it.
46662         (configure.ac): Invoke AC_LIBOBJ.
46664 2011-07-07  Eric Blake  <eblake@redhat.com>
46666         getopt: more portable argv creation
46667         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
46668         const, use char arrays rather than strings.
46669         Suggested by Paul Eggert.
46671 2011-07-07  Bruno Haible  <bruno@clisp.org>
46673         Tests for module 'sigprocmask'.
46674         * modules/sigprocmask-tests: New file.
46675         * tests/test-sigprocmask.c: New file.
46677 2011-07-07  Bruno Haible  <bruno@clisp.org>
46679         float tests: Tweak.
46680         * tests/test-float.c (main): Tweak skip message.
46682 2011-07-07  Eric Blake  <eblake@redhat.com>
46684         getopt: avoid compiler warning during configure
46685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
46686         assigning string literals to non-const pointer.
46688         getopt-gnu: avoid crash in glibc getopt
46689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
46690         * tests/test-getopt.h (test_getopt): Enhance test.
46691         * tests/test-getopt_long.h (test_getopt_long): Likewise.
46692         * doc/posix-functions/getopt.texi (getopt): Document it.
46693         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46694         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46695         Likewise.
46697 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
46699         getopt: handle W; without long options in getopt [BZ #12922]
46700         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
46701         but no long options are defined, just return 'W'.
46703 2011-07-07  Bruno Haible  <bruno@clisp.org>
46705         Avoid literal tabs.
46706         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
46707         variable containing a tab instead of a literal tab.
46708         Reported by Jim Meyering.
46710 2011-07-07  Bruno Haible  <bruno@clisp.org>
46712         Comments.
46713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
46715 2011-07-06  Bruno Haible  <bruno@clisp.org>
46717         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
46718         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
46719         <winsock2.h>.
46720         (rpl_fd_isset, FD_ISSET): New definitions, copied from
46721         lib/sys_socket.in.h.
46722         (close, gethostname): Hide declarations from <winsock2.h>.
46723         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46724         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
46725         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
46726         (select): Don't override if gnulib's <sys/select.h> was already
46727         included.
46728         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
46729         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
46730         setsockopt, shutdown, select): Tweak indentation.
46732 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46734         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
46735         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
46736         in an application that does not use the sys_select module.
46738 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
46740         poll: do not return 0 on timeout=-1
46741         * lib/poll.c: Loop with yield if no events occurred.
46743 2011-07-06  Eric Blake  <eblake@redhat.com>
46745         pthread_sigmask: always replace when not using pthread
46746         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
46747         replacement when using some threading other than pthread.  Fix
46748         logic bug.
46750 2011-07-06  Bruno Haible  <bruno@clisp.org>
46752         Comments.
46753         * m4/printf.m4: Update comments about mingw.
46755 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46757         sys_select: define sigset_t more portably
46758         * lib/sys_select.in.h: Always include <sys/types.h>, since
46759         we now need sigset_t and mingw defines it there.
46760         Include <signal.h> before split inclusion guard, to avoid
46761         mishaps on Solaris, whose <signal.h> eventually includes us.
46762         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
46763         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
46764         which come from ...
46765         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46766         gl_CHECK_TYPE_SIGSET_T.
46767         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
46768         does the real work.
46769         * modules/sys_select (Depends-on): Add 'signal'.
46771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
46772         Suggested by Bruno Haible.
46774         pselect: Use pthread_sigmask, not sigprocmask.
46775         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
46776         multithreaded apps better than sigprocmask does.
46777         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
46778         sigprocmask directly.
46780 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46782         * lib/pselect.c (pselect): Use plain name, without "rpl_".
46783         Don't #undef,  since we don't need any underlying pselect.
46784         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
46785         (Depends-on): Add select.
46786         (Link): Add $(LIBSOCKET).
46787         These changes suggested by Bruno Haible.
46789         pselect: document better
46790         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46791         * doc/posix-functions/pselect.texi (pselect): Document new module.
46793         pthread_sigmask: new module
46794         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46795         * doc/posix-functions/pthread_sigmask.texi: Document new module.
46796         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
46797         This is done only as a macro; I don't know how well that'll
46798         work for C++.  Move <sys/types.h> include before the include_next,
46799         to avoid mishap on Solaris.
46800         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
46801         * modules/signal (Makefile.am): Substitute the check's results.
46802         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
46804         test-pselect: new module
46805         * modules/pselect-tests, tests/test-pselect.c: New files.
46806         * tests/test-select.c, tests/test-sys_select-c++.cc:
46807         If TEST_PSELECT is defined, test pselect instead of testing select.
46809         * tests/test-sys_select.c (sigset_t): Test for it, too.
46810         Suggested by Bruno Haible.
46812 2011-07-05  Eric Blake  <eblake@redhat.com>
46814         snprintf: guarantee %1$d, for libintl
46815         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
46816         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46817         * doc/posix-functions/snprintf.texi (snprintf): Update.
46818         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46819         * tests/test-snprintf.c (main): Enhance test.
46820         * tests/test-vsnprintf.c (main): Likewise.
46822 2011-07-05  Jim Meyering  <meyering@redhat.com>
46824         maint: exempt stdio-read.c and stdio-write.c from the cppi check
46825         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
46826         per Bruno's request, to accommodate this idiom (no space after "#")
46827         even when the function is inside an #if block:
46828         char *
46829         gets (char *s)
46830         #undef gets
46831         {
46832           ...
46833         }
46835 2011-07-04  Jim Meyering  <meyering@redhat.com>
46837         maint: indent with spaces, not TABs, and add a rule to check this
46838         * tests/test-userspec.c: Indent with spaces, not TABs.
46839         * tests/test-argp.c: Likewise.
46840         * tests/test-c-stack2.sh: Likewise.
46841         * tests/test-parse-duration.sh: Likewise
46842         * m4/strtod.m4: Likewise.
46843         * m4/alloca.m4: Likewise.
46844         * m4/pselect.m4: Likewise.
46845         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
46847 2011-07-03  Jim Meyering  <meyering@redhat.com>
46849         maint.mk: correct omissions in prohibit_argmatch_without_use check
46850         This rule would mistakenly report that argmatch.h is included without
46851         use even when both the argmatch and invalid_arg macro were used.
46852         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
46853         of argmatch and invalid_arg.
46855 2011-07-03  Bruno Haible  <bruno@clisp.org>
46857         Comments about EINTR.
46858         * lib/safe-read.h: Explain the purpose of this module.
46859         * lib/safe-write.h: Likewise.
46860         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
46861         module.
46862         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
46863         module.
46864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46866 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46868         xnanosleep: Rewrite to use new dtotimespec module.
46869         It has the conversion code that used to be in xnanosleep.
46870         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
46871         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
46872         (TIME_T_MAX): Remove.
46873         (xnanosleep): Rewrite in terms of dtotimespec.
46874         * modules/xnanosleep (Depends-on): Add dtotimespec.
46875         Remove intprops, stdbool.
46877         timespec-add, timespec-sub: new modules
46878         * lib/timespec.h (timespec_add, timespec_sub): New decls.
46879         * lib/timespec-add.c, lib/timespec-sub.c:
46880         * modules/timespec-add, modules/timespec-sub: New files.
46882         dtotimespec: new module
46883         * lib/timespec.h (dtotimespec): New decl.
46884         * lib/dtotimespec.c, modules/dtotimespec: New files.
46886         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
46888         pselect: new module
46889         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
46890         (pselect): New decls.
46891         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
46892         since the standard pselect decl uses 'restrict'.
46893         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
46894         HAVE_PSELECT, REPLACE_PSELECT.
46895         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
46896         HAVE_PSELECT, REPLACE_PSELECT.
46897         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
46899         sys_select: don't depend on sys_socket
46900         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
46901         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
46902         This fix works on GNU and GNU-like platforms, but has not been tested
46903         on native Windows.
46904         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
46905         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
46906         gl_HEADER_SYS_SOCKET.
46907         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
46908         gl_PREREQ_SYS_H_WINSOCK2.
46910 2011-06-29  Eric Blake  <eblake@redhat.com>
46912         pipe2: fix C89 compile problem
46913         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
46914         Reported by Bruno Haible.
46916         pipe, pipe2: don't corrupt fd on error
46917         * lib/pipe.c (pipe): Leave fd unchanged on error.
46918         * lib/pipe2.c (pipe2): Likewise.
46919         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
46920         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46922 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
46924         mmap-anon: do not use regular expressions inadvertently
46925         * m4/mmap-anon.m4: Remove trailing period from strings sought
46926         in the output.
46928 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
46930         nanosleep: fix integer overflow problem
46931         * lib/nanosleep.c (my_usleep): Don't assume signed integer
46932         arithmetic wraps around on overflow.
46934         nanosleep: simplify carrying
46935         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
46936         first call to the underyling nanosleep, not for the last one.
46937         This doesn't fix any bugs, but it simplifies the computation of
46938         the remaining delay.  Found while auditing integer overflow issues.
46940         dup2: remove test for existence of fcntl
46941         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
46942         "#if HAVE_FCNTL", in the configure-time test program.
46943         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
46944         and therefore speeds up "configure" a bit.  Found while
46945         adding the dup2 module to Emacs.
46947 2011-06-24  Eric Blake  <eblake@redhat.com>
46949         maint.mk: enhance useless header checks
46950         * top/maint.mk (_sc_header_without_use): Check both include
46951         styles.
46952         (sc_prohibit_assert_without_use)
46953         (sc_prohibit_close_stream_without_use)
46954         (sc_prohibit_getopt_without_use)
46955         (sc_prohibit_quotearg_without_use)
46956         (sc_prohibit_quote_without_use)
46957         (sc_prohibit_long_options_without_use)
46958         (sc_prohibit_inttostr_without_use)
46959         (sc_prohibit_ignore_value_without_use)
46960         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
46961         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
46962         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
46963         (sc_prohibit_hash_pjw_without_use)
46964         (sc_prohibit_safe_read_without_use)
46965         (sc_prohibit_argmatch_without_use)
46966         (sc_prohibit_canonicalize_without_use)
46967         (sc_prohibit_root_dev_ino_without_use)
46968         (sc_prohibit_openat_without_use)
46969         (sc_prohibit_c_ctype_without_use)
46970         (sc_prohibit_signal_without_use)
46971         (sc_prohibit_stdio--_without_use)
46972         (sc_prohibit_stdio-safer_without_use)
46973         (sc_prohibit_strings_without_use)
46974         (sc_prohibit_intprops_without_use)
46975         (sc_prohibit_stddef_without_use)
46976         (sc_prohibit_xfreopen_without_use): Update clients.
46978 2011-06-24  Jim Meyering  <meyering@redhat.com>
46980         syntax-check: keep one maint.mk rule in sync with its header
46981         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
46982         of the bug Eric has just fixed, with today's commit 25e4c2ec.
46983         I prefer to avoid temporary files here, so use <(...), but that
46984         is not supported by /bin/sh, so...
46985         (SHELL): Define to /bin/bash.
46987 2011-06-24  Eric Blake  <eblake@redhat.com>
46989         maint.mk: update sc_prohibit_intprops_without_use
46990         * top/maint.mk (_intprops_names): Match recent changes.
46992 2011-06-24  Bruno Haible  <bruno@clisp.org>
46994         strerror-override: No-op tweak.
46995         * lib/strerror-override.h (strerror_override): Reorder conditions,
46996         for consistency with lib/strerror-override.c.
46998 2011-06-23  Eric Blake  <eblake@redhat.com>
47000         maint.mk: test further PATH_MAX issues
47001         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47002         (sc_prohibit_path_max_allocation): ...and also test alloca.
47003         Suggested by Jim Meyering.
47005 2011-06-22  Eric Blake  <eblake@redhat.com>
47007         maint.mk: add syntax-check to avoid char[PATH_MAX]
47008         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47010         stat: be robust to PATH_MAX definition
47011         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47012         * modules/stat (Depends-on): Add verify.
47014         link: work around IRIX bug
47015         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47016         * lib/link.c (rpl_link): Work around it.
47017         * tests/test-link.h (test_link): Enhance test.
47018         * doc/posix-functions/link.texi (link): Document the bug.
47020         getopt: silence clang warning
47021         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47022         dereference.
47023         Reported by Gustavo Martin Domato.
47025 2011-06-22  Jim Meyering  <meyering@redhat.com>
47027         bootstrap: do not insert a blank line into each .gitignore file
47028         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47030 2011-06-21  Eric Blake  <eblake@redhat.com>
47032         perror: test for output mismatch
47033         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47034         perror on IRIX.
47036         strerror_r: fix OpenBSD behavior on out-of-range
47037         * lib/strerror_r.c (strerror_r): Always use maximal string.
47038         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47040         strerror_r: fix OpenBSD behavior on 0
47041         * lib/strerror-override.c (strerror_override): Also override 0
47042         when needed.
47043         * lib/strerror-override.h (strerror_override): Likewise.
47044         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47045         earlier.
47046         * lib/strerror_r.c (strerror_r): Likewise.
47047         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47048         behavior...
47049         (gl_FUNC_STRERROR_0): ...into new macro.
47050         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47051         is overridden.
47052         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47053         * modules/strerror-override (Files): Add strerror.m4.
47054         (configure.ac): Also provide override for 0 when needed.
47055         * doc/posix-functions/strerror.texi (strerror): Document this.
47056         * doc/posix-functions/perror.texi (perror): Likewise.
47058         perror: adjust array size
47059         * modules/perror (Depends-on): Add strerror-override.
47060         * lib/perror.c (perror): Use it to avoid magic number.
47062         strerror-override: reduce size
47063         * lib/strerror-override.c (strerror_override): Use fewer lines.
47065 2011-06-20  Bruno Haible  <bruno@clisp.org>
47067         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47068         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47070 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47072         alloca: port to compilers that can optimize like GCC 4.6.0
47073         * lib/alloca.c (find_stack_direction): New signature, taken from
47074         Autoconf git.  This works with GCC 4.6.0.  This code should never
47075         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47076         be used with other compilers that optimize as well as GCC 4.6.0 does.
47077         (alloca): Adjust to new signature.
47078         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47079         New macro, which patches Autoconf in a similar way.
47081         c-stack: stop worrying about stack direction
47082         * lib/c-stack.c (find_stack_direction): Remove.
47083         (segv_handler): Don't worry about stack direction growth, as it's
47084         too much of a pain to configure this correctly, given how compilers
47085         are optimizing-away our stack-growth detection code.  Instead, assume
47086         that any access to just before or just after the stack is OK.
47087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47088         Don't require AC_FUNC_ALLOCA; no longer needed.
47090 2011-06-20  Eric Blake  <eblake@redhat.com>
47092         test-stat: don't allocate PATH_MAX bytes
47093         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47094         PATH_MAX-sized buffer.
47095         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47096         * modules/stat-tests (Depends-on): Likewise.
47097         * tests/test-fstatat.c (includes): Drop pathmax.h.
47098         * tests/test-stat.c (includes): Likewise.
47099         Reported by Bruno Haible.
47101 2011-06-20  Bruno Haible  <bruno@clisp.org>
47103         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47104         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47105         * lib/float.c: New file.
47106         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47107         REPLACE_FLOAT_LDBL.
47108         * modules/float (Files): Add lib/float.c.
47109         (configure.ac): Invoke AC_LIBOBJ.
47110         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47112 2011-06-20  Bruno Haible  <bruno@clisp.org>
47114         Tests for module 'float'.
47115         * modules/float-tests: New file.
47116         * tests/test-float.c: New file.
47118 2011-06-19  Bruno Haible  <bruno@clisp.org>
47120         isinf: Coding style.
47121         * lib/isinf.c: Use GNU coding style.
47123 2011-06-19  Bruno Haible  <bruno@clisp.org>
47125         linkat test: Avoid test failure on AIX 7.1.
47126         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47127         * tests/test-link.h (test_link): Likewise.
47129 2011-06-19  Bruno Haible  <bruno@clisp.org>
47131         pread test: Avoid test failure on OpenBSD 4.9.
47132         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47134 2011-06-19  Bruno Haible  <bruno@clisp.org>
47136         sprintf-posix: Fix test failure on AIX 7.1.
47137         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47138         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47139         on AIX.
47140         * doc/posix-functions/fprintf.texi: Likewise.
47141         * doc/posix-functions/printf.texi: Likewise.
47142         * doc/posix-functions/snprintf.texi: Likewise.
47143         * doc/posix-functions/sprintf.texi: Likewise.
47144         * doc/posix-functions/vdprintf.texi: Likewise.
47145         * doc/posix-functions/vfprintf.texi: Likewise.
47146         * doc/posix-functions/vprintf.texi: Likewise.
47147         * doc/posix-functions/vsnprintf.texi: Likewise.
47148         * doc/posix-functions/vsprintf.texi: Likewise.
47150 2011-06-19  Bruno Haible  <bruno@clisp.org>
47152         roundl-ieee: Fix test failure on AIX 7.1.
47153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47154         * doc/posix-functions/roundl.texi: Mention problem with negative
47155         arguments.
47157 2011-06-19  Bruno Haible  <bruno@clisp.org>
47159         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47160         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47161         * doc/posix-functions/round.texi: Mention problem with negative
47162         arguments.
47163         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47165 2011-06-19  Bruno Haible  <bruno@clisp.org>
47167         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47169         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47170         * doc/posix-functions/roundf.texi: Mention problem with negative
47171         arguments.
47172         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47174 2011-06-19  Bruno Haible  <bruno@clisp.org>
47176         ceilf-ieee: Work around bug on MacOS X 10.5.
47177         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47179         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47180         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47181         IEEE compliant, avoid compiler optimizations.
47182         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47183         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47184         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47185         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47186         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47187         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47188         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47190         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47191         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47193 2011-06-19  Bruno Haible  <bruno@clisp.org>
47195         ceilf-ieee: Work around bug on AIX 7.1.
47196         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47197         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47199 2011-06-19  Bruno Haible  <bruno@clisp.org>
47201         ceil-ieee: Work around bug on AIX 7.1.
47202         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47203         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47205 2011-06-18  Bruno Haible  <bruno@clisp.org>
47207         fsync test: Avoid test failure on MacOS X and AIX.
47208         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47209         EINVAL.
47211 2011-06-18  Bruno Haible  <bruno@clisp.org>
47213         openat, fdopendir tests: Fix link errors.
47214         * modules/openat-tests (Depends-on): Add progname.
47215         * modules/fdopendir-tests (Depends-on): Likewise.
47216         * tests/test-fchownat.c: Include progname.h.
47217         (main): Call set_program_name.
47218         * tests/test-fstatat.c: Include progname.h.
47219         (main): Call set_program_name.
47220         * tests/test-mkdirat.c: Include progname.h.
47221         (main): Call set_program_name.
47222         * tests/test-openat.c: Include progname.h.
47223         (main): Call set_program_name.
47224         * tests/test-unlinkat.c: Include progname.h.
47225         (main): Call set_program_name.
47226         * tests/test-fdopendir.c: Include progname.h.
47227         (main): Call set_program_name.
47229 2011-06-18  Bruno Haible  <bruno@clisp.org>
47231         Doc update.
47232         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47233         HP-UX.
47234         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47236 2011-06-18  Bruno Haible  <bruno@clisp.org>
47238         getcwd tests: Avoid compilation error on HP-UX 11.31.
47239         * modules/getcwd-tests (Depends-on): Add pathmax.
47240         * tests/test-getcwd.c: Include pathmax.h.
47242 2011-06-18  Bruno Haible  <bruno@clisp.org>
47244         isfinite, isinf: Fix link error on AIX 6 and 7.
47245         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47246         needed, also test the macro with a 'float' argument.
47247         * m4/isinf.m4 (gl_ISINF): Likewise.
47249 2011-06-18  Bruno Haible  <bruno@clisp.org>
47251         getloadavg: Don't clobber LIBS. Regression from previous commit.
47252         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47253         AC_CHECK_LIB from here...
47254         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47255         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47256         gl_func_getloadavg_done.
47257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47259 2011-06-18  Bruno Haible  <bruno@clisp.org>
47261         clean-temp: Improve documentation.
47262         * lib/clean-temp.h: Explain better how to use this module.
47263         Reported by John Darrington <john@darrington.wattle.id.au>.
47265 2011-06-17  Bruno Haible  <bruno@clisp.org>
47267         pread, pwrite: Avoid cc warning on AIX.
47268         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47269         (pwrite): Likewise.
47271 2011-06-17  Bruno Haible  <bruno@clisp.org>
47273         spawn-pipe tests: Fix link error.
47274         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47277 2011-06-17  Bruno Haible  <bruno@clisp.org>
47279         Tests: Remove unnecessary dependency.
47280         * modules/canonicalize-tests (Depends-on): Remove progname.
47281         * modules/chown-tests (Depends-on): Likewise.
47282         * modules/dirname-tests (Depends-on): Likewise.
47283         * modules/fdopendir-tests (Depends-on): Likewise.
47284         * modules/fdutimensat-tests (Depends-on): Likewise.
47285         * modules/hash-tests (Depends-on): Likewise.
47286         * modules/lchown-tests (Depends-on): Likewise.
47287         * modules/linkat-tests (Depends-on): Likewise.
47288         * modules/renameat-tests (Depends-on): Likewise.
47289         * modules/spawn-pipe-tests (Depends-on): Likewise.
47290         * modules/utimensat-tests (Depends-on): Likewise.
47292 2011-06-17  Bruno Haible  <bruno@clisp.org>
47294         spawn-pipe tests: Fix link error.
47295         * tests/test-spawn-pipe-child.c: Undefine fflush.
47297 2011-06-17  Bruno Haible  <bruno@clisp.org>
47299         Fix tests link errors.
47300         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47301         * modules/chown-tests (Makefile.am): Don't link test-chown with
47302         LIBINTL.
47303         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47304         LIBINTL.
47305         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47306         LIBINTL.
47307         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47308         LIBINTL.
47310 2011-06-16  Bruno Haible  <bruno@clisp.org>
47312         crypto/gc-sha1: Fix recent regression.
47313         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47314         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47316         crypto/gc-md5: Fix recent regression.
47317         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47319         crypto/gc-md4: Fix recent regression.
47320         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47321         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47323         crypto/gc-arctwo: Fix recent regression.
47324         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47325         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47327         crypto/gc-rijndael: Fix recent regression.
47328         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47329         (configure.ac): Invoke AC_LIBOBJ here.
47330         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47333         crypto/gc-hmac-sha1: Fix recent regression.
47334         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47335         (configure.ac): Invoke AC_LIBOBJ here.
47336         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47339         crypto/gc-hmac-md5: Fix recent regression.
47340         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47341         (configure.ac): Invoke AC_LIBOBJ here.
47342         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47345         crypto/gc-des: Fix recent regression.
47346         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47347         (configure.ac): Invoke AC_LIBOBJ here.
47348         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47351         crypto/gc-arcfour: Fix recent regression.
47352         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47353         (configure.ac): Invoke AC_LIBOBJ here.
47354         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47357 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47359         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47360         After the 2011-05-21 change, this macro requires
47361         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47362         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47364 2011-06-16  Bruno Haible  <bruno@clisp.org>
47366         fprintftime: Move AC_LIBOBJ invocations to module description.
47367         * m4/fprintftime.m4: Remove file.
47368         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47369         (configure.ac): Remove gl_FPRINTFTIME call.
47370         (Makefile.am): Augment lib_SOURCES.
47371         Reported by Jim Meyering.
47373 2011-06-16  Bruno Haible  <bruno@clisp.org>
47375         tmpfile-safer: Finish 2011-05-23 commit.
47376         * m4/stdio-safer.m4: Really remove file.
47377         Reported by Jim Meyering.
47379 2011-06-16  Bruno Haible  <bruno@clisp.org>
47381         syntax-check: Fix typo.
47382         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47383         printf-posix.m4.
47384         Reported by Jim Meyering.
47386 2011-06-13  Jim Meyering  <meyering@redhat.com>
47388         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47389         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47391 2011-05-23  Bruno Haible  <bruno@clisp.org>
47393         yesno: Move AC_LIBOBJ invocations to module description.
47394         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47395         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47397 2011-05-23  Bruno Haible  <bruno@clisp.org>
47399         xstrtol: Move AC_LIBOBJ invocations to module description.
47400         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47401         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47403 2011-05-23  Bruno Haible  <bruno@clisp.org>
47405         xstrtold: Move AC_LIBOBJ invocations to module description.
47406         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47407         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47409 2011-05-23  Bruno Haible  <bruno@clisp.org>
47411         xstrtod: Move AC_LIBOBJ invocations to module description.
47412         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47413         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47415 2011-05-23  Bruno Haible  <bruno@clisp.org>
47417         xnanosleep: Move AC_LIBOBJ invocations to module description.
47418         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47419         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47421 2011-05-23  Bruno Haible  <bruno@clisp.org>
47423         xgetcwd: Move AC_LIBOBJ invocations to module description.
47424         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47425         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47427 2011-05-23  Bruno Haible  <bruno@clisp.org>
47429         xalloc: Move AC_LIBOBJ invocations to module description.
47430         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47431         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47433 2011-05-23  Bruno Haible  <bruno@clisp.org>
47435         write-any-file: Move AC_LIBOBJ invocations to module description.
47436         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47437         invocation.
47438         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47440 2011-05-23  Bruno Haible  <bruno@clisp.org>
47442         utimens: Move AC_LIBOBJ invocations to module description.
47443         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47444         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47446 2011-05-23  Bruno Haible  <bruno@clisp.org>
47448         utimecmp: Move AC_LIBOBJ invocations to module description.
47449         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47450         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47452 2011-05-23  Bruno Haible  <bruno@clisp.org>
47454         userspec: Move AC_LIBOBJ invocations to module description.
47455         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47456         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47458 2011-05-23  Bruno Haible  <bruno@clisp.org>
47460         unlinkdir: Move AC_LIBOBJ invocations to module description.
47461         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47462         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47464 2011-05-23  Bruno Haible  <bruno@clisp.org>
47466         unistd-safer: Move AC_LIBOBJ invocations to module description.
47467         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47468         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47470 2011-05-23  Bruno Haible  <bruno@clisp.org>
47472         tempname: Move AC_LIBOBJ invocations to module description.
47473         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47474         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47476 2011-05-23  Bruno Haible  <bruno@clisp.org>
47478         strftime: Move AC_LIBOBJ invocations to module description.
47479         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47480         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47482 2011-05-23  Bruno Haible  <bruno@clisp.org>
47484         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47485         * m4/stdlib-safer.m4: Remove file.
47486         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47487         (configure.ac): Remove gl_STDLIB_SAFER call.
47488         (Makefile.am): Augment lib_SOURCES.
47490 2011-05-23  Bruno Haible  <bruno@clisp.org>
47492         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47493         * m4/stdio-safer.m4: Remove file.
47494         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47495         (configure.ac): Remove gl_TMPFILE_SAFER call.
47496         (Makefile.am): Augment lib_SOURCES.
47498 2011-05-23  Bruno Haible  <bruno@clisp.org>
47500         popen-safer: Move AC_LIBOBJ invocations to module description.
47501         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47502         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47503         (configure.ac): Remove gl_POPEN_SAFER call.
47504         (Makefile.am): Augment lib_SOURCES.
47506 2011-05-23  Bruno Haible  <bruno@clisp.org>
47508         freopen-safer: Move AC_LIBOBJ invocations to module description.
47509         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47510         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47511         (configure.ac): Remove gl_FREOPEN_SAFER call.
47512         (Makefile.am): Augment lib_SOURCES.
47514 2011-05-23  Bruno Haible  <bruno@clisp.org>
47516         fopen-safer: Move AC_LIBOBJ invocations to module description.
47517         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47518         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47519         (configure.ac): Remove gl_FOPEN_SAFER call.
47520         (Makefile.am): Augment lib_SOURCES.
47522 2011-05-23  Bruno Haible  <bruno@clisp.org>
47524         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47525         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47526         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47528 2011-05-23  Bruno Haible  <bruno@clisp.org>
47530         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47531         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47532         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47534 2011-05-23  Bruno Haible  <bruno@clisp.org>
47536         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47537         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47538         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47540 2011-05-23  Bruno Haible  <bruno@clisp.org>
47542         settime: Move AC_LIBOBJ invocations to module description.
47543         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47544         * modules/settime (Makefile.am): Augment lib_SOURCES.
47546 2011-05-23  Bruno Haible  <bruno@clisp.org>
47548         savedir: Move AC_LIBOBJ invocations to module description.
47549         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47550         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47552 2011-05-23  Bruno Haible  <bruno@clisp.org>
47554         save-cwd: Move AC_LIBOBJ invocations to module description.
47555         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47556         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47558 2011-05-23  Bruno Haible  <bruno@clisp.org>
47560         same: Move AC_LIBOBJ invocations to module description.
47561         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47562         * modules/same (Makefile.am): Augment lib_SOURCES.
47564 2011-05-23  Bruno Haible  <bruno@clisp.org>
47566         safe-write: Move AC_LIBOBJ invocations to module description.
47567         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47568         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47569         instead of gl_SAFE_WRITE.
47570         (Makefile.am): Augment lib_SOURCES.
47572 2011-05-23  Bruno Haible  <bruno@clisp.org>
47574         safe-read: Move AC_LIBOBJ invocations to module description.
47575         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47576         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47577         of gl_SAFE_READ.
47578         (Makefile.am): Augment lib_SOURCES.
47580 2011-05-23  Bruno Haible  <bruno@clisp.org>
47582         safe-alloc: Move AC_LIBOBJ invocations to module description.
47583         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47584         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47586 2011-05-23  Bruno Haible  <bruno@clisp.org>
47588         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
47589         * m4/rijndael.m4: Remove file.
47590         * modules/crypto/rijndael (Files): Remove it.
47591         (configure.ac): Remove gl_RIJNDAEL call.
47592         (Makefile.am): Augment lib_SOURCES.
47594 2011-05-23  Bruno Haible  <bruno@clisp.org>
47596         readtokens: Move AC_LIBOBJ invocations to module description.
47597         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47598         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
47600 2011-05-23  Bruno Haible  <bruno@clisp.org>
47602         read-file: Move AC_LIBOBJ invocations to module description.
47603         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
47604         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
47605         of gl_FUNC_READ_FILE.
47606         (Makefile.am): Augment lib_SOURCES.
47608 2011-05-23  Bruno Haible  <bruno@clisp.org>
47610         quotearg: Move AC_LIBOBJ invocations to module description.
47611         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
47612         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
47614 2011-05-23  Bruno Haible  <bruno@clisp.org>
47616         quote: Move AC_LIBOBJ invocations to module description.
47617         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47618         * modules/quote (Makefile.am): Augment lib_SOURCES.
47620 2011-05-23  Bruno Haible  <bruno@clisp.org>
47622         posixver: Move AC_LIBOBJ invocations to module description.
47623         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
47624         * modules/posixver (Makefile.am): Augment lib_SOURCES.
47626 2011-05-23  Bruno Haible  <bruno@clisp.org>
47628         posixtm: Move AC_LIBOBJ invocations to module description.
47629         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
47630         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
47632 2011-05-23  Bruno Haible  <bruno@clisp.org>
47634         physmem: Move AC_LIBOBJ invocations to module description.
47635         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
47636         * modules/physmem (Makefile.am): Augment lib_SOURCES.
47638 2011-05-23  Bruno Haible  <bruno@clisp.org>
47640         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
47641         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
47642         invocation.
47643         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
47645 2011-05-23  Bruno Haible  <bruno@clisp.org>
47647         mpsort: Move AC_LIBOBJ invocations to module description.
47648         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
47649         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
47651 2011-05-23  Bruno Haible  <bruno@clisp.org>
47653         modechange: Move AC_LIBOBJ invocations to module description.
47654         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
47655         * modules/modechange (Makefile.am): Augment lib_SOURCES.
47657 2011-05-23  Bruno Haible  <bruno@clisp.org>
47659         mkdir-p: Move AC_LIBOBJ invocations to module description.
47660         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
47661         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
47663 2011-05-23  Bruno Haible  <bruno@clisp.org>
47665         mkancesdirs: Move AC_LIBOBJ invocations to module description.
47666         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
47667         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
47669 2011-05-23  Bruno Haible  <bruno@clisp.org>
47671         mgetgroups: Move AC_LIBOBJ invocations to module description.
47672         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
47673         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
47675 2011-05-23  Bruno Haible  <bruno@clisp.org>
47677         memxor: Move AC_LIBOBJ invocations to module description.
47678         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
47679         * modules/memxor (Makefile.am): Augment lib_SOURCES.
47681 2011-05-23  Bruno Haible  <bruno@clisp.org>
47683         memcoll: Move AC_LIBOBJ invocations to module description.
47684         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
47685         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
47687 2011-05-23  Bruno Haible  <bruno@clisp.org>
47689         memcasecmp: Move AC_LIBOBJ invocations to module description.
47690         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
47691         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
47693 2011-05-23  Bruno Haible  <bruno@clisp.org>
47695         crypto/md5: Move AC_LIBOBJ invocations to module description.
47696         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
47697         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
47699 2011-05-23  Bruno Haible  <bruno@clisp.org>
47701         crypto/md4: Move AC_LIBOBJ invocations to module description.
47702         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
47703         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
47705 2011-05-23  Bruno Haible  <bruno@clisp.org>
47707         crypto/md2: Move AC_LIBOBJ invocations to module description.
47708         * m4/md2.m4: Remove file.
47709         * modules/crypto/md2 (Files): Remove it.
47710         (configure.ac): Remove gl_MD2 call.
47711         (Makefile.am): Augment lib_SOURCES.
47713 2011-05-23  Bruno Haible  <bruno@clisp.org>
47715         long-options: Move AC_LIBOBJ invocations to module description.
47716         * m4/long-options.m4: Remove file.
47717         * modules/long-options (Files): Remove it.
47718         (configure.ac): Remove gl_LONG_OPTIONS call.
47719         (Makefile.am): Augment lib_SOURCES.
47721 2011-05-23  Bruno Haible  <bruno@clisp.org>
47723         i-ring: Move AC_LIBOBJ invocations to module description.
47724         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
47725         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
47727 2011-05-23  Bruno Haible  <bruno@clisp.org>
47729         idcache: Move AC_LIBOBJ invocations to module description.
47730         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
47731         * modules/idcache (Makefile.am): Augment lib_SOURCES.
47733 2011-05-23  Bruno Haible  <bruno@clisp.org>
47735         human: Move AC_LIBOBJ invocations to module description.
47736         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
47737         * modules/human (Makefile.am): Augment lib_SOURCES.
47739 2011-05-23  Bruno Haible  <bruno@clisp.org>
47741         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
47742         * m4/hmac-sha1.m4: Remove file.
47743         * modules/crypto/hmac-sha1 (Files): Remove it.
47744         (configure.ac): Remove gl_HMAC_SHA1 call.
47745         (Makefile.am): Augment lib_SOURCES.
47747 2011-05-23  Bruno Haible  <bruno@clisp.org>
47749         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
47750         * m4/hmac-md5.m4: Remove file.
47751         * modules/crypto/hmac-md5 (Files): Remove it.
47752         (configure.ac): Remove gl_HMAC_MD5 call.
47753         (Makefile.am): Augment lib_SOURCES.
47755 2011-05-23  Bruno Haible  <bruno@clisp.org>
47757         hash: Move AC_LIBOBJ invocations to module description.
47758         * m4/hash.m4: Remove file.
47759         * modules/hash (Files): Remove it.
47760         (configure.ac): Remove gl_HASH call.
47761         (Makefile.am): Augment lib_SOURCES.
47763 2011-05-23  Bruno Haible  <bruno@clisp.org>
47765         hard-locale: Move AC_LIBOBJ invocations to module description.
47766         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
47767         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
47769 2011-05-23  Bruno Haible  <bruno@clisp.org>
47771         getugroups: Move AC_LIBOBJ invocations to module description.
47772         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
47773         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
47775 2011-05-23  Bruno Haible  <bruno@clisp.org>
47777         gettime: Move AC_LIBOBJ invocations to module description.
47778         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
47779         * modules/gettime (Makefile.am): Augment lib_SOURCES.
47781 2011-05-23  Bruno Haible  <bruno@clisp.org>
47783         getndelim2: Move AC_LIBOBJ invocations to module description.
47784         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
47785         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
47787 2011-05-23  Bruno Haible  <bruno@clisp.org>
47789         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
47790         * m4/gc-pbkdf2-sha1.m4: Remove file.
47791         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
47792         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
47793         (Makefile.am): Augment lib_SOURCES.
47795 2011-05-23  Bruno Haible  <bruno@clisp.org>
47797         fts: Move AC_LIBOBJ invocations to module description.
47798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
47799         * modules/fts (configure.ac): ... to here.
47801 2011-05-23  Bruno Haible  <bruno@clisp.org>
47803         file-type: Move AC_LIBOBJ invocations to module description.
47804         * m4/file-type.m4: Remove file.
47805         * modules/file-type (Files): Remove it.
47806         (configure.ac): Remove gl_FILE_TYPE call.
47807         (Makefile.am): Augment lib_SOURCES.
47809 2011-05-23  Bruno Haible  <bruno@clisp.org>
47811         filenamecat*: Respect rules for use of AC_LIBOBJ.
47812         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
47813         Remove AC_LIBOBJ invocation.
47814         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
47815         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
47817 2011-05-23  Bruno Haible  <bruno@clisp.org>
47819         filemode: Move AC_LIBOBJ invocations to module description.
47820         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
47821         * modules/filemode (Makefile.am): Augment lib_SOURCES.
47823 2011-05-23  Bruno Haible  <bruno@clisp.org>
47825         openat-safer: Move AC_LIBOBJ invocations to module description.
47826         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
47827         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
47829 2011-05-23  Bruno Haible  <bruno@clisp.org>
47831         fcntl-safer: Move AC_LIBOBJ invocations to module description.
47832         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
47833         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
47835 2011-05-23  Bruno Haible  <bruno@clisp.org>
47837         exclude: Move AC_LIBOBJ invocations to module description.
47838         * m4/exclude.m4: Remove file.
47839         * modules/exclude (Files): Remove it.
47840         (configure.ac): Remove gl_EXCLUDE call.
47841         (Makefile.am): Augment lib_SOURCES.
47843 2011-05-23  Bruno Haible  <bruno@clisp.org>
47845         dirname*: Respect rules for use of AC_LIBOBJ.
47846         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
47847         invocations.
47848         * modules/dirname (Makefile.am): Augment lib_SOURCES.
47849         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
47851 2011-05-23  Bruno Haible  <bruno@clisp.org>
47853         dirent-safer: Move AC_LIBOBJ invocations to module description.
47854         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
47855         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
47857 2011-05-23  Bruno Haible  <bruno@clisp.org>
47859         crypto/des: Move AC_LIBOBJ invocations to module description.
47860         * m4/des.m4: Remove file.
47861         * modules/crypto/des (Files): Remove it.
47862         (configure.ac): Remove gl_DES call.
47863         (Makefile.am): Augment lib_SOURCES.
47865 2011-05-23  Bruno Haible  <bruno@clisp.org>
47867         cycle-check: Move AC_LIBOBJ invocations to module description.
47868         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
47869         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
47871 2011-05-23  Bruno Haible  <bruno@clisp.org>
47873         c-strtold: Move AC_LIBOBJ invocations to module description.
47874         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
47875         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
47877 2011-05-23  Bruno Haible  <bruno@clisp.org>
47879         c-strtod: Move AC_LIBOBJ invocations to module description.
47880         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
47881         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
47883 2011-05-23  Bruno Haible  <bruno@clisp.org>
47885         crc: Move AC_LIBOBJ invocations to module description.
47886         * m4/crc.m4: Remove file.
47887         * modules/crc (Files): Remove it.
47888         (configure.ac): Remove gl_CRC call.
47889         (Makefile.am): Augment lib_SOURCES.
47891 2011-05-23  Bruno Haible  <bruno@clisp.org>
47893         close-stream: Move AC_LIBOBJ invocations to module description.
47894         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
47895         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
47897 2011-05-23  Bruno Haible  <bruno@clisp.org>
47899         closeout: Move AC_LIBOBJ invocations to module description.
47900         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
47901         * modules/closeout (Makefile.am): Augment lib_SOURCES.
47903 2011-05-23  Bruno Haible  <bruno@clisp.org>
47905         closein: Move AC_LIBOBJ invocations to module description.
47906         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
47907         * modules/closein (Makefile.am): Augment lib_SOURCES.
47909 2011-05-23  Bruno Haible  <bruno@clisp.org>
47911         cloexec: Move AC_LIBOBJ invocations to module description.
47912         * m4/cloexec.m4: Remove file.
47913         * modules/cloexec (Files): Remove it.
47914         (configure.ac): Remove gl_CLOEXEC call.
47915         (Makefile.am): Augment lib_SOURCES.
47917 2011-05-23  Bruno Haible  <bruno@clisp.org>
47919         check-version: Move AC_LIBOBJ invocations to module description.
47920         * m4/check-version.m4: Remove file.
47921         * modules/check-version (Files): Remove it.
47922         (configure.ac): Remove gl_CHECK_VERSION call.
47923         (Makefile.am): Augment lib_SOURCES.
47925 2011-05-23  Bruno Haible  <bruno@clisp.org>
47927         chdir-safer: Move AC_LIBOBJ invocations to module description.
47928         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
47929         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
47931 2011-05-23  Bruno Haible  <bruno@clisp.org>
47933         canonicalize: Move AC_LIBOBJ invocations to module description.
47934         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
47935         AC_LIBOBJ invocation.
47936         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
47938 2011-05-23  Bruno Haible  <bruno@clisp.org>
47940         canon-host: Move AC_LIBOBJ invocations to module description.
47941         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
47942         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
47943         instead of gl_CANON_HOST.
47944         (Makefile.am): Augment lib_SOURCES.
47946 2011-05-23  Bruno Haible  <bruno@clisp.org>
47948         backupfile: Move AC_LIBOBJ invocations to module description.
47949         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
47950         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
47952 2011-05-23  Bruno Haible  <bruno@clisp.org>
47954         argmatch: Move AC_LIBOBJ invocations to module description.
47955         * m4/argmatch.m4: Remove file.
47956         * modules/argmatch (Files): Remove it.
47957         (configure.ac): Remove gl_ARGMATCH call.
47958         (Makefile.am): Augment lib_SOURCES.
47960 2011-05-23  Bruno Haible  <bruno@clisp.org>
47962         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
47963         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
47964         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
47966 2011-05-23  Bruno Haible  <bruno@clisp.org>
47968         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
47969         * m4/arcfour.m4: Remove file.
47970         * modules/crypto/arcfour (Files): Remove it.
47971         (configure.ac): Remove gl_ARCFOUR call.
47972         (Makefile.am): Augment lib_SOURCES.
47974 2011-05-22  Bruno Haible  <bruno@clisp.org>
47976         write: Move AC_LIBOBJ invocations to module description.
47977         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
47978         * modules/write (configure.ac): ... to here.
47980 2011-05-22  Bruno Haible  <bruno@clisp.org>
47982         wmemset: Move AC_LIBOBJ invocations to module description.
47983         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
47984         here...
47985         * modules/wmemset (configure.ac): ... to here.
47987 2011-05-22  Bruno Haible  <bruno@clisp.org>
47989         wmemmove: Move AC_LIBOBJ invocations to module description.
47990         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
47991         here...
47992         * modules/wmemmove (configure.ac): ... to here.
47994 2011-05-22  Bruno Haible  <bruno@clisp.org>
47996         wmemcpy: Move AC_LIBOBJ invocations to module description.
47997         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
47998         here...
47999         * modules/wmemcpy (configure.ac): ... to here.
48001 2011-05-22  Bruno Haible  <bruno@clisp.org>
48003         wmemcmp: Move AC_LIBOBJ invocations to module description.
48004         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48005         here...
48006         * modules/wmemcmp (configure.ac): ... to here.
48008 2011-05-22  Bruno Haible  <bruno@clisp.org>
48010         wmemchr: Move AC_LIBOBJ invocations to module description.
48011         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48012         here...
48013         * modules/wmemchr (configure.ac): ... to here.
48015 2011-05-22  Bruno Haible  <bruno@clisp.org>
48017         wcswidth: Move AC_LIBOBJ invocations to module description.
48018         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48019         here...
48020         * modules/wcswidth (configure.ac): ... to here.
48022 2011-05-22  Bruno Haible  <bruno@clisp.org>
48024         wcwidth: Respect rules for use of AC_LIBOBJ.
48025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48026         invocation from here...
48027         * modules/wcwidth (configure.ac): ... to here.
48028         (Depends-on): Update conditions.
48030 2011-05-22  Bruno Haible  <bruno@clisp.org>
48032         wctype: Move AC_LIBOBJ invocations to module description.
48033         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48034         invocation from here...
48035         * modules/wctype (configure.ac): ... to here.
48036         (Depends-on): Update conditions.
48038 2011-05-22  Bruno Haible  <bruno@clisp.org>
48040         wctrans: Move AC_LIBOBJ invocations to module description.
48041         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48042         invocation from here...
48043         * modules/wctrans (configure.ac): ... to here.
48045 2011-05-22  Bruno Haible  <bruno@clisp.org>
48047         wctomb: Move AC_LIBOBJ invocations to module description.
48048         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48049         invocations from here...
48050         * modules/wctomb (configure.ac): ... to here.
48052 2011-05-22  Bruno Haible  <bruno@clisp.org>
48054         wctob: Move AC_LIBOBJ invocations to module description.
48055         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48056         gl_PREREQ_WCTOB invocations from here...
48057         * modules/wctob (configure.ac): ... to here.
48058         (Depends-on): Update conditions.
48060 2011-05-22  Bruno Haible  <bruno@clisp.org>
48062         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48063         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48064         here...
48065         * modules/wcsxfrm (configure.ac): ... to here.
48067 2011-05-22  Bruno Haible  <bruno@clisp.org>
48069         wcstok: Move AC_LIBOBJ invocations to module description.
48070         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48071         * modules/wcstok (configure.ac): ... to here.
48073 2011-05-22  Bruno Haible  <bruno@clisp.org>
48075         wcsstr: Move AC_LIBOBJ invocations to module description.
48076         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48077         * modules/wcsstr (configure.ac): ... to here.
48079 2011-05-22  Bruno Haible  <bruno@clisp.org>
48081         wcsspn: Move AC_LIBOBJ invocations to module description.
48082         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48083         * modules/wcsspn (configure.ac): ... to here.
48085 2011-05-22  Bruno Haible  <bruno@clisp.org>
48087         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48088         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48089         gl_PREREQ_WCSRTOMBS invocations from here...
48090         * modules/wcsrtombs (configure.ac): ... to here.
48092 2011-05-22  Bruno Haible  <bruno@clisp.org>
48094         wcsrchr: Move AC_LIBOBJ invocations to module description.
48095         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48096         here...
48097         * modules/wcsrchr (configure.ac): ... to here.
48099 2011-05-22  Bruno Haible  <bruno@clisp.org>
48101         wcspbrk: Move AC_LIBOBJ invocations to module description.
48102         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48103         here...
48104         * modules/wcspbrk (configure.ac): ... to here.
48106 2011-05-22  Bruno Haible  <bruno@clisp.org>
48108         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48109         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48110         gl_PREREQ_WCSNRTOMBS invocations from here...
48111         * modules/wcsnrtombs (configure.ac): ... to here.
48113 2011-05-22  Bruno Haible  <bruno@clisp.org>
48115         wcsnlen: Move AC_LIBOBJ invocations to module description.
48116         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48117         here...
48118         * modules/wcsnlen (configure.ac): ... to here.
48120 2011-05-22  Bruno Haible  <bruno@clisp.org>
48122         wcsncpy: Move AC_LIBOBJ invocations to module description.
48123         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48124         here...
48125         * modules/wcsncpy (configure.ac): ... to here.
48127 2011-05-22  Bruno Haible  <bruno@clisp.org>
48129         wcsncmp: Move AC_LIBOBJ invocations to module description.
48130         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48131         here...
48132         * modules/wcsncmp (configure.ac): ... to here.
48134 2011-05-22  Bruno Haible  <bruno@clisp.org>
48136         wcsncat: Move AC_LIBOBJ invocations to module description.
48137         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48138         here...
48139         * modules/wcsncat (configure.ac): ... to here.
48141 2011-05-22  Bruno Haible  <bruno@clisp.org>
48143         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48144         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48145         from here...
48146         * modules/wcsncasecmp (configure.ac): ... to here.
48148 2011-05-22  Bruno Haible  <bruno@clisp.org>
48150         wcslen: Move AC_LIBOBJ invocations to module description.
48151         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48152         * modules/wcslen (configure.ac): ... to here.
48154 2011-05-22  Bruno Haible  <bruno@clisp.org>
48156         wcsdup: Move AC_LIBOBJ invocations to module description.
48157         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48158         * modules/wcsdup (configure.ac): ... to here.
48160 2011-05-22  Bruno Haible  <bruno@clisp.org>
48162         wcscspn: Move AC_LIBOBJ invocations to module description.
48163         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48164         here...
48165         * modules/wcscspn (configure.ac): ... to here.
48167 2011-05-22  Bruno Haible  <bruno@clisp.org>
48169         wcscpy: Move AC_LIBOBJ invocations to module description.
48170         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48171         * modules/wcscpy (configure.ac): ... to here.
48173 2011-05-22  Bruno Haible  <bruno@clisp.org>
48175         wcscoll: Move AC_LIBOBJ invocations to module description.
48176         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48177         here...
48178         * modules/wcscoll (configure.ac): ... to here.
48180 2011-05-22  Bruno Haible  <bruno@clisp.org>
48182         wcscmp: Move AC_LIBOBJ invocations to module description.
48183         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48184         * modules/wcscmp (configure.ac): ... to here.
48186 2011-05-22  Bruno Haible  <bruno@clisp.org>
48188         wcschr: Move AC_LIBOBJ invocations to module description.
48189         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48190         * modules/wcschr (configure.ac): ... to here.
48192 2011-05-22  Bruno Haible  <bruno@clisp.org>
48194         wcscat: Move AC_LIBOBJ invocations to module description.
48195         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48196         * modules/wcscat (configure.ac): ... to here.
48198 2011-05-22  Bruno Haible  <bruno@clisp.org>
48200         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48201         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48202         here...
48203         * modules/wcscasecmp (configure.ac): ... to here.
48205 2011-05-22  Bruno Haible  <bruno@clisp.org>
48207         wcrtomb: Move AC_LIBOBJ invocations to module description.
48208         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48209         invocations from here...
48210         * modules/wcrtomb (configure.ac): ... to here.
48212 2011-05-22  Bruno Haible  <bruno@clisp.org>
48214         wcpncpy: Move AC_LIBOBJ invocations to module description.
48215         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48216         here...
48217         * modules/wcpncpy (configure.ac): ... to here.
48219 2011-05-22  Bruno Haible  <bruno@clisp.org>
48221         wcpcpy: Move AC_LIBOBJ invocations to module description.
48222         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48223         * modules/wcpcpy (configure.ac): ... to here.
48225 2011-05-22  Bruno Haible  <bruno@clisp.org>
48227         waitpid: Move AC_LIBOBJ invocations to module description.
48228         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48229         invocation from here...
48230         * modules/waitpid (configure.ac): ... to here.
48232 2011-05-22  Bruno Haible  <bruno@clisp.org>
48234         utimensat: Move AC_LIBOBJ invocations to module description.
48235         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48236         here...
48237         * modules/utimensat (configure.ac): ... to here.
48239 2011-05-22  Bruno Haible  <bruno@clisp.org>
48241         usleep: Move AC_LIBOBJ invocations to module description.
48242         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48243         here...
48244         * modules/usleep (configure.ac): ... to here.
48246 2011-05-22  Bruno Haible  <bruno@clisp.org>
48248         unlockpt: Move AC_LIBOBJ invocations to module description.
48249         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48250         gl_PREREQ_UNLOCKPT invocations from here...
48251         * modules/unlockpt (configure.ac): ... to here.
48253 2011-05-22  Bruno Haible  <bruno@clisp.org>
48255         unlink: Respect rules for use of AC_LIBOBJ.
48256         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48257         * modules/unlink (configure.ac): ... to here.
48259 2011-05-22  Bruno Haible  <bruno@clisp.org>
48261         uname: Move AC_LIBOBJ invocations to module description.
48262         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48264         here...
48265         * modules/uname (configure.ac): ... to here.
48267 2011-05-22  Bruno Haible  <bruno@clisp.org>
48269         ttyname_r: Move AC_LIBOBJ invocations to module description.
48270         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48271         gl_PREREQ_TTYNAME_R invocations from here...
48272         * modules/ttyname_r (configure.ac): ... to here.
48274 2011-05-22  Bruno Haible  <bruno@clisp.org>
48276         tsearch: Move AC_LIBOBJ invocations to module description.
48277         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48278         invocations from here...
48279         * modules/tsearch (configure.ac): ... to here.
48281 2011-05-22  Bruno Haible  <bruno@clisp.org>
48283         towctrans: Move AC_LIBOBJ invocations to module description.
48284         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48285         AC_LIBOBJ invocation from here...
48286         * modules/towctrans (configure.ac): ... to here.
48288 2011-05-22  Bruno Haible  <bruno@clisp.org>
48290         tmpfile: Move AC_LIBOBJ invocations to module description.
48291         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48292         invocations from here...
48293         * modules/tmpfile (configure.ac): ... to here.
48295 2011-05-22  Bruno Haible  <bruno@clisp.org>
48297         times: Move AC_LIBOBJ invocations to module description.
48298         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48299         * modules/times (configure.ac): ... to here.
48301 2011-05-22  Bruno Haible  <bruno@clisp.org>
48303         time_r: Move AC_LIBOBJ invocations to module description.
48304         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48305         invocations from here...
48306         * modules/time_r (configure.ac): ... to here.
48308 2011-05-22  Bruno Haible  <bruno@clisp.org>
48310         timegm: Move AC_LIBOBJ invocations to module description.
48311         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48312         invocations from here...
48313         * modules/timegm (configure.ac): ... to here.
48315 2011-05-22  Bruno Haible  <bruno@clisp.org>
48317         tcgetsid: Move AC_LIBOBJ invocations to module description.
48318         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48319         and gl_PREREQ_TCGETSID invocations from here...
48320         * modules/tcgetsid (configure.ac): ... to here.
48321         (Depends-on): Update conditions.
48323 2011-05-22  Bruno Haible  <bruno@clisp.org>
48325         symlinkat: Move AC_LIBOBJ invocations to module description.
48326         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48327         here...
48328         * modules/symlinkat (configure.ac): ... to here.
48330 2011-05-22  Bruno Haible  <bruno@clisp.org>
48332         symlink: Move AC_LIBOBJ invocations to module description.
48333         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48334         here...
48335         * modules/symlink (configure.ac): ... to here.
48337 2011-05-22  Bruno Haible  <bruno@clisp.org>
48339         strverscmp: Move AC_LIBOBJ invocations to module description.
48340         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48342         from here...
48343         * modules/strverscmp (configure.ac): ... to here.
48345 2011-05-22  Bruno Haible  <bruno@clisp.org>
48347         strtok_r: Move AC_LIBOBJ invocations to module description.
48348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48349         and gl_PREREQ_STRTOK_R invocations from here...
48350         * modules/strtok_r (configure.ac): ... to here.
48351         (Depends-on): Update conditions.
48353 2011-05-22  Bruno Haible  <bruno@clisp.org>
48355         strtoumax: Move AC_LIBOBJ invocations to module description.
48356         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48358         from here...
48359         * modules/strtoumax (configure.ac): ... to here.
48361 2011-05-22  Bruno Haible  <bruno@clisp.org>
48363         strtoimax: Move AC_LIBOBJ invocations to module description.
48364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48366         from here...
48367         * modules/strtoimax (configure.ac): ... to here.
48369 2011-05-22  Bruno Haible  <bruno@clisp.org>
48371         strtoull: Move AC_LIBOBJ invocations to module description.
48372         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48374         from here...
48375         * modules/strtoull (configure.ac): ... to here.
48377 2011-05-22  Bruno Haible  <bruno@clisp.org>
48379         strtoll: Move AC_LIBOBJ invocations to module description.
48380         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48382         here...
48383         * modules/strtoll (configure.ac): ... to here.
48385 2011-05-22  Bruno Haible  <bruno@clisp.org>
48387         strtoul: Move AC_LIBOBJ invocations to module description.
48388         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48389         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48390         * modules/strtoul (configure.ac): ... to here.
48392 2011-05-22  Bruno Haible  <bruno@clisp.org>
48394         strtol: Move AC_LIBOBJ invocations to module description.
48395         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48396         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48397         * modules/strtol (configure.ac): ... to here.
48399 2011-05-22  Bruno Haible  <bruno@clisp.org>
48401         strtod: Move AC_LIBOBJ invocations to module description.
48402         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48403         invocations from here...
48404         * modules/strtod (configure.ac): ... to here.
48406 2011-05-22  Bruno Haible  <bruno@clisp.org>
48408         strstr*: Move AC_LIBOBJ invocations to module description.
48409         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48410         invocations from here...
48411         * modules/strstr-simple (configure.ac): ... to here.
48412         * modules/strstr (configure.ac): ... and here.
48414 2011-05-22  Bruno Haible  <bruno@clisp.org>
48416         strsignal: Move AC_LIBOBJ invocations to module description.
48417         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48418         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48419         * modules/strsignal (configure.ac): ... to here.
48420         (Depends-on): Update conditions.
48422 2011-05-22  Bruno Haible  <bruno@clisp.org>
48424         strsep: Move AC_LIBOBJ invocations to module description.
48425         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48426         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48427         here...
48428         * modules/strsep (configure.ac): ... to here.
48430 2011-05-22  Bruno Haible  <bruno@clisp.org>
48432         strptime: Move AC_LIBOBJ invocations to module description.
48433         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48434         gl_PREREQ_STRPTIME invocations from here...
48435         * modules/strptime (configure.ac): ... to here.
48437 2011-05-22  Bruno Haible  <bruno@clisp.org>
48439         strpbrk: Move AC_LIBOBJ invocations to module description.
48440         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48442         here...
48443         * modules/strpbrk (configure.ac): ... to here.
48445 2011-05-22  Bruno Haible  <bruno@clisp.org>
48447         strnlen: Move AC_LIBOBJ invocations to module description.
48448         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48449         invocations from here...
48450         * modules/strnlen (configure.ac): ... to here.
48452 2011-05-22  Bruno Haible  <bruno@clisp.org>
48454         strndup: Move AC_LIBOBJ invocations to module description.
48455         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48456         invocations from here...
48457         * modules/strndup (configure.ac): ... to here.
48458         (Depends-on): Update conditions.
48460 2011-05-22  Bruno Haible  <bruno@clisp.org>
48462         strncat: Move AC_LIBOBJ invocations to module description.
48463         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48464         invocations from here...
48465         * modules/strncat (configure.ac): ... to here.
48467 2011-05-22  Bruno Haible  <bruno@clisp.org>
48469         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48470         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48471         invocations from here...
48472         * modules/strdup (configure.ac): ... to here.
48473         * modules/strdup-posix (configure.ac): ... and here.
48475 2011-05-22  Bruno Haible  <bruno@clisp.org>
48477         strcspn: Move AC_LIBOBJ invocations to module description.
48478         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48480         here...
48481         * modules/strcspn (configure.ac): ... to here.
48483 2011-05-22  Bruno Haible  <bruno@clisp.org>
48485         strchrnul: Move AC_LIBOBJ invocations to module description.
48486         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48487         gl_PREREQ_STRCHRNUL invocations from here...
48488         * modules/strchrnul (configure.ac): ... to here.
48490 2011-05-22  Bruno Haible  <bruno@clisp.org>
48492         strcasestr*: Move AC_LIBOBJ invocations to module description.
48493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48494         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48495         * modules/strcasestr-simple (configure.ac): ... to here.
48496         * modules/strcasestr (configure.ac): ... and here.
48498 2011-05-22  Bruno Haible  <bruno@clisp.org>
48500         strcase: Move AC_LIBOBJ invocations to module description.
48501         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48502         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48503         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48504         gl_PREREQ_STRNCASECMP invocations from here...
48505         * modules/strcase (configure.ac): ... to here.
48507 2011-05-22  Bruno Haible  <bruno@clisp.org>
48509         stpncpy: Move AC_LIBOBJ invocations to module description.
48510         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48511         here...
48512         * modules/stpncpy (configure.ac): ... to here.
48514 2011-05-22  Bruno Haible  <bruno@clisp.org>
48516         stpcpy: Move AC_LIBOBJ invocations to module description.
48517         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48519         here...
48520         * modules/stpcpy (configure.ac): ... to here.
48522 2011-05-21  Bruno Haible  <bruno@clisp.org>
48524         stat: Move AC_LIBOBJ invocations to module description.
48525         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48526         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48527         here...
48528         * modules/stat (configure.ac): ... to here.
48530 2011-05-21  Bruno Haible  <bruno@clisp.org>
48532         sleep: Move AC_LIBOBJ invocations to module description.
48533         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48534         * modules/sleep (configure.ac): ... to here.
48536 2011-05-21  Bruno Haible  <bruno@clisp.org>
48538         signbit: Move AC_LIBOBJ invocations to module description.
48539         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48540         * modules/signbit (configure.ac): ... to here.
48542 2011-05-21  Bruno Haible  <bruno@clisp.org>
48544         sigprocmask: Move AC_LIBOBJ invocations to module description.
48545         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48546         gl_PREREQ_SIGPROMASK invocations from here...
48547         * modules/sigprocmask (configure.ac): ... to here.
48549 2011-05-21  Bruno Haible  <bruno@clisp.org>
48551         sigaction: Move AC_LIBOBJ invocations to module description.
48552         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48553         gl_PREREQ_SIGACTION invocations from here...
48554         * modules/sigaction (configure.ac): ... to here.
48556 2011-05-21  Bruno Haible  <bruno@clisp.org>
48558         sig2str: Move AC_LIBOBJ invocations to module description.
48559         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48561         here...
48562         * modules/sig2str (configure.ac): ... to here.
48564 2011-05-21  Bruno Haible  <bruno@clisp.org>
48566         setlocale: Move AC_LIBOBJ invocations to module description.
48567         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48568         gl_PREREQ_SETLOCALE invocations from here...
48569         * modules/setlocale (configure.ac): ... to here.
48571 2011-05-21  Bruno Haible  <bruno@clisp.org>
48573         unsetenv: Move AC_LIBOBJ invocations to module description.
48574         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48575         and gl_PREREQ_UNSETENV invocations from here...
48576         * modules/unsetenv (configure.ac): ... to here.
48577         (Depends-on): Update.
48579 2011-05-21  Bruno Haible  <bruno@clisp.org>
48581         setenv: Move AC_LIBOBJ invocations to module description.
48582         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48583         here...
48584         * modules/setenv (configure.ac): ... to here.
48586 2011-05-21  Bruno Haible  <bruno@clisp.org>
48588         selinux-h: Move AC_LIBOBJ invocations to module description.
48589         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
48590         AC_LIBOBJ invocation from here...
48591         * modules/selinux-h (configure.ac): ... to here.
48593 2011-05-21  Bruno Haible  <bruno@clisp.org>
48595         select: Respect rules for use of AC_LIBOBJ.
48596         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
48597         here...
48598         * modules/select (configure.ac): ... to here.
48600 2011-05-21  Bruno Haible  <bruno@clisp.org>
48602         scandir: Move AC_LIBOBJ invocations to module description.
48603         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
48604         invocations from here...
48605         * modules/scandir (configure.ac): ... to here.
48607 2011-05-21  Bruno Haible  <bruno@clisp.org>
48609         rpmatch: Move AC_LIBOBJ invocations to module description.
48610         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
48611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
48612         here...
48613         * modules/rpmatch (configure.ac): ... to here.
48615 2011-05-21  Bruno Haible  <bruno@clisp.org>
48617         rmdir: Respect rules for use of AC_LIBOBJ.
48618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
48619         * modules/rmdir (configure.ac): ... to here.
48621 2011-05-21  Bruno Haible  <bruno@clisp.org>
48623         renameat: Move AC_LIBOBJ invocations to module description.
48624         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
48625         here...
48626         * modules/renameat (configure.ac): ... to here.
48628 2011-05-21  Bruno Haible  <bruno@clisp.org>
48630         rename: Respect rules for use of AC_LIBOBJ.
48631         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
48632         here...
48633         * modules/rename (configure.ac): ... to here.
48635 2011-05-21  Bruno Haible  <bruno@clisp.org>
48637         remove: Move AC_LIBOBJ invocations to module description.
48638         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
48639         here...
48640         * modules/remove (configure.ac): ... to here.
48642 2011-05-21  Bruno Haible  <bruno@clisp.org>
48644         relocatable-lib: Move AC_LIBOBJ invocations to module description.
48645         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
48646         macro.
48647         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
48648         * modules/relocatable-lib (configure.ac): ... to here.
48649         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48650         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
48652 2011-05-21  Bruno Haible  <bruno@clisp.org>
48654         relocatable-prog: Move AC_LIBOBJ invocations to module description.
48655         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
48656         here...
48657         * modules/relocatable-prog (configure.ac): ... to here.
48659 2011-05-21  Bruno Haible  <bruno@clisp.org>
48661         regex: Move AC_LIBOBJ invocations to module description.
48662         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
48663         invocations from here...
48664         * modules/regex (configure.ac): ... to here.
48666 2011-05-21  Bruno Haible  <bruno@clisp.org>
48668         realloc-*: Move AC_LIBOBJ invocations to module description.
48669         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
48670         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
48671         AC_LIBOBJ invocations from here...
48672         * modules/realloc-gnu (configure.ac): ... to here.
48673         * modules/realloc-posix (configure.ac): ... and here.
48675 2011-05-21  Bruno Haible  <bruno@clisp.org>
48677         readutmp: Move AC_LIBOBJ invocations to module description.
48678         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
48679         * modules/readutmp (configure.ac): ... to here.
48681 2011-05-21  Bruno Haible  <bruno@clisp.org>
48683         readlinkat: Move AC_LIBOBJ invocations to module description.
48684         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
48685         here...
48686         * modules/readlinkat (configure.ac): ... to here.
48688 2011-05-21  Bruno Haible  <bruno@clisp.org>
48690         readlink: Move AC_LIBOBJ invocations to module description.
48691         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
48692         gl_PREREQ_READLINK invocations from here...
48693         * modules/readlink (configure.ac): ... to here.
48695 2011-05-21  Bruno Haible  <bruno@clisp.org>
48697         readline: Move AC_LIBOBJ invocations to module description.
48698         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
48699         gl_PREREQ_READLINE invocations from here...
48700         * modules/readline (configure.ac): ... to here.
48702 2011-05-21  Bruno Haible  <bruno@clisp.org>
48704         read: Move AC_LIBOBJ invocations to module description.
48705         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
48706         * modules/read (configure.ac): ... to here.
48708 2011-05-21  Bruno Haible  <bruno@clisp.org>
48710         rawmemchr: Move AC_LIBOBJ invocations to module description.
48711         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
48712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
48713         from here...
48714         * modules/rawmemchr (configure.ac): ... to here.
48716 2011-05-21  Bruno Haible  <bruno@clisp.org>
48718         random_r: Move AC_LIBOBJ invocations to module description.
48719         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
48720         gl_PREREQ_RANDOM_R invocations from here...
48721         * modules/random_r (configure.ac): ... to here.
48723 2011-05-21  Bruno Haible  <bruno@clisp.org>
48725         pwrite: Move AC_LIBOBJ invocations to module description.
48726         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
48727         * modules/pwrite (configure.ac): ... to here.
48729 2011-05-21  Bruno Haible  <bruno@clisp.org>
48731         putenv: Move AC_LIBOBJ invocations to module description.
48732         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
48733         * modules/putenv (configure.ac): ... to here.
48735 2011-05-21  Bruno Haible  <bruno@clisp.org>
48737         login_tty: Move AC_LIBOBJ invocations to module description.
48738         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
48739         * modules/login_tty (configure.ac): ... to here.
48741 2011-05-21  Bruno Haible  <bruno@clisp.org>
48743         openpty: Move AC_LIBOBJ invocations to module description.
48744         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
48745         * modules/openpty (configure.ac): ... to here.
48747 2011-05-21  Bruno Haible  <bruno@clisp.org>
48749         forkpty: Move AC_LIBOBJ invocations to module description.
48750         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
48751         * modules/forkpty (configure.ac): ... to here.
48753 2011-05-21  Bruno Haible  <bruno@clisp.org>
48755         ptsname: Move AC_LIBOBJ invocations to module description.
48756         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
48757         invocations from here...
48758         * modules/ptsname (configure.ac): ... to here.
48760 2011-05-21  Bruno Haible  <bruno@clisp.org>
48762         pread: Move AC_LIBOBJ invocations to module description.
48763         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
48764         * modules/pread (configure.ac): ... to here.
48766 2011-05-21  Bruno Haible  <bruno@clisp.org>
48768         posix_spawn*: Move AC_LIBOBJ invocations to module description.
48769         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
48770         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
48771         * modules/posix_spawn (configure.ac): ... to here.
48772         * modules/posix_spawnp (configure.ac): ... and here.
48774 2011-05-21  Bruno Haible  <bruno@clisp.org>
48776         popen: Move AC_LIBOBJ invocations to module description.
48777         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
48778         invocations from here...
48779         * modules/popen (configure.ac): ... to here.
48781 2011-05-21  Bruno Haible  <bruno@clisp.org>
48783         poll: Move AC_LIBOBJ invocations to module description.
48784         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
48785         invocations from here...
48786         * modules/poll (configure.ac): ... to here.
48788 2011-05-21  Bruno Haible  <bruno@clisp.org>
48790         pipe-posix: Move AC_LIBOBJ invocations to module description.
48791         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
48792         * modules/pipe-posix (configure.ac): ... to here.
48794 2011-05-21  Bruno Haible  <bruno@clisp.org>
48796         openat: Respect rules for use of AC_LIBOBJ.
48797         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
48798         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
48799         * modules/openat (configure.ac): ... to here.
48801 2011-05-21  Bruno Haible  <bruno@clisp.org>
48803         obstack-printf*: Move AC_LIBOBJ invocations to module description.
48804         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
48805         invocation from here...
48806         * modules/obstack-printf (configure.ac): ... to here.
48807         * modules/obstack-printf-posix (configure.ac): ... and here.
48809 2011-05-21  Bruno Haible  <bruno@clisp.org>
48811         nl_langinfo: Move AC_LIBOBJ invocations to module description.
48812         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
48813         from here...
48814         * modules/nl_langinfo (configure.ac): ... to here.
48816 2011-05-21  Bruno Haible  <bruno@clisp.org>
48818         nanosleep: Move AC_LIBOBJ invocations to module description.
48819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
48820         gl_PREREQ_NANOSLEEP invocations from here...
48821         * modules/nanosleep (configure.ac): ... to here.
48823 2011-05-21  Bruno Haible  <bruno@clisp.org>
48825         mountlist: Move AC_LIBOBJ invocations to module description.
48826         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
48827         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
48828         * modules/mountlist (configure.ac): ... to here.
48830 2011-05-21  Bruno Haible  <bruno@clisp.org>
48832         mktime: Respect rules for use of AC_LIBOBJ.
48833         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
48834         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
48835         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
48836         (gl_FUNC_MKTIME_INTERNAL): ... and here...
48837         * modules/mktime (configure.ac): ... to here.
48838         * modules/mktime-internal (configure.ac): ... and here.
48839         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
48841 2011-05-21  Bruno Haible  <bruno@clisp.org>
48843         mkstemps: Move AC_LIBOBJ invocations to module description.
48844         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
48845         here...
48846         * modules/mkstemps (configure.ac): ... to here.
48848 2011-05-21  Bruno Haible  <bruno@clisp.org>
48850         mkstemp: Move AC_LIBOBJ invocations to module description.
48851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
48852         gl_PREREQ_MKSTEMP invocations from here...
48853         * modules/mkstemp (configure.ac): ... to here.
48855 2011-05-21  Bruno Haible  <bruno@clisp.org>
48857         mkostemps: Move AC_LIBOBJ invocations to module description.
48858         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
48859         here...
48860         * modules/mkostemps (configure.ac): ... to here.
48862 2011-05-21  Bruno Haible  <bruno@clisp.org>
48864         mkostemp: Move AC_LIBOBJ invocations to module description.
48865         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
48866         gl_PREREQ_MKOSTEMP invocations from here...
48867         * modules/mkostemp (configure.ac): ... to here.
48869 2011-05-21  Bruno Haible  <bruno@clisp.org>
48871         mknod: Move AC_LIBOBJ invocations to module description.
48872         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
48873         * modules/mknod (configure.ac): ... to here.
48875 2011-05-21  Bruno Haible  <bruno@clisp.org>
48877         mkfifoat: Move AC_LIBOBJ invocations to module description.
48878         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
48879         here...
48880         * modules/mkfifoat (configure.ac): ... to here.
48882 2011-05-21  Bruno Haible  <bruno@clisp.org>
48884         mkfifo: Respect rules for use of AC_LIBOBJ.
48885         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
48886         here...
48887         * modules/mkfifo (configure.ac): ... to here.
48889 2011-05-21  Bruno Haible  <bruno@clisp.org>
48891         mkdtemp: Move AC_LIBOBJ invocations to module description.
48892         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
48893         invocations from here...
48894         * modules/mkdtemp (configure.ac): ... to here.
48896 2011-05-21  Bruno Haible  <bruno@clisp.org>
48898         mkdir: Move AC_LIBOBJ invocations to module description.
48899         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
48900         * modules/mkdir (configure.ac): ... to here.
48902 2011-05-21  Bruno Haible  <bruno@clisp.org>
48904         memset: Move AC_LIBOBJ invocations to module description.
48905         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
48906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
48907         here...
48908         * modules/memset (configure.ac): ... to here.
48910 2011-05-21  Bruno Haible  <bruno@clisp.org>
48912         memrchr: Move AC_LIBOBJ invocations to module description.
48913         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
48914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
48915         here...
48916         * modules/memrchr (configure.ac): ... to here.
48918 2011-05-21  Bruno Haible  <bruno@clisp.org>
48920         mempcpy: Move AC_LIBOBJ invocations to module description.
48921         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
48922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
48923         here...
48924         * modules/mempcpy (configure.ac): ... to here.
48926 2011-05-21  Bruno Haible  <bruno@clisp.org>
48928         memmove: Move AC_LIBOBJ invocations to module description.
48929         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
48930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
48931         here...
48932         * modules/memmove (configure.ac): ... to here.
48934 2011-05-21  Bruno Haible  <bruno@clisp.org>
48936         memmem*: Move AC_LIBOBJ invocations to module description.
48937         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
48938         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
48939         here...
48940         (gl_FUNC_MEMMEM): ... and here...
48941         * modules/memmem-simple (configure.ac): ... to here.
48942         * modules/memmem (configure.ac): ... and here.
48944 2011-05-21  Bruno Haible  <bruno@clisp.org>
48946         memcpy: Move AC_LIBOBJ invocations to module description.
48947         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
48948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
48949         here...
48950         * modules/memcpy (configure.ac): ... to here.
48952 2011-05-21  Bruno Haible  <bruno@clisp.org>
48954         memcmp: Simplify autoconf macro.
48955         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
48956         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
48957         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
48959 2011-05-21  Bruno Haible  <bruno@clisp.org>
48961         memcmp: Move AC_LIBOBJ invocations to module description.
48962         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
48963         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
48964         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
48965         * modules/memcmp (configure.ac): ... to here.
48966         (Depends-on): Update conditions.
48968 2011-05-21  Bruno Haible  <bruno@clisp.org>
48970         memchr: Respect rules for use of AC_LIBOBJ.
48971         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
48972         invocations from here...
48973         * modules/memchr (configure.ac): ... to here.
48975 2011-05-21  Bruno Haible  <bruno@clisp.org>
48977         mbtowc: Move AC_LIBOBJ invocations to module description.
48978         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
48979         invocations from here...
48980         * modules/mbtowc (configure.ac): ... to here.
48982 2011-05-21  Bruno Haible  <bruno@clisp.org>
48984         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
48985         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
48986         gl_PREREQ_MBSRTOWCS invocations from here...
48987         * modules/mbsrtowcs (configure.ac): ... to here.
48989 2011-05-21  Bruno Haible  <bruno@clisp.org>
48991         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
48992         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
48993         gl_PREREQ_MBSNRTOWCS invocations from here...
48994         * modules/mbsnrtowcs (configure.ac): ... to here.
48996 2011-05-21  Bruno Haible  <bruno@clisp.org>
48998         mbsinit: Move AC_LIBOBJ invocations to module description.
48999         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49000         invocations from here...
49001         * modules/mbsinit (configure.ac): ... to here.
49003 2011-05-21  Bruno Haible  <bruno@clisp.org>
49005         mbrlen: Move AC_LIBOBJ invocations to module description.
49006         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49007         invocations from here...
49008         * modules/mbrlen (configure.ac): ... to here.
49010 2011-05-21  Bruno Haible  <bruno@clisp.org>
49012         mbrtowc: Respect rules for use of AC_LIBOBJ.
49013         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49014         invocations from here...
49015         * modules/mbrtowc (configure.ac): ... to here.
49017 2011-05-21  Bruno Haible  <bruno@clisp.org>
49019         malloc-*: Move AC_LIBOBJ invocations to module description.
49020         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49021         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49022         AC_LIBOBJ invocations from here...
49023         * modules/malloc-gnu (configure.ac): ... to here.
49024         * modules/malloc-posix (configure.ac): ... and here.
49026 2011-05-21  Bruno Haible  <bruno@clisp.org>
49028         lstat, openat: Respect rules for use of AC_LIBOBJ.
49029         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49030         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49031         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49032         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49033         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49034         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49035         here.
49036         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49038 2011-05-21  Bruno Haible  <bruno@clisp.org>
49040         lseek: Move AC_LIBOBJ invocations to module description.
49041         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49042         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49043         * modules/lseek (configure.ac): ... to here.
49045 2011-05-21  Bruno Haible  <bruno@clisp.org>
49047         linkat: Move AC_LIBOBJ invocations to module description.
49048         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49049         here...
49050         * modules/linkat (configure.ac): ... to here.
49052 2011-05-21  Bruno Haible  <bruno@clisp.org>
49054         link: Respect rules for use of AC_LIBOBJ.
49055         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49056         * modules/link (configure.ac): ... to here.
49058 2011-05-21  Bruno Haible  <bruno@clisp.org>
49060         lchown: Move AC_LIBOBJ invocations to module description.
49061         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49062         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49063         * modules/lchown (configure.ac): ... to here.
49065 2011-05-21  Bruno Haible  <bruno@clisp.org>
49067         iswctype: Move AC_LIBOBJ invocations to module description.
49068         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49069         here...
49070         * modules/iswctype (configure.ac): ... to here.
49072 2011-05-21  Bruno Haible  <bruno@clisp.org>
49074         iswblank: Move AC_LIBOBJ invocations to module description.
49075         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49076         here...
49077         * modules/iswblank (configure.ac): ... to here.
49079 2011-05-21  Bruno Haible  <bruno@clisp.org>
49081         atanl: Move AC_LIBOBJ invocations to module description.
49082         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49083         * modules/atanl (configure.ac): ... to here.
49085 2011-05-21  Bruno Haible  <bruno@clisp.org>
49087         acosl: Move AC_LIBOBJ invocations to module description.
49088         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49089         * modules/acosl (configure.ac): ... to here.
49091 2011-05-21  Bruno Haible  <bruno@clisp.org>
49093         asinl: Respect rules for use of AC_LIBOBJ.
49094         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49095         * modules/asinl (configure.ac): ... to here.
49097 2011-05-21  Bruno Haible  <bruno@clisp.org>
49099         tanl: Move AC_LIBOBJ invocations to module description.
49100         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49101         * modules/tanl (configure.ac): ... to here.
49103 2011-05-21  Bruno Haible  <bruno@clisp.org>
49105         cosl: Move AC_LIBOBJ invocations to module description.
49106         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49107         * modules/cosl (configure.ac): ... to here.
49109 2011-05-21  Bruno Haible  <bruno@clisp.org>
49111         sinl: Move AC_LIBOBJ invocations to module description.
49112         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49113         * modules/sinl (configure.ac): ... to here.
49115 2011-05-21  Bruno Haible  <bruno@clisp.org>
49117         logl: Move AC_LIBOBJ invocations to module description.
49118         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49119         * modules/logl (configure.ac): ... to here.
49121 2011-05-21  Bruno Haible  <bruno@clisp.org>
49123         expl: Move AC_LIBOBJ invocations to module description.
49124         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49125         * modules/expl (configure.ac): ... to here.
49127 2011-05-21  Bruno Haible  <bruno@clisp.org>
49129         roundl: Move AC_LIBOBJ invocations to module description.
49130         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49131         * modules/roundl (configure.ac): ... to here.
49133 2011-05-21  Bruno Haible  <bruno@clisp.org>
49135         round: Move AC_LIBOBJ invocations to module description.
49136         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49137         * modules/round (configure.ac): ... to here.
49139 2011-05-21  Bruno Haible  <bruno@clisp.org>
49141         roundf: Move AC_LIBOBJ invocations to module description.
49142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49143         * modules/roundf (configure.ac): ... to here.
49145 2011-05-21  Bruno Haible  <bruno@clisp.org>
49147         truncl: Move AC_LIBOBJ invocations to module description.
49148         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49149         * modules/truncl (configure.ac): ... to here.
49151 2011-05-21  Bruno Haible  <bruno@clisp.org>
49153         trunc: Move AC_LIBOBJ invocations to module description.
49154         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49155         * modules/trunc (configure.ac): ... to here.
49157 2011-05-21  Bruno Haible  <bruno@clisp.org>
49159         truncf: Move AC_LIBOBJ invocations to module description.
49160         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49161         * modules/truncf (configure.ac): ... to here.
49163 2011-05-21  Bruno Haible  <bruno@clisp.org>
49165         ceill: Move AC_LIBOBJ invocations to module description.
49166         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49167         * modules/ceill (configure.ac): ... to here.
49169 2011-05-21  Bruno Haible  <bruno@clisp.org>
49171         ceil: Move AC_LIBOBJ invocations to module description.
49172         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49173         * modules/ceil (configure.ac): ... to here.
49175 2011-05-21  Bruno Haible  <bruno@clisp.org>
49177         ceilf: Move AC_LIBOBJ invocations to module description.
49178         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49179         * modules/ceilf (configure.ac): ... to here.
49181 2011-05-21  Bruno Haible  <bruno@clisp.org>
49183         floorl: Respect rules for use of AC_LIBOBJ.
49184         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49185         * modules/floorl (configure.ac): ... to here.
49187 2011-05-21  Bruno Haible  <bruno@clisp.org>
49189         floor: Respect rules for use of AC_LIBOBJ.
49190         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49191         * modules/floor (configure.ac): ... to here.
49193 2011-05-21  Bruno Haible  <bruno@clisp.org>
49195         floorf: Move AC_LIBOBJ invocations to module description.
49196         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49197         * modules/floorf (configure.ac): ... to here.
49199 2011-05-20  Bruno Haible  <bruno@clisp.org>
49201         sqrtl: Respect rules for use of AC_LIBOBJ.
49202         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49203         * modules/sqrtl (configure.ac): ... to here.
49205 2011-05-20  Bruno Haible  <bruno@clisp.org>
49207         ldexpl: Respect rules for use of AC_LIBOBJ.
49208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49209         * modules/ldexpl (configure.ac): ... to here.
49211 2011-05-20  Bruno Haible  <bruno@clisp.org>
49213         frexpl*: Respect rules for use of AC_LIBOBJ.
49214         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49215         invocation from here...
49216         * modules/frexpl (configure.ac): ... to here.
49217         * modules/frexpl-nolibm (configure.ac): ... and here.
49219 2011-05-20  Bruno Haible  <bruno@clisp.org>
49221         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49222         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49223         invocation from here...
49224         * modules/frexp (configure.ac): ... to here.
49225         * modules/frexp-nolibm (configure.ac): ... and here.
49227 2011-05-20  Bruno Haible  <bruno@clisp.org>
49229         isnan: Respect rules for use of AC_LIBOBJ.
49230         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49231         invocations here.
49232         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49233         REPLACE_ISNAN.
49234         * modules/isnand (configure.ac): Likewise.
49235         * modules/isnanl (configure.ac): Likewise.
49237 2011-05-20  Bruno Haible  <bruno@clisp.org>
49239         isnanl*: Respect rules for use of AC_LIBOBJ.
49240         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49241         invocation from here...
49242         * modules/isnanl (configure.ac): ... to here.
49243         * modules/isnanl-nolibm (configure.ac): ... and here.
49245 2011-05-20  Bruno Haible  <bruno@clisp.org>
49247         isnand*: Move AC_LIBOBJ invocations to module description.
49248         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49249         invocation from here...
49250         * modules/isnand (configure.ac): ... to here.
49251         * modules/isnand-nolibm (configure.ac): ... and here.
49253 2011-05-20  Bruno Haible  <bruno@clisp.org>
49255         isnanf*: Move AC_LIBOBJ invocations to module description.
49256         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49257         invocation from here...
49258         * modules/isnanf (configure.ac): ... to here.
49259         * modules/isnanf-nolibm (configure.ac): ... and here.
49261 2011-05-20  Bruno Haible  <bruno@clisp.org>
49263         isnan*: Separate the AC_LIBOBJ invocations.
49264         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49265         AC_LIBOBJ invocation.
49266         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49267         here.
49268         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49269         AC_LIBOBJ invocation.
49270         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49271         here.
49272         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49273         AC_LIBOBJ invocation.
49274         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49275         here.
49276         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49278 2011-05-08  Bruno Haible  <bruno@clisp.org>
49280         isinf: Move AC_LIBOBJ invocations to module description.
49281         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49282         * modules/isinf (configure.ac): ... to here.
49284 2011-05-08  Bruno Haible  <bruno@clisp.org>
49286         isfinite: Move AC_LIBOBJ invocations to module description.
49287         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49288         * modules/isfinite (configure.ac): ... to here.
49290 2011-05-08  Bruno Haible  <bruno@clisp.org>
49292         isblank: Move AC_LIBOBJ invocations to module description.
49293         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49294         here...
49295         * modules/isblank (configure.ac): ... to here.
49297 2011-05-08  Bruno Haible  <bruno@clisp.org>
49299         isapipe: Move AC_LIBOBJ invocations to module description.
49300         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49301         gl_PREREQ_ISAPIPE invocations from here...
49302         * modules/isapipe (configure.ac): ... to here.
49303         (Depends-on): Update condition.
49305 2011-05-08  Bruno Haible  <bruno@clisp.org>
49307         ioctl: Move AC_LIBOBJ invocations to module description.
49308         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49309         invocations from here...
49310         * modules/ioctl (configure.ac): ... to here.
49311         (Depends-on): Update condition.
49313 2011-05-08  Bruno Haible  <bruno@clisp.org>
49315         imaxdiv: Move AC_LIBOBJ invocations to module description.
49316         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49317         invocations from here...
49318         * modules/imaxdiv (configure.ac): ... to here.
49320 2011-05-08  Bruno Haible  <bruno@clisp.org>
49322         imaxabs: Move AC_LIBOBJ invocations to module description.
49323         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49324         invocations from here...
49325         * modules/imaxabs (configure.ac): ... to here.
49327 2011-05-08  Bruno Haible  <bruno@clisp.org>
49329         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49331         AC_LIBOBJ invocations from here...
49332         * modules/getaddrinfo (configure.ac): ... to here.
49333         (Depends-on): Add conditions.
49335 2011-05-08  Bruno Haible  <bruno@clisp.org>
49337         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49338         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49339         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49340         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49341         (gl_PREREQ_INET_PTON): ... from here.
49342         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49343         gl_PREREQ_INET_PTON here.
49344         (Depends-on): Update condition.
49346 2011-05-08  Bruno Haible  <bruno@clisp.org>
49348         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49349         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49350         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49351         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49352         (gl_PREREQ_INET_NTOP): ... from here.
49353         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49354         gl_PREREQ_INET_NTOP here.
49355         (Depends-on): Update condition.
49357 2011-05-08  Bruno Haible  <bruno@clisp.org>
49359         iconv_open: Move AC_LIBOBJ invocations to module description.
49360         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49361         AC_LIBOBJ invocations from here...
49362         * modules/iconv_open (configure.ac): ... to here.
49364 2011-05-08  Bruno Haible  <bruno@clisp.org>
49366         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49367         If module 'iconv_open' is among the main modules and module
49368         'iconv_open-utf' is among the tests dependencies, then
49369         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49370         return the special iconv_t values. Therefore iconv() and iconv_close()
49371         must support these special iconv_t values, already in lib, not only in
49372         tests.
49373         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49374         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49375         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49376         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49377         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49378         (Depends-on): Add the dependencies of iconv_open-utf.
49379         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49380         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49381         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49383 2011-05-08  Bruno Haible  <bruno@clisp.org>
49385         group-member: Move AC_LIBOBJ invocations to module description.
49386         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49387         gl_PREREQ_GROUP_MEMBER invocations from here...
49388         * modules/group-member (configure.ac): ... to here.
49390 2011-05-08  Bruno Haible  <bruno@clisp.org>
49392         grantpt: Move AC_LIBOBJ invocations to module description.
49393         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49394         invocations from here...
49395         * modules/grantpt (configure.ac): ... to here.
49397 2011-05-08  Bruno Haible  <bruno@clisp.org>
49399         glob: Move AC_LIBOBJ invocations to module description.
49400         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49401         from here...
49402         * modules/glob (configure.ac): ... to here.
49404 2011-05-08  Bruno Haible  <bruno@clisp.org>
49406         getusershell: Move AC_LIBOBJ invocations to module description.
49407         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49408         Move AC_LIBOBJ invocation from here...
49409         * modules/getusershell (configure.ac): ... to here.
49410         (Depends-on): Update condition.
49412 2011-05-08  Bruno Haible  <bruno@clisp.org>
49414         gettimeofday: Move AC_LIBOBJ invocations to module description.
49415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49416         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49417         gl_PREREQ_GETTIMEOFDAY invocations from here...
49418         * modules/gettimeofday (configure.ac): ... to here.
49420 2011-05-08  Bruno Haible  <bruno@clisp.org>
49422         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49423         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49424         just gl_FUNC_TZSET.
49425         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49426         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49428         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49430 2011-05-08  Bruno Haible  <bruno@clisp.org>
49432         getsubopt: Move AC_LIBOBJ invocations to module description.
49433         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49434         gl_PREREQ_GETSUBOPT invocations from here...
49435         * modules/getsubopt (configure.ac): ... to here.
49437 2011-05-08  Bruno Haible  <bruno@clisp.org>
49439         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49440         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49441         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49442         * modules/getpass-gnu (configure.ac): ... to here.
49444 2011-05-08  Bruno Haible  <bruno@clisp.org>
49446         getpass: Move AC_LIBOBJ invocations to module description.
49447         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49448         gl_PREREQ_GETPASS invocations from here...
49449         * modules/getpass (configure.ac): ... to here.
49451 2011-05-08  Bruno Haible  <bruno@clisp.org>
49453         getpagesize: Move AC_LIBOBJ invocations to module description.
49454         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49455         from here...
49456         * modules/getpagesize (configure.ac): ... to here.
49458 2011-05-08  Bruno Haible  <bruno@clisp.org>
49460         getopt: Move AC_LIBOBJ invocations to module description.
49461         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49462         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49463         invocations from here...
49464         * modules/getopt-gnu (configure.ac): ... to here.
49465         * modules/getopt-posix (configure.ac): ... and here.
49466         (Depends-on): Update condition.
49468 2011-05-08  Bruno Haible  <bruno@clisp.org>
49470         getopt, argp: Respect rules for use of AC_LIBOBJ.
49471         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49472         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49473         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49474         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49476 2011-05-08  Bruno Haible  <bruno@clisp.org>
49478         getlogin_r: Move AC_LIBOBJ invocations to module description.
49479         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49480         gl_PREREQ_GETLOGIN_R invocations from here...
49481         * modules/getlogin_r (configure.ac): ... to here.
49483 2011-05-08  Bruno Haible  <bruno@clisp.org>
49485         getlogin: Move AC_LIBOBJ invocations to module description.
49486         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49487         here...
49488         * modules/getlogin (configure.ac): ... to here.
49490 2011-05-08  Bruno Haible  <bruno@clisp.org>
49492         getloadavg: Move AC_LIBOBJ invocations to module description.
49493         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49494         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49495         * modules/getloadavg (configure.ac): ... to here.
49497 2011-05-08  Bruno Haible  <bruno@clisp.org>
49499         gethrxtime: Move AC_LIBOBJ invocations to module description.
49500         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49501         LIB_GETHRXTIME from here...
49502         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49503         invocations from here...
49504         * modules/gethrxtime (configure.ac): ... to here.
49506 2011-05-08  Bruno Haible  <bruno@clisp.org>
49508         gethostname: Move AC_LIBOBJ invocations to module description.
49509         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49510         gl_PREREQ_GETHOSTNAME invocations from here...
49511         * modules/gethostname (configure.ac): ... to here.
49513 2011-05-08  Bruno Haible  <bruno@clisp.org>
49515         getgroups: Move AC_LIBOBJ invocations to module description.
49516         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49517         here...
49518         * modules/getgroups (configure.ac): ... to here.
49520 2011-05-08  Bruno Haible  <bruno@clisp.org>
49522         getdtablesize: Move AC_LIBOBJ invocations to module description.
49523         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49524         invocation from here...
49525         * modules/getdtablesize (configure.ac): ... to here.
49527 2011-05-08  Bruno Haible  <bruno@clisp.org>
49529         getdomainname: Move AC_LIBOBJ invocations to module description.
49530         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49531         gl_PREREQ_GETDOMAINNAME invocations from here...
49532         * modules/getdomainname (configure.ac): ... to here.
49534 2011-05-08  Bruno Haible  <bruno@clisp.org>
49536         getline: Move AC_LIBOBJ invocations to module description.
49537         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49538         invocations from here...
49539         * modules/getline (configure.ac): ... to here.
49541 2011-05-08  Bruno Haible  <bruno@clisp.org>
49543         getline: Simplify.
49544         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49545         It's already handled through the module dependency.
49547 2011-05-08  Bruno Haible  <bruno@clisp.org>
49549         getdelim: Move AC_LIBOBJ invocations to module description.
49550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49551         and gl_PREREQ_GETDELIM invocations from here...
49552         * modules/getdelim (configure.ac): ... to here.
49553         (Depends-on): Fix condition.
49555 2011-05-08  Bruno Haible  <bruno@clisp.org>
49557         getcwd: Move AC_LIBOBJ invocations to module description.
49558         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49559         invocations from here...
49560         * modules/getcwd (configure.ac): ... to here.
49562 2011-05-08  Bruno Haible  <bruno@clisp.org>
49564         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49565         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49566         here...
49567         * modules/getcwd-lgpl (configure.ac): ... to here.
49569 2011-05-07  Bruno Haible  <bruno@clisp.org>
49571         crypto/gc: Move AC_LIBOBJ invocations to module description.
49572         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49573         * modules/crypto/gc (configure.ac): ... to here.
49575 2011-05-07  Bruno Haible  <bruno@clisp.org>
49577         fwriting: Move AC_LIBOBJ invocations to module description.
49578         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49579         here...
49580         * modules/fwriting (configure.ac): ... to here.
49582 2011-05-07  Bruno Haible  <bruno@clisp.org>
49584         fwritable: Move AC_LIBOBJ invocations to module description.
49585         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49586         here...
49587         * modules/fwritable (configure.ac): ... to here.
49589 2011-05-07  Bruno Haible  <bruno@clisp.org>
49591         futimens: Move AC_LIBOBJ invocations to module description.
49592         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
49593         here...
49594         * modules/futimens (configure.ac): ... to here.
49596 2011-05-07  Bruno Haible  <bruno@clisp.org>
49598         ftruncate: Move AC_LIBOBJ invocations to module description.
49599         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
49600         gl_PREREQ_FTRUNCATE invocations from here...
49601         * modules/ftruncate (configure.ac): ... to here.
49603 2011-05-07  Bruno Haible  <bruno@clisp.org>
49605         fsync: Move AC_LIBOBJ invocations to module description.
49606         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
49607         invocations from here...
49608         * modules/fsync (configure.ac): ... to here.
49610 2011-05-07  Bruno Haible  <bruno@clisp.org>
49612         fsusage: Move AC_LIBOBJ invocations to module description.
49613         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
49614         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
49615         * modules/fsusage (configure.ac): ... to here.
49617 2011-05-07  Bruno Haible  <bruno@clisp.org>
49619         freopen: Move AC_LIBOBJ invocations to module description.
49620         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
49621         invocations from here...
49622         * modules/freopen (configure.ac): ... to here.
49624 2011-05-07  Bruno Haible  <bruno@clisp.org>
49626         free: Move AC_LIBOBJ invocations to module description.
49627         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
49628         invocations from here...
49629         * modules/free (configure.ac): ... to here.
49631 2011-05-07  Bruno Haible  <bruno@clisp.org>
49633         freadable: Move AC_LIBOBJ invocations to module description.
49634         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
49635         here...
49636         * modules/freadable (configure.ac): ... to here.
49638 2011-05-07  Bruno Haible  <bruno@clisp.org>
49640         fpurge: Move AC_LIBOBJ invocations to module description.
49641         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
49642         invocations from here...
49643         * modules/fpurge (configure.ac): ... to here.
49645 2011-05-07  Bruno Haible  <bruno@clisp.org>
49647         fpending: Move AC_LIBOBJ invocations to module description.
49648         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
49649         gl_FUNC_FPENDING.
49650         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
49651         invocations from here...
49652         * modules/fpending (configure.ac): ... to here.
49654 2011-05-07  Bruno Haible  <bruno@clisp.org>
49656         fopen: Move AC_LIBOBJ invocations to module description.
49657         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
49658         invocations from here...
49659         * modules/fopen (configure.ac): ... to here.
49661 2011-05-07  Bruno Haible  <bruno@clisp.org>
49663         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
49664         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
49665         gl_FUNC_FNMATCH_POSIX.
49666         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
49667         invocations from here...
49668         * modules/fnmatch (configure.ac): ... to here.
49669         * modules/fnmatch-gnu (configure.ac): ... and here.
49671 2011-05-07  Bruno Haible  <bruno@clisp.org>
49673         flock: Move AC_LIBOBJ invocations to module description.
49674         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
49675         invocations from here...
49676         * modules/flock (configure.ac): ... to here.
49678 2011-05-07  Bruno Haible  <bruno@clisp.org>
49680         fileblocks: Move AC_LIBOBJ invocations to module description.
49681         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
49682         gl_PREREQ_FILEBLOCKS invocations from here...
49683         * modules/fileblocks (configure.ac): ... to here.
49685 2011-05-06  Bruno Haible  <bruno@clisp.org>
49687         fflush: Move AC_LIBOBJ invocations to module description.
49688         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
49689         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
49690         invocations from here...
49691         * modules/fflush (configure.ac): ... to here.
49693 2011-05-06  Bruno Haible  <bruno@clisp.org>
49695         fdopendir: Move AC_LIBOBJ invocations to module description.
49696         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
49697         here...
49698         * modules/fdopendir (configure.ac): ... to here.
49699         (Depends-on): Improve conditions.
49701 2011-05-06  Bruno Haible  <bruno@clisp.org>
49703         _Exit: Move AC_LIBOBJ invocations to module description.
49704         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
49705         invocations from here...
49706         * modules/_Exit (configure.ac): ... to here.
49708 2011-05-21  Bruno Haible  <bruno@clisp.org>
49710         euidaccess: Respect rules for use of AC_LIBOBJ.
49711         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
49713         from here...
49714         * modules/euidaccess (configure.ac): ... to here.
49716 2011-05-06  Bruno Haible  <bruno@clisp.org>
49718         error: Move AC_LIBOBJ invocations to module description.
49719         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
49720         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
49721         invocations from here...
49722         * modules/error (configure.ac): ... to here.
49724 2011-05-06  Bruno Haible  <bruno@clisp.org>
49726         duplocale: Move AC_LIBOBJ invocations to module description.
49727         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
49728         gl_PREREQ_DUPLOCALE invocations from here...
49729         * modules/duplocale (configure.ac): ... to here.
49731 2011-05-05  Bruno Haible  <bruno@clisp.org>
49733         dirfd: Move AC_LIBOBJ invocations to module description.
49734         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
49735         gl_FUNC_DIRFD.
49736         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
49737         here...
49738         * modules/dirfd (configure.ac): ... to here.
49739         (Depends-on): Fix condition.
49741 2011-05-05  Bruno Haible  <bruno@clisp.org>
49743         chown: Respect rules for use of AC_LIBOBJ.
49744         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
49745         * modules/chown (configure.ac): ... to here.
49747 2011-05-05  Bruno Haible  <bruno@clisp.org>
49749         chdir-long: Move AC_LIBOBJ invocations to module description.
49750         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
49751         gl_PREREQ_CHDIR_LONG invocations from here...
49752         * modules/chdir-long (configure.ac): ... to here.
49754 2011-05-05  Bruno Haible  <bruno@clisp.org>
49756         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
49757         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
49758         from here...
49759         * modules/canonicalize-lgpl (configure.ac): ... to here.
49761 2011-05-05  Bruno Haible  <bruno@clisp.org>
49763         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
49764         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
49765         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
49766         REPLACE_CALLOC.
49767         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
49768         * modules/calloc-gnu (configure.ac): Likewise.
49770 2011-05-05  Bruno Haible  <bruno@clisp.org>
49772         btowc: Move AC_LIBOBJ invocations to module description.
49773         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
49774         invocations from here...
49775         * modules/btowc (configure.ac): ... to here.
49777 2011-05-21  Bruno Haible  <bruno@clisp.org>
49779         atexit: Move AC_LIBOBJ invocations to module description.
49780         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
49781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
49782         here...
49783         * modules/atexit (configure.ac): ... to here.
49785 2011-05-05  Bruno Haible  <bruno@clisp.org>
49787         atoll: Move AC_LIBOBJ invocations to module description.
49788         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
49789         invocations from here...
49790         * modules/atoll (configure.ac): ... to here.
49792 2011-05-05  Bruno Haible  <bruno@clisp.org>
49794         argz: Move AC_LIBOBJ invocations to module description.
49795         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
49796         * modules/argz (configure.ac): ... to here.
49798 2011-05-05  Bruno Haible  <bruno@clisp.org>
49800         alphasort: Move AC_LIBOBJ invocations to module description.
49801         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
49802         gl_PREREQ_ALPHASORT invocations from here...
49803         * modules/alphasort (configure.ac): ... to here.
49805 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49807         verify: new macro verify_expr; verify_true deprecated
49808         * NEWS: Mention this.
49809         * doc/verify.texi (Compile-time Assertions): Document this.
49810         * lib/verify.h (verify_true): Deprecate.
49811         (verify_expr): New macro.
49812         * tests/test-verify.c (function): Test verify_expr.
49814 2011-06-14  Jim Meyering  <meyering@redhat.com>
49816         init.sh: give more portable redirection-related advice in a comment
49817         * tests/init.sh (stderr_fileno_): Update the advice in comments.
49818         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
49819         for lots of discussion.  Stefano Lattarini suggested the solution
49820         of putting "9>&2" after the command.  Reported by Bruno Haible.
49822 2011-06-13  Bruno Haible  <bruno@clisp.org>
49824         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
49825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
49826         'none'.
49828 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
49830         ftoastr: use strtof only if HAVE_STRTOF
49831         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
49832         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
49833         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
49834         * modules/ftoastr (configure.ac): Check for strtof.
49836 2011-06-13  Bruno Haible  <bruno@clisp.org>
49838         gnulib-tool: Addendum to 2011-06-08 commit.
49839         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
49840         and --witness-c-macro have been given, augment AM_CPPFLAGS.
49842 2011-06-13  Bruno Haible  <bruno@clisp.org>
49844         fseeko: Provide a non-inline replacement of fseek().
49845         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
49846         * modules/fseeko (Depends-on): Add fseek.
49847         * modules/fseek (License): Change to LGPLv2+.
49849 2011-06-13  Bruno Haible  <bruno@clisp.org>
49851         ftello: Provide a non-inline replacement of ftell().
49852         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
49853         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
49854         not have ftello() (such as on mingw).
49855         * modules/ftello (Depends-on): Add ftell.
49856         * modules/ftell (License): Change to LGPLv2+.
49858 2011-05-07  Bruno Haible  <bruno@clisp.org>
49860         ftell: Move AC_LIBOBJ invocations to module description.
49861         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
49862         * modules/ftell (configure.ac): ... to here.
49864 2011-05-07  Bruno Haible  <bruno@clisp.org>
49866         ftello: Respect rules for use of AC_LIBOBJ.
49867         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
49868         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
49869         here...
49870         * modules/ftello (configure.ac): ... to here.
49872 2011-05-07  Bruno Haible  <bruno@clisp.org>
49874         fseeko: Simplify.
49875         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
49876         (gl_FUNC_FSEEKO): Inline it here.
49878 2011-05-07  Bruno Haible  <bruno@clisp.org>
49880         fseek: Move AC_LIBOBJ invocations to module description.
49881         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
49882         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49883         * modules/fseek (configure.ac): ... to here.
49885 2011-05-07  Bruno Haible  <bruno@clisp.org>
49887         fseek: Respect rules for use of AC_LIBOBJ.
49888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
49889         here...
49890         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
49892 2011-05-07  Bruno Haible  <bruno@clisp.org>
49894         fseeko: Respect rules for use of AC_LIBOBJ.
49895         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
49896         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
49897         here...
49898         * modules/fseeko (configure.ac): ... to here.
49900 2011-06-13  Bruno Haible  <bruno@clisp.org>
49902         gnulib-tool: Allow comments in the 'Depends-on' section.
49903         * doc/gnulib.texi (Module description): Mention comment syntax in the
49904         Depends-on section.
49905         * gnulib-tool (func_get_dependencies): Filter out comment lines.
49907 2011-06-13  Bruno Haible  <bruno@clisp.org>
49909         file-set.h: guard __attibute__ use, now that it's not always defined
49910         * lib/file-set.h (record_file): Use __attribute__ only with compiler
49911         versions that support it.  This fixes a coreutils build failure with
49912         the vendor cc on HP-UX 11.31.
49914 2011-06-12  Bruno Haible  <bruno@clisp.org>
49916         acl: Add support for HP-UX >= 11.11 JFS ACLs.
49917         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
49918         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
49919         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
49920         (acl, aclsort): New declarations.
49921         (aclv_nontrivial): New declaration.
49922         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
49923         (file_has_acl): Read also the second kind of HP-UX ACLs.
49924         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
49925         kind of HP-UX ACLs if the first kind fails.
49926         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
49927         second kind of HP-UX ACLs.
49928         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
49929         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
49930         agree.
49931         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
49932         hpuxjfs.
49933         Handle hpuxjfs.
49934         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
49935         hpuxjfs.
49936         Handle hpuxjfs.
49937         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
49938         (func_test_same_acls): Use both lsacl and getacl.
49939         Handle hpuxjfs.
49940         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
49941         (func_test_same_acls): Use both lsacl and getacl.
49942         Handle hpuxjfs.
49944 2011-06-12  Bruno Haible  <bruno@clisp.org>
49946         acl: Complete the 2010-08-10 fix.
49947         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
49948         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
49949         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
49950         explicitly.
49951         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
49952         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
49954 2011-06-12  Bruno Haible  <bruno@clisp.org>
49956         spawn-pipe tests: Comments.
49957         * tests/test-spawn-pipe-child.c (main): Update comment.
49958         Reported by James Youngman <jay@gnu.org>.
49960 2011-06-11  James Youngman  <jay@gnu.org>
49962         New module 'stat-size'.
49963         * modules/stat-size: New module.  Provides macros for accessing
49964         file size information in instances of struct stat.  Depends on the
49965         fileblocks module because it calls st_blocks.
49966         * lib/stat-size.h: New file, adapted from coreutils' system.h.
49967         * doc/gnulib.texi: Include stat-size.texi.
49968         * doc/stat-size.texi: Documentation for this module.
49969         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
49970         * m4/fileblocks.m4: Mention that stat-size depends on the call to
49971         AC_STRUCT_ST_BLOCKS.
49973 2011-06-09  Bruno Haible  <bruno@clisp.org>
49975         thread: Support pthreads-win32.
49976         * lib/glthread/thread.h (gl_thread_self): Define differently on
49977         pthreads-win32.
49978         (gl_null_thread): New declaration.
49979         (gl_thread_self_pointer): New macro.
49980         * lib/glthread/thread.c (gl_null_thread): New constant.
49981         * tests/test-lock.c: Use gl_thread_self_pointer instead of
49982         gl_thread_self.
49983         * tests/test-tls.c: Likewise.
49984         Suggested by Paul Eggert. Reported by Eric Blake.
49986 2011-06-09  Bruno Haible  <bruno@clisp.org>
49988         thread: Fix confusion between NULL and 0.
49989         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
49990         Reported by Paul Eggert.
49992 2011-06-09  Bruno Haible  <bruno@clisp.org>
49994         spawn-pipe tests: Avoid test failure on HP-UX 11.
49995         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
49996         is closed.
49998 2011-06-09  Bruno Haible  <bruno@clisp.org>
50000         acl tests: Fix compilation error on HP-UX 11.
50001         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50003 2011-06-09  Bruno Haible  <bruno@clisp.org>
50005         rmdir: Avoid test failure on HP-UX 10.20.
50006         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50007         EEXIST.
50009 2011-06-08  Eric Blake  <eblake@redhat.com>
50011         perror: fix test on mingw
50012         * modules/perror-tests (Depends-on): Add dup2.
50014         strerror_r-posix: fix on MacOS
50015         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50016         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50017         logic bug.
50018         * lib/strerror_r.c (strerror_r): Fix the bug.
50019         * lib/strerror.c (strerror): Likewise.
50020         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50021         problem.
50022         * doc/posix-functions/strerror.texi (strerror): Likewise.
50023         * doc/posix-functions/perror.texi (perror): Likewise.
50024         * tests/test-strerror.c (main): Enhance test.
50025         * tests/test-strerror_r.c (main): Likewise.
50027 2011-06-08  Bruno Haible  <bruno@clisp.org>
50029         gnulib-tool: Better isolation between different gnulib-tool invocations.
50030         * gnulib-tool: New option --witness-c-macro.
50031         (witness_c_macro): New variable.
50032         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50033         AM_CPPFLAGS define it as a C macro.
50034         (func_emit_tests_Makefile_am): Likewise.
50035         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50036         read it from there.
50037         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50038         m4_define, not AC_DEFUN.
50039         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50040         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50041         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50042         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50043         s|...|...|, to substitute the values of the GNULIB_* module indicator
50044         variables.
50045         * modules/dirent (Makefile.am): Likewise.
50046         * modules/fcntl-h (Makefile.am): Likewise.
50047         * modules/iconv-h (Makefile.am): Likewise.
50048         * modules/langinfo (Makefile.am): Likewise.
50049         * modules/locale (Makefile.am): Likewise.
50050         * modules/math (Makefile.am): Likewise.
50051         * modules/netdb (Makefile.am): Likewise.
50052         * modules/poll-h (Makefile.am): Likewise.
50053         * modules/pty (Makefile.am): Likewise.
50054         * modules/search (Makefile.am): Likewise.
50055         * modules/signal (Makefile.am): Likewise.
50056         * modules/spawn (Makefile.am): Likewise.
50057         * modules/stdio (Makefile.am): Likewise.
50058         * modules/stdlib (Makefile.am): Likewise.
50059         * modules/string (Makefile.am): Likewise.
50060         * modules/sys_ioctl (Makefile.am): Likewise.
50061         * modules/sys_select (Makefile.am): Likewise.
50062         * modules/sys_socket (Makefile.am): Likewise.
50063         * modules/sys_stat (Makefile.am): Likewise.
50064         * modules/sys_times (Makefile.am): Likewise.
50065         * modules/sys_utsname (Makefile.am): Likewise.
50066         * modules/sys_wait (Makefile.am): Likewise.
50067         * modules/termios (Makefile.am): Likewise.
50068         * modules/time (Makefile.am): Likewise.
50069         * modules/unistd (Makefile.am): Likewise.
50070         * modules/wchar (Makefile.am): Likewise.
50072 2011-06-08  Eric Blake  <eblake@redhat.com>
50074         strerror: simplify replacement
50075         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50076         * modules/strerror (configure.ac): No prereqs needed here...
50077         * modules/strerror-override (configure.ac): ...but this needs it.
50078         (Files): Add file for needed prereq macro.
50080 2011-06-08  Bruno Haible  <bruno@clisp.org>
50082         strerror_r-posix: Tweaks.
50083         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50084         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50085         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50086         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50087         (gl_FUNC_STRERROR_R): ... to here.
50088         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50090 2011-06-07  Eric Blake  <eblake@redhat.com>
50092         perror: document fixed bugs
50093         * doc/posix-functions/perror.texi (perror): Document recent
50094         patches.
50096 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50098         stat-time: get_stat_birthtime failure is better-defined
50099         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50100         return a timestamp whose tv_sec and tv_nsec values are both -1.
50101         Previously, the spec said only that the tv_nsec value was negative.
50102         This upward-compatible change simplifies GNU tar a bit.
50104 2011-06-07  Eric Blake  <eblake@redhat.com>
50106         strerror_r-posix: work around cygwin 1.7.9
50107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50108         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50109         bug without replacing strerror_r.
50110         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50111         strerror_r is buggy, but without requiring strerror_r compilation.
50112         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50114         test-perror: relax test to ignore cygwin bug
50115         * tests/test-perror2.c (main): Relax test on requiring detection
50116         of stream errors, and use unbuffered stream.
50117         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50118         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50119         * doc/posix-functions/fputc.texi (fputc): Likewise.
50120         * doc/posix-functions/fputs.texi (fputs): Likewise.
50121         * doc/posix-functions/fputws.texi (fputws): Likewise.
50122         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50123         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50124         * doc/posix-functions/getopt.texi (getopt): Likewise.
50125         * doc/posix-functions/perror.texi (perror): Likewise.
50126         * doc/posix-functions/printf.texi (printf): Likewise.
50127         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50128         * doc/posix-functions/psignal.texi (psignal): Likewise.
50129         * doc/posix-functions/putc.texi (putc): Likewise.
50130         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50131         Likewise.
50132         * doc/posix-functions/putchar.texi (putchar): Likewise.
50133         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50134         Likewise.
50135         * doc/posix-functions/puts.texi (puts): Likewise.
50136         * doc/posix-functions/putwc.texi (putwc): Likewise.
50137         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50138         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50139         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50140         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50141         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50142         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50143         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50144         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50146 2011-05-22  Bruno Haible  <bruno@clisp.org>
50148         strerror: Move AC_LIBOBJ invocations to module description.
50149         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50150         gl_PREREQ_STRERROR invocations from here...
50151         * modules/strerror (configure.ac): ... to here.
50153 2011-05-21  Bruno Haible  <bruno@clisp.org>
50155         perror: Use common idiom.
50156         * modules/perror (configure.ac): Reorder statements.
50158 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50160         tests: fix usage message in 'mktempd_'
50161         * tests/init.sh (mktempd_): In the usage message, use literal
50162         'mktempd_', not '$ME' (which is even undefined), as the name of
50163         the subroutine.
50165 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50167         tests init: new function 'fatal_', for hard errors
50168         Before this patch, the only way offered by tests/init.sh to
50169         properly signal a hard error was the `framework_failure_'
50170         function.  But the error message issued by that function,
50171         as its name would suggest, refers to a set-up failure in the
50172         testsuite, while hard errors can obviously also be due to
50173         other reasons.  The best way to fix this inconsistency is to
50174         introduce a new function with a more general error message.
50175         * tests/init.sh (fatal_): New function.
50177 2011-06-06  Eric Blake  <eblake@redhat.com>
50179         canonicalize-lgpl: use common idiom
50180         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50181         over newer POSIX -Rf.
50182         Reported by Bruno Haible.
50184         canonicalize-lgpl: work around AIX realpath bug
50185         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50186         * doc/posix-functions/realpath.texi (realpath): Document it.
50187         Reported by Bruno Haible.
50189         strerror: work around FreeBSD bug
50190         * lib/strerror.c (strerror): Special case 0.
50191         Reported by Bruno Haible.
50193         strerror-override: avoid bloating errno module
50194         * modules/errno (Files, configure.ac): Move replacement strings...
50195         * modules/strerror-override: ...to new module.
50196         * modules/strerror (Depends-on): Add strerror-override.
50197         * modules/strerror_r-posix (Depends-on): Likewise.
50198         * MODULES.html.sh: Document new module.
50199         Reported by Bruno Haible.
50201 2011-06-06  Bruno Haible  <bruno@clisp.org>
50203         spawn-pipe tests: Rename program.
50204         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50205         * tests/test-spawn-pipe-child.c: Update comment.
50206         * tests/test-spawn-pipe.sh: Update.
50207         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50209         spawn-pipe tests: Link the child program only against libc.
50210         * tests/test-spawn-pipe-child.c: New file, extracted from
50211         tests/test-spawn-pipe.c.
50212         (main): Expect only one argument.
50213         (is_open): New function, copied from tests/test-pipe.c.
50214         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50215         (child_main): Remove function.
50216         (test_pipe): Pass only one argument to the child program.
50217         (main): Remove child process code. Expect the child program's name as
50218         first argument.
50219         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50220         argument.
50221         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50222         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50223         test-spawn-pipe-child against no libraries.
50225 2011-06-06  Bruno Haible  <bruno@clisp.org>
50227         careadlinkat: Avoid mismatch between ssize_t and int.
50228         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50229         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50231 2011-06-06  Jim Meyering  <meyering@redhat.com>
50233         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50234         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50235         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50237 2011-06-05  Bruno Haible  <bruno@clisp.org>
50239         ansi-c++-opt: Interoperability with libtool.
50240         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50241         set the variable to "no", not to ":".
50242         * NEWS: Mention the change.
50244 2011-06-05  Bruno Haible  <bruno@clisp.org>
50246         acl: Fix test failure on AIX 7.
50247         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50248         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50250 2011-06-05  Bruno Haible  <bruno@clisp.org>
50252         pipe-filter-ii: Fix test failure on AIX and IRIX.
50253         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50254         with EAGAIN, retry with a smaller buffer size.
50256 2011-06-05  Bruno Haible  <bruno@clisp.org>
50258         localename: Fix link dependencies.
50259         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50260         * modules/localename-tests (Makefile.am): Link test-localename with
50261         $(LIBTHREAD).
50263 2011-06-05  Bruno Haible  <bruno@clisp.org>
50265         error: Avoid gcc warning.
50266         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50268 2011-06-05  Bruno Haible  <bruno@clisp.org>
50270         unsetenv: Avoid gcc warning.
50271         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50273 2011-06-05  Bruno Haible  <bruno@clisp.org>
50275         setenv: Avoid gcc warning.
50276         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50278 2011-06-05  Bruno Haible  <bruno@clisp.org>
50280         sys_select: Ensure memset is declared also on AIX 7.
50281         * lib/sys_select.in.h: Include <string.h> also on AIX.
50282         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50283         self-contained also on AIX 7.1.
50285 2011-06-04  Jim Meyering  <meyering@redhat.com>
50287         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50288         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50289         function name, "error".
50290         (_gl_translatable_diag_func_re): New configurable variable.
50292 2011-06-04  Bruno Haible  <bruno@clisp.org>
50294         getopt: Avoid gcc warning.
50295         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50297 2011-06-04  Bruno Haible  <bruno@clisp.org>
50299         strerror_r: Fix comments.
50300         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50301         commit.
50303 2011-06-04  Bruno Haible  <bruno@clisp.org>
50305         perror: Fix compilation error.
50306         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50307         Undefine fprintf, not sprintf.
50308         * modules/perror (Depends-on): Remove intprops, verify.
50310 2011-06-04  Bruno Haible  <bruno@clisp.org>
50312         setlocale: Enable replacement on Cygwin 1.5.
50313         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50314         Cygwin 1.5.x.
50315         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50316         LC_CTYPE category also exists on Cygwin 1.5.x.
50318 2011-06-04  Bruno Haible  <bruno@clisp.org>
50320         strerror-override: Don't disable symbol renamings.
50321         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50322         * lib/strerror-override.c: Include config.h.
50323         (strerror_override): Don't undefine.
50325 2011-06-03  Bruno Haible  <bruno@clisp.org>
50327         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50328         * lib/localename.h: Update copyright header.
50329         * lib/localename.c: Likewise.
50330         * lib/relocatable.h: Likewise.
50331         * lib/relocatable.c: Likewise.
50333 2011-06-02  Bruno Haible  <bruno@clisp.org>
50335         doc: Fix a module name.
50336         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50338 2011-06-02  Bruno Haible  <bruno@clisp.org>
50340         pipe2: Remove dependency on 'nonblocking' module.
50341         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50342         O_NONBLOCK is defined by gnulib.
50343         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50344         is zero.
50345         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50346         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50347         defined by gnulib.
50348         (get_nonblocking_flag): New function.
50349         (main): Test O_NONBLOCK flag only if it is nonzero.
50350         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50352 2011-06-03  Jim Meyering  <meyering@redhat.com>
50354         maint: three new prohibit-header-without-use rules
50355         Prohibit use of cloexec.h, posixver.h, same.h without use.
50356         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50357         (sc_prohibit_posixver_without_use): Likewise.
50358         (sc_prohibit_same_without_use): Likewise.
50360 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50362         allocator: 'die' routine is now given requested size
50363         * lib/allocator.h (struct allocator.die): New size arg.
50364         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50365         If the actual problem is an ssize_t limitation, not a size_t or
50366         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50368 2011-06-01  Eric Blake  <eblake@redhat.com>
50370         strerror: drop strerror_r dependency
50371         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50372         * lib/strerror-override.c (strerror_override): ...to new file.
50373         * lib/strerror-override.h: Add prototype.
50374         * lib/strerror-impl.h: Delete.
50375         * lib/strerror.c (strerror): New implementation.
50376         * modules/errno (Files): Add new files.
50377         (configure.ac): Compile new file as appropriate.
50378         * modules/strerror (Files): Drop unused file.
50379         (Depends-on): Drop strerror_r-posix.
50380         * MODULES.html.sh: Document strerror_r-posix.
50381         Requested by Sam Steingold.
50383         perror: call strerror_r directly
50384         * modules/perror (Files): Drop strerror-impl.h.
50385         * lib/perror.c (perror): Use our own stack buffer, rather than
50386         calling a wrapper that uses static storage.
50387         * doc/posix-functions/perror.texi (perror): Document a limitation
50388         of our replacement.
50390         strerror_r: fix includes for FreeBSD
50391         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50392         since we use abort on some platforms.
50393         Reported by Matthias Bolte.
50395 2011-05-31  Bruno Haible  <bruno@clisp.org>
50397         Fix link errors in tests: openat-die uses gettext-h.
50398         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50399         against $(LIBINTL).
50400         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50401         against $(LIBINTL).
50402         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50403         $(LIBINTL).
50404         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50405         against $(LIBINTL).
50406         * modules/linkat-tests (Makefile.am): Link test-linkat against
50407         $(LIBINTL).
50408         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50409         $(LIBINTL).
50410         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50411         against $(LIBINTL).
50412         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50413         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50414         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50415         $(LIBINTL).
50416         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50417         $(LIBINTL).
50418         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50419         $(LIBINTL).
50420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50422 2011-05-31  Bruno Haible  <bruno@clisp.org>
50424         Fix link errors in tests: wait-process uses gettext-h.
50425         * modules/nonblocking-pipe-tests (Makefile.am): Set
50426         test_nonblocking_pipe_main_LDADD.
50427         * modules/nonblocking-socket-tests (Makefile.am): Link
50428         test-nonblocking-socket-main against $(LIBINTL).
50429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50431 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50433         assert-h: work around 'verify' incompatibility
50434         * lib/verify.h: Use @...@ directives, not ifdef.
50435         * modules/assert-h (assert.h): Implement the directives.
50436         (assert.h): Substitute the symbol-prefix more consistently.
50438 2011-05-29  Jim Meyering  <meyering@redhat.com>
50440         trim: remove three superfluous assignments
50441         * lib/trim.c (trim2): Remove three superfluous assignments
50442         and correct brace positioning.
50444 2011-05-29  Bruno Haible  <bruno@clisp.org>
50446         wctype-h: Avoid namespace pollution on Solaris 2.6.
50447         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50448         identifiers.
50449         * doc/posix-headers/wctype.texi: Mention the problem.
50450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50452 2011-05-28  Jim Meyering  <meyering@redhat.com>
50454         parse-datetime.y: accommodate -Wstrict-overflow
50455         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50456         placate -Wstrict-overflow.
50458         trim: avoid a warning from -O2 -Wstrict-overflow
50459         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50461 2011-05-29  Bruno Haible  <bruno@clisp.org>
50463         gnulib-tool: Fix bug in yesterday's commit.
50464         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50465         twice.
50467 2011-05-29  Bruno Haible  <bruno@clisp.org>
50469         Allow multiple gnulib generated include files to be combined.
50470         * gnulib-tool (func_compute_include_guard_prefix): New function.
50471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50472         ${gl_include_guard_prefix} references.
50473         (func_import, func_create_testdir): Invoke
50474         func_compute_include_guard_prefix.
50475         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50476         * lib/ctype.in.h: Likewise.
50477         * lib/dirent.in.h: Likewise.
50478         * lib/errno.in.h: Likewise.
50479         * lib/fcntl.in.h: Likewise.
50480         * lib/float.in.h: Likewise.
50481         * lib/getopt.in.h: Likewise.
50482         * lib/iconv.in.h: Likewise.
50483         * lib/langinfo.in.h: Likewise.
50484         * lib/locale.in.h: Likewise.
50485         * lib/math.in.h: Likewise.
50486         * lib/netdb.in.h: Likewise.
50487         * lib/netinet_in.in.h: Likewise.
50488         * lib/poll.in.h: Likewise.
50489         * lib/pthread.in.h: Likewise.
50490         * lib/pty.in.h: Likewise.
50491         * lib/sched.in.h: Likewise.
50492         * lib/se-selinux.in.h: Likewise.
50493         * lib/search.in.h: Likewise.
50494         * lib/signal.in.h: Likewise.
50495         * lib/spawn.in.h: Likewise.
50496         * lib/stdarg.in.h: Likewise.
50497         * lib/stddef.in.h: Likewise.
50498         * lib/stdint.in.h: Likewise.
50499         * lib/stdio.in.h: Likewise.
50500         * lib/stdlib.in.h: Likewise.
50501         * lib/string.in.h: Likewise.
50502         * lib/strings.in.h: Likewise.
50503         * lib/sys_file.in.h: Likewise.
50504         * lib/sys_ioctl.in.h: Likewise.
50505         * lib/sys_select.in.h: Likewise.
50506         * lib/sys_socket.in.h: Likewise.
50507         * lib/sys_stat.in.h: Likewise.
50508         * lib/sys_time.in.h: Likewise.
50509         * lib/sys_times.in.h: Likewise.
50510         * lib/sys_uio.in.h: Likewise.
50511         * lib/sys_utsname.in.h: Likewise.
50512         * lib/sys_wait.in.h: Likewise.
50513         * lib/sysexits.in.h: Likewise.
50514         * lib/termios.in.h: Likewise.
50515         * lib/time.in.h: Likewise.
50516         * lib/unistd.in.h: Likewise.
50517         * lib/wchar.in.h: Likewise.
50518         * lib/wctype.in.h: Likewise.
50519         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50520         * modules/ctype (Makefile.am): Likewise.
50521         * modules/dirent (Makefile.am): Likewise.
50522         * modules/errno (Makefile.am): Likewise.
50523         * modules/fcntl-h (Makefile.am): Likewise.
50524         * modules/float (Makefile.am): Likewise.
50525         * modules/getopt-posix (Makefile.am): Likewise.
50526         * modules/iconv-h (Makefile.am): Likewise.
50527         * modules/langinfo (Makefile.am): Likewise.
50528         * modules/locale (Makefile.am): Likewise.
50529         * modules/math (Makefile.am): Likewise.
50530         * modules/netdb (Makefile.am): Likewise.
50531         * modules/netinet_in (Makefile.am): Likewise.
50532         * modules/poll-h (Makefile.am): Likewise.
50533         * modules/pthread (Makefile.am): Likewise.
50534         * modules/pty (Makefile.am): Likewise.
50535         * modules/sched (Makefile.am): Likewise.
50536         * modules/search (Makefile.am): Likewise.
50537         * modules/selinux-h (Makefile.am): Likewise.
50538         * modules/signal (Makefile.am): Likewise.
50539         * modules/spawn (Makefile.am): Likewise.
50540         * modules/stdarg (Makefile.am): Likewise.
50541         * modules/stddef (Makefile.am): Likewise.
50542         * modules/stdint (Makefile.am): Likewise.
50543         * modules/stdio (Makefile.am): Likewise.
50544         * modules/stdlib (Makefile.am): Likewise.
50545         * modules/string (Makefile.am): Likewise.
50546         * modules/strings (Makefile.am): Likewise.
50547         * modules/sys_file (Makefile.am): Likewise.
50548         * modules/sys_ioctl (Makefile.am): Likewise.
50549         * modules/sys_select (Makefile.am): Likewise.
50550         * modules/sys_socket (Makefile.am): Likewise.
50551         * modules/sys_stat (Makefile.am): Likewise.
50552         * modules/sys_time (Makefile.am): Likewise.
50553         * modules/sys_times (Makefile.am): Likewise.
50554         * modules/sys_uio (Makefile.am): Likewise.
50555         * modules/sys_utsname (Makefile.am): Likewise.
50556         * modules/sys_wait (Makefile.am): Likewise.
50557         * modules/sysexits (Makefile.am): Likewise.
50558         * modules/termios (Makefile.am): Likewise.
50559         * modules/time (Makefile.am): Likewise.
50560         * modules/unistd (Makefile.am): Likewise.
50561         * modules/wchar (Makefile.am): Likewise.
50562         * modules/wctype-h (Makefile.am): Likewise.
50563         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50565 2011-05-29  Bruno Haible  <bruno@clisp.org>
50567         assert-h: Allow multiple gnulib generated replacements to coexist.
50568         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50570 2011-05-29  Bruno Haible  <bruno@clisp.org>
50572         argp: Allow coexistence with strerror_r-posix module.
50573         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50574         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50575         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50576         not the glibc signature.
50578 2011-05-28  Bruno Haible  <bruno@clisp.org>
50580         gnulib-tool: Alternative structure of testdirs, similar to --import.
50581         * gnulib-tool: New option --single-configure.
50582         (func_usage): Document it.
50583         (single_configure): New variable.
50584         (func_modules_transitive_closure_separately,
50585         func_modules_transitive_closure_separately,
50586         func_determine_use_libtests, func_modules_add_dummy_separately,
50587         func_modules_to_filelist_separately): New functions, extracted from
50588         func_import.
50589         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
50590         (func_import): Use the new functions.
50591         (func_create_testdir): Set final_modules. Handle $single_configure =
50592         true case.
50594 2011-05-28  Bruno Haible  <bruno@clisp.org>
50596         getloadavg: Remove an unreliable safety check.
50597         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
50598         getloadavg.c is in place.
50599         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
50600         Reported by Sam Steingold <sds@gnu.org>.
50602 2011-05-28  Bruno Haible  <bruno@clisp.org>
50604         doc: Cleanup yet another file produced by texinfo.tex.
50605         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
50607 2011-05-28  Bruno Haible  <bruno@clisp.org>
50609         Finish the conditional dependencies mechanism.
50610         * gnulib-tool: New option --no-conditional-dependencies.
50611         (func_usage): Document it. Don't mark --conditional-dependencies as
50612         experimental.
50613         (cond_dependencies): The possible values can now be true, false, empty.
50614         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
50615         (func_import): Store setting in gnulib-cache.m4 and read it from there.
50616         * doc/gnulib-tool.texi (Conditional dependencies): New section.
50618 2011-05-28  Bruno Haible  <bruno@clisp.org>
50620         doc: Use a recent texinfo.tex.
50621         * doc/Makefile (tex_opts): New variable.
50622         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
50624 2011-05-28  Jim Meyering  <meyering@redhat.com>
50626         intprops.h: adjust comment to match code change
50627         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
50628         only once, it *may* have side effects.  Also fix an unrelated typo.
50629         (_GL_INT_SIGNED): Likewise.
50631 2011-05-26  Simon Josefsson  <simon@josefsson.org>
50633         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
50635 2011-05-26  Bruno Haible  <bruno@clisp.org>
50637         mbsrchr: Avoid collision with system function on Interix.
50638         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
50639         Reported by Markus Duft <mduft@gentoo.org>.
50641 2011-05-15  James Youngman  <jay@gnu.org>
50643         getopt: for ambiguous options, enumerate the possibilities.
50644         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
50645         the ambiguous options when an ambiguous prefix is given. This was
50646         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
50647         glibc change was
50648         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
50650 2011-05-25  Eric Blake  <eblake@redhat.com>
50652         getcwd: work around mingw bug
50653         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
50654         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50655         Reported by Matthias Bolte.
50657 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
50659         test-intprops: disable -Wtype-limits diagnostics
50660         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
50661         diagnostics.  Otherwise, the integer overflow macros generate many
50662         diagnostics.  Reported by Jim Meyering in
50663         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50665         intprops: shorten, to pacify gcc -Woverlength-strings
50666         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
50667         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
50668         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
50669         likely to run afoul of C compiler limits for string constant lengths.
50670         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50672 2011-05-24  Eric Blake  <eblake@redhat.com>
50674         docs: document recently fixed glibc printf bug
50675         * doc/posix-functions/fprintf.texi (fprintf): Document it.
50676         * doc/posix-functions/printf.texi (printf): Likewise.
50677         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50678         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50680         closein-tests: convert to init.sh
50681         * modules/closein-tests (Files): Add init.sh
50682         * tests/test-closein.sh Use it.
50684         yesno-tests: convert to init.sh
50685         * modules/yesno-tests (Files): Add init.sh.
50686         * tests/test-yesno.sh: Use it.
50688         atexit-tests: ensure reliable exit status
50689         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
50690         Reported by Bruno Haible.
50692 2011-05-24  Bruno Haible  <bruno@clisp.org>
50694         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
50695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
50696         gl_PREREQ_STRERROR_R invocations from here...
50697         * modules/strerror_r-posix (configure.ac): ... to here.
50699 2011-05-24  Eric Blake  <eblake@redhat.com>
50701         strerror_r: fix missing header
50702         * lib/strerror_r.c: Avoid compiler warning about snprintf.
50704         strerror_r: fix AIX test failures
50705         * lib/strerror_r.c (strerror_r): Convert silent truncation to
50706         ERANGE failure.
50708         strerror_r: fix Solaris test failures
50709         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
50710         failures.
50711         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50713         strerror_r: enforce POSIX recommendations
50714         * lib/strerror_r.c (safe_copy): New helper method.
50715         (strerror_r): Guarantee a non-empty string.
50716         * tests/test-strerror_r.c (main): Enhance tests to incorporate
50717         recent POSIX rulings and to match our strerror guarantees.
50718         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50720 2011-05-24  Jim Meyering  <meyering@redhat.com>
50722         test-perror2.c: avoid warning about unused variable
50723         * tests/test-perror2.c (main): Remove declaration of unused "fp".
50725 2011-05-24  Eric Blake  <eblake@redhat.com>
50727         perror: avoid spurious test failure on HP-UX
50728         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
50730         tests: fix logic bug in init.sh
50731         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
50732         shell.
50734 2011-05-24  Jim Meyering  <meyering@redhat.com>
50736         utimensat: do not reference an out-of-scope buffer
50737         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
50738         declared in an inner scope, yet "times" would be dereferenced outside
50739         the scope in which "ts" was valid.
50740         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
50741         of ts[2] "out/up", so that the use of aliased "times" (via
50742         "times = ts;") does not end up referencing an out-of-scope "ts"
50744         opendir-safer.c: don't clobber errno; don't close negative FD
50745         * lib/opendir-safer.c (opendir_safer):
50746         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
50747         file descriptor, and more importantly, don't clobber the
50748         offending errno value with EINVAL.  Before, upon failure
50749         of dup_safer, we would pass the negative file descriptor to
50750         fdopendir, which would clobber errno.
50752 2011-05-23  Bruno Haible  <bruno@clisp.org>
50754         idcache: Fix module description.
50755         * modules/idcache (Include): Set to "idcache.h".
50757 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
50759         gnulib-tool: fix portability problem with MacOS sed
50760         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
50761         before the "}".  Problem reported by Leo in
50762         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
50763         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
50764         sed_extract_condition1, sed_extract_condition2.
50766 2011-05-23  Bruno Haible  <bruno@clisp.org>
50768         hash: Simplify autoconf macro.
50769         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
50771 2011-05-23  Bruno Haible  <bruno@clisp.org>
50773         getugroups: Fix module description.
50774         * modules/getugroups (Include): Set to "getugroups.h".
50776 2011-05-23  Bruno Haible  <bruno@clisp.org>
50778         linkat: Simplify autoconf macro.
50779         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
50781 2011-05-23  Bruno Haible  <bruno@clisp.org>
50782             Eric Blake  <eblake@redhat.com>
50784         linkat, renameat: Update dependencies.
50785         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
50786         * modules/linkat (Depends-on): Likewise. Remove also readlink,
50787         symlinkat.
50789 2011-05-23  Jim Meyering  <meyering@redhat.com>
50791         maint.mk: more tight_scope improvements
50792         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
50793         (_gl_TS_headers): Define only in if-0'd block.
50794         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
50795         sometimes we must *not* use it.  Adjust uses accordingly.
50796         (sc_tight_scope): Use much simpler grep-based test to determine
50797         whether we skip this rule.
50799         maint.mk: generalize/improve the tight-scope rule
50800         * top/maint.mk: Emit a warning when the test is skipped.
50801         (_gl_TS_dir): Add $(srcdir)/ prefix.
50802         (_gl_TS_function_match): Simplify, rather than trying
50803         to enumerate common types.  Otherwise, it would fail to match an
50804         "extern unsigned char const *" declaration in idutils.
50805         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
50806         a way to support use of that type of macro.
50807         (_gl_TS_var_match): Simplify regexp.
50808         (_gl_TS_obj_files): New configurable variable.
50809         (_gl_TS_headers): Likewise.
50811 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50813         verify: fix bug when gnulib <assert.h> is also included
50814         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
50815         is defined, not if _GL_STATIC_ASSERT_H is not defined.
50816         Perhaps there's a better way, but this fixes the immediate problem.
50817         Problem reported by Bruno Haible in
50818         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
50820 2011-05-22  Bruno Haible  <bruno@clisp.org>
50822         xgetcwd: Simplify autoconf macro.
50823         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
50825 2011-05-22  Bruno Haible  <bruno@clisp.org>
50827         New module 'mktime-internal'.
50828         * modules/mktime-internal: New file.
50829         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
50830         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
50831         mktime_internal as a C macro if libc has __mktime_internal.
50832         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
50833         conditions.
50834         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
50836 2011-05-22  Bruno Haible  <bruno@clisp.org>
50838         timegm: Correct mktime replacement statements.
50839         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
50840         defining mktime as a C macro. This completes a 2009-07-28 commit.
50842 2011-05-22  Bruno Haible  <bruno@clisp.org>
50844         timegm: Simplify autoconf macro.
50845         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
50847 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
50849         clock-time: change to LGPLv2+.
50850         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
50851         BSD-like but we have no mark for that; this is good enough for now.
50853 2011-05-21  Bruno Haible  <bruno@clisp.org>
50855         strerror_r: Fix comments.
50856         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
50858 2011-05-21  Bruno Haible  <bruno@clisp.org>
50860         relocatable-prog-wrapper: Fix possible link error.
50861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
50862         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
50863         (gl_FUNC_SETENV): ... to here.
50864         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
50865         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
50867 2011-05-21  Bruno Haible  <bruno@clisp.org>
50869         relocatable-prog-wrapper: Assume strerror() exists.
50870         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
50871         m4/strerror.m4.
50872         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
50873         * lib/relocwrapper.c: Remove mention of strerror module.
50874         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
50875         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
50876         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
50877         C macro.
50879 2011-05-21  Bruno Haible  <bruno@clisp.org>
50881         select: Simplify replacement idiom.
50882         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
50883         Win32 platforms.
50884         * lib/sys_select.in.h (select): Simplify accordingly.
50885         * modules/select (Depends-on): Likewise.
50887 2011-05-21  Bruno Haible  <bruno@clisp.org>
50889         mkdir-p: Simplify autoconf macro.
50890         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
50891         gl_FUNC_LCHOWN.
50893 2011-05-21  Eric Blake  <eblake@redhat.com>
50895         strerror_r: avoid clobbering strerror on cygwin
50896         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
50897         fall back instead to sys_errlist.
50898         * modules/strerror (configure.ac): Add witness.
50899         * tests/test-strerror_r.c (main): Enhance test.
50900         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50901         * tests/test-perror2.c (main): Free memory before exit.
50903 2011-05-21  Bruno Haible  <bruno@clisp.org>
50905         mkdtemp: Use gnulib naming conventions.
50906         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
50907         * modules/mkdtemp (configure.ac): Update.
50909 2011-05-20  Eric Blake  <eblake@redhat.com>
50911         strerror_r: avoid corrupting errno on Solaris
50912         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
50913         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50915         strerror_r: avoid compiler warning
50916         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
50918         strerror_r: simplify AIX code
50919         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
50921         test-perror: avoid spurious failure on FreeBSD
50922         * modules/perror-tests (Depends-on): Add strerror, now that
50923         strerror_r no longer pulls it in.
50925 2011-05-20  Bruno Haible  <bruno@clisp.org>
50927         strerror_r-posix: Remove unused dependencies.
50928         * modules/strerror_r-posix (Depends-on): Remove strerror.
50929         Reported by Eric Blake.
50931 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50933         intprops: remove assumption about A|B representation
50934         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
50935         is a valid integer if both A and B are.  Although this is true for
50936         all known practical hosts, the C standard doesn't guarantee it,
50937         and the code need not assume it.  Also, this change may work around
50938         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
50939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
50941 2011-05-20  Eric Blake  <eblake@redhat.com>
50943         perror: work around FreeBSD bug
50944         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
50945         is broken.  Move AC_LIBOBJ...
50946         * modules/perror (configure.ac): Here.
50947         * doc/posix-functions/perror.texi (perror): Document this.
50948         * tests/test-perror2.c (main): Enhance test.
50950         test-perror: check for strerror interactions
50951         * tests/macros.h (STREQ): Add macro.
50952         * modules/perror-tests (Files): Add second test.
50953         * tests/test-perror2.c (main): New file.
50954         * doc/posix-functions/perror.texi (perror): Document glibc bug.
50956         test-perror: rewrite to use init script
50957         * modules/perror-tests (Files): Add init.sh.
50958         * tests/test-perror.sh: Use temporary directory.
50960 2011-05-20  Jim Meyering  <meyering@redhat.com>
50962         maint: replace misused "a" with "an"
50963         * doc/intprops.texi: "a integer"
50964         * doc/regex.texi: "a explanation"
50965         * lib/alignof.h: "a object"
50966         * lib/argmatch.h: "a explanation"
50967         * lib/argp-help.c: "a option" and "a OPTION_DOC"
50968         * lib/stdint.in.h: "a integer"
50969         * lib/userspec.c: "a owner"
50970         * doc/gnulib.texi: Fix "a idea", and reword.
50972 2011-05-19  Jim Meyering  <meyering@redhat.com>
50974         maint: correct misuse of "a" and "an"
50975         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
50976         * lib/argp-help.c: "an docum...": s/an/a/
50977         * lib/argp-parse.c: "An vector": s/An/A/
50978         * lib/execute.c: "an native": s/an/a/
50979         * lib/spawn-pipe.c: Likewise.
50980         * lib/gc.h: "an Gc_rc": s/an/a/
50981         * lib/unigbrk.in.h: "an grapheme": s/an/a/
50982         * lib/fts.c: "an stat.st_dev": s/an/a/
50984 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50986         intprops-tests: work around HP-UX 11.23 cc bug with constants
50987         * tests/test-intprops.c (VERIFY): New macro.
50988         (main): Use it, instead of verify, to work around the compiler bug; see
50989         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
50991         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
50992         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
50993         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
50994         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
50995         (_GL_REMAINDER_OVERFLOW): Use it.
50997         intprops-tests: revert unsigned part of previous change
50998         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
50999         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51000         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51001         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51003 2011-05-19  Bruno Haible  <bruno@clisp.org>
51005         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51006         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51007         strerror_r() returned without filling the buffer.
51008         Reported by Eric Blake.
51010 2011-05-19  Eric Blake  <eblake@redhat.com>
51012         strerror_r: guarantee unchanged errno
51013         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51014         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51015         failure.
51016         * tests/test-strerror_r.c (main): Enhance test.
51018 2011-05-19  Bruno Haible  <bruno@clisp.org>
51020         strerror_r: Reorder #if blocks.
51021         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51022         for consistency with the previous commit.
51024 2011-05-19  Bruno Haible  <bruno@clisp.org>
51026         perror: Avoid clobbering the strerror buffer when possible.
51027         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51028         * lib/strerror.c: Include it.
51029         * modules/strerror (Files): Add lib/strerror-impl.h.
51030         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51031         (my_strerror): New function, defined through lib/strerror-impl.h.
51032         (perror): Use it instead of strerror.
51033         * modules/perror (Files): Add lib/strerror-impl.h.
51034         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51036 2011-05-19  Eric Blake  <eblake@redhat.com>
51038         strerror_r: fix on newer cygwin
51039         * lib/strerror_r.c (strerror_r): Cygwin now has
51040         __xpg_strerror_r, use it.
51042 2011-05-19  Bruno Haible  <bruno@clisp.org>
51044         strerror_r: Avoid clobbering the strerror buffer when possible.
51045         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51046         (sys_nerr, sys_errlist): New declarations.
51047         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51048         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51049         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51051 2011-05-19  Bruno Haible  <bruno@clisp.org>
51053         strerror_r: Fix test failure on mingw.
51054         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51055         EXTEND_STRERROR_R.
51056         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51057         macros from errno.in.h instead.
51059 2011-05-19  Eric Blake  <eblake@redhat.com>
51061         strerror: relax test for Solaris
51062         * tests/test-strerror.c (main): Permit Solaris behavior.
51063         * tests/test-strerror_r.c (main): Likewise.
51065         strerror: enforce POSIX ruling on strerror(0)
51066         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51067         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51068         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51069         * doc/posix-functions/strerror.texi (strerror): Document it.
51070         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51071         * tests/test-strerror.c (main): Strengthen test.
51072         * tests/test-strerror_r.c (main): Likewise.
51074 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51076         intprop-tests: port to older and more-pedantic compilers
51077         * modules/intprops-tests (Files): Add tests/macros.h.
51078         * tests/test-intprops.c: Include macros.h.
51079         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51080         it's no longer documented to expand to an integer constant expression.
51081         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51082         argument is floating point, as it's no longer documented to expand
51083         to an integer constant expression in that case.
51084         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51085         compiler bugs reported by Bruno Haible.  See
51086         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51087         (U0, U1): New constants, to work around the same bugs.  Also,
51088         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51090         intprops: work around C compiler bugs
51091         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51092         bug in Sun C 5.11 2010/08/13 and other compilers; see
51093         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51095         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51096         * doc/intprops.texi (Integer Type Determination): Fix
51097         documentation for TYPE_IS_INTEGER: it returns an constant
51098         expression, not an integer constant expression.  Fix doc for
51099         TYPE_SIGNED: it returns an integer constant expression only if its
51100         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51101         hardly worth documented that way....)
51103 2011-05-18  Bruno Haible  <bruno@clisp.org>
51105         strerror_r: Avoid clobbering the strerror buffer when possible.
51106         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51107         Handle gnulib defined errno values here. When strerror() returns NULL
51108         or an empty string, return EINVAL.
51109         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51110         gnulib defined errno values here.
51111         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51113 2011-05-18  Eric Blake  <eblake@redhat.com>
51115         fnmatch: avoid compiler warning
51116         * lib/fnmatch_loop.c (FCT): Use correct type.
51117         Reported by Matthias Bolte.
51119 2011-05-13  Jim Meyering  <meyering@redhat.com>
51121         maint.mk: three new prohibit_<HDR>_without_use rules
51122         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51123         (sc_prohibit_stdio-safer_without_use): Likewise.
51124         (sc_prohibit_xfreopen_without_use): Likewise.
51126 2011-05-17  Jim Meyering  <meyering@redhat.com>
51128         announce-gen: fail if the NEWS delta is empty
51129         If there's nothing noteworthy in NEWS, then either you forgot
51130         or you shouldn't be releasing.
51131         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51133 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51135         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51136         reserved symbols starting with double underscore from the check.
51138 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51140         intprops: add doc
51141         * doc/intprops.texi: New file, documenting intprops.
51142         * doc/gnulib.texi (Particular Modules): Include it.
51144         verify: add doc to gnulib manual and fix example
51145         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51146         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51147         (Compile-time Assertions): Fix example so it can't overflow.
51149 2011-05-17  Jim Meyering  <meyering@redhat.com>
51151         warnings.m4: don't usurp save_CPPFLAGS variable name
51152         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51154         doc: fix typo
51155         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51157 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51158             Bruno Haible  <bruno@clisp.org>
51160         doc: Tweak recent change.
51161         * README (Portability guidelines): Tweak new text.
51162         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51163         Interix 6.1.
51165 2011-05-16  Eric Blake  <eblake@redhat.com>
51167         inttypes: avoid autoconf warning
51168         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51169         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51171 2011-05-16  Sam Steingold  <sds@gnu.org>
51172         and Eric Blake  <eblake@redhat.com>
51174         vc-list-files: accept multiple directory operands
51175         * build-aux/vc-list-files: Iterate over all remaining operands.
51177 2011-05-16  Bruno Haible  <bruno@clisp.org>
51179         Fix confusion regarding deprecated modules.
51180         * modules/calloc (Status, Notice): Mark module as deprecated, not
51181         obsolete.
51182         * modules/fnmatch-posix (Status, Notice): Likewise.
51183         * modules/getdate (Status, Notice): Likewise.
51184         * modules/getopt (Status, Notice): Likewise.
51185         * modules/malloc (Status, Notice): Likewise.
51186         * modules/pipe (Status, Notice): Likewise.
51187         * modules/realloc (Status, Notice): Likewise.
51188         * modules/rename-dest-slash (Status, Notice): Likewise.
51189         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51190         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51191         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51192         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51193         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51195 2011-05-16  Bruno Haible  <bruno@clisp.org>
51197         doc: List the target platforms.
51198         * doc/gnulib-intro.texi (Target Platforms): New section.
51199         * doc/gnulib.texi (Introduction): Update menu.
51200         * README (Portability guidelines): Refer to the new section. Update
51201         statement about oldest supported environment. Remove rationale why
51202         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51203         unportable C89 function.
51204         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51205         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51207 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51209         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51211 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51213         intprops-tests: new module
51214         * modules/intprops-tests, tests/test-intprops.c: New files.
51216         intprops: add safe, portable integer overflow checking
51217         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51218         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51219         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51220         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51221         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51222         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51223         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51224         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51225         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51226         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51227         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51229 2011-05-12  James Youngman  <jay@gnu.org>
51231         Add a test for glibc's Bugzilla bug #12378.
51232         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51233         doesn't allow the literal matching of a lone "[" (which is
51234         required by POSIX).
51235         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51237 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51239         Sync glibc change fixing Bugzilla bug #12378.
51240         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51241         beginning and fall back to matching as normal character if the
51242         string ends before the matching ']' is found.  This is what POSIX
51243         requires.
51245 2011-05-13  Eric Blake  <eblake@redhat.com>
51247         getcwd-lgpl: relax test for FreeBSD
51248         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51249         issue.
51250         * tests/test-getcwd-lgpl.c (main): Relax test.
51251         Reported by Matthias Bolte.
51253 2011-05-11  Eric Blake  <eblake@redhat.com>
51255         test-fflush: silence compiler warning
51256         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51258 2011-05-11  Bruno Haible  <bruno@clisp.org>
51260         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51261         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51262         * modules/canonicalize (Depends-on): Add 'nocrash'.
51263         * modules/canonicalize-lgpl (Depends-on): Likewise.
51264         * doc/posix-functions/realpath.texi: Update platforms list.
51265         Reported by Ryan Schmidt <ryandesign@macports.org>.
51267 2011-05-11  Bruno Haible  <bruno@clisp.org>
51269         group-member: Declare function in <unistd.h>.
51270         * lib/unistd.in.h (group_member): New declaration.
51271         * lib/group-member.h: Remove file.
51272         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51273         * tests/test-unistd-c++.cc: Check signature of group_member.
51274         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51275         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51276         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51277         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51278         HAVE_GROUP_MEMBER.
51279         * modules/group-member (Files): Remove lib/group-member.h.
51280         (Depends-on): Add unistd. Specify conditions.
51281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51282         (Include): Change to <unistd.h>.
51283         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51284         HAVE_GROUP_MEMBER.
51285         * NEWS: Mention the change.
51286         * lib/euidaccess.c: Don't include group-member.h.
51288 2011-05-11  Bruno Haible  <bruno@clisp.org>
51290         group-member: Document module.
51291         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51292         module.
51294 2011-05-11  Bruno Haible  <bruno@clisp.org>
51296         fclose: Fix mistake earlier today.
51297         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51299 2011-05-11  Eric Blake  <eblake@redhat.com>
51301         fclose: preserve fflush errors
51302         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51303         Reported by Jim Meyering.
51305         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51306         * build-aux/bootstrap (check_versions): When no specific version
51307         is required, merely check that the app produces an exit status
51308         that indicates its existence.
51310         maint.mk: drop redundant check
51311         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51312         the same but better.
51314 2011-05-11  Bruno Haible  <bruno@clisp.org>
51316         fclose: Fix possible link error.
51317         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51318         unregister_shadow_fd. Improve comments.
51319         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51320         Eric Blake.
51322 2011-05-11  Jim Meyering  <meyering@redhat.com>
51324         maint.mk: improve "can not" detection and generalize rule name
51325         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51326         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51327         Use the same technique as in sc_prohibit_doubled_word, so that
51328         we recognize "can not" also when the words are separated by a newline.
51329         Suggested by Eric Blake.
51330         (perl_filename_lineno_text_): Define.  Factored out of...
51331         (prohibit_doubled_word_): ...here.  Use the new definition.
51332         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51333         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51334         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51336 2011-05-10  Eric Blake  <eblake@redhat.com>
51338         fclose: avoid double close race when possible
51339         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51340         all but WINDOWS_SOCKETS.
51342 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51344         openat: correct new comment
51345         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51347 2011-05-10  Jim Meyering  <meyering@redhat.com>
51349         openat: add comments
51350         * lib/openat-proc.c (openat_proc_name): Add comments,
51351         mostly from Eric Blake.
51353 2011-05-09  Eric Blake  <eblake@redhat.com>
51355         openat: reduce syscalls in first probe of /proc
51356         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51357         be a directory.  Simplify the probe for .. bugs.
51358         * modules/openat (Depends-on): Drop same-inode.
51359         Reported by Bastien ROUCARIES.
51361 2011-05-09  Jim Meyering  <meyering@redhat.com>
51363         maint.mk: change semantics/name of tight_scope variables
51364         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51365         Rename variables to align with semantics that make them more useful.
51367         maint.mk: tweak new rule's name not to impinge
51368         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51369         (sc_tight_scope): Use new rule name rather than $@-0.
51371         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51372         * top/maint.mk (sc_tight_scope): New rule.
51373         (sc_tight_scope-0): New rule, ifdef'd out.
51374         (_gl_TS_dir): Default.
51375         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51376         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51378 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51380         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51381         Haible <bruno@clisp.org>.
51383 2011-05-08  Bruno Haible  <bruno@clisp.org>
51385         Comments.
51386         * m4/isnanf.m4: Add comment.
51387         * m4/isnanl.m4: Likewise.
51389 2011-05-08  Bruno Haible  <bruno@clisp.org>
51391         glob: Remove obsolete macro.
51392         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51394 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51396         intprops: Sun C 5.11 supports __typeof__
51397         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51398         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51399         which is new.
51400         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51402         intprops: switch to usual gnulib indenting and naming
51403         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51404         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51406         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51408 2011-05-08  Jim Meyering  <meyering@redhat.com>
51410         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51411         * top/maint.mk (release-prep): Use make's --no-print-directory
51412         option when generating the announcement.  This eliminates the
51413         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51414         generated announcement template.
51416 2011-05-08  Bruno Haible  <bruno@clisp.org>
51418         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51419         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51420         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51422 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51424         ignore-value, verify: Omit include files from lib_SOURCES.
51425         * modules/ignore-value, modules/verify (Makefile.am):
51426         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51427         that leads Automake to duplicate use of am__objects_... variables
51428         in Makefile.in.  See
51429         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51431 2011-05-07  Bruno Haible  <bruno@clisp.org>
51433         fclose: Simplify autoconf macro.
51434         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51435         defined.
51437 2011-05-07  Bruno Haible  <bruno@clisp.org>
51439         canonicalize-lgpl: Fix autoconf macro ordering bug.
51440         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51441         gl_STDLIB_H_DEFAULTS.
51443 2011-05-06  Eric Blake  <eblake@redhat.com>
51445         maintainer-makefile: make sc_po_check easier to tune
51446         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51447         to probe for strings, such as an alternate location for gnulib.
51449         fclose: guarantee behavior on seekable stdin
51450         * modules/fclose (Depends-on): Add fflush.
51451         * doc/posix-functions/fclose.texi (fclose): Document this.
51452         * tests/test-fclose.c (main): Make test for this unconditional.
51454 2011-05-06  Bruno Haible  <bruno@clisp.org>
51456         fflush, fpurge: Relicense under LGPLv2+.
51457         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51458         * modules/fpurge (License): Likewise.
51459         With permission from Eric Blake and Jim Meyering.
51460         Suggested by Eric Blake.
51462 2011-05-06  Karl Berry  <karl@gnu.org>
51464         * MODULES.html.sh (func_all_modules): remove exit.
51466 2011-05-06  Jim Meyering  <meyering@redhat.com>
51468         maint.mk: use info-gnu@ as the default only for a stable release
51469         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51470         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51471         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51474 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51476         assert-h: new module, which supports C1X-style static_assert
51477         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51478         * lib/verify.h: Revamp so that this can be copied into assert.h,
51479         while retaining the ability to use it standalone as before.
51480         Rename private identifiers so as not to encroach on the
51481         standard C namespace, since this is now used by assert.h.
51482         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51483         the old verify_true.
51484         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51485         the old verify_true.  Use _GL_VERIFY_TYPE.
51486         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51487         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51488         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51489         defined when this file is copied into the replacement assert.h.
51490         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51491         and _Static_assert is not built in.
51492         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51493         defined, and use the new macros mentioned above.
51494         * doc/posix-headers/assert.texi: Document this.
51496 2011-05-05  Bruno Haible  <bruno@clisp.org>
51498         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51499         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51500         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51501         gl_REPLACE_FCLOSE here.
51502         * modules/fflush (Depends-on): Remove fclose.
51503         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51504         combination with module 'fclose'.
51506 2011-05-05  Bruno Haible  <bruno@clisp.org>
51508         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51509         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51510         gl_FUNC_FFLUSH.
51511         (gl_FUNC_FFLUSH): Use it.
51512         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51513         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51514         gl_REPLACE_FSEEKO here.
51516 2011-05-05  Bruno Haible  <bruno@clisp.org>
51518         tzset: Relicense under LGPL.
51519         * modules/tzset (License): Change to LGPL.
51520         No agreement needed; it's a no-op.
51522         strtoimax, strtoumax: Relicense under LGPL.
51523         * modules/strtoimax (License): Change to LGPL.
51524         * modules/strtoumax (License): Likewise.
51525         With permission from Jim Meyering, Paul Eggert:
51526         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51527         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51529         getgroups: Relicense under LGPL.
51530         * modules/getgroups (License): Change to LGPL.
51531         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51532         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51533         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51534         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51536         nanosleep: Relicense under LGPL.
51537         * modules/nanosleep (License): Change to LGPL.
51538         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51539         Haible:
51540         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51541         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51542         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51543         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51545         futimens: Relicense under LGPL.
51546         * modules/futimens (License): Change to LGPL.
51547         With permission from Eric Blake:
51548         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51550         fflush: Relicense under LGPL.
51551         * modules/fflush (License): Change to LGPL.
51552         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51553         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51554         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51555         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51557         tmpfile: Relicense under LGPL.
51558         * modules/tmpfile (License): Change to LGPL.
51559         With permission from Ben Pfaff:
51560         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51562         isfinite: Relicense under LGPL.
51563         * modules/isfinite (License): Change to LGPL.
51564         With permission from Ben Pfaff, Bruno Haible:
51565         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51566         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51568         acosl..tanl: Relicense under LGPL.
51569         * modules/acosl (License): Change to LGPL.
51570         * modules/asinl (License): Likewise.
51571         * modules/atanl (License): Likewise.
51572         * modules/cosl (License): Likewise.
51573         * modules/expl (License): Likewise.
51574         * modules/logl (License): Likewise.
51575         * modules/sinl (License): Likewise.
51576         * modules/sqrtl (License): Likewise.
51577         * modules/tanl (License): Likewise.
51578         Source code originally from glibc and Paolo Bonzini. Agreements:
51579         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51580         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51582 2011-05-05  Bruno Haible  <bruno@clisp.org>
51584         signal: Define sighandler_t.
51585         * lib/signal.in.h (sighandler_t): New type.
51586         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
51587         whether sighandler_t is defined.
51588         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
51589         * modules/signal (Depends-on): Add extensions.
51590         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
51591         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
51592         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
51594 2011-05-05  Eric Blake  <eblake@redhat.com>
51596         maint: remove useless REPLACE_*_H macros
51597         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
51598         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51599         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51600         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
51601         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51602         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51603         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
51604         * m4/btowc.m4: Update callers.
51605         * m4/dirfd.m4: Likewise.
51606         * m4/duplocale.m4: Likewise.
51607         * m4/fchdir.m4: Likewise.
51608         * m4/fdopendir.m4: Likewise.
51609         * m4/inet_ntop.m4: Likewise.
51610         * m4/inet_pton.m4: Likewise.
51611         * m4/ioctl.m4: Likewise.
51612         * m4/mbrlen.m4: Likewise.
51613         * m4/mbrtowc.m4: Likewise.
51614         * m4/mbsinit.m4: Likewise.
51615         * m4/mbsnrtowcs.m4: Likewise.
51616         * m4/mbsrtowcs.m4: Likewise.
51617         * m4/poll.m4: Likewise.
51618         * m4/setlocale.m4: Likewise.
51619         * m4/wcrtomb.m4: Likewise.
51620         * m4/wcsnrtombs.m4: Likewise.
51621         * m4/wcsrtombs.m4: Likewise.
51622         * m4/wctob.m4: Likewise.
51623         * m4/wcwidth.m4: Likewise.
51624         * modules/posix_spawn: Likewise.
51625         * modules/posix_spawn_file_actions_addclose: Likewise.
51626         * modules/posix_spawn_file_actions_adddup2: Likewise.
51627         * modules/posix_spawn_file_actions_addopen: Likewise.
51628         * modules/posix_spawn_file_actions_destroy: Likewise.
51629         * modules/posix_spawn_file_actions_init: Likewise.
51630         * modules/posix_spawnattr_destroy: Likewise.
51631         * modules/posix_spawnattr_getflags: Likewise.
51632         * modules/posix_spawnattr_getpgroup: Likewise.
51633         * modules/posix_spawnattr_getschedparam: Likewise.
51634         * modules/posix_spawnattr_getschedpolicy: Likewise.
51635         * modules/posix_spawnattr_getsigdefault: Likewise.
51636         * modules/posix_spawnattr_getsigmask: Likewise.
51637         * modules/posix_spawnattr_init: Likewise.
51638         * modules/posix_spawnattr_setflags: Likewise.
51639         * modules/posix_spawnattr_setpgroup: Likewise.
51640         * modules/posix_spawnattr_setschedparam: Likewise.
51641         * modules/posix_spawnattr_setschedpolicy: Likewise.
51642         * modules/posix_spawnattr_setsigdefault: Likewise.
51643         * modules/posix_spawnattr_setsigmask: Likewise.
51644         * modules/posix_spawnp: Likewise.
51646 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
51648         Add option to do-release-commit-and-tag to specify branch.
51649         * build-aux/do-release-commit-and-tag: Add --branch.
51651 2011-05-03  Bruno Haible  <bruno@clisp.org>
51653         Avoid unnecessary compilation units, through conditional dependencies.
51654         * modules/accept (Depends-on): Add conditions to the dependencies.
51655         * modules/acosl (Depends-on): Likewise.
51656         * modules/argz (Depends-on): Likewise.
51657         * modules/asinl (Depends-on): Likewise.
51658         * modules/atanl (Depends-on): Likewise.
51659         * modules/atoll (Depends-on): Likewise.
51660         * modules/bind (Depends-on): Likewise.
51661         * modules/btowc (Depends-on): Likewise.
51662         * modules/canonicalize-lgpl (Depends-on): Likewise.
51663         * modules/ceil (Depends-on): Likewise.
51664         * modules/ceilf (Depends-on): Likewise.
51665         * modules/ceill (Depends-on): Likewise.
51666         * modules/chdir-long (Depends-on): Likewise.
51667         * modules/chown (Depends-on): Likewise.
51668         * modules/close (Depends-on): Likewise.
51669         * modules/connect (Depends-on): Likewise.
51670         * modules/cosl (Depends-on): Likewise.
51671         * modules/dirfd (Depends-on): Likewise.
51672         * modules/dprintf (Depends-on): Likewise.
51673         * modules/dprintf-posix (Depends-on): Likewise.
51674         * modules/error (Depends-on): Likewise.
51675         * modules/euidaccess (Depends-on): Likewise.
51676         * modules/expl (Depends-on): Likewise.
51677         * modules/faccessat (Depends-on): Likewise.
51678         * modules/fchdir (Depends-on): Likewise.
51679         * modules/fclose (Depends-on): Likewise.
51680         * modules/fcntl (Depends-on): Likewise.
51681         * modules/fdopendir (Depends-on): Likewise.
51682         * modules/fflush (Depends-on): Likewise.
51683         * modules/floor (Depends-on): Likewise.
51684         * modules/floorf (Depends-on): Likewise.
51685         * modules/floorl (Depends-on): Likewise.
51686         * modules/fnmatch (Depends-on): Likewise.
51687         * modules/fopen (Depends-on): Likewise.
51688         * modules/fprintf-posix (Depends-on): Likewise.
51689         * modules/frexp (Depends-on): Likewise.
51690         * modules/frexp-nolibm (Depends-on): Likewise.
51691         * modules/frexpl (Depends-on): Likewise.
51692         * modules/frexpl-nolibm (Depends-on): Likewise.
51693         * modules/fseek (Depends-on): Likewise.
51694         * modules/fsusage (Depends-on): Likewise.
51695         * modules/ftell (Depends-on): Likewise.
51696         * modules/ftello (Depends-on): Likewise.
51697         * modules/futimens (Depends-on): Likewise.
51698         * modules/getcwd (Depends-on): Likewise.
51699         * modules/getcwd-lgpl (Depends-on): Likewise.
51700         * modules/getdelim (Depends-on): Likewise.
51701         * modules/getdomainname (Depends-on): Likewise.
51702         * modules/getgroups (Depends-on): Likewise.
51703         * modules/gethostname (Depends-on): Likewise.
51704         * modules/getline (Depends-on): Likewise.
51705         * modules/getlogin_r (Depends-on): Likewise.
51706         * modules/getopt-posix (Depends-on): Likewise.
51707         * modules/getpeername (Depends-on): Likewise.
51708         * modules/getsockname (Depends-on): Likewise.
51709         * modules/getsockopt (Depends-on): Likewise.
51710         * modules/getsubopt (Depends-on): Likewise.
51711         * modules/getusershell (Depends-on): Likewise.
51712         * modules/glob (Depends-on): Likewise.
51713         * modules/grantpt (Depends-on): Likewise.
51714         * modules/iconv_open (Depends-on): Likewise.
51715         * modules/iconv_open-utf (Depends-on): Likewise.
51716         * modules/inet_ntop (Depends-on): Likewise.
51717         * modules/inet_pton (Depends-on): Likewise.
51718         * modules/ioctl (Depends-on): Likewise.
51719         * modules/isapipe (Depends-on): Likewise.
51720         * modules/isfinite (Depends-on): Likewise.
51721         * modules/isinf (Depends-on): Likewise.
51722         * modules/lchown (Depends-on): Likewise.
51723         * modules/ldexpl (Depends-on): Likewise.
51724         * modules/link (Depends-on): Likewise.
51725         * modules/linkat (Depends-on): Likewise.
51726         * modules/listen (Depends-on): Likewise.
51727         * modules/logl (Depends-on): Likewise.
51728         * modules/lstat (Depends-on): Likewise.
51729         * modules/mbrlen (Depends-on): Likewise.
51730         * modules/mbrtowc (Depends-on): Likewise.
51731         * modules/mbsinit (Depends-on): Likewise.
51732         * modules/mbsnrtowcs (Depends-on): Likewise.
51733         * modules/mbsrtowcs (Depends-on): Likewise.
51734         * modules/mbtowc (Depends-on): Likewise.
51735         * modules/memcmp (Depends-on): Likewise.
51736         * modules/mkdir (Depends-on): Likewise.
51737         * modules/mkdtemp (Depends-on): Likewise.
51738         * modules/mkfifo (Depends-on): Likewise.
51739         * modules/mkfifoat (Depends-on): Likewise.
51740         * modules/mknod (Depends-on): Likewise.
51741         * modules/mkostemp (Depends-on): Likewise.
51742         * modules/mkostemps (Depends-on): Likewise.
51743         * modules/mkstemp (Depends-on): Likewise.
51744         * modules/mkstemps (Depends-on): Likewise.
51745         * modules/mktime (Depends-on): Likewise.
51746         * modules/nanosleep (Depends-on): Likewise.
51747         * modules/open (Depends-on): Likewise.
51748         * modules/openat (Depends-on): Likewise.
51749         * modules/perror (Depends-on): Likewise.
51750         * modules/poll (Depends-on): Likewise.
51751         * modules/popen (Depends-on): Likewise.
51752         * modules/posix_spawn (Depends-on): Likewise.
51753         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
51754         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51755         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51756         * modules/posix_spawnp (Depends-on): Likewise.
51757         * modules/pread (Depends-on): Likewise.
51758         * modules/printf-posix (Depends-on): Likewise.
51759         * modules/ptsname (Depends-on): Likewise.
51760         * modules/putenv (Depends-on): Likewise.
51761         * modules/pwrite (Depends-on): Likewise.
51762         * modules/readline (Depends-on): Likewise.
51763         * modules/readlink (Depends-on): Likewise.
51764         * modules/readlinkat (Depends-on): Likewise.
51765         * modules/recv (Depends-on): Likewise.
51766         * modules/recvfrom (Depends-on): Likewise.
51767         * modules/regex (Depends-on): Likewise.
51768         * modules/remove (Depends-on): Likewise.
51769         * modules/rename (Depends-on): Likewise.
51770         * modules/renameat (Depends-on): Likewise.
51771         * modules/rmdir (Depends-on): Likewise.
51772         * modules/round (Depends-on): Likewise.
51773         * modules/roundf (Depends-on): Likewise.
51774         * modules/roundl (Depends-on): Likewise.
51775         * modules/rpmatch (Depends-on): Likewise.
51776         * modules/select (Depends-on): Likewise.
51777         * modules/send (Depends-on): Likewise.
51778         * modules/sendto (Depends-on): Likewise.
51779         * modules/setenv (Depends-on): Likewise.
51780         * modules/setlocale (Depends-on): Likewise.
51781         * modules/setsockopt (Depends-on): Likewise.
51782         * modules/shutdown (Depends-on): Likewise.
51783         * modules/sigaction (Depends-on): Likewise.
51784         * modules/signbit (Depends-on): Likewise.
51785         * modules/sigprocmask (Depends-on): Likewise.
51786         * modules/sinl (Depends-on): Likewise.
51787         * modules/sleep (Depends-on): Likewise.
51788         * modules/snprintf (Depends-on): Likewise.
51789         * modules/snprintf-posix (Depends-on): Likewise.
51790         * modules/socket (Depends-on): Likewise.
51791         * modules/sprintf-posix (Depends-on): Likewise.
51792         * modules/sqrtl (Depends-on): Likewise.
51793         * modules/stat (Depends-on): Likewise.
51794         * modules/strchrnul (Depends-on): Likewise.
51795         * modules/strdup-posix (Depends-on): Likewise.
51796         * modules/strerror (Depends-on): Likewise.
51797         * modules/strerror_r-posix (Depends-on): Likewise.
51798         * modules/strndup (Depends-on): Likewise.
51799         * modules/strnlen (Depends-on): Likewise.
51800         * modules/strptime (Depends-on): Likewise.
51801         * modules/strsep (Depends-on): Likewise.
51802         * modules/strsignal (Depends-on): Likewise.
51803         * modules/strstr-simple (Depends-on): Likewise.
51804         * modules/strtod (Depends-on): Likewise.
51805         * modules/strtoimax (Depends-on): Likewise.
51806         * modules/strtok_r (Depends-on): Likewise.
51807         * modules/strtoumax (Depends-on): Likewise.
51808         * modules/symlink (Depends-on): Likewise.
51809         * modules/symlinkat (Depends-on): Likewise.
51810         * modules/tanl (Depends-on): Likewise.
51811         * modules/tcgetsid (Depends-on): Likewise.
51812         * modules/tmpfile (Depends-on): Likewise.
51813         * modules/trunc (Depends-on): Likewise.
51814         * modules/truncf (Depends-on): Likewise.
51815         * modules/truncl (Depends-on): Likewise.
51816         * modules/uname (Depends-on): Likewise.
51817         * modules/unlink (Depends-on): Likewise.
51818         * modules/unlockpt (Depends-on): Likewise.
51819         * modules/unsetenv (Depends-on): Likewise.
51820         * modules/usleep (Depends-on): Likewise.
51821         * modules/utimensat (Depends-on): Likewise.
51822         * modules/vasprintf (Depends-on): Likewise.
51823         * modules/vdprintf (Depends-on): Likewise.
51824         * modules/vdprintf-posix (Depends-on): Likewise.
51825         * modules/vfprintf-posix (Depends-on): Likewise.
51826         * modules/vprintf-posix (Depends-on): Likewise.
51827         * modules/vsnprintf (Depends-on): Likewise.
51828         * modules/vsnprintf-posix (Depends-on): Likewise.
51829         * modules/vsprintf-posix (Depends-on): Likewise.
51830         * modules/wcrtomb (Depends-on): Likewise.
51831         * modules/wcscasecmp (Depends-on): Likewise.
51832         * modules/wcscspn (Depends-on): Likewise.
51833         * modules/wcsdup (Depends-on): Likewise.
51834         * modules/wcsncasecmp (Depends-on): Likewise.
51835         * modules/wcsnrtombs (Depends-on): Likewise.
51836         * modules/wcspbrk (Depends-on): Likewise.
51837         * modules/wcsrtombs (Depends-on): Likewise.
51838         * modules/wcsspn (Depends-on): Likewise.
51839         * modules/wcsstr (Depends-on): Likewise.
51840         * modules/wcstok (Depends-on): Likewise.
51841         * modules/wcswidth (Depends-on): Likewise.
51842         * modules/wctob (Depends-on): Likewise.
51843         * modules/wctomb (Depends-on): Likewise.
51844         * modules/wctype (Depends-on): Likewise.
51845         * modules/wcwidth (Depends-on): Likewise.
51846         * modules/write (Depends-on): Likewise.
51848 2011-05-03  Bruno Haible  <bruno@clisp.org>
51850         Support for conditional dependencies.
51851         * doc/gnulib.texi (Module description): Document the syntax of
51852         conditional dependencies.
51853         * gnulib-tool: New option --conditional-dependencies.
51854         (func_usage): Document it.
51855         (cond_dependencies): New variable.
51856         (func_get_automake_snippet_conditional,
51857         func_get_automake_snippet_unconditional): New functions, extracted from
51858         func_get_automake_snippet.
51859         (func_get_automake_snippet): Use them.
51860         (sed_first_32_chars): New variable.
51861         (func_module_shellfunc_name): New function.
51862         (func_module_shellvar_name): New function.
51863         (func_module_conditional_name): New function.
51864         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
51865         func_cond_module_condition): New functions.
51866         (func_modules_transitive_closure): Add support for conditional
51867         dependencies.
51868         (func_emit_lib_Makefile_am): For a conditional module, enclose the
51869         conditional automake snippet in an automake conditional.
51870         (func_emit_autoconf_snippets): Emit shell functions that contain the
51871         code for conditional modules.
51872         (func_import, func_create_testdir): Update specification.
51874 2011-05-03  Eric Blake  <eblake@redhat.com>
51876         test-getaddrinfo: report error information
51877         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
51879 2011-05-03  Jim Meyering  <meyering@redhat.com>
51881         bootstrap: avoid build failure when $GZIP is set
51882         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
51883         program name.  If defined at all, it is supposed to list gzip options.
51884         Reported by Alan Curry in http://debbugs.gnu.org/8609
51886 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
51888         readme-release: new module with release instructions
51889         * modules/readme-release: New module.
51890         * top/README-release: New file, from coreutils, grep, diffutils.
51891         * MODULES.html.sh (Support for maintaining and releasing): Add it.
51893 2011-05-02  Eric Blake  <eblake@redhat.com>
51895         fflush: also replace fclose when fixing fflush
51896         * modules/fflush (Depends-on): Add fclose.
51897         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
51898         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
51899         memstreams with no backing fd.
51900         * doc/posix-functions/fclose.texi (fclose): Document the use of
51901         fflush module to fix the bug.
51902         * tests/test-fclose.c (main): Relax test when fclose is used in
51903         isolation.
51905         fclose: add some tests
51906         * modules/fclose-tests: New test module.
51907         * tests/test-fclose.c: New file.
51908         * doc/posix-functions/fclose.texi (fclose): Document the bug.
51910         fclose: reduced dependencies
51911         * modules/fclose (Depends-on): Switch from fflush/fseeko to
51912         simpler lseek.
51913         * lib/fclose.c (rpl_fclose): Likewise.
51914         Reported by Simon Josefsson.
51916         exit: drop remaining clients
51917         * modules/argmatch (Depends-on): Replace exit with stdlib.
51918         * modules/copy-file (Depends-on): Likewise.
51919         * modules/execute (Depends-on): Likewise.
51920         * modules/exitfail (Depends-on): Likewise.
51921         * modules/obstack (Depends-on): Likewise.
51922         * modules/pagealign_alloc (Depends-on): Likewise.
51923         * modules/pipe-filter-gi (Depends-on): Likewise.
51924         * modules/pipe-filter-ii (Depends-on): Likewise.
51925         * modules/savewd (Depends-on): Likewise.
51926         * modules/spawn-pipe (Depends-on): Likewise.
51927         * modules/wait-process (Depends-on): Likewise.
51928         * modules/xsetenv (Depends-on): Likewise.
51929         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
51930         * modules/git-merge-changelog (Depends-on): Likewise.
51931         * modules/long-options (Depends-on): Likewise.
51932         * modules/pt_chown (Depends-on): Likewise.
51933         * modules/sysexits (Depends-on): Likewise.
51935         freading: relax license from LGPLv3+ to LGPLv2+
51936         * modules/freading (License): Relax LGPL version.
51938 2011-05-02  Bruno Haible  <bruno@clisp.org>
51940         fchdir: Remove unused dependencies.
51941         * modules/fchdir (Depends-on): Remove include_next.
51943 2011-05-02  Bruno Haible  <bruno@clisp.org>
51945         gnulib-tool: Refactor.
51946         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
51947         from func_emit_autoconf_snippets.
51948         (func_emit_autoconf_snippets): Use it.
51950 2011-05-02  Simon Josefsson  <simon@josefsson.org>
51952         * NEWS: Document removal of 'exit'.
51953         * modules/exit: Remove file.
51955 2011-05-01  Bruno Haible  <bruno@clisp.org>
51957         Update DEPENDENCIES.
51958         * DEPENDENCIES (gettext): Recommend the newest release.
51959         Reported by Simon Josefsson.
51961 2011-05-01  Bruno Haible  <bruno@clisp.org>
51963         gnulib-tool: Reduce code duplication.
51964         * gnulib-tool (func_emit_autoconf_snippets): New function.
51965         (func_import, func_create_testdir): Use it.
51967 2011-04-30  Eric Blake  <eblake@redhat.com>
51969         fclose: don't fail on non-seekable input stream
51970         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
51971         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
51972         since fflush is allowed to fail in that case.
51974 2011-04-30  Bruno Haible  <bruno@clisp.org>
51976         dup3: cleanup
51977         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
51979 2011-04-30  Bruno Haible  <bruno@clisp.org>
51981         netdb: Make it work in C++ mode.
51982         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
51983         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
51984         module.
51985         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
51986         gl_MODULE_INDICATOR_FOR_TESTS.
51987         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
51988         * modules/netdb-c++-tests: New file.
51989         * tests/test-netdb-c++.cc: New file.
51991 2011-04-30  Bruno Haible  <bruno@clisp.org>
51993         New modules 'vfscanf', 'vscanf'.
51994         * modules/vfscanf: New file.
51995         * modules/vscanf: New file.
51996         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
51997         here.
51998         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
51999         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52001 2011-04-30  Bruno Haible  <bruno@clisp.org>
52003         passfd: Add comments.
52004         * lib/passfd.c: Add comments about platforms.
52006 2011-04-30  Bruno Haible  <bruno@clisp.org>
52008         sys_uio: Make <sys/uio.h> self-contained.
52009         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52010         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52012 2011-04-30  Bruno Haible  <bruno@clisp.org>
52014         sys_socket: Ensure 'struct iovec' definition.
52015         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52016         <sys/socket.h>.
52017         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52019 2011-04-30  Bruno Haible  <bruno@clisp.org>
52021         sys_uio: Protect definition of 'struct iovec'.
52022         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52023         it as a C struct.
52025 2011-04-30  Bruno Haible  <bruno@clisp.org>
52027         manywarnings: fix indentation
52028         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52030 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52032         manywarnings: add -Wno-missing-field-initializers if needed.
52033         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52034         option if it's needed to allow initialization with { 0, }
52036 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52038         announce-gen: cosmetic improvement
52039         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52041 2011-04-29  Jim Meyering  <meyering@redhat.com>
52043         vc-list-files: indent with spaces, not TABs
52044         * build-aux/vc-list-files: Convert leading TABs to spaces,
52045         to match the style of most other files in gnulib.
52047         announce-gen: indent with spaces, not TABs
52048         * build-aux/announce-gen: Convert all TABs to spaces, to match
52049         the style of most other files in gnulib.
52051 2011-04-29  Eric Blake  <eblake@redhat.com>
52053         quotearg: avoid uninitialized variable use
52054         * lib/quotearg.c (quoting_options_from_style): Initialize
52055         remaining fields, and ensure that custom styles are only used via
52056         quoting_options rather than quoting_style.
52058 2011-04-29  Jim Meyering  <meyering@redhat.com>
52060         maint.mk: remove unused VC-tag variable
52061         * top/maint.mk (VC-tag): Remove unused variable.
52063 2011-04-29  Bruno Haible  <bruno@clisp.org>
52065         netdb: fix gai_strerror replacements
52066         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52067         * modules/netdb: Substitute it.
52069 2011-04-29  Jim Meyering  <meyering@redhat.com>
52071         test-getcwd.c: avoid new set-but-not-used warning
52072         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52073         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52074         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52075         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52077         test-hash.c: avoid a new shadowing warning
52078         * tests/test-hash.c (main): Don't shadow "dup".
52080 2011-04-28  Eric Blake  <eblake@redhat.com>
52082         getaddrinfo: fix gai_strerror signature
52083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52084         and work around mingw with UNICODE defined.
52085         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52086         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52087         * modules/netdb (Makefile.am): Substitute it.
52088         * lib/netdb.in.h (gai_strerror): Declare replacement.
52089         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52090         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52091         the fix.
52093         getsockopt: avoid compiler warning
52094         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52095         Reported by Matthias Bolte.
52097         tests: drop unused link dependency
52098         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52099         * modules/dirent-safer-tests (Makefile.am): Likewise.
52100         * modules/fdopendir-tests (Makefile.am): Likewise.
52101         * modules/mkfifoat-tests (Makefile.am): Likewise.
52102         * modules/openat-safer-tests (Makefile.am): Likewise.
52103         * modules/openat-tests (Makefile.am): Likewise.
52104         * modules/readlinkat-tests (Makefile.am): Likewise.
52105         * modules/symlinkat-tests (Makefile.am): Likewise.
52106         * modules/linkat-tests (Makefile.am): Likewise.
52107         (Depends-on): Switch to filenamecat-lgpl.
52108         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52109         LIBINTL.
52110         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52111         * tests/test-linkat.c (main): Don't require xalloc.
52113         hash, mgetgroups: drop xalloc dependency
52114         * lib/hash.c (includes): Adjust includes.
52115         * lib/mgetgroups.c (includes): Likewise.
52116         (xgetgroups): Move...
52117         * lib/xgetgroups.c: ...to new file.
52118         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52119         * modules/xgetgroups: New file, split from...
52120         * modules/mgetgroups: ...here.
52121         (Depends-on): Add xalloc-oversized.
52122         * modules/hash (Depends-on): Likewise.
52123         * modules/hash-tests (Depends-on): Drop xalloc.
52124         (test_hash_LDADD): Drop unused library.
52125         * tests/test-hash.c (main): Break xalloc dependency.
52126         (includes): Drop unused include.
52128         xalloc-oversized: new module
52129         * modules/xalloc-oversized: New module.
52130         * modules/xalloc (Depends-on): Add it.
52131         * lib/xalloc.h (xalloc_oversized): Move...
52132         * lib/xalloc-oversized.h: ...into new file.
52134         utimecmp: drop dependency on xmalloc
52135         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52136         due to memory pressure.
52137         * modules/utimecmp (Depends-on): Drop xalloc.
52139 2011-04-27  Eric Blake  <eblake@redhat.com>
52141         getcwd: fix mingw bugs
52142         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52143         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52144         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52146 2011-04-27  Bruno Haible  <bruno@clisp.org>
52148         mkstemps: Ensure declaration on MacOS X 10.5.
52149         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52150         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52151         MacOS X.
52153 2011-04-27  Bruno Haible  <bruno@clisp.org>
52155         mkstemp: More documentation.
52156         * doc/posix-functions/mkstemp.texi: Document header file problem on
52157         MacOS X.
52159 2011-04-27  Bruno Haible  <bruno@clisp.org>
52161         mkstemp: Tweak configure message when cross-compiling.
52162         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52163         result as a guess.
52165 2011-04-27  Bruno Haible  <bruno@clisp.org>
52167         clean-temp: Clarify what it does.
52168         * lib/clean-temp.h: Add more comments.
52169         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52170         module.
52171         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52172         * doc/glibc-functions/mkstemps.texi: Likewise.
52173         * doc/glibc-functions/mkostemps.texi: Likewise.
52175 2011-04-27  Eric Blake  <eblake@redhat.com>
52177         fchdir: avoid extra chdir and fix test
52178         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52179         getcwd-lgpl.
52180         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52181         have to be canonical.
52182         (canonicalize_file_name): Drop unused macro.
52183         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52185         filenamecat-lgpl: fix licence
52186         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52187         when it was first created.
52189         linkat, renameat: add missing dependency
52190         * modules/linkat (Depends-on): Require getcwd-lgpl.
52191         * modules/renameat (Depends-on): Likewise.
52193         tests: reduce dependencies
52194         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52195         * tests/test-renameat.c (main): Likewise.
52196         * modules/linkat-tests (Depends-on): Relax dependency.
52197         * modules/renameat-tests (Depends-on): Likewise.
52198         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52199         dependency explicit.
52201         save-cwd: reduce default dependency
52202         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52203         * lib/save-cwd.c: Update comments.
52204         * NEWS: Document the semantic change.
52206         getcwd: enhance tests
52207         * tests/test-getcwd-lgpl.c: New file, taken from...
52208         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52209         repeat long path stress tests from m4 probe.
52210         * modules/getcwd-lgpl-tests: New module.
52211         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52212         * m4/getcwd-abort-bug.m4: Update comment.
52213         * m4/getcwd-path-max.m4: Likewise.
52215         getcwd-lgpl: new module
52216         * modules/getcwd-lgpl: New module.
52217         * lib/getcwd-lgpl.c: New file.
52218         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52219         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52220         * modules/getcwd (configure.ac): Set C witness.
52221         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52223         getcwd: tweak comments
52224         * m4/getcwd-abort-bug.m4: Fix comments.
52225         * m4/getcwd-path-max.m4: Likewise.
52226         * m4/getcwd.m4: Likewise.
52228 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52229         and Eric Blake  <eblake@redhat.com>
52231         mkstemp: replace if system version uses wrong permissions
52232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52233         read/write mode bits set in file created by mkstemp.
52234         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52236 2011-04-27  Eric Blake  <eblake@redhat.com>
52238         passfd: avoid compiler warning
52239         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52240         Reported by Laine Stump.
52242 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52244         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52245         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52247 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52248         and Eric Blake  <eblake@redhat.com>
52250         mkstemp: mention clean-temp module
52251         * lib/mkstemp.c: Add comment.
52252         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52254 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52256         inttypes: also provide default values for 32-bit tests
52257         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52258         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52260 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52262         strtoumax: remove dependency on strtoimax
52263         This is like the strtoull change of yesterday.
52264         * modules/strtoumax (Files): Add lib/strtoimax.c.
52265         (Depends-on): Remove strtoimax and add verify.
52267         inttypes-incomplete: new module
52268         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52269         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52270         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52271         of gl_INTTYPES_H.
52272         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52273         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52274         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52275         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52276         * modules/strtoumax, modules/xstrtol (Depends-on):
52277         Depend on inttypes-incomplete, not inttypes.
52278         * modules/inttypes-incomplete: New module, containing the contents
52279         of the old modules/inttypes module, except that the Files: section
52280         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52281         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52282         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52283         (Depends-on): Depend only on inttypes-incomplete.
52284         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52286         inttypes: omit now-redundant strtoimax and strtoumax work
52287         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52288         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52290         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52291         This supports apps that need pointers to strtoimax and strtoumax,
52292         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52293         nonexistent functions.  See
52294         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52295         et seq.
52296         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52297         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52298         a macro.
52299         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52301 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52303         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52305 2011-04-25  Bruno Haible  <bruno@clisp.org>
52307         strtol, strtoul: Mark modules as obsolete.
52308         * modules/strtol (Status, Notice): New sections.
52309         * modules/strtoul (Status, Notice): New sections.
52311 2011-04-25  Bruno Haible  <bruno@clisp.org>
52313         strtod: Remove check for strtod, unless supporting old platforms.
52314         * modules/strtod-obsolete: New file.
52315         * m4/strtod-obsolete.m4: New file.
52316         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52317         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52318         * modules/strtod (Depends-on): Add strtod-obsolete.
52319         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52321 2011-04-25  Bruno Haible  <bruno@clisp.org>
52323         strcase: Make module obsolete.
52324         * modules/strcase (Status, Notice): New sections.
52326 2011-04-25  Bruno Haible  <bruno@clisp.org>
52328         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52329         * modules/dup2-obsolete: New file.
52330         * m4/dup2-obsolete.m4: New file.
52331         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52332         gl_FUNC_DUP2_OBSOLETE is not also defined.
52333         * modules/dup2 (Depends-on): Add dup2-obsolete.
52334         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52336 2011-04-25  Bruno Haible  <bruno@clisp.org>
52338         strnlen: Avoid memchr related link error on old obsolete platforms.
52339         * modules/memchr-obsolete: New file.
52340         * m4/memchr-obsolete.m4: New file.
52341         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52342         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52343         * modules/memchr (Depends-on): Add memchr-obsolete.
52344         * modules/strnlen (Depends-on): Likewise.
52345         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52347 2011-04-25  Jim Meyering  <meyering@redhat.com>
52349         maint.mk: makefile_at_at_check extend and clean up
52350         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52351         in addition to */Makefile.am.
52352         Exempt legitimate uses of @VAR@ notation, e.g.,
52353         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52354         Remove obsolete coreutils-specific comment.
52355         Prompted by discussion here:
52356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52358 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52360         strtoul: remove dependency on strtol
52361         This is so that 'configure' need not check for strtol merely because
52362         the application needs strtoul.
52363         * modules/strtoul (Files): Add lib/strtol.c.
52364         (Depends-on): Remove strtol.
52366         strtoull: remove dependency on strtoul
52367         This is like the strtoll change.
52368         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52369         (Depends-on): Remove strtoul.
52371         strtoll: remove dependency on strtol
52372         This is so that 'configure' need not check for strtol merely because
52373         the application needs strtoll.
52374         * modules/strtoll (Files): Add lib/strtol.c.
52375         (Depends-on): Remove strtol.
52377 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52379         inttypes: Move some configure check to module 'imaxdiv'.
52380         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52381         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52382         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52384 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52386         inttypes: Move some configure check to module 'imaxabs'.
52387         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52388         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52389         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52391 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52393         inttypes: Remove configure tests that are not needed since 2009-12-31.
52394         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52395         gl_cv_header_working_inttypes_h.
52397 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52399         * modules/strnlen (Depends-on): Remove memchr.
52400         The strnlen implementation doesn't need the memchr module's fixes; see
52401         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52403         strtol: remove dependency on wchar
52404         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52405         * modules/strtol (Depends-on): Remove wchar.
52407 2011-04-21  Eric Blake  <eblake@redhat.com>
52409         passfd: fix test regression on Linux
52410         * modules/passfd-tests (configure.ac): Correct socketpair check.
52412         passfd: speed up configure and drop unused code
52413         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52414         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52415         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52416         Instead of probing at configure for unix_scm_rights_bsd44_way,
52417         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52418         check to a struct member probe.
52419         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52420         (sendfd, recvfd): Update preprocessor checks.
52421         * modules/passfd (Files): Reflect rename, and drop unused file.
52422         (Depends-on): Drop unused dependency.
52424         passfd: allow compilation on mingw
52425         * modules/sys_socket (Depends-on): Add sys_uio.
52426         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52427         iovec and a minimal struct msghdr.
52428         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52429         * tests/test-sys_socket.c (main): Enhance test.
52430         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52431         guaranteed to provide what we need.
52432         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52433         * modules/passfd-tests (Depends-on): Add sys_wait.
52434         * tests/test-passfd.c (main): Skip test on mingw, for now.
52435         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52436         partial 'struct msghdr' implementation.
52438         sys_uio: new module
52439         * modules/sys_uio: New module.
52440         * modules/sys_uio-tests: Likewise.
52441         * lib/sys_uio.in.h: New file.
52442         * m4/sys_uio_h.m4: Likewise.
52443         * tests/test-sys_uio.c: Likewise.
52444         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52445         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52447 2011-04-20  Jim Meyering  <meyering@redhat.com>
52449         useless-if-before-free: avoid false-positive
52450         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52451         disjunct so that it too requires a terminating ";".  Without that,
52452         this script would identify as useless one statement from gcc that
52453         was not:
52454           if (aligned_ptr)
52455             free (((void **) aligned_ptr) [-1]);
52457 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52459         doc: update users.txt.
52460         * users.txt: Add barcode.
52462 2011-04-19  Bruno Haible  <bruno@clisp.org>
52464         ioctl: Remove link dependency on native Windows.
52465         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52466         (gl_close_fn, gl_ioctl_fn): New types.
52467         (struct fd_hook): Renamed from struct close_hook. Change type of
52468         private_close_fn field. Add private_ioctl_fn field.
52469         (close_hook_fn): Add parameter for primary close method.
52470         (execute_close_hooks, execute_all_close_hooks): Likewise.
52471         (ioctl_hook_fn): New type.
52472         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52473         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52474         argument.
52475         (unregister_fd_hook): Renamed from unregister_close_hook.
52476         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52477         Don't include <unistd.h>.
52478         (close): Remove undef.
52479         (anchor): Update.
52480         (execute_close_hooks): Add argument for primary close method.
52481         (execute_all_close_hooks): Likewise.
52482         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52483         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52484         argument. Allow each argument to be NULL.
52485         (unregister_fd_hook): Renamed from unregister_close_hook.
52486         * lib/close.c (rpl_close): Pass 'close' function pointer to
52487         execute_all_close_hooks.
52488         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52489         (primary_ioctl): New function.
52490         (ioctl): Don't call ioctlsocket here. Instead, call
52491         execute_all_ioctl_hooks.
52492         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52493         close method.
52494         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52495         (fd_sockets_hook): Renamed from close_sockets_hook.
52496         (gl_sockets_startup, gl_sockets_cleanup): Update.
52497         * modules/fd-hook: Renamed from modules/close-hook. Update.
52498         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52499         * modules/sockets (Depends-on): Likewise.
52500         * modules/ioctl (Depends-on): Add fd-hook.
52501         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52502         GNULIB_SOCKET.
52504 2011-04-19  Bruno Haible  <bruno@clisp.org>
52506         Move the support of O_NONBLOCK in open() to the 'open' module.
52507         * modules/nonblocking (Depends-on): Remove 'open'.
52508         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52509         gl_cv_have_open_O_NONBLOCK.
52510         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52511         O_NONBLOCK support.
52512         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52514 2011-04-17  Bruno Haible  <bruno@clisp.org>
52516         pipe2: Simplify code.
52517         * lib/pipe2.c (pipe2): Reduce code duplication.
52519 2011-04-17  Bruno Haible  <bruno@clisp.org>
52521         nonblocking: Add comment.
52522         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52524 2011-04-17  Bruno Haible  <bruno@clisp.org>
52526         nonblocking: Add tests for sockets.
52527         * tests/test-nonblocking-socket.sh: New file.
52528         * tests/test-nonblocking-socket-main.c: New file.
52529         * tests/test-nonblocking-socket-child.c: New file.
52530         * tests/test-nonblocking-socket.h: New file.
52531         * tests/socket-server.h: New file.
52532         * tests/socket-client.h: New file.
52533         * modules/nonblocking-socket-tests: New file.
52534         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52536 2011-04-17  Bruno Haible  <bruno@clisp.org>
52538         nonblocking: Add tests for pipes.
52539         * tests/test-nonblocking-pipe.sh: New file.
52540         * tests/test-nonblocking-pipe-main.c: New file.
52541         * tests/test-nonblocking-pipe-child.c: New file.
52542         * tests/test-nonblocking-pipe.h: New file.
52543         * tests/test-nonblocking-writer.h: New file.
52544         * tests/test-nonblocking-reader.h: New file.
52545         * tests/test-nonblocking-misc.h: New file.
52546         * modules/nonblocking-pipe-tests: New file.
52547         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52549 2011-04-16  Bruno Haible  <bruno@clisp.org>
52551         gettext: Clarify the needed programmer actions.
52552         * modules/gettext (Notice): New field.
52553         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52555 2011-04-16  Bruno Haible  <bruno@clisp.org>
52557         strchrnul: Tweak last commit.
52558         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52559         bug.
52560         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52561         as in _GL_FUNCDECL_SYS.
52562         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52563         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52565 2011-04-15  Eric Blake  <eblake@redhat.com>
52567         strchrnul: work around cygwin bug
52568         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52569         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52571         * modules/string (Makefile.am): Substitute it.
52572         * lib/string.in.h (strchrnul): Use it.
52574 2011-04-15  Bruno Haible  <bruno@clisp.org>
52576         Don't require lib/stdio-write.c when only module 'stdio' is used.
52577         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52578         invocation.
52579         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52581 2011-04-14  Bruno Haible  <bruno@clisp.org>
52583         Support non-blocking pipe I/O in read() on native Windows.
52584         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52585         (read): New declaration.
52586         * lib/read.c: New file.
52587         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
52588         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
52589         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
52590         vscanf): New declarations.
52591         * lib/stdio-read.c: New file.
52592         * m4/read.m4: New file.
52593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
52594         REPLACE_READ.
52595         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
52596         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52597         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
52598         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
52599         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
52600         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52601         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52602         * modules/read: New file.
52603         * modules/nonblocking (Files): Add lib/stdio-read.c.
52604         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
52605         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
52606         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52607         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52608         * modules/pread (Depends-on): Add read.
52609         * modules/safe-read (Depends-on): Likewise.
52610         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
52611         gets, scanf, vfscanf, vscanf): Verify signatures.
52612         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
52613         problem with non-blocking pipes.
52614         * doc/posix-functions/fgetc.texi: Likewise.
52615         * doc/posix-functions/fgets.texi: Likewise.
52616         * doc/posix-functions/fread.texi: Likewise.
52617         * doc/posix-functions/fscanf.texi: Likewise.
52618         * doc/posix-functions/getc.texi: Likewise.
52619         * doc/posix-functions/getchar.texi: Likewise.
52620         * doc/posix-functions/gets.texi: Likewise.
52621         * doc/posix-functions/scanf.texi: Likewise.
52622         * doc/posix-functions/vfscanf.texi: Likewise.
52623         * doc/posix-functions/vscanf.texi: Likewise.
52625 2011-04-14  Bruno Haible  <bruno@clisp.org>
52627         Support non-blocking pipe I/O in write() on native Windows.
52628         * lib/write.c (rpl_write): Split a write request that failed merely
52629         because the byte count was larger than the pipe buffer's size.
52630         * doc/posix-functions/write.texi: Mention the problem with large byte
52631         counts.
52633 2011-04-14  Bruno Haible  <bruno@clisp.org>
52635         wchar: Ensure that wchar_t gets defined on uClibc.
52636         * lib/wchar.in.h: On uClibc, include <stddef.h>.
52637         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
52639 2011-04-13  Bruno Haible  <bruno@clisp.org>
52641         safe-write, full-read: Avoid unnecessary compilation units.
52642         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
52643         (Depends-on): Remove safe-read. Add ssize_t.
52644         * modules/full-read (Files): Add lib/full-write.c.
52645         (Depends-on): Add full-write.
52647 2011-04-13  Bruno Haible  <bruno@clisp.org>
52649         Support non-blocking pipe I/O and SIGPIPE in pwrite().
52650         * modules/pwrite (Depends-on): Add 'write'.
52652 2011-04-13  Bruno Haible  <bruno@clisp.org>
52654         Support non-blocking pipe I/O in write() on native Windows.
52655         * lib/unistd.in.h (write): Enable replacement also if
52656         GNULIB_UNISTD_H_NONBLOCKING is 1.
52657         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
52658         (rpl_write): When failing to write on a non-blocking pipe, change
52659         errno from ENOSPC to EAGAIN.
52660         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
52661         putchar, puts, vfprintf, vprintf): Enable replacement also if
52662         GNULIB_STDIO_H_NONBLOCKING is 1.
52663         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
52664         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
52665         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
52666         CALL_WITH_SIGPIPE_EMULATION.
52667         (CALL_WITH_SIGPIPE_EMULATION): Use them.
52668         * m4/nonblocking.m4: New file.
52669         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
52670         for non-blocking I/O support.
52671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52672         GNULIB_UNISTD_H_NONBLOCKING.
52673         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
52674         required for non-blocking I/O support.
52675         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
52676         * modules/nonblocking (Files): Add m4/nonblocking.m4,
52677         lib/stdio-write.c, m4/asm-underscore.m4.
52678         (Depends-on): Add stdio, unistd.
52679         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
52680         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
52681         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
52682         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
52683         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
52684         problem with non-blocking pipes.
52685         * doc/posix-functions/fputc.texi: Likewise.
52686         * doc/posix-functions/fputs.texi: Likewise.
52687         * doc/posix-functions/fwrite.texi: Likewise.
52688         * doc/posix-functions/printf.texi: Likewise.
52689         * doc/posix-functions/putc.texi: Likewise.
52690         * doc/posix-functions/putchar.texi: Likewise.
52691         * doc/posix-functions/puts.texi: Likewise.
52692         * doc/posix-functions/vfprintf.texi: Likewise.
52693         * doc/posix-functions/vprintf.texi: Likewise.
52694         * doc/posix-functions/write.texi: Likewise.
52696 2011-04-10  Jim Meyering  <meyering@redhat.com>
52698         maint.mk: prohibit doubled words
52699         Detect them also when they're separated by a newline.
52700         There are 3 ways to customize it:
52701           - disable the test on a per file basis, as usual with rules using
52702             $(VC_LIST_EXCEPT)
52703           - replace the default doubled-word-selecting regexp (affects all files)
52704           - ignore a particular file-vs-doubled-word match
52705         I nearly used that last one to ignore the "is is" match in
52706         coreutils' NEWS file, since the text was "ls -is is ..."
52707         To do that, I would have added this line to cfg.mk:
52708           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
52709         but it would have ignored any "is is" match in NEWS.
52710         Low probability, but still...
52711         Instead, I changed the text, slightly:
52712           -  ls -is is now consistent with ls -lis in ignoring values returned
52713           +  "ls -is" is now consistent with ls -lis in ignoring values returned
52714         * top/maint.mk (prohibit_double_word_RE_): Provide default.
52715         (prohibit_doubled_word_): Define.
52716         (sc_prohibit_doubled_word): New rule.
52717         (sc_prohibit_the_the): Remove.  Subsumed by the above.
52719 2011-04-10  Jim Meyering  <meyering@redhat.com>
52721         maint: fix doubled-word typo in comment
52722         * m4/gethostname.m4: s/is is/it is/
52723         * m4/getdomainname.m4: Likewise.
52725 2011-04-10  Jim Meyering  <meyering@redhat.com>
52727         maint: remove doubled word: s/it it/it/
52728         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
52730 2011-04-10  Jim Meyering  <meyering@redhat.com>
52732         maint.mk: remove useless semicolon and backslash
52733         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
52734         semicolon and backslash.
52736 2011-04-10  Bruno Haible  <bruno@clisp.org>
52738         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
52739         * modules/stdint-tests (Depends-on): Add wchar.
52741 2011-04-10  Jim Meyering  <meyering@redhat.com>
52743         maint: remove doubled words in comments, e.g., s/a a/a/
52744         * lib/strptime.c (day_of_the_week): s/the the/the/
52745         * tests/test-chown.h (test_chown): s/a a/a/
52747         test-chown.h: correct a cast
52748         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
52749         when the destination is a stat.st_gid.
52751 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
52753         getaddrinfo: Fix test for sa_len member.
52754         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
52755         include <sys/types.h> before <sys/socket.h>.
52757 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52759         maint: change "can not" to "cannot"
52760         * doc/posix-functions/iconv.texi (iconv): This one crossed line
52761         boundaries.
52763 2011-04-09  Jim Meyering  <meyering@redhat.com>
52765         maint: change "a a" to "a"
52766         * tests/test-lchown.h (test_lchown): s/a a/a/
52768         maint.mk: prohibit \<the the\>
52769         * top/maint.mk (sc_prohibit_the_the): New rule.
52771         maint: fix "the the" in comment
52772         * lib/count-one-bits.h: s/the the/the/
52774         maint: change "can not" to "cannot"
52775         But do not change the occurrences in maintain.texi or in
52776         build-aux/po/Makefile.in.in, which I presume comes from gettext.
52777         * doc/gnulib-tool.texi: s/can not/cannot/
52778         * doc/posix-functions/accept.texi (accept): Likewise.
52779         * doc/posix-functions/socket.texi (socket): Likewise.
52780         * lib/mbrtowc.c: Likewise.
52782         maint.mk: prohibit use of "can not"
52783         * top/maint.mk (sc_prohibit_can_not): New rule.
52784         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
52786 2011-04-09  Bruno Haible  <bruno@clisp.org>
52788         careadlinkat: Guard against misuse of careadlinkatcwd.
52789         * lib/careadlinkat.c: Include <stdlib.h>.
52790         (careadlinkatcwd): Check that the fd argument is as expected.
52792 2011-04-09  Bruno Haible  <bruno@clisp.org>
52794         careadlinkat: Use common coding style.
52795         * lib/careadlinkat.c: Move gnulib includes after system includes.
52797 2011-04-09  Bruno Haible  <bruno@clisp.org>
52799         careadlinkat: Clarify specification.
52800         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
52801         (careadlinkatcwd): Add comment.
52802         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
52804 2011-04-09  Bruno Haible  <bruno@clisp.org>
52806         areadlinkat: Avoid link error on many platforms.
52807         * modules/areadlinkat (Depends-on): Add areadlink.
52809 2011-04-09  Bruno Haible  <bruno@clisp.org>
52811         allocator, careadlinkat: Fix double-inclusion guard.
52812         * lib/allocator.h: Fix double-inclusion guard.
52813         * lib/careadlinkat.h: Likewise.
52815 2011-04-09  Bruno Haible  <bruno@clisp.org>
52817         relocatable-prog-wrapper: Update after module 'areadlink' changed.
52818         * lib/relocwrapper.c: Update dependencies hierarchy.
52819         * build-aux/install-reloc: Update list of files to be compiled.
52820         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
52821         lib/allocator.[hc].
52823 2011-04-08  Eric Blake  <eblake@redhat.com>
52825         strftime: silence gnulib-tool warning
52826         * modules/strftime-tests (Depends-on): Drop automatic dependency.
52828 2011-04-08  Bruno Haible  <bruno@clisp.org>
52830         verify: Fix syntax error with GCC 4.6 in C++ mode.
52831         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
52832         (HAVE_STATIC_ASSERT): New macro.
52833         (verify_true, verify): Use 'static_assert' if it is supported and
52834         '_Static_assert' is not supported.
52836 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
52838         allocator: New module.
52839         * modules/allocator, lib/allocator.c: New files.
52840         * lib/allocator.h (stdlib_allocator): New decl.
52841         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
52842         Remove.  Do not include <stdlib.h>.
52843         (careadlinkat): Use stdlib_allocator instead of rolling our own.
52844         * modules/careadlinkat (Files): Remove lib/allocator.h.
52845         (Depends-on): Add allocator.
52847         stdlib: let modules use system malloc, realloc
52848         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
52849         if !_GL_USE_STDLIB_ALLOC.
52850         (malloc, realloc): Limit this change to a smaller scope.
52852         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
52853         (malloc, realloc): Don't #undef; no longer needed.
52854         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52855         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52856         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
52857         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52858         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52859         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52860         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
52861         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
52863         careadlinkat: rename members to avoid problem
52864         * lib/allocator.h (struct allocator): Rename members from
52865         malloc/realloc to allocate/reallocate, to avoid problems if malloc
52866         and realloc are #define'd.  Reported by Eric Blake in
52867         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
52868         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
52870 2011-04-08  Eric Blake  <eblake@redhat.com>
52872         nonblocking: reduce dependency
52873         * tests/test-nonblocking.c: Only test sockets when in use.
52874         * modules/nonblocking-tests (Depends-on): Drop socket.
52875         (Makefile.am): Link even if sockets are not present.
52876         * modules/pipe2-tests (Makefile.am): Likewise.
52877         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
52879         pipe2: fix O_NONBLOCK support on mingw
52880         * modules/pipe2 (Depends-on): Add nonblocking.
52881         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
52882         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
52883         * tests/test-nonblocking.c (main): Likewise.
52884         * modules/pipe2-tests (Makefile.am): Avoid link failure.
52886         fcntl-h: fix O_ACCMODE on cygwin
52887         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
52888         * lib/fcntl.in.h (O_ACCMODE): Fix it.
52890         pipe-filter: drop O_NONBLOCK workarounds
52891         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
52892         * modules/pipe-filter-ii (Depends-on): Likewise.
52893         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
52895         nonblocking: provide O_NONBLOCK for mingw
52896         * modules/nonblocking (Depends-on): Add open.
52897         (configure.ac): Set new witness macro.
52898         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
52899         * modules/fcntl-h (Makefile.am): Substitute it.
52900         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
52901         nonblocking module is in use.
52902         * lib/nonblocking.c: Adjust portability test.
52903         * lib/open.c (open): Don't let native open see gnulib flag.
52904         * tests/test-fcntl-h.c (main): Enhance test.
52905         * tests/test-open.h (test_open): Likewise.
52906         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
52908         careadlinkat: fix compilation error on mingw
52909         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
52910         within struct allocator.
52912 2011-04-06  Eric Blake  <eblake@redhat.com>
52914         binary-io: relicense under LGPLv2+
52915         * modules/binary-io (License): Relax to LGPLv2+.
52916         Requested for libvirt, and required by pipe2.
52918 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
52920         verify: use _Static_assert if available
52921         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
52922         (verify_true, verify): Use it if available.  This generates better
52923         diagnostics with GCC 4.6.0 and later.
52925 2011-04-05  Bruno Haible  <bruno@clisp.org>
52927         Remove leftover generated .h files after config.status changed.
52929         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
52930         GL_GENERATE_ALLOCA_H.
52931         * modules/alloca-opt (Makefile.am): Remove alloca.h if
52932         GL_GENERATE_ALLOCA_H evaluates to false.
52934         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
52935         GL_GENERATE_ARGZ_H.
52936         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
52937         evaluates to false.
52939         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
52940         GL_GENERATE_BYTESWAP_H.
52941         * modules/byteswap (Makefile.am): Remove byteswap.h if
52942         GL_GENERATE_BYTESWAP_H evaluates to false.
52944         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
52945         GL_GENERATE_ERRNO_H.
52946         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
52947         evaluates to false.
52949         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
52950         GL_GENERATE_FLOAT_H.
52951         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
52952         evaluates to false.
52954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
52955         GL_GENERATE_FNMATCH_H.
52956         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
52957         GL_GENERATE_FNMATCH_H evaluates to false.
52959         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
52960         GL_GENERATE_GLOB_H.
52961         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
52962         evaluates to false.
52964         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
52965         automake conditional GL_GENERATE_ICONV_H.
52966         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
52967         evaluates to false.
52969         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
52970         GL_GENERATE_NETINET_IN_H.
52971         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
52972         GL_GENERATE_NETINET_IN_H evaluates to false.
52974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
52975         conditional GL_GENERATE_PTHREAD_H.
52976         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
52977         * modules/pthread (Makefile.am): Remove pthread.h if
52978         GL_GENERATE_PTHREAD_H evaluates to false.
52980         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
52981         GL_GENERATE_SCHED_H.
52982         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
52983         evaluates to false.
52985         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
52986         conditional GL_GENERATE_SELINUX_CONTEXT_H.
52987         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
52988         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
52990         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
52991         GL_GENERATE_STDARG_H.
52992         * modules/stdarg (Makefile.am): Remove stdarg.h if
52993         GL_GENERATE_STDARG_H evaluates to false.
52995         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
52996         GL_GENERATE_STDBOOL_H.
52997         * modules/stdbool (Makefile.am): Remove stdbool.h if
52998         GL_GENERATE_STDBOOL_H evaluates to false.
53000         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53001         conditional GL_GENERATE_STDDEF_H.
53002         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53003         * modules/stddef (Makefile.am): Remove stddef.h if
53004         GL_GENERATE_STDDEF_H evaluates to false.
53006         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53007         GL_GENERATE_STDINT_H.
53008         * modules/stdint (Makefile.am): Remove stdint.h if
53009         GL_GENERATE_STDINT_H evaluates to false.
53011         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53012         GL_GENERATE_SYSEXITS_H.
53013         * modules/sysexits (Makefile.am): Remove sysexits.h if
53014         GL_GENERATE_SYSEXITS_H evaluates to false.
53016         Reported by Karl Berry and Ralf Wildenhues.
53018 2011-04-05  Bruno Haible  <bruno@clisp.org>
53020         Ensure to rebuild generated .h files when config.status has changed.
53021         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53022         config.status.
53023         * modules/ctype (Makefile.am): Likewise.
53024         * modules/dirent (Makefile.am): Likewise.
53025         * modules/errno (Makefile.am): Likewise.
53026         * modules/fcntl-h (Makefile.am): Likewise.
53027         * modules/float (Makefile.am): Likewise.
53028         * modules/getopt-posix (Makefile.am): Likewise.
53029         * modules/glob (Makefile.am): Likewise.
53030         * modules/iconv-h (Makefile.am): Likewise.
53031         * modules/inttypes (Makefile.am): Likewise.
53032         * modules/langinfo (Makefile.am): Likewise.
53033         * modules/locale (Makefile.am): Likewise.
53034         * modules/math (Makefile.am): Likewise.
53035         * modules/netdb (Makefile.am): Likewise.
53036         * modules/netinet_in (Makefile.am): Likewise.
53037         * modules/poll-h (Makefile.am): Likewise.
53038         * modules/pthread (Makefile.am): Likewise.
53039         * modules/pty (Makefile.am): Likewise.
53040         * modules/sched (Makefile.am): Likewise.
53041         * modules/search (Makefile.am): Likewise.
53042         * modules/selinux-h (Makefile.am): Likewise.
53043         * modules/signal (Makefile.am): Likewise.
53044         * modules/spawn (Makefile.am): Likewise.
53045         * modules/stdarg (Makefile.am): Likewise.
53046         * modules/stdbool (Makefile.am): Likewise.
53047         * modules/stddef (Makefile.am): Likewise.
53048         * modules/stdint (Makefile.am): Likewise.
53049         * modules/stdio (Makefile.am): Likewise.
53050         * modules/stdlib (Makefile.am): Likewise.
53051         * modules/string (Makefile.am): Likewise.
53052         * modules/strings (Makefile.am): Likewise.
53053         * modules/sys_file (Makefile.am): Likewise.
53054         * modules/sys_ioctl (Makefile.am): Likewise.
53055         * modules/sys_select (Makefile.am): Likewise.
53056         * modules/sys_socket (Makefile.am): Likewise.
53057         * modules/sys_stat (Makefile.am): Likewise.
53058         * modules/sys_time (Makefile.am): Likewise.
53059         * modules/sys_times (Makefile.am): Likewise.
53060         * modules/sys_utsname (Makefile.am): Likewise.
53061         * modules/sys_wait (Makefile.am): Likewise.
53062         * modules/sysexits (Makefile.am): Likewise.
53063         * modules/termios (Makefile.am): Likewise.
53064         * modules/time (Makefile.am): Likewise.
53065         * modules/unistd (Makefile.am): Likewise.
53066         * modules/wchar (Makefile.am): Likewise.
53067         * modules/wctype-h (Makefile.am): Likewise.
53068         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53070 2011-04-05  Bruno Haible  <bruno@clisp.org>
53072         pipe2: Relicense under LGPLv2+.
53073         * modules/pipe2 (License): Change to LGPLv2+.
53074         Requested by Eric Blake, for libvirt.
53076 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53078         bootstrap: compute gnulib_extra_files after updating build_aux
53079         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53080         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53082 2011-04-05  Eric Blake  <eblake@redhat.com>
53084         bootstrap: preserve git whitelist item sorting
53085         * build-aux/bootstrap (sort_patterns): New function.
53086         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53088 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53090         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53091         sc_space_tab check.
53093 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53095         areadlink, areadlinkat: rewrite in terms of careadlinkat
53096         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53097         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53098         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53099         (malloc, realloc): Remove #undefs.
53100         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53101         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53102         readlink, ssize_t, stdint, unistd.
53103         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53104         areadlink, stdint.
53106         careadlinkat: new module
53107         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53108         * modules/careadlinkat: New files, written by me with
53109         a review and feedback from Ben Pfaff in
53110         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53112 2011-04-01  Bruno Haible  <bruno@clisp.org>
53114         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53115         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53116         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53117         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53118         Reported by Bruce Korb <bruce.korb@gmail.com>.
53120 2011-04-01  Bruno Haible  <bruno@clisp.org>
53122         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53123         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53124         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53125         * modules/wcpcpy (Depends-on): Add extensions.
53126         * modules/wcpncpy (Depends-on): Likewise.
53127         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53128         systems.
53129         * doc/posix-functions/wcpncpy.texi: Likewise.
53130         * doc/posix-functions/wcwidth.texi: Likewise.
53132 2011-03-31  Eric Blake  <eblake@redhat.com>
53134         nonblocking: fix mingw test failures
53135         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53136         non-blocking flag on regular file.
53137         (get_nonblocking_flag): Set errno on invalid fd.
53138         * tests/test-nonblocking.c (main): Avoid test failure on
53139         directories if fchdir is not active.
53140         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53142 2011-03-31  Bruno Haible  <bruno@clisp.org>
53144         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53145         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53146         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53147         Reported by Simon Josefsson <simon@josefsson.org>.
53149 2011-03-31  Bruno Haible  <bruno@clisp.org>
53150         and Eric Blake  <eblake@redhat.com>
53152         nonblocking: new module
53153         * modules/nonblocking: New module.
53154         * modules/nonblocking-tests: Likewise.
53155         * lib/nonblocking.h: New file.
53156         * lib/nonblocking.c: Likewise.
53157         * tests/test-nonblocking.c: New test.
53158         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53160 2011-03-30  Bruno Haible  <bruno@clisp.org>
53162         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53163         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53164         instead of 'printf' format for GCC >= 4.4.
53165         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53166         (fprintf, printf, vfprintf, vprintf): Declare with
53167         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53168         the system's vfprintf() function.
53169         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53171 2011-03-30  Eric Blake  <eblake@redhat.com>
53173         passfd: fix scoping bug
53174         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53175         before sendmsg/recvmsg.
53177         passfd: standardize coding conventions
53178         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53179         can be learned at compile time.
53180         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53181         ifdefs.
53182         (sendfd, recvfd): Follow gnulib code conventions.
53184         passfd: fix incorrect sendmsg arguments
53185         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53186         incorrect msg_controllen value.
53187         * modules/passfd-tests (Depends-on): Check for alarm.
53188         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53189         Reported by Bastien ROUCARIES.
53191 2011-03-30  Bruno Haible  <bruno@clisp.org>
53193         c-strcasestr: Relicense under LGPLv2+.
53194         * modules/c-strcasestr (License): Change to LGPLv2+.
53195         Requested by Eric Blake, for libvirt.
53197 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53199         * users.txt: Add libidn2.  Fix libtasn1 link.
53201 2011-03-30  Jim Meyering  <meyering@redhat.com>
53203         tests: readlink* ("",... fails with EINVAL on newer kernels
53204         readlink and readlinkat have typically failed with ENOENT for
53205         the invalid, empty file name,  "".  However, with the advent
53206         of linux-2.6.39, they fail with EINVAL.
53207         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53208         when operating on the empty file name.
53209         * tests/test-readlink.h (test_readlink): Likewise.
53211 2011-03-29  Bruno Haible  <bruno@clisp.org>
53213         Relicense some modules under LGPLv2+, for libidn2.
53214         * modules/array-mergesort (License): Change to LGPLv2+.
53215         * modules/c-strcaseeq (License): Likewise.
53216         * modules/striconveh (License): Likewise.
53217         * modules/striconveha (License): Likewise.
53218         * modules/uniconv/base (License): Likewise.
53219         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53220         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53221         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53222         * modules/unictype/base (License): Likewise.
53223         * modules/unictype/bidiclass-of (License): Likewise.
53224         * modules/unictype/category-M (License): Likewise.
53225         * modules/unictype/category-none (License): Likewise.
53226         * modules/unictype/category-of (License): Likewise.
53227         * modules/unictype/category-test (License): Likewise.
53228         * modules/unictype/category-test-withtable (License): Likewise.
53229         * modules/unictype/combining-class (License): Likewise.
53230         * modules/unictype/joiningtype-of (License): Likewise.
53231         * modules/unictype/scripts (License): Likewise.
53232         * modules/uninorm/base (License): Likewise.
53233         * modules/uninorm/canonical-decomposition (License): Likewise.
53234         * modules/uninorm/composition (License): Likewise.
53235         * modules/uninorm/decompose-internal (License): Likewise.
53236         * modules/uninorm/decomposition-table (License): Likewise.
53237         * modules/uninorm/nfc (License): Likewise.
53238         * modules/uninorm/nfd (License): Likewise.
53239         * modules/uninorm/u32-normalize (License): Likewise.
53240         * modules/unistr/base (License): Likewise.
53241         * modules/unistr/u32-cpy (License): Likewise.
53242         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53243         * modules/unistr/u32-to-u8 (License): Likewise.
53244         * modules/unistr/u32-uctomb (License): Likewise.
53245         * modules/unistr/u8-check (License): Likewise.
53246         * modules/unistr/u8-mblen (License): Likewise.
53247         * modules/unistr/u8-mbtouc (License): Likewise.
53248         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53249         * modules/unistr/u8-mbtoucr (License): Likewise.
53250         * modules/unistr/u8-prev (License): Likewise.
53251         * modules/unistr/u8-strlen (License): Likewise.
53252         * modules/unistr/u8-to-u32 (License): Likewise.
53253         * modules/unistr/u8-uctomb (License): Likewise.
53254         * modules/unitypes (License): Likewise.
53255         Requested by Simon Josefsson.
53257 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53259         lib-symbol-visibility: Add a notice.
53260         * modules/lib-symbol-visibility (Notice): New field.
53262 2011-03-29  Bruno Haible  <bruno@clisp.org>
53264         getaddrinfo: Doc fix.
53265         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53266         section "fixed in Gnulib".
53268 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53270         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53271         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53273 2011-03-26  Bruno Haible  <bruno@clisp.org>
53275         unictype/property-byname: Reduce the number of load-time relocations.
53276         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53277         (UC_PROPERTY_INDEX_*): New enumeration values.
53278         (uc_property_byname): Convert an index from the lookup table to an
53279         uc_property_t.
53280         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53281         values.
53283 2011-03-26  Bruno Haible  <bruno@clisp.org>
53285         unictype/property-byname: Allow omitted word separators and aliases.
53286         * lib/unictype/pr_byname.gperf: Add property names without word
53287         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53288         for 'space'.
53290 2011-03-26  Bruno Haible  <bruno@clisp.org>
53292         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53293         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53294         also hyphens to space.
53295         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53296         without spaces.
53297         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53299 2011-03-26  Bruno Haible  <bruno@clisp.org>
53301         unictype/joiningtype-byname: Recognize long names as well.
53302         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53303         a long name.
53304         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53305         unictype/joiningtype_byname.h.
53306         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53307         * lib/unictype/joiningtype_byname.gperf: New file.
53308         * modules/unictype/joiningtype-byname (Files): Add
53309         lib/unictype/joiningtype_byname.gperf.
53310         (Depends-on): Add gperf.
53311         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53312         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53313         long names.
53315         Tests for module 'unictype/joiningtype-longname'.
53316         * modules/unictype/joiningtype-longname-tests: New file.
53317         * tests/unictype/test-joiningtype_longname.c: New file.
53319         New module 'unictype/joiningtype-longname'.
53320         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53321         * lib/unictype/joiningtype_longname.c: New file.
53322         * modules/unictype/joiningtype-longname: New file.
53323         * modules/unictype/joiningtype-all (Depends-on): Add
53324         unictype/joiningtype-longname.
53326 2011-03-26  Bruno Haible  <bruno@clisp.org>
53328         unictype/bidiclass-byname: Recognize long names as well.
53329         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53330         name.
53331         * lib/unictype/bidi_byname.c: Include <string.h>,
53332         unictype/bidi_byname.h.
53333         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53334         * lib/unictype/bidi_byname.gperf: New file.
53335         * modules/unictype/bidiclass-byname (Files): Add
53336         lib/unictype/bidi_byname.gperf.
53337         (Depends-on): Add gperf.
53338         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53339         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53340         long names.
53342         Tests for module 'unictype/bidiclass-longname'.
53343         * modules/unictype/bidiclass-longname-tests: New file.
53344         * tests/unictype/test-bidi_longname.c: New file.
53346         New module 'unictype/bidiclass-longname'.
53347         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53348         * lib/unictype/bidi_longname.c: New file.
53349         * modules/unictype/bidiclass-longname: New file.
53350         * modules/unictype/bidiclass-all (Depends-on): Add
53351         unictype/bidiclass-longname.
53353 2011-03-26  Bruno Haible  <bruno@clisp.org>
53355         unictype/bidi*: Rename modules.
53356         * modules/unictype/bidiclass-all: Renamed from
53357         modules/unictype/bidicategory-all.
53358         * modules/unictype/bidiclass-name: Renamed from
53359         modules/unictype/bidiclass-name.
53360         (Description): Update.
53361         * modules/unictype/bidiclass-name-tests: Renamed from
53362         modules/unictype/bidicategory-name-tests.
53363         * modules/unictype/bidiclass-byname: Renamed from
53364         modules/unictype/bidicategory-byname.
53365         (Description): Update.
53366         * modules/unictype/bidiclass-byname-tests: Renamed from
53367         modules/unictype/bidicategory-byname-tests.
53368         * modules/unictype/bidiclass-of: Renamed from
53369         modules/unictype/bidicategory-of.
53370         (Description): Update.
53371         * modules/unictype/bidiclass-of-tests: Renamed from
53372         modules/unictype/bidicategory-of-tests.
53373         * modules/unictype/bidiclass-test: Renamed from
53374         modules/unictype/bidicategory-test.
53375         (Description): Update.
53376         * modules/unictype/bidiclass-test-tests: Renamed from
53377         modules/unictype/bidicategory-test-tests.
53378         * modules/unictype/bidicategory-all: New file, a simple redirection.
53379         * modules/unictype/bidicategory-name: Likewise.
53380         * modules/unictype/bidicategory-byname: Likewise.
53381         * modules/unictype/bidicategory-of: Likewise.
53382         * modules/unictype/bidicategory-test: Likewise.
53383         * modules/unictype/property-bidi-* (Dependencies): Update.
53384         * lib/unictype/bidi_*.c: Update comment.
53386 2011-03-26  Bruno Haible  <bruno@clisp.org>
53388         unictype/bidi*: Rename functions, part 2.
53389         * modules/unictype/bidicategory-name (configure.ac): Update required
53390         libunistring version.
53391         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53393 2011-03-25  Bruno Haible  <bruno@clisp.org>
53395         New module 'unictype/combining-class-all'.
53396         * modules/unictype/combining-class-all: New file.
53398         Tests for module 'unictype/combining-class-byname'.
53399         * modules/unictype/combining-class-byname-tests: New file.
53400         * tests/unictype/test-combiningclass_byname.c: New file.
53402         New module 'unictype/combining-class-byname'.
53403         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53404         * lib/unictype/combiningclass_byname.c: New file.
53405         * lib/unictype/combiningclass_byname.gperf: New file.
53406         * modules/unictype/combining-class-byname: New file.
53408         Tests for module 'unictype/combining-class-longname'.
53409         * modules/unictype/combining-class-longname-tests: New file.
53410         * tests/unictype/test-combiningclass_longname.c: New file.
53412         New module 'unictype/combining-class-longname'.
53413         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53414         * lib/unictype/combiningclass_longname.c: New file.
53415         * modules/unictype/combining-class-longname: New file.
53417         Tests for module 'unictype/combining-class-name'.
53418         * modules/unictype/combining-class-name-tests: New file.
53419         * tests/unictype/test-combiningclass_name.c: New file.
53421         New module 'unictype/combining-class-name'.
53422         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53423         * lib/unictype/combiningclass_name.c: New file.
53424         * modules/unictype/combining-class-name: New file.
53426 2011-03-25  Bruno Haible  <bruno@clisp.org>
53428         unictype/combining-class: Rename source files.
53429         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53430         of unictype/combining.h.
53431         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53432         Update.
53433         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53434         * modules/unictype/combining-class (Description): Fix.
53435         (Files, Makefile.am): Update.
53436         * tests/unictype/test-combiningclass.c: Renamed from
53437         tests/unictype/test-combining.c.
53438         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53440 2011-03-25  Bruno Haible  <bruno@clisp.org>
53442         unictype: Update list of canonical combining classes.
53443         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53445 2011-03-25  Bruno Haible  <bruno@clisp.org>
53447         unictype/category-byname: Recognize long names as well.
53448         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53449         a long name.
53450         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53451         unictype/categ_byname.h.
53452         (UC_CATEGORY_INDEX_*): New enumeration values.
53453         (uc_general_category_byname): Use uc_general_category_lookup and
53454         convert from index to value.
53455         * lib/unictype/categ_byname.gperf: New file.
53456         * modules/unictype/category-byname (Files): Add
53457         lib/unictype/categ_byname.gperf.
53458         (Depends-on): Add gperf.
53459         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53460         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53461         long names.
53463         Tests for module 'unictype/category-longname'.
53464         * modules/unictype/category-longname-tests: New file.
53465         * tests/unictype/test-categ_longname.c: New file.
53467         New module 'unictype/category-longname'.
53468         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53469         * lib/unictype/categ_longname.c: New file.
53470         * modules/unictype/category-longname: New file.
53471         * modules/unictype/category-all (Depends-on): Add it.
53473 2011-03-25  Bruno Haible  <bruno@clisp.org>
53475         Tests for module 'unictype/category-LC'.
53476         * modules/unictype/category-LC-tests: New file.
53477         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53479         New module 'unictype/category-LC'.
53480         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53481         (UC_CATEGORY_LC): New declaration.
53482         (UC_CASED_LETTER): New macro.
53483         * lib/gen-uni-tables.c (is_category_LC): New function.
53484         (output_categories): Also handle category LC.
53485         (UC_CATEGORY_MASK_LC): New enumeration value.
53486         (general_category_byname): Also handle category LC.
53487         * lib/unictype/categ_LC.c: New file.
53488         * lib/unictype/categ_LC.h: New file, automatically generated.
53489         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53490         category LC.
53491         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53492         * modules/unictype/category-LC: New file.
53493         * modules/unictype/category-byname (Depends-on): Add
53494         unictype/category-LC.
53495         * modules/unictype/category-all (Depends-on): Likewise.
53497 2011-03-25  Eric Blake  <eblake@redhat.com>
53499         xmalloc: revert yesterday's regression
53500         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53501         realloc's underlying behavior (allowing allocation of zero-size
53502         objects, especially if malloc-gnu is also in use).
53504 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53506         maint.mk: add missing version to VC-tag
53507         * top/maint.mk: git tag was missing actual tag name; add it.
53509         valgrind: do leak checking, and exit with code 1 on error (not 0)
53510         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53511         to VALGRIND.
53513 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53515         posix-modules: say what it does.
53516         * posix-modules: Add a line to the --help output saying what it does.
53518 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53520         xmalloc: Do not leak if underlying realloc is C99 compatible.
53521         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53522         This avoids a leak on C99-based systems.  See
53523         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53525 2011-03-24  Eric Blake  <eblake@redhat.com>
53527         realloc: document portability problem
53528         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53529         passing 0 size to realloc.
53531 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53533         doc: update users.txt
53534         * users.txt: Add cvsps, tmpwatch
53536 2011-03-23  Matt Rice  <ratmice@gmail.com>
53538         doc: update users.txt
53539         * users.txt: Add gdb.
53541 2011-03-23  Jim Meyering  <meyering@redhat.com>
53543         doc: update users.txt
53544         Looking through matches up to the following URL (there are still
53545         several more pages), I found several projects that use gnulib:
53546         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53547         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53548         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53550 2011-03-22  Bruno Haible  <bruno@clisp.org>
53552         unictype/bidi*: Rename functions.
53553         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53554         uc_bidi_class, uc_is_bidi_class): New declarations.
53555         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53556         uc_bidi_category_byname.
53557         (uc_bidi_category_byname): New function.
53558         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53559         u_bidi_category_name.
53560         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53561         (uc_bidi_category_name): New function.
53562         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53563         uc_bidi_category.
53564         (uc_bidi_category): New function.
53565         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53566         uc_is_bidi_category. Invoke uc_bidi_class.
53567         (uc_is_bidi_category): New function.
53568         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53569         instead of uc_bidi_category_byname.
53570         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53571         instead of uc_bidi_category_name.
53572         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53573         uc_bidi_category.
53574         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53575         instead of uc_is_bidi_category.
53577 2011-03-21  Bruno Haible  <bruno@clisp.org>
53579         New module 'unictype/joininggroup-all'.
53580         * modules/unictype/joininggroup-all: New file.
53582         Tests for module 'unictype/joininggroup-of'.
53583         * modules/unictype/joininggroup-of-tests: New file.
53584         * tests/unictype/test-joininggroup_of.c: New file.
53585         * tests/unictype/test-joininggroup_of.h: New file, automatically
53586         generated by gen-uni-tables.
53588         New module 'unictype/joininggroup-of'.
53589         * modules/unictype/joininggroup-of: New file.
53590         * lib/unictype/joininggroup_of.c: New file.
53591         * lib/unictype/joininggroup_of.h: New file, automatically generated by
53592         gen-uni-tables.
53594         Tests for module 'unictype/joininggroup-byname'.
53595         * modules/unictype/joininggroup-byname-tests: New file.
53596         * tests/unictype/test-joininggroup_byname.c: New file.
53598         New module 'unictype/joininggroup-byname'.
53599         * modules/unictype/joininggroup-byname: New file.
53600         * lib/unictype/joininggroup_byname.c: New file.
53601         * lib/unictype/joininggroup_byname.gperf: New file.
53603         Tests for module 'unictype/joininggroup-name'.
53604         * modules/unictype/joininggroup-name-tests: New file.
53605         * tests/unictype/test-joininggroup_name.c: New file.
53607         New module 'unictype/joininggroup-name'.
53608         * modules/unictype/joininggroup-name: New file.
53609         * lib/unictype/joininggroup_name.c: New file.
53610         * lib/unictype/joininggroup_name.h: New file.
53612         New module 'unictype/joiningtype-all'.
53613         * modules/unictype/joiningtype-all: New file.
53615         Tests for module 'unictype/joiningtype-of'.
53616         * modules/unictype/joiningtype-of-tests: New file.
53617         * tests/unictype/test-joiningtype_of.c: New file.
53618         * tests/unictype/test-joiningtype_of.h: New file, automatically
53619         generated by gen-uni-tables.
53621         New module 'unictype/joiningtype-of'.
53622         * modules/unictype/joiningtype-of: New file.
53623         * lib/unictype/joiningtype_of.c: New file.
53624         * lib/unictype/joiningtype_of.h: New file, automatically generated by
53625         gen-uni-tables.
53627         Tests for module 'unictype/joiningtype-byname'.
53628         * modules/unictype/joiningtype-byname-tests: New file.
53629         * tests/unictype/test-joiningtype_byname.c: New file.
53631         New module 'unictype/joiningtype-byname'.
53632         * modules/unictype/joiningtype-byname: New file.
53633         * lib/unictype/joiningtype_byname.c: New file.
53635         Tests for module 'unictype/joiningtype-name'.
53636         * modules/unictype/joiningtype-name-tests: New file.
53637         * tests/unictype/test-joiningtype_name.c: New file.
53639         New module 'unictype/joiningtype-name'.
53640         * modules/unictype/joiningtype-name: New file.
53641         * lib/unictype/joiningtype_name.c: New file.
53643         unictype: Add support for Arabic shaping properties.
53644         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
53645         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
53646         declarations.
53647         (UC_JOINING_GROUP_*): New enumeration values.
53648         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
53649         declarations.
53650         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
53651         (unicode_joining_type): New variable.
53652         (UC_JOINING_GROUP_*): New enumeration values.
53653         (unicode_joining_group): New variable.
53654         (fill_arabicshaping, joining_type_as_c_identifier,
53655         output_joining_type_test, output_joining_type,
53656         joining_group_as_c_identifier, output_joining_group_test,
53657         output_joining_group): New functions.
53658         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
53659         fill_arabicshaping and output_joining_type_test, output_joining_type,
53660         output_joining_group_test, output_joining_group.
53661         Reported by Simon Josefsson.
53663 2011-03-21  Jim Meyering  <meyering@redhat.com>
53665         strftime: fix a bug in yesterday's change
53666         * lib/strftime.c (add): Accommodate width's initial value of -1.
53667         Otherwise, nstrftime would copy uninitialized data into
53668         the result buffer.
53670 2011-03-21  Jim Meyering  <meyering@redhat.com>
53672         tests: add strftime-tests module
53673         * tests/test-strftime.c: New file.
53674         * modules/strftime-tests: New module.
53676 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53678         strftime: don't assume a byte count fits in 'int'
53679         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
53680         found this problem by static analysis, using gcc -Wstrict-overflow
53681         (GCC 4.5.2, x86-64).  This reported an optimization that depended
53682         on an integer overflow having undefined behavior, but it turns out
53683         that the argument is a size, which might not fit in 'int' anyway,
53685 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53687         stdio: don't require ignore_value around fwrite
53689         This patch works around libc bug 11959
53690         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
53691         Without this patch, applications must often write
53692         ignore_value (fwrite (...)) even though the ignore_value is
53693         not helpful here.  It's common to write many objects, using
53694         fwrite/printf/etc., and then use ferror to detect output error.
53696         I considered making this patch optional, but decided against it,
53697         because libc is obviously being inconsistent here: there is no
53698         reason libc should insist that user code must inspect fwrite
53699         return's value without also insisting that it inspect printf's,
53700         putchar's, etc.  If user code wants to have a strict style where
53701         all these functions' values are checked (so that ferror need not
53702         be checked), we could add support for that style in a new gnulib
53703         module, but in the meantime it's better to be consistent and to
53704         support common usage.
53706         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
53707         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
53708         that we are compiling in checking mode, and if not C++, and
53709         if not already wrapping fwrite for some other reason.
53710         (fwrite): #define to rpl_fwrite if the latter is defined.
53712 2011-03-20  Bruno Haible  <bruno@clisp.org>
53714         verror: Fix compilation error introduced on 2011-02-13.
53715         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
53716         instead of __attribute__.
53717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53719 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53720             Bruno Haible  <bruno@clisp.org>
53722         socklen: do not depend on sys_socket
53723         While trying to modify Emacs to use gnulib's socklen module,
53724         I discovered a circular dependency: socklen depends on sys_socket
53725         and vice versa.  Emacs can use socklen, but it does not need
53726         sys_socket because it has its own substitute for sys/socket.h.
53727         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
53728         gl_TYPE_SOCKLEN_T.
53729         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
53730         gl_PREREQ_SYS_H_SOCKET.
53731         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
53732         gl_PREREQ_SYS_H_SOCKET.
53733         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
53734         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
53735         * modules/socklen (Depends-on): Do not depend on sys_socket.
53736         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
53738 2011-03-20  Jim Meyering  <meyering@redhat.com>
53740         maint.mk: sort file names *after* new transformation
53741         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
53742         prefix would have led to an unwarranted failure in GNU parted.
53743         Sort after that transformation.
53745 2011-03-19  Jim Meyering  <meyering@redhat.com>
53747         maint.mk: fix po-file syntax-check rule
53748         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
53749         Patch by Bruno Haible.
53751 2011-03-19  Bruno Haible  <bruno@clisp.org>
53753         socklen: Update comment.
53754         * m4/socklen.m4: Update comment about platforms.
53756 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53757             Bruno Haible  <bruno@clisp.org>
53759         inet_ntop, inet_pton: Simplify.
53760         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
53761         documented to provide socklen_t and we already depend on sys_socket.
53762         * modules/inet_pton (Depends-on): Likewise.
53763         * lib/arpa_inet.in.h: Adjust comment.
53765 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53766             Bruno Haible  <bruno@clisp.org>
53768         netdb: Simplify.
53769         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
53770         documented to provide socklen_t and we already depend on sys_socket.
53771         * lib/netdb.in.h: Adjust comment.
53773 2011-03-19  Bruno Haible  <bruno@clisp.org>
53775         sys_socket, netdb: Document problem with socklen_t.
53776         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
53777         platforms.
53778         * doc/posix-headers/netdb.texi: Likewise.
53780 2011-03-18  Eric Blake  <eblake@redhat.com>
53782         maint.mk: let po check work in VPATH build
53783         * top/maint.mk (po_file): Allow cfg.mk override.
53784         (sc_po_check): Allow VPATH use.
53785         Reported by Jiri Denemark.
53787 2011-03-16  Jim Meyering  <meyering@redhat.com>
53789         maint.mk: allow fine-grained syntax-check exclusion via Make variables
53790         Before, you would have had to create one .x-sc_ file per rule in order
53791         to exempt offending files.  Now, you may instead use a Make variable --
53792         usually defined in cfg.mk -- whose name identifies the affected rule.
53793         * top/maint.mk (_sc_excl): Define.
53794         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
53795         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
53797 2011-03-13  Bruno Haible  <bruno@clisp.org>
53799         ignore-value tests: Avoid warnings.
53800         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
53801         empty for gcc < 3.4.
53803 2011-03-13  Bruno Haible  <bruno@clisp.org>
53805         passfd: Fix link error on Solaris.
53806         * modules/passfd (Description): Correct.
53807         (Depends-on): Add socketlib.
53808         (Link): New section.
53809         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
53811 2011-03-13  Bruno Haible  <bruno@clisp.org>
53813         passfd: Fix link error on AIX 5.2.
53814         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
53816 2011-03-13  Bruno Haible  <bruno@clisp.org>
53818         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
53819         * lib/sys_socket.in.h: Include <stddef.h>.
53820         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
53821         CMSG_FIRSTHDR. Remove unused variable.
53823 2011-03-13  Bruno Haible  <bruno@clisp.org>
53825         passfd: Fix compilation error on OpenBSD.
53826         * lib/passfd.c: Include <sys/uio.h>.
53828 2011-03-13  Bruno Haible  <bruno@clisp.org>
53830         passfd test: Fix warnings.
53831         * tests/test-passfd.c: Include <sys/wait.h>.
53832         (main): Fix typo.
53834 2011-03-13  Bruno Haible  <bruno@clisp.org>
53836         passfd module, part 4, tweaks.
53837         * tests/test-passfd.c: Reorder includes.
53838         (main): Fix perror and printf calls.
53840 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53842         passfd module, part 4.
53843         * modules/passfd-tests: New file.
53844         * tests/test-passfd.c: New file.
53846 2011-03-13  Jim Meyering  <meyering@redhat.com>
53848         Makefile: rely on GNU make; derive syntax-check rule names
53849         Rather than requiring that each sc_ rule be listed as a dependent
53850         of "check", use features of GNU make to derive the list.
53851         * Makefile (syntax-check-rules): Define.
53852         (check): Depend on the new variable, not the hard-coded list.
53854 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
53855             Bruno Haible  <bruno@clisp.org>
53857         passfd module, part 3.
53858         * lib/passfd.h (recvfd): Add a flags argument.
53859         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
53860         (recvfd): Add a flags argument.
53861         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
53862         exists.
53863         * modules/passfd (Depends-on): Add cloexec.
53864         Suggested by Eric Blake.
53866 2011-03-13  Bruno Haible  <bruno@clisp.org>
53868         passfd module, part 2, tweaks.
53869         * modules/passfd (Files): Reorder.
53870         (Depends-on): Remove errno.
53871         (Include): Remove <sys/socket.h>, <sys/un.h>.
53872         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
53873         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
53874         specification header. Include <sys/socket.h> always. Don't include
53875         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
53876         (sendfd): Clarify that it sets errno when it fails.
53877         (recvfd): Fix specification.
53879 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53881         passfd module, part 2.
53882         * modules/passfd: New file.
53883         * lib/passfd.h: New file.
53884         * lib/passfd.c: New file.
53886 2011-03-12  Bruno Haible  <bruno@clisp.org>
53888         wcswidth, mbswidth: Avoid integer overflow.
53889         * lib/wcswidth.c: Include <limits.h>.
53890         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
53891         * lib/mbswidth.c: Include <limits.h>.
53892         (mbsnwidth): Avoid 'int' overflow.
53893         Reported by Jim Meyering.
53895 2011-03-12  Bruno Haible  <bruno@clisp.org>
53897         futimens, utimensat: Avoid endless recursion on Solaris 10.
53898         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
53899         Solaris.
53900         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
53901         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
53903 2011-03-11  Jim Meyering  <meyering@redhat.com>
53905         maint.mk: relax a regexp to accommodate other formatting styles
53906         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
53907         between "ngettext" and the following "(".
53909 2011-03-11  Pádraig Brady  <P@draigBrady.com>
53911         maint.mk: suppress a false positive warning
53912         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
53913         diagnostics are marked with ngettext.
53915 2011-03-10  Eric Blake  <eblake@redhat.com>
53917         wchar: add explicit dependencies, for Tru64
53918         * modules/mbmemcasecoll (Depends-on): Add wchar.
53919         * modules/mbtowc (Depends-on): Likewise.
53920         * modules/vasnprintf (Depends-on): Likewise.
53921         * modules/unistdio/u-printf-args (Depends-on): Likewise.
53922         * modules/wctomb (Depends-on): Likewise.
53923         Reported by Peter O'Gorman.
53925 2011-03-08  Bruno Haible  <bruno@clisp.org>
53927         passfd module, part 1, tweaks.
53928         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
53929         Improve indentation. Improve AC_MSG_CHECKING messages.
53930         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
53931         gl_SOCKET_FAMILIES.
53933 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
53935         passfd module, part 1.
53936         * m4/afunix.m4: New file.
53937         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
53938         sockets.
53940 2011-03-08  Bruno Haible  <bruno@clisp.org>
53942         regex-quote: New API.
53943         * lib/regex-quote.h: Include <stdbool.h>.
53944         (struct regex_quote_spec): New type.
53945         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
53946         New declarations.
53947         (regex_quote_length, regex_quote_copy, regex_quote): Take a
53948         'const struct regex_quote_spec *' argument.
53949         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
53950         (pcre_special): New constant.
53951         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
53952         New functions.
53953         (regex_quote_length, regex_quote_copy, regex_quote): Take a
53954         'const struct regex_quote_spec *' argument.
53955         * modules/regex-quote (Depends-on): Add stdbool.
53956         * tests/test-regex-quote.c (check): Update for new API. Add test for
53957         anchored results.
53958         * NEWS: Mention the API change.
53959         Reported by Reuben Thomas and Eric Blake.
53961 2011-03-06  Bruno Haible  <bruno@clisp.org>
53963         regex-quote: Fix creation of POSIX extended regular expressions.
53964         * lib/regex-quote.c (ere_special): Add grouping and alternation
53965         operators.
53967 2011-03-05  Bruno Haible  <bruno@clisp.org>
53969         doc: Improve doc regarding autopoint vs. gnulib.
53970         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
53971         disable autopoint while running autoreconf.
53972         Suggested by Ralf Wildenhues.
53974 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53976         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
53977         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
53979 2011-03-03  Bruce Korb  <bkorb@gnu.org>
53981         parse-duration: remove xalloc.h dependency
53982         * lib/parse-duration.c (parse_period): handle NULL return from
53983         strdup instead of calling xstrdup().
53984         * modules/parse-duration: remove "xalloc" dependency
53986 2011-03-03  Matthew Booth  <mbooth@redhat.com>
53988         bootstrap: honor m4_base when running aclocal
53989         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
53991 2011-03-02  Jim Meyering  <meyering@redhat.com>
53993         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
53994         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
53995         on request from Matt Booth.
53997 2011-03-01  Eric Blake  <eblake@redhat.com>
53999         test-link: work on Hurd
54000         * tests/test-link.h (test_link): Hurd rejects linking directories
54001         with EISDIR instead of the POSIX-mandated EPERM.
54003 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54005         stdio: simplify by moving files to printf-posix, sigpipe
54006         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54007         since this symbol is needed only if printf is replaced.
54008         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54009         Require gl_ASM_SYMBOL_PREFIX.
54010         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54011         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54012         (Depends-on): Add 'raise'.
54013         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54014         * modules/stdio (Files): Remove lib/stdio-write.c,
54015         m4/asm-underscore.m4.
54016         (Depends-on): Remove 'raise'.
54018         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54019         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54020         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54021         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54023 2011-02-28  Bruno Haible  <bruno@clisp.org>
54025         localcharset: Assume ANSI C behaviour of free().
54026         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54027         calling free().
54028         Suggested by Simon Josefsson <simon@josefsson.org>.
54030 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54031             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54032             Bruno Haible  <bruno@clisp.org>  (tiny change)
54034         On Cygwin, use /proc file system instead of win32 API.
54035         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54036         Win32 file names.
54037         (DllMain): Simplify by removing Cygwin specific code.
54038         (find_shared_library_fullname): Use Linux specific implementation also
54039         for Cygwin.
54040         (get_shared_library_fullname): Update accordingly.
54041         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54042         Win32 file names.
54043         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54044         Cygwin specific code.
54046 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54047             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54049         Fix OpenMP flag detection for various Fortran compilers.
54050         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54051         OpenMP-conditional compilation construct, to force compile
54052         failure with missing OpenMP flag.
54053         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54055 2011-02-25  Eric Blake  <eblake@redhat.com>
54057         strstr: expand test coverage
54058         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54059         compilation.
54060         * tests/test-memmem.c (main): Duplicate tests.
54061         * tests/test-strcasestr.c (main): Likewise.
54062         * tests/test-c-strcasestr.c (main): Likewise.
54064 2011-02-25  Jim Meyering  <meyering@redhat.com>
54066         maint.mk: detect missing-NL-at-EOF, too
54067         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54068         it also detects when a file lacks a newline at EOF.
54069         (require_exactly_one_NL_at_EOF_): Renamed from
54070         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54071         since people may well have .x-sc_... file names tied to the
54072         existing name.  Suggested by Eric Blake.
54074 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54076         dirname: move m4/dos.m4 functionality into lib/dosname.h
54078         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54079         extracts symbols from it, puts them into config.h; but it's much
54080         easier to use the symbols directly.  filename.h already does this,
54081         but it disagrees with dos.m4 in some respects.  This patch
54082         introduces a different include file dosname.h that packages up
54083         dos.m4, and then later we can work on merging filename.h and
54084         dosname.h.  Applications that need only the easy-to-configure
54085         symbols should consider including dosname.h rather than dirname.h.
54086         * NEWS: Mention incompatible changes.
54087         * m4/dos.m4: Remove.
54088         * lib/dosname.h, modules/dosname: New files.
54089         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54090         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54091         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54092         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54093         Include dosname.h, not dirname.h.
54094         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54095         Include dosname.h, for definitions of symbols like ISSLASH
54096         that used to be in config.h.
54097         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54098         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54099         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54100         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54101         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54102         * modules/rmdir (Files): Likewise.
54103         * modules/stat (Files): Likewise.
54104         * modules/unlink (Files): Likewise.
54105         * modules/dirname-lgpl (Depends-on): Add dosname.
54106         * modules/lstat (Depends-on): Likewise.
54107         * modules/openat (Depends-on): Likewise.
54108         * modules/rmdir (Depends-on): Likewise.
54109         * modules/savewd (Depends-on): Likewise.
54110         * modules/stat (Depends-on): Likewise.
54111         * modules/unlink (Depends-on): Likewise.
54112         * modules/openat (Depends-on): Remove dirname-lgpl.
54113         * modules/savewd (Depends-on): Likewise.
54114         * tests/test-dirname.c: Do not use removed symbols like
54115         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54116         the remaining symbols, e.g., ISSLASH ('\\').
54118 2011-02-25  Eric Blake  <eblake@redhat.com>
54120         strstr: revert patches that introduced bug and pessimization
54121         * lib/str-two-way.h: Add another reference.
54122         (two_way_short_needle, two_way_long_needle): Revert changes from
54123         2011-02-24; they pessimize search speed.
54124         (critical_factorization): Partially revert changes from
54125         2010-06-22; they violate the requirement that the left half of the
54126         needle be smaller than the period of the needle.
54128 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54130         filenamecat: remove unnecessary dependency on dirname-lgpl
54131         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54132         is no direct dependency, just an indirect one via filenamecat-lgpl.
54134         remove: remove unnecessary use of m4/dos.m4
54135         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54136         * modules/remove (FILES): Remove m4/dos.m4.
54138         * lib/openat-proc.c: Don't include dirname.h; not needed.
54140         backupfile: remove unnecessary use of m4/dos.m4
54141         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54142         of its symbols are used by the backupfile code.  backupfile.c does
54143         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54144         for the rare case of programs that want all their backup file
54145         names to live within 8+3 limits, and dos.m4 doesn't address that.
54146         * modules/backupfile (Files): Remove m4/dos.m4.
54148 2011-02-24  Jim Meyering  <meyering@redhat.com>
54150         strstr: fix a bug whereby strstr would mistakenly return NULL
54151         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54152         in period calculation.
54153         (two_way_long_needle): Likewise.
54154         The original problem was reported by Mike Stump in
54155         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54156         Ralf Wildenhues provided the short needle and haystack.
54157         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54158         Add a more involved test to trigger the bug in two_way_long_needle.
54160 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54162         gnulib-tool: remove use of bold display in help screen
54163         * gnulib-tool (func_usage): Do not use bold display anymore in the
54164         help screen.  That was just meant to be a temporary emphasis for a
54165         backward-incompatible change.
54167 2011-02-23  Bruno Haible  <bruno@clisp.org>
54169         Fix misindentation of preprocessor directives.
54170         * lib/argp-namefrob.h: Reindent preprocessor directives.
54171         * lib/getopt_int.h (struct _getopt_data): Likewise.
54172         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54173         * lib/vasnprintf.c (decode_long_double): Likewise.
54174         * tests/test-argmatch.c: Insert blank lines, for clarity.
54175         * tests/test-exclude.c: Likewise.
54177 2011-02-22  Bruno Haible  <bruno@clisp.org>
54179         ioctl: Fix for MacOS X in 64-bit mode.
54180         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54181         value.
54182         Suggested by Eric Blake.
54183         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54185 2011-02-22  Jim Meyering  <meyering@redhat.com>
54187         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54188         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54189         in lib/.
54191 2011-02-22  Eric Blake  <eblake@redhat.com>
54193         maint: avoid any CDPATH issue
54194         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54196         maint: adjust cpp indentation for my modules, as well
54197         * Makefile (sc_cpp_indent_check): Add my name.
54198         * lib/fbufmode.c: Filter through cppi.
54199         * lib/fpurge.c: Likewise.
54200         * lib/freadable.c: Likewise.
54201         * lib/freading.c: Likewise.
54202         * lib/fwritable.c: Likewise.
54203         * lib/fwriting.c: Likewise.
54204         * lib/sigaction.c: Likewise.
54206 2011-02-22  Jim Meyering  <meyering@redhat.com>
54208         maint: adjust cpp indentation to reflect nesting depth
54209         I.e., in a block of code that begins with an unnested "#if",
54210         put one space between the "#" in column 1 and following token.
54211         For example,
54212         -#include <sys/vfs.h>
54213         +# include <sys/vfs.h>
54214         Do this only in .c files that are part of a module I maintain.
54215         * lib/linkat.c: Filter through cppi.
54216         * lib/nanosleep.c: Likewise.
54217         * lib/openat.c: Likewise.
54218         * lib/openat-die.c: Likewise.
54219         * lib/dup3.c: Likewise.
54220         * lib/fchownat.c: Likewise.
54221         * lib/flock.c: Likewise.
54222         * lib/fsync.c: Likewise.
54223         * lib/fts.c: Likewise.
54224         * lib/getpass.c: Likewise.
54225         * lib/gettimeofday.c: Likewise.
54226         * lib/userspec.c: Likewise.
54227         * Makefile (sc_cpp_indent_check): New rule, to check this.
54229 2011-02-22  Bruno Haible  <bruno@clisp.org>
54231         New module 'wctomb'.
54232         * lib/stdlib.in.h (wctomb): New declaration.
54233         * lib/wctomb.c: New file.
54234         * lib/wctomb-impl.h: New file.
54235         * m4/wctomb.m4: New file.
54236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54237         REPLACE_WCTOMB.
54238         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54239         REPLACE_WCTOMB.
54240         * modules/wctomb: New file.
54241         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54242         * doc/posix-functions/wctomb.texi: Mention the new module.
54243         * modules/wctob (Depends-on): Add wctomb.
54245 2011-02-22  Bruno Haible  <bruno@clisp.org>
54247         New module 'mbtowc'.
54248         * lib/stdlib.in.h (mbtowc): New declaration.
54249         * lib/mbtowc.c: New file.
54250         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54251         * m4/mbtowc.m4: New file.
54252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54253         REPLACE_MBTOWC.
54254         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54255         REPLACE_MBTOWC.
54256         * modules/mbtowc: New file.
54257         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54258         * doc/posix-functions/mbtowc.texi: Mention the new module.
54259         * modules/btowc (Depends-on): Add mbtowc.
54261 2011-02-22  Bruno Haible  <bruno@clisp.org>
54263         wcrtomb: Add more tests for native Windows platforms.
54264         * tests/test-wcrtomb-w32-1.sh: New file.
54265         * tests/test-wcrtomb-w32-2.sh: New file.
54266         * tests/test-wcrtomb-w32-3.sh: New file.
54267         * tests/test-wcrtomb-w32-4.sh: New file.
54268         * tests/test-wcrtomb-w32-5.sh: New file.
54269         * tests/test-wcrtomb-w32.c: New file.
54270         * modules/wcrtomb-tests (Files): Add them.
54271         (Makefile.am): Arrange to run these tests.
54272         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54273         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54275 2011-02-20  Bruno Haible  <bruno@clisp.org>
54277         wcrtomb: Enhance test.
54278         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54280 2011-02-20  Bruno Haible  <bruno@clisp.org>
54282         mbrtowc: Tiny optimization.
54283         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54285 2011-02-20  Jim Meyering  <meyering@redhat.com>
54287         test-exclude.c: remove unmatched #endif
54288         * tests/test-exclude.c: Remove stray #endif, left over from
54289         the change of a week ago.
54291 2011-02-19  Jim Meyering  <meyering@redhat.com>
54293         git-version-gen: skip "-dirty" check when appropriate
54294         * build-aux/git-version-gen: Don't run any git commands when the
54295         version string comes from .tarball-version.  Prior to this, we
54296         would run git update-index --refresh even from a just-unpacked
54297         tarball directory, and that could affect a .git/ directory in a
54298         parent of the build directory.  Reported by Mike Frysinger.
54300 2011-02-19  Bruno Haible  <bruno@clisp.org>
54302         unictype/property-byname: Reduce the size of the 'data' segment.
54303         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54305 2011-02-19  Bruno Haible  <bruno@clisp.org>
54307         unictype/scripts: Reduce the size of the 'data' segment.
54308         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54309         '%pic'.
54310         * lib/unictype/scripts_byname.gperf: Regenerated.
54312 2011-02-19  Bruno Haible  <bruno@clisp.org>
54314         stdint: Update documentation.
54315         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54317 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54319         stdint: omit redundant check for wchar.h
54320         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54321         always tests whether wchar.h exists, so remove the now-redundant test.
54323 2011-02-18  Bruno Haible  <bruno@clisp.org>
54325         stdint: Cut dependency to module 'wchar'.
54326         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54327         include the necessary prerequisites.
54328         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54329         * modules/stdint (Depends-on): Remove wchar.
54330         (Makefile.am): Substitute HAVE_WCHAR_H.
54331         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54333 2011-02-18  Eric Blake  <eblake@redhat.com>
54335         longlong: skip, rather than fail, on cross-compilation
54336         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54337         when cross-compiling; regression from 2011-02-16.
54339 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54341         * NEWS: Mention 2011-02-08 change to stdlib.
54343 2011-02-17  Bruno Haible  <bruno@clisp.org>
54345         getloadavg: Add comments about platforms.
54346         * m4/getloadavg.m4: Add comment.
54347         * lib/getloadavg.c: Likewise.
54349 2011-02-17  Bruno Haible  <bruno@clisp.org>
54351         getloadavg: Fix link error on Solaris 2.6.
54352         * modules/getloadavg (Link): New section.
54353         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54354         linking test-getloadavg.
54355         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54356         getloadavg.
54358 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54360         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54361         It was 'int', but this doesn't match the IRIX 6.5 manual.
54362         Suggested by Bruno Haible in
54363         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54365 2011-02-17  Bruno Haible  <bruno@clisp.org>
54367         havelib: Fix comments.
54368         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54369         change.
54371 2011-02-17  Bruno Haible  <bruno@clisp.org>
54373         havelib: Update config.rpath.
54374         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54376 2011-02-17  Bruno Haible  <bruno@clisp.org>
54378         getloadavg test: Add some plausibility checks.
54379         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54380         is improbable.
54382 2011-02-16  Eric Blake  <eblake@redhat.com>
54384         maintainer-makefile: make syntax-check a no-op from tarballs
54385         * top/maint.mk (no-vc-detected): New rule.
54386         (local-checks-available): Use it to avoid hanging if someone tries
54387         'make syntax-check' from a tarball.  Also append to any non-syntax
54388         checks already defined in cfg.mk.
54390 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54392         longlong: tune, particularly for common case of c99
54394         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54395         or running anything if c99, or if unsigned long long int does not
54396         work.  In either case, we know the answer without further tests.
54397         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54398         it at most once, and use its results for both long long int and
54399         unsigned long long int.  This is more likely to be efficient in
54400         the common case where the program wants to check for both long
54401         long int and unsigned long long int.
54402         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54403         since the answer is already known.
54405 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54407         getloadavg: set errno
54408         * lib/getloadavg.c: Set errno when returning -1.  If no other
54409         error number looks appropriate, set it to ENOSYS if the getloadavg
54410         looks like it can't possibly ever work, ENOTSUP otherwise.
54411         Suggested by Bruno Haible in
54412         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54414         getloadavg: trim unused parts and speed up 'configure'
54415         * NEWS: Document this.
54416         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54417         always compiled if getloadavg is absent.
54418         Move test code to ...
54419         * tests/test-getloadavg.c: New file, containing previous
54420         contents of test from lib/getloadavg.c.  It also contains
54421         suggestions by Bruno Haible in
54422         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54423         * modules/getloadavg-tests: New file.
54424         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54425         Do tests in the same order as they're needed for getloadavg.c.
54426         Omit setgid-related tests that generate symbols KMEM_GROUP,
54427         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54428         Do only the tests that are needed to see whether the system has
54429         getloadavg, moving the other tests into ...
54430         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54431         NLIST_NAME_UNION; nobody should be using it.  Do not define
54432         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54433         relevant, as the user of this module shouldn't care how getloadavg
54434         is implemented.
54436         getloadavg: omit unused var
54437         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54439 2011-02-15  Jim Meyering  <meyering@redhat.com>
54441         doc: update users.txt
54442         * users.txt: Update iwhd's URL.
54444 2011-02-13  Bruno Haible  <bruno@clisp.org>
54446         Consistent macro naming for macros that use GCC __attribute__.
54447         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54448         _ATTRIBUTE_NONNULL_.
54449         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54450         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54451         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54452         ATTRIBUTE_DEPRECATED.
54453         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54454         ATTRIBUTE_NORETURN.
54455         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54456         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54457         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54458         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54459         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54460         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54461         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54462         ATTRIBUTE_SENTINEL.
54463         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54464         ATTRIBUTE_RETURN_CHECK.
54465         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54466         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54467         ATTRIBUTE_NORETURN.
54468         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54469         Reported by Paul Eggert.
54471 2011-02-13  Bruno Haible  <bruno@clisp.org>
54473         Don't interfere with a program's definition of __attribute__.
54474         * lib/argp.h (__attribute__): Remove definition.
54475         (_GL_ATTRIBUTE_FORMAT): New macro.
54476         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54477         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54478         (_GL_ATTRIBUTE_FORMAT): New macro.
54479         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54480         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54481         GCC 3 or newer.
54482         * lib/error.h (__attribute__): Remove definition.
54483         (_GL_ATTRIBUTE_FORMAT): New macro.
54484         (error, error_at_line): Use it.
54485         * lib/hash.h (__attribute__): Remove definition.
54486         (ATTRIBUTE_WUR): Update definition. Define always.
54487         * lib/openat.h (__attribute__): Remove definition.
54488         (ATTRIBUTE_NORETURN): Update definition. Define always.
54489         * lib/sigpipe-die.h (__attribute__): Remove definition.
54490         (ATTRIBUTE_NORETURN): Update definition. Define always.
54491         * lib/vasnprintf.h (__attribute__): Remove definition.
54492         (_GL_ATTRIBUTE_FORMAT): New macro.
54493         (asnprintf, vasnprintf): Use it.
54494         * lib/xalloc.h (__attribute__): Remove definition.
54495         (ATTRIBUTE_NORETURN): Update definition. Define always.
54496         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54497         * lib/xmemdup0.h (__attribute__): Remove definition.
54498         (ATTRIBUTE_NORETURN): Update definition. Define always.
54499         * lib/xprintf.h (__attribute__): Remove definition.
54500         (_GL_ATTRIBUTE_FORMAT): New macro.
54501         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54502         * lib/xstrtol.h (__attribute__): Remove definition.
54503         (ATTRIBUTE_NORETURN): Update definition. Define always.
54504         * lib/xvasprintf.h (__attribute__): Remove definition.
54505         (_GL_ATTRIBUTE_FORMAT): New macro.
54506         (xasprintf, xvasprintf): Use it.
54507         * tests/test-argmatch.c (__attribute__): Remove definition.
54508         (ATTRIBUTE_NORETURN): Update definition. Define always.
54509         * tests/test-exclude.c (__attribute__): Remove definition.
54510         (ATTRIBUTE_NORETURN): Update definition. Define always.
54511         Reported by Paul Eggert.
54513 2011-02-13  Bruno Haible  <bruno@clisp.org>
54515         mbrtowc: Add more tests for native Windows platforms.
54516         * tests/test-mbrtowc-w32-1.sh: New file.
54517         * tests/test-mbrtowc-w32-2.sh: New file.
54518         * tests/test-mbrtowc-w32-3.sh: New file.
54519         * tests/test-mbrtowc-w32-4.sh: New file.
54520         * tests/test-mbrtowc-w32-5.sh: New file.
54521         * tests/test-mbrtowc-w32.c: New file.
54522         * modules/mbrtowc-tests (Files): Add them.
54523         (Makefile.am): Arrange to run these tests.
54524         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54525         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54527 2011-02-13  Bruno Haible  <bruno@clisp.org>
54529         mbrtowc: Work around native Windows bug.
54530         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54531         guess when no suitable locale for testing was found.
54532         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54534 2011-02-13  Bruno Haible  <bruno@clisp.org>
54536         mbsinit: Work around mingw bug.
54537         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54538         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54539         Windows.
54540         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54542 2011-02-13  Bruno Haible  <bruno@clisp.org>
54544         mbsinit: Don't crash for a NULL argument.
54545         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54546         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54548 2011-02-13  Bruno Haible  <bruno@clisp.org>
54550         Don't interfere with a program's definition of __attribute__.
54551         * lib/stdio.in.h (__attribute__): Remove definition.
54552         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54553         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54554         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54555         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54556         * lib/string.in.h (__attribute__): Remove definition.
54557         Reported by Paul Eggert.
54559 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54561         stdlib: don't get in the way of non-GCC __attribute__
54562         See thread starting at
54563         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54564         Revert previous stdlib change, installing the following instead:
54565         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54566         to get in the way of a non-GCC compiler that supports __attribute__.
54567         (_GL_ATTRIBUTE_RETURN): New macro.
54568         (_Exit): Use it instead of __attribute__.
54570 2011-02-12  Bruno Haible  <bruno@clisp.org>
54572         quotearg test: Avoid test failure on mingw.
54573         * tests/test-quotearg.sh: Convert the locale identifier from native
54574         Windows syntax to Unix syntax.
54576 2011-02-12  Bruno Haible  <bruno@clisp.org>
54578         setlocale: Prefer gnulib's override over libintl's override.
54579         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54580         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54581         GNULIB_defined_setlocale is set.
54583 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54585         stdlib: support non-GCC __attribute__
54587         Fix a serious and tricky problem encountered when attempting to
54588         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
54589         5.5, but it crashed due to memory corruption on Solaris 10 with
54590         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
54591         bits that are otherwise zero.  This tagging is optional inside
54592         Emacs but is preferred and is used when __attribute__ ((__aligned
54593         (8))) works, as it does with both recent-enough GCC and with Sun C
54594         5.11.  However, Sun C 5.11 is not GCC and does not #define
54595         __GNUC__ and __GNUC_MINOR__.
54597         When I added the getloadavg module to Emacs, it brought in
54598         stdlib.in.h, which contained this fragment:
54600            #ifndef __attribute__
54601            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
54602            #  define __attribute__(Spec)   /* empty */
54603            # endif
54604            #endif
54606         When files that include <stdlib.h> were compiled with Sun C 5.11,
54607         the above code disabled __attribute__ ((__aligned (8))), which
54608         caused variables to not be properly aligned, which eventually led
54609         to the pointer corruption mentioned above.  (This was a bit hard
54610         to diagnose, unfortunately.)
54612         Several "#define __attribute__(X) /* empty */" code snippets need
54613         to be eradicated from Gnulib to work with non-GCC compilers that
54614         support __attribute__.  The Autoconf way to do this is to test for
54615         each kind of attribute that we want support for, and selectively
54616         enable that in source code.
54618         Fix this problem just for stdlib.h, by adding a test for the
54619         __noreturn__ attribute, and change stdlib.in.h to use that test
54620         when needed.  This technique can be easily generalized to the
54621         other *.in.h files and attributes, and a similar technique can be
54622         used for *.h and *.c files.  This patch is enough to solve the
54623         problem for Emacs + getloadavg, and I thought I'd publish it for
54624         feedback before undertaking further, similar fixes in other
54625         modules.
54627         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
54628         because it's not needed for stdlib.h.  It merely substitutes the
54629         value directly into stdlib.h.  We may well need to #define it, or
54630         similar symbols, for other modules, but it's nice to also have an
54631         option to not #define it for applications like Emacs that do not
54632         need it.
54634         * lib/stdlib.in.h (__attribute__): Do not #define.
54635         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
54636         be defined only if the _Exit module is also used.
54637         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
54638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
54639         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
54640         platforms.
54641         * modules/_Exit (Files): Add m4/attribute.m4.
54642         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
54643         * m4/attribute.m4: New file.
54645 2011-02-12  Bruno Haible  <bruno@clisp.org>
54647         wcsrtombs: Work around bug on native Windows.
54648         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
54649         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
54650         instead of len.
54651         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
54653 2011-02-12  Bruno Haible  <bruno@clisp.org>
54655         mbsrtowcs: Work around bug on native Windows.
54656         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
54657         against mingw bug.
54658         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
54660 2011-02-12  Bruno Haible  <bruno@clisp.org>
54662         Avoid setlocale bugs in tests.
54663         * modules/btowc (Dependencies): Add setlocale.
54664         * modules/c-strcase (Dependencies): Likewise.
54665         * modules/mbmemcasecmp (Dependencies): Likewise.
54666         * modules/mbmemcasecoll (Dependencies): Likewise.
54667         * modules/mbrtowc (Dependencies): Likewise.
54668         * modules/mbscasecmp (Dependencies): Likewise.
54669         * modules/mbscasestr (Dependencies): Likewise.
54670         * modules/mbschr (Dependencies): Likewise.
54671         * modules/mbscspn (Dependencies): Likewise.
54672         * modules/mbsinit (Dependencies): Likewise.
54673         * modules/mbsncasecmp (Dependencies): Likewise.
54674         * modules/mbsnrtowcs (Dependencies): Likewise.
54675         * modules/mbspbrk (Dependencies): Likewise.
54676         * modules/mbspcasecmp (Dependencies): Likewise.
54677         * modules/mbsrchr (Dependencies): Likewise.
54678         * modules/mbsrtowcs (Dependencies): Likewise.
54679         * modules/mbsspn (Dependencies): Likewise.
54680         * modules/mbsstr (Dependencies): Likewise.
54681         * modules/nl_langinfo (Dependencies): Likewise.
54682         * modules/quotearg (Dependencies): Likewise.
54683         * modules/unicase/locale-language (Dependencies): Likewise.
54684         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
54685         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
54686         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
54687         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
54688         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
54689         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
54690         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
54691         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
54692         * modules/vasnprintf-posix (Dependencies): Likewise.
54693         * modules/wcrtomb (Dependencies): Likewise.
54694         * modules/wcsnrtombs (Dependencies): Likewise.
54695         * modules/wcsrtombs (Dependencies): Likewise.
54697 2011-02-12  Bruno Haible  <bruno@clisp.org>
54699         setlocale: Workaround native Windows bug.
54700         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
54701         succeeds but sets LC_CTYPE to "C", report a failure.
54702         * tests/test-setlocale2.sh: New file.
54703         * tests/test-setlocale2.c: New file.
54704         * modules/setlocale-tests (Files): Add the new files.
54705         (Makefile.am): Enable test-setlocale2.sh test.
54706         * doc/posix-functions/setlocale.texi: Mention workaround.
54708 2011-02-11  Bruno Haible  <bruno@clisp.org>
54710         Tests for module 'setlocale'.
54711         * modules/setlocale-tests: New file.
54712         * tests/test-setlocale1.sh: New file.
54713         * tests/test-setlocale1.c: New file.
54715         New module 'setlocale'.
54716         * lib/locale.in.h (setlocale): New declaration.
54717         * lib/setlocale.c: New file, based on
54718         gettext/gettext-runtime/intl/setlocale.c.
54719         * m4/setlocale.m4: New file.
54720         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
54721         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
54722         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
54723         REPLACE_SETLOCALE.
54724         * modules/setlocale: New file.
54725         * tests/test-locale-c++.cc: Test the declaration of setlocale.
54726         * doc/posix-functions/setlocale.texi: Mention the new module.
54728 2011-02-11  Bruno Haible  <bruno@clisp.org>
54730         Prepare for locale dependent tests on mingw.
54731         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
54732         because it has the wrong locale encoding.
54733         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
54734         French_France.1252 instead of "fr".
54735         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
54736         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
54737         because it has the wrong locale encoding.
54738         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
54739         native Windows, try Turkish_Turkey.65001.
54740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
54741         Chinese_China.54936.
54743         Prepare for locale dependent tests on mingw.
54744         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
54745         differently.
54746         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
54747         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
54748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54751 2011-02-11  Eric Blake  <eblake@redhat.com>
54753         strptime: avoid compiler warnings
54754         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
54755         compiler warnings about dead code.
54756         Reported by Daniel P. Berrange.
54758 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
54760         doc: update users.txt
54761         * users.txt: Add rcs.
54763 2011-02-10  John W. Eaton  <jwe@gnu.org>
54765         doc: update users.txt
54766         * users.txt: Add octave.
54768 2011-02-10  Jim Meyering  <meyering@redhat.com>
54770         doc: update users.txt
54771         * users.txt: Add iwhd.
54773 2011-02-09  Bruno Haible  <bruno@clisp.org>
54775         gnulib-tool: Make copyright notice adjustment more robust.
54776         * gnulib-tool (func_import): In sed_transform_main_lib_file,
54777         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
54778         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
54779         License".
54780         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
54782 2011-02-06  Bruno Haible  <bruno@clisp.org>
54784         New module 'towctrans'.
54785         * modules/towctrans: New file.
54786         * lib/wctype.in.h (towctrans): New declaration.
54787         * lib/towctrans.c: New file.
54788         * lib/towctrans-impl.h: New file.
54789         * m4/towctrans.m4: New file.
54790         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
54791         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
54792         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
54793         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
54794         * doc/posix-functions/towctrans.texi: Mention the new module.
54796 2011-02-06  Bruno Haible  <bruno@clisp.org>
54798         New module 'wctrans'.
54799         * modules/wctrans: New file.
54800         * lib/wctype.in.h (wctrans): New declaration.
54801         * lib/wctrans.c: New file.
54802         * lib/wctrans-impl.h: New file.
54803         * m4/wctrans.m4: New file.
54804         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
54805         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
54806         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
54807         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
54808         * doc/posix-functions/wctrans.texi: Mention the new module.
54810 2011-02-06  Bruno Haible  <bruno@clisp.org>
54812         New module 'iswctype'.
54813         * modules/iswctype: New file.
54814         * lib/wctype.in.h (iswctype): New declaration.
54815         * lib/iswctype.c: New file.
54816         * lib/iswctype-impl.h: New file.
54817         * m4/iswctype.m4: New file.
54818         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
54819         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
54820         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
54821         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
54822         * doc/posix-functions/iswctype.texi: Mention the new module and the
54823         HP-UX 11.00 problem.
54825 2011-02-06  Bruno Haible  <bruno@clisp.org>
54827         New module 'wctype'.
54828         * modules/wctype: Change to represent the wctype() substitute.
54829         * lib/wctype.in.h (wctype): New declaration.
54830         * lib/wctype.c: New file.
54831         * lib/wctype-impl.h: New file.
54832         * m4/wctype.m4: New file.
54833         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
54834         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
54835         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
54836         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
54837         * doc/posix-functions/wctype.texi: Mention the new module and the
54838         HP-UX 11.00 problem.
54840 2011-02-06  Bruno Haible  <bruno@clisp.org>
54842         wctype-h: Ensure wctype_t and wctrans_t are defined.
54843         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
54844         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
54845         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
54846         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
54847         HAVE_WCTRANS_T.
54848         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
54850 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
54852         flock: fix license typo
54854         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
54855         omitted.
54857 2011-02-08  Bruno Haible  <bruno@clisp.org>
54859         Split large sed scripts, for HP-UX sed.
54860         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
54861         to avoid HP-UX limit of 99 commands, in the near future.
54862         * modules/stdlib (Makefile.am): Likewise.
54863         * modules/unistd (Makefile.am): Likewise.
54864         * modules/wchar (Makefile.am): Likewise.
54865         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54866         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
54867         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
54869 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
54870             Bruno Haible  <bruno@clisp.org>
54872         stdlib: improve random_r modularization
54873         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
54874         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
54875         you also need the random_r module to get this material right.
54876         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
54877         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
54878         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
54880 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
54882         stdlib: don't depend on stdint
54883         * lib/stdlib.in.h: Don't include <stdint.h> merely because
54884         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
54885         be independent of whether stdint.h is needed.
54886         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
54887         here, instead of ...
54888         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
54889         struct random_data should be using the random_r module, not just
54890         the stdlib module (which wouldn't make sense: what package needs
54891         just struct random_data without also needing random_r?).
54892         * modules/stdlib (Depends-on): Remove stdint.
54894         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
54895         See the thread rooted at
54896         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
54897         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
54898         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
54899         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
54900         __VMS)); previously it was always included (via fcntl--.h).
54901         (getloadavg): Do not use c_strtod.  Instead, approximate it by
54902         hand; this is good enough for load averages.  Also, do not use
54903         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
54904         flags directly if available and don't bother otherwise.  (Packages
54905         that need the extra reliability should use the modules that define
54906         these flags on older platforms that lack them.)
54907         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
54908         fcntl-safer.
54910 2011-02-08  Jim Meyering  <meyering@redhat.com>
54912         di-set.h, ino-map.h: add multiple-inclusion guard
54913         Technically, the guard is required only for ino-map.h, due to its
54914         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
54915         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
54916         * lib/ino-map.h: Likewise.
54918 2011-02-06  Bruno Haible  <bruno@clisp.org>
54920         iswblank: Ensure declaration on glibc systems.
54921         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
54922         * modules/iswblank (Dependencies): Add 'extensions'.
54923         * doc/posix-functions/iswblank.texi: Document the glibc problem.
54925 2011-02-06  Bruno Haible  <bruno@clisp.org>
54927         New module 'iswblank'.
54928         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
54929         * modules/iswblank: New file.
54930         * modules/wctype-h (Files): Remove lib/iswblank.c.
54931         (Makefile.am): Substitute GNULIB_ISWBLANK.
54932         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
54933         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
54934         (gl_WCTYPE_H_DEFAULTS): New macro.
54935         (gl_WCTYPE_H): Require it. Remove iswblank related code.
54936         * modules/iswblank-tests: New file.
54937         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
54938         * tests/test-wctype-h.c (main): Remove iswblank tests.
54939         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
54940         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
54941         of 'wctype-h'.
54942         * NEWS: Mention the change.
54943         * modules/mbchar (Depends-on): Add iswblank.
54945 2011-02-08  Bruno Haible  <bruno@clisp.org>
54947         di-set tests: Refactor.
54948         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
54949         unnecessary includes.
54950         (ASSERT): Remove macro.
54951         (main): Make C90 compliant by avoiding variable declaration after
54952         statement.
54953         * modules/di-set-tests (Files): Add tests/macros.h.
54955 2011-02-08  Bruno Haible  <bruno@clisp.org>
54957         ino-map tests: Refactor.
54958         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
54959         unnecessary includes.
54960         (ASSERT): Remove macro.
54961         (main): Make C90 compliant by avoiding variable declaration after
54962         statement.
54963         * modules/ino-map-tests (Files): Add tests/macros.h.
54965 2011-02-08  Jim Meyering  <meyering@redhat.com>
54967         di-set: add "const" to a cast
54968         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
54969         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
54971 2011-02-06  Bruno Haible  <bruno@clisp.org>
54973         Rename module 'wctype' to 'wctype-h'.
54974         * modules/wctype-h: Renamed from modules/wctype.
54975         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
54976         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
54977         (Files, Depends-on, Makefile.am): Update.
54978         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
54979         (Files, Makefile.am): Update.
54980         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
54981         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
54982         * doc/posix-headers/wctype.texi: Update.
54983         * doc/posix-functions/iswalnum.texi: Update.
54984         * doc/posix-functions/iswalpha.texi: Update.
54985         * doc/posix-functions/iswblank.texi: Update.
54986         * doc/posix-functions/iswcntrl.texi: Update.
54987         * doc/posix-functions/iswdigit.texi: Update.
54988         * doc/posix-functions/iswgraph.texi: Update.
54989         * doc/posix-functions/iswlower.texi: Update.
54990         * doc/posix-functions/iswprint.texi: Update.
54991         * doc/posix-functions/iswpunct.texi: Update.
54992         * doc/posix-functions/iswspace.texi: Update.
54993         * doc/posix-functions/iswupper.texi: Update.
54994         * doc/posix-functions/iswxdigit.texi: Update.
54995         * doc/posix-functions/towlower.texi: Update.
54996         * doc/posix-functions/towupper.texi: Update.
54997         * NEWS: Mention the change.
54998         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
54999         * modules/mbchar (Dependencies): Likewise.
55000         * modules/mbswidth (Dependencies): Likewise.
55001         * modules/quotearg (Dependencies): Likewise.
55002         * modules/regex (Dependencies): Likewise.
55003         * modules/wcscasecmp (Dependencies): Likewise.
55004         * modules/wcsncasecmp (Dependencies): Likewise.
55005         * modules/wcwidth (Dependencies): Likewise.
55007 2011-02-06  Bruno Haible  <bruno@clisp.org>
55009         New module 'wcswidth'.
55010         * modules/wcswidth: New file.
55011         * lib/wchar.in.h (wcswidth): New declaration.
55012         * lib/wcswidth.c: New file.
55013         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55014         * m4/wcswidth.m4: New file.
55015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55017         REPLACE_WCSWIDTH.
55018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55019         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55020         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55021         * doc/posix-functions/wcswidth.texi: Mention the new module.
55023 2011-02-06  Bruno Haible  <bruno@clisp.org>
55025         New module 'wcstok'.
55026         * modules/wcstok: New file.
55027         * lib/wchar.in.h (wcstok): New declaration.
55028         * lib/wcstok.c: New file.
55029         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55030         * m4/wcstok.m4: New file.
55031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55034         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55035         * doc/posix-functions/wcstok.texi: Mention the new module.
55037 2011-02-06  Bruno Haible  <bruno@clisp.org>
55039         New module 'wcsstr'.
55040         * modules/wcsstr: New file.
55041         * lib/wchar.in.h (wcsstr): New declaration.
55042         * lib/wcsstr.c: New file.
55043         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55044         * m4/wcsstr.m4: New file.
55045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55048         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55049         * doc/posix-functions/wcsstr.texi: Mention the new module.
55051 2011-02-06  Bruno Haible  <bruno@clisp.org>
55053         New module 'wcspbrk'.
55054         * modules/wcspbrk: New file.
55055         * lib/wchar.in.h (wcspbrk): New declaration.
55056         * lib/wcspbrk.c: New file.
55057         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55058         * m4/wcspbrk.m4: New file.
55059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55062         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55063         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55065 2011-02-06  Bruno Haible  <bruno@clisp.org>
55067         New module 'wcsspn'.
55068         * modules/wcsspn: New file.
55069         * lib/wchar.in.h (wcsspn): New declaration.
55070         * lib/wcsspn.c: New file.
55071         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55072         * m4/wcsspn.m4: New file.
55073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55076         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55077         * doc/posix-functions/wcsspn.texi: Mention the new module.
55079 2011-02-06  Bruno Haible  <bruno@clisp.org>
55081         New module 'wcscspn'.
55082         * modules/wcscspn: New file.
55083         * lib/wchar.in.h (wcscspn): New declaration.
55084         * lib/wcscspn.c: New file.
55085         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55086         * m4/wcscspn.m4: New file.
55087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55090         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55091         * doc/posix-functions/wcscspn.texi: Mention the new module.
55093 2011-02-06  Bruno Haible  <bruno@clisp.org>
55095         New module 'wcsrchr'.
55096         * modules/wcsrchr: New file.
55097         * lib/wchar.in.h (wcsrchr): New declaration.
55098         * lib/wcsrchr.c: New file.
55099         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55100         * m4/wcsrchr.m4: New file.
55101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55104         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55105         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55107 2011-02-06  Bruno Haible  <bruno@clisp.org>
55109         New module 'wcschr'.
55110         * modules/wcschr: New file.
55111         * lib/wchar.in.h (wcschr): New declaration.
55112         * lib/wcschr.c: New file.
55113         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55114         * m4/wcschr.m4: New file.
55115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55118         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55119         * doc/posix-functions/wcschr.texi: Mention the new module.
55121 2011-02-06  Bruno Haible  <bruno@clisp.org>
55123         New module 'wcsdup'.
55124         * modules/wcsdup: New file.
55125         * lib/wchar.in.h (wcsdup): New declaration.
55126         * lib/wcsdup.c: New file.
55127         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55128         * m4/wcsdup.m4: New file.
55129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55132         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55133         * doc/posix-functions/wcsdup.texi: Mention the new module.
55135 2011-02-06  Bruno Haible  <bruno@clisp.org>
55137         New module 'wcsxfrm'.
55138         * modules/wcsxfrm: New file.
55139         * lib/wchar.in.h (wcsxfrm): New declaration.
55140         * lib/wcsxfrm.c: New file.
55141         * lib/wcsxfrm-impl.h: New file.
55142         * m4/wcsxfrm.m4: New file.
55143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55146         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55147         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55149 2011-02-06  Bruno Haible  <bruno@clisp.org>
55151         New module 'wcscoll'.
55152         * modules/wcscoll: New file.
55153         * lib/wchar.in.h (wcscoll): New declaration.
55154         * lib/wcscoll.c: New file.
55155         * lib/wcscoll-impl.h: New file.
55156         * m4/wcscoll.m4: New file.
55157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55160         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55161         * doc/posix-functions/wcscoll.texi: Mention the new module.
55163 2011-02-06  Bruno Haible  <bruno@clisp.org>
55165         New module 'wcsncasecmp'.
55166         * modules/wcsncasecmp: New file.
55167         * lib/wchar.in.h (wcsncasecmp): New declaration.
55168         * lib/wcsncasecmp.c: New file.
55169         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55170         * m4/wcsncasecmp.m4: New file.
55171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55174         HAVE_WCSNCASECMP.
55175         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55176         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55178 2011-02-06  Bruno Haible  <bruno@clisp.org>
55180         New module 'wcscasecmp'.
55181         * modules/wcscasecmp: New file.
55182         * lib/wchar.in.h (wcscasecmp): New declaration.
55183         * lib/wcscasecmp.c: New file.
55184         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55185         * m4/wcscasecmp.m4: New file.
55186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55189         HAVE_WCSCASECMP.
55190         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55191         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55193 2011-02-05  Bruno Haible  <bruno@clisp.org>
55195         New module 'wcsncmp'.
55196         * modules/wcsncmp: New file.
55197         * lib/wchar.in.h (wcsncmp): New declaration.
55198         * lib/wcsncmp.c: New file.
55199         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55200         * m4/wcsncmp.m4: New file.
55201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55204         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55205         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55207 2011-02-05  Bruno Haible  <bruno@clisp.org>
55209         New module 'wcscmp'.
55210         * modules/wcscmp: New file.
55211         * lib/wchar.in.h (wcscmp): New declaration.
55212         * lib/wcscmp.c: New file.
55213         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55214         * m4/wcscmp.m4: New file.
55215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55218         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55219         * doc/posix-functions/wcscmp.texi: Mention the new module.
55221 2011-02-05  Bruno Haible  <bruno@clisp.org>
55223         New module 'wcsncat'.
55224         * modules/wcsncat: New file.
55225         * lib/wchar.in.h (wcsncat): New declaration.
55226         * lib/wcsncat.c: New file.
55227         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55228         * m4/wcsncat.m4: New file.
55229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55232         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55233         * doc/posix-functions/wcsncat.texi: Mention the new module.
55235 2011-02-05  Bruno Haible  <bruno@clisp.org>
55237         New module 'wcscat'.
55238         * modules/wcscat: New file.
55239         * lib/wchar.in.h (wcscat): New declaration.
55240         * lib/wcscat.c: New file.
55241         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55242         * m4/wcscat.m4: New file.
55243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55246         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55247         * doc/posix-functions/wcscat.texi: Mention the new module.
55249 2011-02-05  Bruno Haible  <bruno@clisp.org>
55251         New module 'wcpncpy'.
55252         * modules/wcpncpy: New file.
55253         * lib/wchar.in.h (wcpncpy): New declaration.
55254         * lib/wcpncpy.c: New file.
55255         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55256         * m4/wcpncpy.m4: New file.
55257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55259         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55260         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55261         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55263 2011-02-05  Bruno Haible  <bruno@clisp.org>
55265         New module 'wcsncpy'.
55266         * modules/wcsncpy: New file.
55267         * lib/wchar.in.h (wcsncpy): New declaration.
55268         * lib/wcsncpy.c: New file.
55269         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55270         * m4/wcsncpy.m4: New file.
55271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55274         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55275         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55277 2011-02-05  Bruno Haible  <bruno@clisp.org>
55279         New module 'wcpcpy'.
55280         * modules/wcpcpy: New file.
55281         * lib/wchar.in.h (wcpcpy): New declaration.
55282         * lib/wcpcpy.c: New file.
55283         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55284         * m4/wcpcpy.m4: New file.
55285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55287         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55288         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55289         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55291 2011-02-05  Bruno Haible  <bruno@clisp.org>
55293         New module 'wcscpy'.
55294         * modules/wcscpy: New file.
55295         * lib/wchar.in.h (wcscpy): New declaration.
55296         * lib/wcscpy.c: New file.
55297         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55298         * m4/wcscpy.m4: New file.
55299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55302         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55303         * doc/posix-functions/wcscpy.texi: Mention the new module.
55305 2011-02-05  Bruno Haible  <bruno@clisp.org>
55307         New module 'wcsnlen'.
55308         * modules/wcsnlen: New file.
55309         * lib/wchar.in.h (wcsnlen): New declaration.
55310         * lib/wcsnlen.c: New file.
55311         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55312         * m4/wcsnlen.m4: New file.
55313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55316         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55317         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55319 2011-02-05  Bruno Haible  <bruno@clisp.org>
55321         New module 'wcslen'.
55322         * modules/wcslen: New file.
55323         * lib/wchar.in.h (wcslen): New declaration.
55324         * lib/wcslen.c: New file.
55325         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55326         * m4/wcslen.m4: New file.
55327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55330         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55331         * doc/posix-functions/wcslen.texi: Mention the new module.
55333 2011-02-05  Bruno Haible  <bruno@clisp.org>
55335         New module 'wmemset'.
55336         * modules/wmemset: New file.
55337         * lib/wchar.in.h (wmemset): New declaration.
55338         * lib/wmemset.c: New file.
55339         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55340         * m4/wmemset.m4: New file.
55341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55343         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55344         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55345         * doc/posix-functions/wmemset.texi: Mention the new module.
55347 2011-02-05  Bruno Haible  <bruno@clisp.org>
55349         New module 'wmemmove'.
55350         * modules/wmemmove: New file.
55351         * lib/wchar.in.h (wmemmove): New declaration.
55352         * lib/wmemmove.c: New file.
55353         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55354         * m4/wmemmove.m4: New file.
55355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55357         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55358         HAVE_WMEMMOVE.
55359         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55360         * doc/posix-functions/wmemmove.texi: Mention the new module.
55362 2011-02-05  Bruno Haible  <bruno@clisp.org>
55364         New module 'wmemcpy'.
55365         * modules/wmemcpy: New file.
55366         * lib/wchar.in.h (wmemcpy): New declaration.
55367         * lib/wmemcpy.c: New file.
55368         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55369         * m4/wmemcpy.m4: New file.
55370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55372         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55373         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55374         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55376 2011-02-05  Bruno Haible  <bruno@clisp.org>
55378         New module 'wmemcmp'.
55379         * modules/wmemcmp: New file.
55380         * lib/wchar.in.h (wmemcmp): New declaration.
55381         * lib/wmemcmp.c: New file.
55382         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55383         * m4/wmemcmp.m4: New file.
55384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55386         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55387         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55388         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55390 2011-02-07  Jim Meyering  <meyering@redhat.com>
55392         di-set, ino-map: new modules, from coreutils
55393         * lib/di-set.c: New file.
55394         * lib/di-set.h: Likewise.
55395         * lib/ino-map.c: Likewise.
55396         * lib/ino-map.h: Likewise.
55397         * modules/di-set: Likewise.
55398         * modules/di-set-tests: Likewise.
55399         * modules/ino-map: Likewise.
55400         * modules/ino-map-tests: Likewise.
55401         * tests/test-di-set.c: Likewise.
55402         * tests/test-ino-map.c: Likewise.
55404 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55406         getloadavg: merge minor changes from Emacs
55408         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55409         (getloadavg): Use memset, not bzero.
55411         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55412         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55413         clash (bug#86).
55415 2010-11-14  Bruno Haible  <bruno@clisp.org>
55417         Allow multiple gnulib generated replacements to coexist.
55418         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55419         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55420         * lib/langinfo.in.h (nl_item): Likewise.
55421         * lib/math.in.h (_NaN, NAN): Likewise.
55422         * lib/netdb.in.h (struct addrinfo): Likewise.
55423         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55424         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55425         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55426         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55427         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55428         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55429         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55430         pthread_mutexattr_init, pthread_mutexattr_settype,
55431         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55432         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55433         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55434         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55435         * lib/sched.in.h (struct sched_param): Likewise.
55436         * lib/se-selinux.in.h (security_class_t, security_context_t,
55437         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55438         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55439         lsetfilecon, fsetfilecon, security_check_context,
55440         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55441         Likewise.
55442         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55443         Likewise.
55444         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55445         _gl_function_taking_int_returning_void_t, union sigval,
55446         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55447         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55448         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55449         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55450         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55451         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55452         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55453         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55454         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55455         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55456         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55457         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55458         socklen_t, rpl_fd_isset): Likewise.
55459         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55460         * lib/sys_time.in.h (struct timeval): Likewise.
55461         * lib/sys_times.in.h (struct tms): Likewise.
55462         * lib/sys_utsname.in.h (struct utsname):
55463         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55464         * lib/unistd.in.h (getpagesize): Likewise.
55465         * lib/wchar.in.h (mbstate_t): Likewise.
55466         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55467         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55468         towlower, towupper): Likewise.
55469         Reported by Sam Steingold <sds@gnu.org>.
55471 2011-02-05  Eric Blake  <eblake@redhat.com>
55473         unsetenv: work around Haiku issues
55474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55475         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55477 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55479         libposix: avoid calling error() within libposix
55480         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55481         is defined.
55483 2011-02-05  Eric Blake  <eblake@redhat.com>
55485         strerror_r-posix: port to cygwin
55486         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55487         implementation.
55488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55489         * tests/test-strerror_r.c (main): Fix test.
55490         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55491         issue.
55493 2011-02-05  Bruno Haible  <bruno@clisp.org>
55495         New module 'wmemchr'.
55496         * modules/wmemchr: New file.
55497         * lib/wchar.in.h (wmemchr): New declaration.
55498         * lib/wmemchr.c: New file.
55499         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55500         * m4/wmemchr.m4: New file.
55501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55503         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55504         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55505         * doc/posix-functions/wmemchr.texi: Mention the new module.
55507 2011-02-04  Eric Blake  <eblake@redhat.com>
55509         fdopendir: detect FreeBSD bug
55510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55511         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55513 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55515         stdbool: do not define HAVE_STDBOOL_H
55516         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55517         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55518         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55519         imported from the latest Autoconf git.  It was motivated by Emacs,
55520         which uses gnulib but does not need HAVE_STDBOOL_H.
55522 2011-02-04  Bruno Haible  <bruno@clisp.org>
55524         wcsnrtombs: Prepare for new module wwcsnrtombs.
55525         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55526         * lib/wcsnrtombs.c: Include it.
55527         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55529         wcsrtombs: Prepare for new module wwcsrtombs.
55530         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55531         * lib/wcsrtombs.c: Include it.
55532         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55534         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55535         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55536         * lib/mbsnrtowcs.c: Include it.
55537         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55539         mbsrtowcs: Prepare for new module mbsrtowwcs.
55540         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55541         * lib/mbsrtowcs.c: Include it.
55542         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55544 2011-02-04  Bruno Haible  <bruno@clisp.org>
55546         vasnprintf: Reduce use of malloc for small format strings.
55547         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55548         (arguments): Add room for the first 7 arguments.
55549         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55550         (char_directives, u8_directives, u16_directives, u32_directives): Add
55551         room for the first 7 directives.
55552         * lib/printf-parse.c: Include <string.h>.
55553         (PRINTF_PARSE): Change memory handling code so that it uses the first
55554         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55555         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55556         Reported by Pádraig Brady <P@draigbrady.com>.
55558 2011-01-31  Eric Blake  <eblake@redhat.com>
55560         dup2: work around Haiku bug
55561         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55562         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55563         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55564         * tests/test-dup2.c (main): Enhance test.
55566 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55568         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55569         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55570         declared by eglibc 2.11.2.
55571         * lib/stdio.in.h: Likewise.
55573 2011-01-31  Eric Blake  <eblake@redhat.com>
55575         ignore-value: add missing test dependency
55576         * tests/test-ignore-value.c: Revert previous change; stdio.h
55577         provides off_t.
55578         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55580 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55582         mktime: clarify long_int width checking
55583         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55584         the top level, to make it clearer that the assumption about
55585         long_int width is being checked.  See
55586         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
55588 2011-01-30  Simon Josefsson  <simon@josefsson.org>
55590         ignore-value: Fix self-test.
55591         * tests/test-ignore-value.c: Include sys/types.h for off_t.
55593 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55595         TYPE_MAXIMUM: avoid theoretically undefined behavior
55596         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
55597         negative number, which the C Standard says has undefined behavior.
55598         In practice this is not a problem, but might as well do it by the book.
55599         Reported by Rich Felker and Eric Blake; see
55600         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
55601         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
55602         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55604         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
55605         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55606         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
55608         mktime: #undef mktime before #defining it
55609         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
55611         mktime: systematically normalize tm_isdst comparisons
55612         * lib/mktime.c (isdst_differ): New function.
55613         (__mktime_internal): Use it systematically for all isdst comparisons.
55614         This completes the fix for libc BZ #6723, and removes the need for
55615         normalizing tm_isdst.  See
55616         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
55617         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
55619         mktime: fix some integer overflow issues and sidestep the rest
55621         This was prompted by a bug report by Benjamin Lindner for MinGW
55622         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
55623         His bug is due to signed integer overflow (0 - INT_MIN), and I
55624         I scanned through mktime.c looking for other integer overflow
55625         problems, fixing all the bugs I found.
55627         Although the C Standard says the resulting code is still not safe
55628         in the presence of integer overflow, in practice it should be good
55629         enough for all real-world two's-complement implementations, except
55630         for debugging environments that deliberately trap on integer
55631         overflow (e.g., gcc -ftrapv).
55633         * lib/mktime.c (WRAPV): New macro.
55634         (SHR): Also check that long_int and time_t shift right in the
55635         usual way, before using the fast-but-unportable method.
55636         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
55637         used.  The code already assumed two's complement, so there's
55638         no need to test for alternatives.  All uses removed.
55639         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
55640         the C standard.  Problem reported by Rich Felker in
55641         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
55642         (twos_complement_arithmetic): Also check long_int and time_t.
55643         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
55644         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
55645         (__mktime_internal): Avoid integer overflow with unary subtraction
55646         in two instances where -1 - X is an adequate replacement for -X,
55647         since the calculations are approximate.
55649 2011-01-29  Eric Blake  <eblake@redhat.com>
55651         mktime: avoid infinite loop
55652         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
55653         type; behavior is still undefined but portable to all known targets.
55654         Reported by Rich Felker.
55656 2011-01-29  Simon Josefsson  <simon@josefsson.org>
55658         rename, unlink, same-inode: Relicense.
55659         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
55660         * modules/unlink (License): Likewise.
55661         * modules/same-inode (License): Likewise.
55663 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55665         mktime: avoid problems on NetBSD 5 / i386
55666         * lib/mktime.c (long_int): New type.  This works around a problem
55667         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
55668         but time_t is 64 bits, and where I expect the existing code is
55669         wrong in some cases.
55670         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
55671         (ydhms_diff): Bring back the compile-time check for wide-enough
55672         year and yday.
55674         mktime: fix misspelling in comment
55675         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
55676         This merges all recent glibc changes of importance.
55678 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55680         move-if-change: cope with concurrent mv of identical file.
55681         * build-aux/move-if-change (CMPPROG): Accept environment
55682         variable as an override for `cmp'.
55683         (usage): Document CMPPROG.
55684         Adjust comparison to drop stdout.  Cope with failure of mv if
55685         the target file exists and is identical to the source, for
55686         parallel builds.
55687         Report from H.J. Lu against binutils in PR binutils/12283.
55689 2011-01-28  Bruce Korb  <bkorb@gnu.org>
55691         * users.txt: Mention sharutils.
55693 2011-01-28  Simon Josefsson  <simon@josefsson.org>
55695         * users.txt: Mention OATH Toolkit.
55697 2011-01-27  Bruno Haible  <bruno@clisp.org>
55699         Prepare for supporting FreeBSD 10.
55700         * build-aux/config.libpath: Remove handling of freebsd1*.
55702 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
55704         Prepare for supporting FreeBSD 10.
55705         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
55706         match FreeBSD 10.0.
55708 2011-01-27  Bruno Haible  <bruno@clisp.org>
55710         vma-iter, get-rusage-as: Add OpenBSD support.
55711         * modules/vma-iter (configure.ac): Test for mquery.
55712         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
55713         * lib/vma-iter.c: Include <sys/mman.h>.
55714         (vma_iterate): Add an implementation based on mquery().
55715         * lib/resource-ext.h (get_rusage_as): Update comments.
55716         * lib/get-rusage-as.c: Likewise.
55717         * lib/get-rusage-data.c: Likewise.
55719 2011-01-26  Karl Berry  <karl@gnu.org>
55721         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
55722         variables to make it easier to override the makeinfo program used.
55724 2011-01-26  Eric Blake  <eblake@redhat.com>
55726         fcntl: work around Haiku F_DUPFD bugs
55727         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
55728         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
55729         cloexec bit on duplication.
55730         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
55732 2011-01-26  Bruno Haible  <bruno@clisp.org>
55734         Enable memory leak tests on AIX.
55735         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
55736         * tests/test-fprintf-posix3.c (main): Likewise.
55738 2011-01-26  Bruno Haible  <bruno@clisp.org>
55740         Tests for module 'get-rusage-data'.
55741         * modules/get-rusage-data-tests: New file.
55742         * tests/test-get-rusage-data.c: New file.
55744         New module 'get-rusage-data'.
55745         * lib/resource-ext.h (get_rusage_data): New declaration.
55746         * lib/get-rusage-data.c: New file.
55747         * modules/get-rusage-data: New file.
55749 2011-01-25  Bruno Haible  <bruno@clisp.org>
55751         get-rusage-as: Allow for easier testing.
55752         * lib/resource-ext.h (get_rusage_as): Add comment.
55753         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
55754         (main): New function for interactive testing.
55756 2011-01-25  Bruno Haible  <bruno@clisp.org>
55758         vma-iter: Treat Haiku like BeOS.
55759         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
55760         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
55762 2011-01-25  Eric Blake  <eblake@redhat.com>
55764         c-stack: fix regression on cygwin when libsigsegv is present
55765         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
55767 2011-01-24  Bruno Haible  <bruno@clisp.org>
55769         vma-iter: Avoid empty intervals.
55770         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
55771         on an empty interval.
55773 2011-01-24  Jim Meyering  <meyering@redhat.com>
55775         u64: remove unnecessary #include
55776         * lib/u64.h: Don't include <stddef.h>.  It was not used.
55778 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55780         Allow the user to avoid the HAVE_RAW_DECL_* macros.
55781         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
55783 2011-01-23  Bruno Haible  <bruno@clisp.org>
55785         New module 'vma-iter'.
55786         * lib/vma-iter.h: New file.
55787         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
55788         * modules/vma-iter: New file.
55789         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
55790         for get_rusage_as_via_iterator.
55791         (vma_iterate_callback): New function.
55792         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
55793         * modules/get-rusage-as (Depends-on): Add vma-iter.
55795 2011-01-23  Bruno Haible  <bruno@clisp.org>
55797         uninorm: Tweak includes.
55798         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
55799         Reported by Jim Meyering.
55801 2011-01-23  Bruno Haible  <bruno@clisp.org>
55803         get-rusage-as: Improve on NetBSD.
55804         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
55805         /proc, like on FreeBSD.
55807 2011-01-23  Jim Meyering  <meyering@redhat.com>
55809         xreadlink.h: remove unnecessary #include
55810         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
55812         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
55813         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
55815 2011-01-23  Bruno Haible  <bruno@clisp.org>
55817         get-rusage-as: Fix bug.
55818         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
55819         original limit when aborting the first loop.
55821 2011-01-23  Bruno Haible  <bruno@clisp.org>
55823         wctype: Ensure valid C syntax.
55824         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
55825         unconditionally, instead of gl_NEXT_HEADERS conditionally.
55827 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
55829         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
55830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
55831         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
55832         as they are needed only for configure's test case.
55833         This removes two unnecessary symbols from config.h.
55835         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
55836         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
55837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
55838         AC_CHECK_HEADERS_ONCE on a header that we also invoke
55839         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
55840         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
55841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
55842         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
55843         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55844         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55845         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55846         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55847         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55849         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
55850         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55851         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
55852         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
55854 2011-01-21  Eric Blake  <eblake@redhat.com>
55856         maintainer-makefile: work with older git for submodule check
55857         * top/maint.mk (public-submodule-commit): Rewrite to avoid
55858         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
55859         Reported by Matthias Bolte.
55861         bootstrap: minor portability fixes
55862         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
55863         (usage): Omit leading capital and trailing . on help phrases, per
55864         GNU Coding Standards.
55865         (check_versions, top level): Prefix messages with script name.
55867 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
55869         bootstrap: support --no-git option
55870         * build-aux/bootstrap: Add --no-git option, to be used when
55871         --gnulib-srcdir points to the exact desired checkout.
55873 2011-01-21  Eric Blake  <eblake@redhat.com>
55875         strerror_r-posix: work with glibc 2.13
55876         * lib/strerror_r.c (strerror_r): Fix return type.
55878 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55879             Bruno Haible  <bruno@clisp.org>
55881         uN_strstr: New unit tests.
55882         * modules/unistr/u8-strstr-tests: New file.
55883         * modules/unistr/u16-strstr-tests: New file.
55884         * modules/unistr/u32-strstr-tests: New file.
55885         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
55886         * tests/unistr/test-u8-strstr.c: New file.
55887         * tests/unistr/test-u16-strstr.c: New file.
55888         * tests/unistr/test-u32-strstr.c: New file.
55890 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55891             Bruno Haible  <bruno@clisp.org>
55893         Make uN_strstr functions O(n) worst-case.
55894         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
55895         16-bit and 32-bit unit cases, use the unibyte algorithm from
55896         lib/mbsstr.c.
55897         * lib/unistr/u8-strstr.c: Include <string.h>.
55898         (UNIT_IS_UINT8_T): New macro.
55899         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
55900         (U_STRLEN, U_STRNLEN): New macros.
55901         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
55902         (U_STRLEN, U_STRNLEN): New macros.
55903         * modules/unistr/u8-strstr (Depends-on): Add strstr.
55904         (configure.ac): Update required libunistring version.
55905         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
55906         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
55907         malloca.
55908         (configure.ac): Update required libunistring version.
55909         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
55910         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
55911         malloca.
55912         (configure.ac): Update required libunistring version.
55914 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55915             Bruno Haible  <bruno@clisp.org>
55917         Prepare for faster uN_strstr functions.
55918         * lib/str-kmp.h: Support definable UNITs.
55919         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
55920         needle_len argument.
55921         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
55922         * lib/mbscasestr.c (mbscasestr): Likewise.
55924 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55926         malloca-tests: make faster by unsetting MALLOC_PERTURB_
55927         * tests/test-malloca.c (main): Unset the environment variable
55928         to greatly speed up the test.
55929         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
55930         * modules/malloca-tests: Depend on unsetenv.
55932 2011-01-21  Pádraig Brady  <P@draigBrady.com>
55934         ignore-value: remove stdint dependency
55935         * lib/ignore-value.h: Remove <stdint.h>
55936         * modules/ignore-value: Remove stdint dependency.
55938 2011-01-21  Jim Meyering  <meyering@redhat.com>
55940         maint.mk: adjust variable name to be consistent with other gl_ vars
55941         * top/maint.mk (gl_public_submodule_commit): Rename the variable
55942         to be lower case.
55944 2011-01-20  Jim Meyering  <meyering@redhat.com>
55946         maint.mk: make "check" depend on public-submodule-commit by default
55947         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
55949 2011-01-20  Bruno Haible  <bruno@clisp.org>
55951         mbfile, mbiter: Complete change from 2008-12-21.
55952         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
55953         * m4/mbiter.m4 (gl_MBITER): Likewise.
55955 2011-01-20  Jim Meyering  <meyering@redhat.com>
55957         init.sh: insert space between each function name and "()"
55958         * tests/init.sh: Make it a little easier to see that a function's
55959         name is "warn_", and not "warn" when looking at the first part of
55960         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
55962 2011-01-20  Jim Meyering  <meyering@redhat.com>
55964         mountlist: clean up code formatting
55965         * lib/mountlist.c (read_file_system_list): Split a long line,
55966         correct bracing style, use NULL in place of "(struct statfs *)0",
55967         don't parenthesize return value, add spaces around "=" and after
55968         ";-in-for-stmt".
55970 2011-01-14  Markus Duft  <mduft@gentoo.org>
55972         mountlist: add support for Interix
55973         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
55974         Apply statvfs to all entries of /dev/fs.
55975         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
55976         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
55978 2011-01-20  Jim Meyering  <meyering@redhat.com>
55980         maint.mk: improve the public-submodule-commit rule
55981         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
55982         to suppress printing of its commands... unless V=1.
55983         Add git submodule's --quiet option to suppress printing of e.g.,
55984         "Entering gnulib" output.
55985         "cd" into $(srcdir) before running git submodule.
55987 2011-01-20  Bruno Haible  <bruno@clisp.org>
55989         include_next: Fix bug introduced on 2011-01-18.
55990         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
55991         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
55992         ac_cv_header_... variable if the second argument is not 'check'.
55993         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
55994         gl_NEXT_HEADERS_INTERNAL.
55996 2011-01-20  Bruno Haible  <bruno@clisp.org>
55998         Allow the user to avoid the GNULIB_TEST_* macros.
55999         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56000         Suggested by Paul Eggert.
56002 2011-01-14  Jim Meyering  <meyering@redhat.com>
56004         bootstrap: avoid failure when there is no .gitmodules file
56005         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56006         has been assigned to, even when its value is the empty string.
56007         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56008         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56009         Reported by John W. Eaton <jwe@gnu.org>.
56011 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56013         assume <ctype.h>, ..., <time.h> exist
56014         For years gnulib has been assuming the existence of the headers
56015         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56016         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56017         them, since they don't appear to be needed.
56018         * README (Portability guidelines): Document this.
56019         * lib/flock.c: Assume <fcntl.h> exists.
56020         * lib/regex_internal.h: Assume <locale.h> exists.
56021         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56023         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56024         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56025         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56026         * m4/regex.m4 (gl_REGEX): Likewise.
56027         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56028         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56029         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56030         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56031         * tests/test-argp.c: Likewise.
56032         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56034         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56035         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56036         AA_APPLE_UNIVERSAL_BUILD.  See
56037         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56038         * NEWS: Document this.
56040 2011-01-19  Eric Blake  <eblake@redhat.com>
56042         c-stack: assume stack overflow if SA_SIGINFO unsupported
56043         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56044         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56045         sigaction will work.
56046         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56047         behavior match Linux.
56048         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56050         stdbool-tests: accommodate Haiku
56051         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56053         binary-io: fix O_TEXT on Haiku
56054         * modules/binary-io (Depends-on): Add fcntl-h.
56055         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56056         than blindly undefining O_TEXT.
56057         Reported by Scott McCreary.
56059 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56061         include_next: do not check for standard headers like stddef.h
56063         I found this problem when modifying Emacs to use gnulib.
56064         I noticed that it added HAVE_STDDEF_H to config.h, even though
56065         gnulib always assumes <stddef.h> exists as per README and this
56066         symbol is unnecessary.
56067         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56068         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56069         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56070         faster for headers like stddef.h that are known to exist.
56071         (gl_CHECK_NEXT_HEADERS): Use it.
56072         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56073         rather than gl_CHECK_NEXT_HEADERS.
56074         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56075         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56077 2011-01-18  Eric Blake  <eblake@redhat.com>
56079         ansi-c++-opt: skip C++ dependency style if C++ is unused
56080         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56081         tests when we know C++ compilation is not desired.
56082         Reported by Scott McCreary.
56084 2011-01-18  Bruno Haible  <bruno@clisp.org>
56086         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56087         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56088         (main): Perform test also when getrlimit and setrlimit don't exist or
56089         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56090         limiting the address space size using setrlimit, compare the address
56091         space size before and after the test.
56092         * tests/test-dprintf-posix2.c: Likewise.
56093         * tests/test-fprintf-posix3.sh: Update skip messages.
56094         * tests/test-dprintf-posix2.sh: Likewise.
56095         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56096         * modules/dprintf-posix-tests (Depends-on): Likewise.
56097         Reported by Bruce Korb <bkorb@gnu.org> and
56098         Gary V. Vaughan <gary@gnu.org>.
56100 2011-01-18  Bruno Haible  <bruno@clisp.org>
56102         get-rusage-as: Improvement for Cygwin.
56103         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56104         areas that are merely reserved.
56106 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56108         strftime: remove dependencies on multibyte modules
56110         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56111         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56112         only if __osf__ is defined, and I suspect OSF doesn't need these
56113         other modules.  If my guess is wrong, we'll need to come up with a
56114         variant of strftime that doesn't need the multibyte modules.
56116         I discovered this problem when attempting modify Emacs to use the
56117         strftime module.  With the previous gnulib, this caused Emacs to
56118         need 31 new files, ranging from lib/config.charset to
56119         m4/wint_t.m4.  This was overkill and I expect would be offputting
56120         to the Emacs maintainers.  After this change, only 6 new files are
56121         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56122         stdbool.m4, and tm_gmtoff.m4.
56124         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56125         Suggested by Bruno Haible in
56126         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56128         and do not check for wchar.h.
56129         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56130         (Depends-on): Remove mbrlen, mbsinit, wchar.
56132 2011-01-18  Bruno Haible  <bruno@clisp.org>
56134         Tests for module 'get-rusage-as'.
56135         * modules/get-rusage-as-tests: New file.
56136         * tests/test-get-rusage-as.c: New file.
56138         New module 'get-rusage-as'.
56139         * modules/get-rusage-as: New file.
56140         * lib/resource-ext.h: New file.
56141         * lib/get-rusage-as.c: New file.
56143 2011-01-17  Eric Blake  <eblake@redhat.com>
56145         sigaction: relax license from LGPLv3+ to LGPLv2+
56146         * modules/sigaction (License): Relax to LGPLv2+.
56148 2011-01-14  Bruno Haible  <bruno@clisp.org>
56150         filemode: Make function declarations usable in C++ mode.
56151         * lib/filemode.h: Enclose function declarations in extern "C" block.
56152         Reported by John W. Eaton <jwe@gnu.org>.
56154 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56156         save-cwd: no longer include "xgetcwd.h"
56157         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56158         This avoids a compilation failure in projects that use save-cwd
56159         without also using the xgetcwd module.
56161 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56163         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56164         This is so that a program like Emacs, which needs only dtoastr,
56165         does not have to bother with distributing and compiling ftoastr
56166         and ldtoastr.
56167         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56168         * modules/dtoastr, modules/ldtoastr: New files.
56169         * modules/ftoastr: Now works just for 'float'.
56170         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56171         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56172         dtoastr.c, ldtoastr.c.
56174 2011-01-11  Jim Meyering  <meyering@redhat.com>
56176         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56177         There is no need to work around the lack of the fchdir function,
56178         since gnulib can now provide a replacement when required.
56179         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56180         * modules/save-cwd (Depends-on): Add fchdir.
56182 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56184         openat, save-cwd: avoid xmalloc
56186         This removes a direct (but undocumented) dependency of openat on
56187         xalloc, along with an indirect dependency via save-cwd.  It also
56188         removes a dependency of save-cwd on xgetcwd, and thereby
56189         indirectly on xalloc.  This change causes the openat substitute
56190         to fall back on save_cwd when memory is tight, and for save_cwd to
56191         fail instead of dying when memory is tight, but that's good enough.
56192         Problem and initial idea for fix reported by Bastien Roucaries in
56193         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56195         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56196         xalloc.h (for xmalloc).
56197         (openat_proc_name): Use malloc, not xmalloc.
56198         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56199         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56201         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56202         This avoids heap allocation for file names whose lengths are in
56203         the range 512..1023, with the upper bound increasing to at most
56204         4031 depending on the platform's PATH_MAX.  (We do not want
56205         pathmax.h here as it might supply a non-constant PATH_MAX.)
56206         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56207         Perhaps they should be moved to malloca.h?
56208         (OPENAT_BUFFER_SIZE): Use them.
56210 2011-01-10  Bruno Haible  <bruno@clisp.org>
56212         doc: Update users.txt.
56213         * users.txt: Add recutils.
56215 2011-01-09  Karl Berry  <karl@gnu.org>
56217         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56219         * doc/configmake.texi: New file.
56220         * doc/gnulib.texi: Include it.
56221         * modules/configmake: Move documentation from here.
56223 2011-01-09  Bruno Haible  <bruno@clisp.org>
56225         Update to Unicode 6.0.0.
56226         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56227         (get_lbp): Update for Unicode 6.0.0.
56228         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56229         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56230         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56231         U+11001, U+11038..U+11046. Remove U+06DE.
56232         (uc_width): Fix bounds of planes.
56233         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56234         lib/uniwidth/width.c.
56235         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56236         trailing whitespace removed.
56237         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56238         without comments, but with the original copyright notice.
56239         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56240         * lib/unicase/ignorable.h: Likewise.
56241         * lib/unicase/tocasefold.h: Likewise.
56242         * lib/unicase/tolower.h: Likewise.
56243         * lib/unicase/totitle.h: Likewise.
56244         * lib/unicase/toupper.h: Likewise.
56245         * lib/unictype/bidi_of.h: Likewise.
56246         * lib/unictype/blocks.h: Likewise.
56247         * lib/unictype/categ_C.h: Likewise.
56248         * lib/unictype/categ_Cn.h: Likewise.
56249         * lib/unictype/categ_L.h: Likewise.
56250         * lib/unictype/categ_Ll.h: Likewise.
56251         * lib/unictype/categ_Lm.h: Likewise.
56252         * lib/unictype/categ_Lo.h: Likewise.
56253         * lib/unictype/categ_Lu.h: Likewise.
56254         * lib/unictype/categ_M.h: Likewise.
56255         * lib/unictype/categ_Mc.h: Likewise.
56256         * lib/unictype/categ_Me.h: Likewise.
56257         * lib/unictype/categ_Mn.h: Likewise.
56258         * lib/unictype/categ_N.h: Likewise.
56259         * lib/unictype/categ_Nd.h: Likewise.
56260         * lib/unictype/categ_No.h: Likewise.
56261         * lib/unictype/categ_P.h: Likewise.
56262         * lib/unictype/categ_Po.h: Likewise.
56263         * lib/unictype/categ_S.h: Likewise.
56264         * lib/unictype/categ_Sc.h: Likewise.
56265         * lib/unictype/categ_Sk.h: Likewise.
56266         * lib/unictype/categ_Sm.h: Likewise.
56267         * lib/unictype/categ_So.h: Likewise.
56268         * lib/unictype/categ_of.h: Likewise.
56269         * lib/unictype/combining.h: Likewise.
56270         * lib/unictype/ctype_alnum.h: Likewise.
56271         * lib/unictype/ctype_alpha.h: Likewise.
56272         * lib/unictype/ctype_graph.h: Likewise.
56273         * lib/unictype/ctype_lower.h: Likewise.
56274         * lib/unictype/ctype_print.h: Likewise.
56275         * lib/unictype/ctype_punct.h: Likewise.
56276         * lib/unictype/ctype_upper.h: Likewise.
56277         * lib/unictype/decdigit.h: Likewise.
56278         * lib/unictype/digit.h: Likewise.
56279         * lib/unictype/numeric.h: Likewise.
56280         * lib/unictype/pr_alphabetic.h: Likewise.
56281         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56282         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56283         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56284         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56285         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56286         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56287         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56288         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56289         * lib/unictype/pr_case_ignorable.h: Likewise.
56290         * lib/unictype/pr_cased.h: Likewise.
56291         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56292         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56293         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56294         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56295         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56296         * lib/unictype/pr_combining.h: Likewise.
56297         * lib/unictype/pr_composite.h: Likewise.
56298         * lib/unictype/pr_currency_symbol.h: Likewise.
56299         * lib/unictype/pr_decimal_digit.h: Likewise.
56300         * lib/unictype/pr_deprecated.h: Likewise.
56301         * lib/unictype/pr_format_control.h: Likewise.
56302         * lib/unictype/pr_grapheme_base.h: Likewise.
56303         * lib/unictype/pr_grapheme_extend.h: Likewise.
56304         * lib/unictype/pr_grapheme_link.h: Likewise.
56305         * lib/unictype/pr_id_continue.h: Likewise.
56306         * lib/unictype/pr_id_start.h: Likewise.
56307         * lib/unictype/pr_ideographic.h: Likewise.
56308         * lib/unictype/pr_lowercase.h: Likewise.
56309         * lib/unictype/pr_math.h: Likewise.
56310         * lib/unictype/pr_numeric.h: Likewise.
56311         * lib/unictype/pr_other_alphabetic.h: Likewise.
56312         * lib/unictype/pr_other_id_continue.h: Likewise.
56313         * lib/unictype/pr_other_math.h: Likewise.
56314         * lib/unictype/pr_punctuation.h: Likewise.
56315         * lib/unictype/pr_sentence_terminal.h: Likewise.
56316         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56317         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56318         * lib/unictype/pr_unified_ideograph.h: Likewise.
56319         * lib/unictype/pr_uppercase.h: Likewise.
56320         * lib/unictype/pr_xid_continue.h: Likewise.
56321         * lib/unictype/pr_xid_start.h: Likewise.
56322         * lib/unictype/scripts.h: Likewise.
56323         * lib/unictype/scripts_byname.gperf: Likewise.
56324         * lib/unictype/sy_java_ident.h: Likewise.
56325         * lib/unigbrk/gbrkprop.h: Likewise.
56326         * lib/unilbrk/lbrkprop1.h: Likewise.
56327         * lib/unilbrk/lbrkprop2.h: Likewise.
56328         * lib/uninorm/decomposition-table2.h: Likewise.
56329         * lib/uniwbrk/wbrkprop.h: Likewise.
56330         * tests/unicase/test-cased.c: Likewise.
56331         * tests/unicase/test-ignorable.c: Likewise.
56332         * tests/unicase/test-uc_tolower.c: Likewise.
56333         * tests/unicase/test-uc_totitle.c: Likewise.
56334         * tests/unicase/test-uc_toupper.c: Likewise.
56335         * tests/unictype/test-categ_C.c: Likewise.
56336         * tests/unictype/test-categ_Cn.c: Likewise.
56337         * tests/unictype/test-categ_L.c: Likewise.
56338         * tests/unictype/test-categ_Ll.c: Likewise.
56339         * tests/unictype/test-categ_Lm.c: Likewise.
56340         * tests/unictype/test-categ_Lo.c: Likewise.
56341         * tests/unictype/test-categ_Lu.c: Likewise.
56342         * tests/unictype/test-categ_M.c: Likewise.
56343         * tests/unictype/test-categ_Mc.c: Likewise.
56344         * tests/unictype/test-categ_Me.c: Likewise.
56345         * tests/unictype/test-categ_Mn.c: Likewise.
56346         * tests/unictype/test-categ_N.c: Likewise.
56347         * tests/unictype/test-categ_Nd.c: Likewise.
56348         * tests/unictype/test-categ_No.c: Likewise.
56349         * tests/unictype/test-categ_P.c: Likewise.
56350         * tests/unictype/test-categ_Po.c: Likewise.
56351         * tests/unictype/test-categ_S.c: Likewise.
56352         * tests/unictype/test-categ_Sc.c: Likewise.
56353         * tests/unictype/test-categ_Sk.c: Likewise.
56354         * tests/unictype/test-categ_Sm.c: Likewise.
56355         * tests/unictype/test-categ_So.c: Likewise.
56356         * tests/unictype/test-ctype_alnum.c: Likewise.
56357         * tests/unictype/test-ctype_alpha.c: Likewise.
56358         * tests/unictype/test-ctype_graph.c: Likewise.
56359         * tests/unictype/test-ctype_lower.c: Likewise.
56360         * tests/unictype/test-ctype_print.c: Likewise.
56361         * tests/unictype/test-ctype_punct.c: Likewise.
56362         * tests/unictype/test-ctype_upper.c: Likewise.
56363         * tests/unictype/test-decdigit.h: Likewise.
56364         * tests/unictype/test-digit.h: Likewise.
56365         * tests/unictype/test-numeric.h: Likewise.
56366         * tests/unictype/test-pr_alphabetic.c: Likewise.
56367         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56368         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56369         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56370         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56371         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56372         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56373         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56374         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56375         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56376         * tests/unictype/test-pr_cased.c: Likewise.
56377         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56378         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56379         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56380         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56381         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56382         * tests/unictype/test-pr_combining.c: Likewise.
56383         * tests/unictype/test-pr_composite.c: Likewise.
56384         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56385         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56386         * tests/unictype/test-pr_deprecated.c: Likewise.
56387         * tests/unictype/test-pr_format_control.c: Likewise.
56388         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56389         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56390         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56391         * tests/unictype/test-pr_id_continue.c: Likewise.
56392         * tests/unictype/test-pr_id_start.c: Likewise.
56393         * tests/unictype/test-pr_ideographic.c: Likewise.
56394         * tests/unictype/test-pr_lowercase.c: Likewise.
56395         * tests/unictype/test-pr_math.c: Likewise.
56396         * tests/unictype/test-pr_numeric.c: Likewise.
56397         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56398         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56399         * tests/unictype/test-pr_other_math.c: Likewise.
56400         * tests/unictype/test-pr_punctuation.c: Likewise.
56401         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56402         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56403         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56404         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56405         * tests/unictype/test-pr_uppercase.c: Likewise.
56406         * tests/unictype/test-pr_xid_continue.c: Likewise.
56407         * tests/unictype/test-pr_xid_start.c: Likewise.
56408         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56409         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56410         changes.
56411         * lib/unictype/categ_Cc.h: Likewise.
56412         * lib/unictype/categ_Cf.h: Likewise.
56413         * lib/unictype/categ_Co.h: Likewise.
56414         * lib/unictype/categ_Cs.h: Likewise.
56415         * lib/unictype/categ_Lt.h: Likewise.
56416         * lib/unictype/categ_Nl.h: Likewise.
56417         * lib/unictype/categ_Pc.h: Likewise.
56418         * lib/unictype/categ_Pd.h: Likewise.
56419         * lib/unictype/categ_Pe.h: Likewise.
56420         * lib/unictype/categ_Pf.h: Likewise.
56421         * lib/unictype/categ_Pi.h: Likewise.
56422         * lib/unictype/categ_Ps.h: Likewise.
56423         * lib/unictype/categ_Z.h: Likewise.
56424         * lib/unictype/categ_Zl.h: Likewise.
56425         * lib/unictype/categ_Zp.h: Likewise.
56426         * lib/unictype/categ_Zs.h: Likewise.
56427         * lib/unictype/ctype_blank.h: Likewise.
56428         * lib/unictype/ctype_cntrl.h: Likewise.
56429         * lib/unictype/ctype_digit.h: Likewise.
56430         * lib/unictype/ctype_space.h: Likewise.
56431         * lib/unictype/ctype_xdigit.h: Likewise.
56432         * lib/unictype/mirror.h: Likewise.
56433         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56434         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56435         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56436         * lib/unictype/pr_bidi_control.h: Likewise.
56437         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56438         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56439         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56440         * lib/unictype/pr_bidi_pdf.h: Likewise.
56441         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56442         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56443         * lib/unictype/pr_dash.h: Likewise.
56444         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56445         * lib/unictype/pr_diacritic.h: Likewise.
56446         * lib/unictype/pr_extender.h: Likewise.
56447         * lib/unictype/pr_hex_digit.h: Likewise.
56448         * lib/unictype/pr_hyphen.h: Likewise.
56449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56451         * lib/unictype/pr_ignorable_control.h: Likewise.
56452         * lib/unictype/pr_iso_control.h: Likewise.
56453         * lib/unictype/pr_join_control.h: Likewise.
56454         * lib/unictype/pr_left_of_pair.h: Likewise.
56455         * lib/unictype/pr_line_separator.h: Likewise.
56456         * lib/unictype/pr_logical_order_exception.h: Likewise.
56457         * lib/unictype/pr_non_break.h: Likewise.
56458         * lib/unictype/pr_not_a_character.h: Likewise.
56459         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56460         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56461         * lib/unictype/pr_other_id_start.h: Likewise.
56462         * lib/unictype/pr_other_lowercase.h: Likewise.
56463         * lib/unictype/pr_other_uppercase.h: Likewise.
56464         * lib/unictype/pr_paired_punctuation.h: Likewise.
56465         * lib/unictype/pr_paragraph_separator.h: Likewise.
56466         * lib/unictype/pr_pattern_syntax.h: Likewise.
56467         * lib/unictype/pr_pattern_white_space.h: Likewise.
56468         * lib/unictype/pr_private_use.h: Likewise.
56469         * lib/unictype/pr_quotation_mark.h: Likewise.
56470         * lib/unictype/pr_radical.h: Likewise.
56471         * lib/unictype/pr_soft_dotted.h: Likewise.
56472         * lib/unictype/pr_space.h: Likewise.
56473         * lib/unictype/pr_titlecase.h: Likewise.
56474         * lib/unictype/pr_variation_selector.h: Likewise.
56475         * lib/unictype/pr_white_space.h: Likewise.
56476         * lib/unictype/pr_zero_width.h: Likewise.
56477         * lib/unictype/sy_c_ident.h: Likewise.
56478         * lib/unictype/sy_c_whitespace.h: Likewise.
56479         * lib/unictype/sy_java_whitespace.h: Likewise.
56480         * lib/uninorm/composition-table.gperf: Likewise.
56481         * lib/uninorm/decomposition-table1.h: Likewise.
56482         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56483         LB8.
56484         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56485         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56486         * modules/unictype/*: Bump version number of expected libunistring
56487         version.
56489 2011-01-09  Bruno Haible  <bruno@clisp.org>
56491         Update to Unicode 5.2.0.
56492         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56493         trailing whitespace removed.
56495 2011-01-09  Bruno Haible  <bruno@clisp.org>
56497         New Unicode character properties, from Unicode 5.2.0.
56498         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56499         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56500         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56501         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56502         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56503         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56504         uc_is_property_cased, uc_is_property_case_ignorable,
56505         uc_is_property_changes_when_lowercased,
56506         uc_is_property_changes_when_uppercased,
56507         uc_is_property_changes_when_titlecased,
56508         uc_is_property_changes_when_casefolded,
56509         uc_is_property_changes_when_casemapped): New declarations.
56510         * lib/unictype/pr_byname.gperf: Add the new properties.
56511         * modules/unictype/property-byname (Depends-on): Depend on the new
56512         properties modules.
56513         * modules/unictype/property-all (Depends-on): Likewise.
56514         * MODULES.html.sh (Unicode string functions): Add
56515         unictype/property-case-ignorable, unictype/property-cased,
56516         unictype/property-changes-when-casefolded,
56517         unictype/property-changes-when-casemapped,
56518         unictype/property-changes-when-lowercased,
56519         unictype/property-changes-when-titlecased,
56520         unictype/property-changes-when-uppercased.
56522         New module 'unictype/property-changes-when-casemapped'.
56523         * modules/unictype/property-changes-when-casemapped: New file.
56524         * lib/unictype/pr_changes_when_casemapped.c: New file.
56525         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56526         generated by gen-uni-tables.
56527         * modules/unictype/property-changes-when-casemapped-tests: New file.
56528         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56529         automatically generated by gen-uni-tables.
56531         New module 'unictype/property-changes-when-casefolded'.
56532         * modules/unictype/property-changes-when-casefolded: New file.
56533         * lib/unictype/pr_changes_when_casefolded.c: New file.
56534         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56535         generated by gen-uni-tables.
56536         * modules/unictype/property-changes-when-casefolded-tests: New file.
56537         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56538         automatically generated by gen-uni-tables.
56540         New module 'unictype/property-changes-when-titlecased'.
56541         * modules/unictype/property-changes-when-titlecased: New file.
56542         * lib/unictype/pr_changes_when_titlecased.c: New file.
56543         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56544         generated by gen-uni-tables.
56545         * modules/unictype/property-changes-when-titlecased-tests: New file.
56546         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56547         automatically generated by gen-uni-tables.
56549         New module 'unictype/property-changes-when-uppercased'.
56550         * modules/unictype/property-changes-when-uppercased: New file.
56551         * lib/unictype/pr_changes_when_uppercased.c: New file.
56552         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56553         generated by gen-uni-tables.
56554         * modules/unictype/property-changes-when-uppercased-tests: New file.
56555         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56556         automatically generated by gen-uni-tables.
56558         New module 'unictype/property-changes-when-lowercased'.
56559         * modules/unictype/property-changes-when-lowercased: New file.
56560         * lib/unictype/pr_changes_when_lowercased.c: New file.
56561         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56562         generated by gen-uni-tables.
56563         * modules/unictype/property-changes-when-lowercased-tests: New file.
56564         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56565         automatically generated by gen-uni-tables.
56567         New module 'unictype/property-case-ignorable'.
56568         * modules/unictype/property-case-ignorable: New file.
56569         * lib/unictype/pr_case_ignorable.c: New file.
56570         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56571         by gen-uni-tables.
56572         * modules/unictype/property-case-ignorable-tests: New file.
56573         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56574         generated by gen-uni-tables.
56576         New module 'unictype/property-cased'.
56577         * modules/unictype/property-cased: New file.
56578         * lib/unictype/pr_cased.c: New file.
56579         * lib/unictype/pr_cased.h: New file, automatically generated by
56580         gen-uni-tables.
56581         * modules/unictype/property-cased-tests: New file.
56582         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56583         gen-uni-tables.
56585 2011-01-09  Bruno Haible  <bruno@clisp.org>
56587         Update to Unicode 5.2.0.
56588         * lib/gen-uni-tables.c (output_predicate, output_category,
56589         output_combclass, output_bidi_category, output_decimal_digit_test,
56590         output_decimal_digit, output_digit_test, output_digit,
56591         output_numeric_test, output_numeric, output_mirror, output_scripts,
56592         output_scripts_byname, output_blocks, output_ident_category): Fix
56593         comment header.
56594         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
56595         get_wbp.
56596         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
56597         items.
56598         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
56599         Changes_When_Lowercased, Changes_When_Uppercased,
56600         Changes_When_Titlecased, Changes_When_Casefolded,
56601         Changes_When_Casemapped.
56602         (is_property_alphabetic, is_property_default_ignorable_code_point):
56603         Update for Unicode 5.2.0.
56604         (is_property_cased, is_property_case_ignorable,
56605         is_property_changes_when_lowercased,
56606         is_property_changes_when_uppercased,
56607         is_property_changes_when_titlecased,
56608         is_property_changes_when_casefolded,
56609         is_property_changes_when_casemapped): New functions.
56610         (output_properties): Output also the properties cased, case_ignorable,
56611         changes_when_lowercased, changes_when_uppercased,
56612         changes_when_titlecased, changes_when_casefolded,
56613         changes_when_casemapped.
56614         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
56615         Unicode TR#11 revision 17 -> 19.
56616         (LBP_CP): New enumeration value.
56617         (LBP_*): Adjust values accordingly.
56618         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56619         TR#14 revision 22 -> 24.
56620         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
56621         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
56622         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56623         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
56624         is_WBP_MIDLETTER.
56625         (output_composition_tables): Allow for 24 bits instead of 16 bits in
56626         the code1 and code2 of each composition rule.
56627         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
56628         * lib/unicase/ignorable.h: Likewise.
56629         * lib/unicase/tocasefold.h: Likewise.
56630         * lib/unicase/tolower.h: Likewise.
56631         * lib/unicase/totitle.h: Likewise.
56632         * lib/unicase/toupper.h: Likewise.
56633         * lib/unictype/bidi_of.h: Likewise.
56634         * lib/unictype/blocks.h: Likewise.
56635         * lib/unictype/categ_C.h: Likewise.
56636         * lib/unictype/categ_Cf.h: Likewise.
56637         * lib/unictype/categ_Cn.h: Likewise.
56638         * lib/unictype/categ_L.h: Likewise.
56639         * lib/unictype/categ_Ll.h: Likewise.
56640         * lib/unictype/categ_Lm.h: Likewise.
56641         * lib/unictype/categ_Lo.h: Likewise.
56642         * lib/unictype/categ_Lu.h: Likewise.
56643         * lib/unictype/categ_M.h: Likewise.
56644         * lib/unictype/categ_Mc.h: Likewise.
56645         * lib/unictype/categ_Mn.h: Likewise.
56646         * lib/unictype/categ_N.h: Likewise.
56647         * lib/unictype/categ_Nd.h: Likewise.
56648         * lib/unictype/categ_Nl.h: Likewise.
56649         * lib/unictype/categ_No.h: Likewise.
56650         * lib/unictype/categ_P.h: Likewise.
56651         * lib/unictype/categ_Pd.h: Likewise.
56652         * lib/unictype/categ_Po.h: Likewise.
56653         * lib/unictype/categ_S.h: Likewise.
56654         * lib/unictype/categ_Sc.h: Likewise.
56655         * lib/unictype/categ_So.h: Likewise.
56656         * lib/unictype/categ_of.h: Likewise.
56657         * lib/unictype/combining.h: Likewise.
56658         * lib/unictype/ctype_alnum.h: Likewise.
56659         * lib/unictype/ctype_alpha.h: Likewise.
56660         * lib/unictype/ctype_graph.h: Likewise.
56661         * lib/unictype/ctype_lower.h: Likewise.
56662         * lib/unictype/ctype_print.h: Likewise.
56663         * lib/unictype/ctype_punct.h: Likewise.
56664         * lib/unictype/ctype_upper.h: Likewise.
56665         * lib/unictype/decdigit.h: Likewise.
56666         * lib/unictype/digit.h: Likewise.
56667         * lib/unictype/numeric.h: Likewise.
56668         * lib/unictype/pr_alphabetic.h: Likewise.
56669         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56670         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56671         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56672         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56673         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56674         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56675         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56676         * lib/unictype/pr_combining.h: Likewise.
56677         * lib/unictype/pr_composite.h: Likewise.
56678         * lib/unictype/pr_currency_symbol.h: Likewise.
56679         * lib/unictype/pr_dash.h: Likewise.
56680         * lib/unictype/pr_decimal_digit.h: Likewise.
56681         * lib/unictype/pr_deprecated.h: Likewise.
56682         * lib/unictype/pr_diacritic.h: Likewise.
56683         * lib/unictype/pr_extender.h: Likewise.
56684         * lib/unictype/pr_grapheme_base.h: Likewise.
56685         * lib/unictype/pr_grapheme_extend.h: Likewise.
56686         * lib/unictype/pr_grapheme_link.h: Likewise.
56687         * lib/unictype/pr_id_continue.h: Likewise.
56688         * lib/unictype/pr_id_start.h: Likewise.
56689         * lib/unictype/pr_ideographic.h: Likewise.
56690         * lib/unictype/pr_ignorable_control.h: Likewise.
56691         * lib/unictype/pr_logical_order_exception.h: Likewise.
56692         * lib/unictype/pr_lowercase.h: Likewise.
56693         * lib/unictype/pr_numeric.h: Likewise.
56694         * lib/unictype/pr_other_alphabetic.h: Likewise.
56695         * lib/unictype/pr_punctuation.h: Likewise.
56696         * lib/unictype/pr_sentence_terminal.h: Likewise.
56697         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56698         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56699         * lib/unictype/pr_unified_ideograph.h: Likewise.
56700         * lib/unictype/pr_uppercase.h: Likewise.
56701         * lib/unictype/pr_xid_continue.h: Likewise.
56702         * lib/unictype/pr_xid_start.h: Likewise.
56703         * lib/unictype/pr_zero_width.h: Likewise.
56704         * lib/unictype/scripts.h: Likewise.
56705         * lib/unictype/scripts_byname.gperf: Likewise.
56706         * lib/unictype/sy_java_ident.h: Likewise.
56707         * lib/unigbrk/gbrkprop.h: Likewise.
56708         * lib/unilbrk/lbrkprop1.h: Likewise.
56709         * lib/unilbrk/lbrkprop2.h: Likewise.
56710         * lib/unilbrk/lbrktables.h: Likewise.
56711         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
56712         LBP_CP. Implement rule LB30.
56713         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
56714         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
56715         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
56716         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
56717         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
56718         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
56719         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
56720         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
56721         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
56722         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
56723         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
56724         bits instead of 16 bits in the code1 and code2 of each composition
56725         rule.
56726         (uc_composition): Update for Unicode 5.2.0.
56727         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
56728         * lib/uninorm/decomposition-table2.h: Likewise.
56729         * lib/uniwbrk/wbrkprop.h: Likewise.
56730         * tests/unicase/test-cased.c: Likewise.
56731         * tests/unicase/test-ignorable.c: Likewise.
56732         * tests/unicase/test-uc_tolower.c: Likewise.
56733         * tests/unicase/test-uc_totitle.c: Likewise.
56734         * tests/unicase/test-uc_toupper.c: Likewise.
56735         * tests/unictype/test-categ_C.c: Likewise.
56736         * tests/unictype/test-categ_Cf.c: Likewise.
56737         * tests/unictype/test-categ_Cn.c: Likewise.
56738         * tests/unictype/test-categ_L.c: Likewise.
56739         * tests/unictype/test-categ_Ll.c: Likewise.
56740         * tests/unictype/test-categ_Lm.c: Likewise.
56741         * tests/unictype/test-categ_Lo.c: Likewise.
56742         * tests/unictype/test-categ_Lu.c: Likewise.
56743         * tests/unictype/test-categ_M.c: Likewise.
56744         * tests/unictype/test-categ_Mc.c: Likewise.
56745         * tests/unictype/test-categ_Mn.c: Likewise.
56746         * tests/unictype/test-categ_N.c: Likewise.
56747         * tests/unictype/test-categ_Nd.c: Likewise.
56748         * tests/unictype/test-categ_Nl.c: Likewise.
56749         * tests/unictype/test-categ_No.c: Likewise.
56750         * tests/unictype/test-categ_P.c: Likewise.
56751         * tests/unictype/test-categ_Pd.c: Likewise.
56752         * tests/unictype/test-categ_Po.c: Likewise.
56753         * tests/unictype/test-categ_S.c: Likewise.
56754         * tests/unictype/test-categ_Sc.c: Likewise.
56755         * tests/unictype/test-categ_So.c: Likewise.
56756         * tests/unictype/test-ctype_alnum.c: Likewise.
56757         * tests/unictype/test-ctype_alpha.c: Likewise.
56758         * tests/unictype/test-ctype_graph.c: Likewise.
56759         * tests/unictype/test-ctype_lower.c: Likewise.
56760         * tests/unictype/test-ctype_print.c: Likewise.
56761         * tests/unictype/test-ctype_punct.c: Likewise.
56762         * tests/unictype/test-ctype_upper.c: Likewise.
56763         * tests/unictype/test-decdigit.h: Likewise.
56764         * tests/unictype/test-digit.h: Likewise.
56765         * tests/unictype/test-numeric.h: Likewise.
56766         * tests/unictype/test-pr_alphabetic.c: Likewise.
56767         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56768         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56769         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56770         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56771         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56772         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56773         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56774         * tests/unictype/test-pr_combining.c: Likewise.
56775         * tests/unictype/test-pr_composite.c: Likewise.
56776         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56777         * tests/unictype/test-pr_dash.c: Likewise.
56778         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56779         * tests/unictype/test-pr_deprecated.c: Likewise.
56780         * tests/unictype/test-pr_diacritic.c: Likewise.
56781         * tests/unictype/test-pr_extender.c: Likewise.
56782         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56783         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56784         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56785         * tests/unictype/test-pr_id_continue.c: Likewise.
56786         * tests/unictype/test-pr_id_start.c: Likewise.
56787         * tests/unictype/test-pr_ideographic.c: Likewise.
56788         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56789         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56790         * tests/unictype/test-pr_lowercase.c: Likewise.
56791         * tests/unictype/test-pr_numeric.c: Likewise.
56792         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56793         * tests/unictype/test-pr_punctuation.c: Likewise.
56794         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56795         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56796         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56797         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56798         * tests/unictype/test-pr_uppercase.c: Likewise.
56799         * tests/unictype/test-pr_xid_continue.c: Likewise.
56800         * tests/unictype/test-pr_xid_start.c: Likewise.
56801         * tests/unictype/test-pr_zero_width.c: Likewise.
56802         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56803         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
56804         changed behaviour: line breaking is now disallowed between a letter
56805         or '=' and '('.
56806         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56807         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56808         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56809         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
56810         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56811         lib/uniwidth/width.c.
56812         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
56813         without comments, but with the original copyright notice.
56814         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56815         changes.
56816         * lib/unictype/categ_Cc.h: Likewise.
56817         * lib/unictype/categ_Co.h: Likewise.
56818         * lib/unictype/categ_Cs.h: Likewise.
56819         * lib/unictype/categ_Lt.h: Likewise.
56820         * lib/unictype/categ_Me.h: Likewise.
56821         * lib/unictype/categ_Pc.h: Likewise.
56822         * lib/unictype/categ_Pe.h: Likewise.
56823         * lib/unictype/categ_Pf.h: Likewise.
56824         * lib/unictype/categ_Pi.h: Likewise.
56825         * lib/unictype/categ_Ps.h: Likewise.
56826         * lib/unictype/categ_Sk.h: Likewise.
56827         * lib/unictype/categ_Sm.h: Likewise.
56828         * lib/unictype/categ_Z.h: Likewise.
56829         * lib/unictype/categ_Zl.h: Likewise.
56830         * lib/unictype/categ_Zp.h: Likewise.
56831         * lib/unictype/categ_Zs.h: Likewise.
56832         * lib/unictype/ctype_blank.h: Likewise.
56833         * lib/unictype/ctype_cntrl.h: Likewise.
56834         * lib/unictype/ctype_digit.h: Likewise.
56835         * lib/unictype/ctype_space.h: Likewise.
56836         * lib/unictype/ctype_xdigit.h: Likewise.
56837         * lib/unictype/mirror.h: Likewise.
56838         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56839         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56840         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56841         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56842         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56843         * lib/unictype/pr_bidi_control.h: Likewise.
56844         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56845         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56846         * lib/unictype/pr_bidi_pdf.h: Likewise.
56847         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56848         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56849         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56850         * lib/unictype/pr_format_control.h: Likewise.
56851         * lib/unictype/pr_hex_digit.h: Likewise.
56852         * lib/unictype/pr_hyphen.h: Likewise.
56853         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56854         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56855         * lib/unictype/pr_iso_control.h: Likewise.
56856         * lib/unictype/pr_join_control.h: Likewise.
56857         * lib/unictype/pr_left_of_pair.h: Likewise.
56858         * lib/unictype/pr_line_separator.h: Likewise.
56859         * lib/unictype/pr_math.h: Likewise.
56860         * lib/unictype/pr_non_break.h: Likewise.
56861         * lib/unictype/pr_not_a_character.h: Likewise.
56862         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56863         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56864         * lib/unictype/pr_other_id_continue.h: Likewise.
56865         * lib/unictype/pr_other_id_start.h: Likewise.
56866         * lib/unictype/pr_other_lowercase.h: Likewise.
56867         * lib/unictype/pr_other_math.h: Likewise.
56868         * lib/unictype/pr_other_uppercase.h: Likewise.
56869         * lib/unictype/pr_paired_punctuation.h: Likewise.
56870         * lib/unictype/pr_paragraph_separator.h: Likewise.
56871         * lib/unictype/pr_pattern_syntax.h: Likewise.
56872         * lib/unictype/pr_pattern_white_space.h: Likewise.
56873         * lib/unictype/pr_private_use.h: Likewise.
56874         * lib/unictype/pr_quotation_mark.h: Likewise.
56875         * lib/unictype/pr_radical.h: Likewise.
56876         * lib/unictype/pr_soft_dotted.h: Likewise.
56877         * lib/unictype/pr_space.h: Likewise.
56878         * lib/unictype/pr_titlecase.h: Likewise.
56879         * lib/unictype/pr_variation_selector.h: Likewise.
56880         * lib/unictype/pr_white_space.h: Likewise.
56881         * lib/unictype/sy_c_ident.h: Likewise.
56882         * lib/unictype/sy_c_whitespace.h: Likewise.
56883         * lib/unictype/sy_java_whitespace.h: Likewise.
56884         * modules/uni*/*: Bump version number of expected libunistring version.
56885         Reported by Simon Josefsson.
56887 2011-01-09  Karl Heuer  <kwzh@gnu.org>
56889         useless-if-before-free: fix typo in --help and make the internal,
56890         automatic version date update process work once again.
56891         --help output contained a NUL character instead of the
56892         backslash-zero that was intended.  Also, the "must lie within
56893         the first 8 lines" line is on line 9, and hence not getting
56894         automatically updated.
56895         * build-aux/useless-if-before-free: Fix the former by adding a
56896         backslash, and the latter by condensing the three lines of what-it-does
56897         to a single line, leaving one line of slack for the future.
56899 2011-01-09  Bruno Haible  <bruno@clisp.org>
56901         uniwidth/width: Fix width of U+1D173..U+1D17A.
56902         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
56903         symbolic_width, output_width_property_test): New functions.
56904         (main): Invoke output_nonspacing_property, output_width_property_test.
56905         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
56906         U+1D173..U+1D17A.
56907         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
56908         1.
56909         * modules/uniwidth/*: Bump version number of expected libunistring
56910         version.
56911         * modules/unilbrk/*: Likewise.
56913 2011-01-08  Bruno Haible  <bruno@clisp.org>
56915         uninorm tests: Preserve copyright of Unicode data file.
56916         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
56917         Mention modifications.
56919 2011-01-08  Bruno Haible  <bruno@clisp.org>
56921         gen-uni-tables: Prepare for Unicode 5.2.0.
56922         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
56923         (debug_output_lbp, output_lbp): Update.
56925 2011-01-08  Bruno Haible  <bruno@clisp.org>
56927         unilbrk: Clarify gen-uni-tables.c code.
56928         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
56929         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
56930         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
56932 2011-01-07  Bruno Haible  <bruno@clisp.org>
56934         strtod: Restore errno when successfully parsing Infinity or NaN.
56935         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
56936         restore the original errno.
56938 2011-01-07  Bruno Haible  <bruno@clisp.org>
56940         remove test: Avoid failure on HP-UX 11.
56941         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
56943 2011-01-07  Bruno Haible  <bruno@clisp.org>
56945         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
56946         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
56947         error code.
56949 2011-01-07  Pádraig Brady  <P@draigBrady.com>
56951         ignore-value: fixup comments, and add Eric Blake
56952         as an author since he rewrote the macros.
56953         * lib/ignore-value.h (ignore_value):  State that
56954         we now support aggregates.  Also specify exactly
56955         when the GCC warn_unused_result feature was added.
56957 2011-01-06  Eric Blake  <eblake@redhat.com>
56959         ignore-value: support aggregate types
56960         * lib/ignore-value.h (ignore_value): Provide separate gcc
56961         definition.
56962         * modules/ignore-value-tests: New test module.
56963         * tests/test-ignore-value.c: New test.
56965         maint.mk: improve sc_prohibit_strcmp regex
56966         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
56967         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
56968         definition of STRNEQ.
56970         signal: work around Haiku issue with SIGBUS
56971         * lib/siglist.h: Add comment.
56972         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
56973         strsignal's favoring of SIGSEGV.
56974         * tests/test-signal.c (main): Avoid test failure.
56975         * doc/posix-headers/signal.texi (signal.h): Document the issue.
56976         Reported by Scott McCreary.
56978         maint.mk: add pre-release check to ensure submodule commits are public
56979         * top/maint.mk (public-submodule-commit): New rule.
56980         (submodule-checks): New variable.
56981         (alpha beta stable): Depend on the variable.
56983 2011-01-05  Pádraig Brady  <P@draigBrady.com>
56984         and Jim Meyering  <meyering@redhat.com>
56986         ignore-value: make ignore_value more generic; deprecate ignore_ptr
56987         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
56988         (ATTRIBUTE_DEPRECATED): Define.
56989         (_ignore_case): New function.
56990         (ignore_value): New macro, to replace the old function.
56991         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
56992         * modules/ignore-value (Depends-on): Add stdint.
56994 2011-01-04  Eric Blake  <eblake@redhat.com>
56996         doc: regenerate INSTALL
56997         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
56998         @firstparagraphindent support, now that autoconf dropped it.
56999         (INSTALL_PRELUDE): Reinstate old macro.
57000         * doc/install.texi: Resync from autoconf.
57001         * doc/INSTALL: Reflect recent autoconf update.
57002         * doc/INSTALL.ISO: Likewise.
57003         * doc/INSTALL.UTF-8: Likewise.
57004         Reported by Karl Berry.
57006 2011-01-04  Bruce Korb  <address@hidden>
57008         git-version-gen: avoid a sub-shell
57009         * build-aux/git-version-gen: Redirect stderr in `...` via
57010         "exec 2>...", rather than via an added sub-shell.
57012 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57014         git-version-gen: use (...) rather than sh -c '...'
57015         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57016         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57018 2011-01-03  Jim Meyering  <meyering@redhat.com>
57020         git-version-gen: convert leading TABs to spaces
57021         * build-aux/git-version-gen: Expand leading TABs.
57023         git-version-gen: handle failed "git rev-list"
57024         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57025         from git and proceeding as if it had succeeded but printed no SHA1
57026         checksums, suppress the diagnostic and handle the failure.
57027         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57029         git-version-gen: include command name in one more diagnostic
57030         * build-aux/git-version-gen: When the required .tarball-version file
57031         was missing or unreadable, you might see the diagnostic from "cat",
57032         but no trace of the name of the invoking script.  Now, you still see
57033         the diagnostic from cat, but also get one from "git-version-gen: ".
57034         Inspired by a patch from Bruce Korb.
57036         update-copyright: adjust test to match changed code
57037         * tests/test-update-copyright.sh: Change test's expected output
57038         to match new actual output.
57040 2011-01-02  Bruno Haible  <bruno@clisp.org>
57042         getlogin_r: Avoid test failure on HP-UX 11.
57043         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57044         ERANGE when the second argument is zero.
57045         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57046         portability problem.
57048 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57050         * build-aux/update-copyright: doc Simon's changes
57052 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57054         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57055         environment variable.
57057 2011-01-02  Bruno Haible  <bruno@clisp.org>
57059         unigbrk: Avoid gcc warnings.
57060         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57061         unused variable.
57062         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57063         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57064         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57065         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57066         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57067         Change type of first argument to 'const char *'.
57068         (main): Remove unused variable.
57069         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57070         type of first argument to 'const char *'.
57071         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57072         Likewise.
57073         (main): Change type of variable 's'.
57074         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57075         to 'int'.
57077 2011-01-02  Bruno Haible  <bruno@clisp.org>
57079         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57080         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57081         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57082         bug.
57083         * lib/pwrite.c: Undo 2010-12-31 patch.
57084         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57086 2011-01-02  Bruno Haible  <bruno@clisp.org>
57088         pread: Fix test whether it works.
57089         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57091 2011-01-02  Bruno Haible  <bruno@clisp.org>
57093         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57094         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57095         ends in "6". Don't require a specific month name. Try also the locale
57096         names found on HP-UX 11 and Solaris 7.
57098 2011-01-02  Bruno Haible  <bruno@clisp.org>
57100         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57101         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57102         C linkage.
57103         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57105 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57107         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57108         for consistency, since the "cluster" term is not used elsewhere.
57109         * lib/unigbrk.in.h: Update name.
57110         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57111         * lib/unigbrk/u16-grapheme-next.c: Update name.
57112         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57113         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57114         * lib/unigbrk/u32-grapheme-next.c: Update name.
57115         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57116         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57117         * lib/unigbrk/u8-grapheme-next.c: Update name.
57118         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57119         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57120         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57121         Suggested by Bruno Haible.
57123 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57125         Remove module 'u8-grapheme-len' as too redundant with
57126         'u8-grapheme-next'.
57127         * modules/unigbrk/u8-grapheme-len: Delete file.
57128         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57129         * lib/unigbrk.in.h: Remove prototype for deleted function.
57130         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57131         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57133         Remove module 'u16-grapheme-len' as too redundant with
57134         'u16-grapheme-next'.
57135         * modules/unigbrk/u16-grapheme-len: Delete file.
57136         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57137         * lib/unigbrk.in.h: Remove prototype for deleted function.
57138         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57139         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57141         Remove module 'u32-grapheme-len' as too redundant with
57142         'u32-grapheme-next'.
57143         * modules/unigbrk/u32-grapheme-len: Delete file.
57144         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57145         * lib/unigbrk.in.h: Remove prototype for deleted function.
57146         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57147         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57149         Suggested by Bruno Haible.
57151 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57153         * unigbrk.in.h: Fix typo: "ben" => "been".
57154         Reported by Bruno Haible.
57156 2011-01-01  Jim Meyering  <meyering@redhat.com>
57158         maint: update almost all copyright ranges to include 2011
57159         Run the new "make update-copyright" rule.
57161 2011-01-01  Jim Meyering  <meyering@redhat.com>
57163         maint: update-copyright: exempt doc/INSTALL*
57164         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57165         since they are generated.  Suggested by Bruno Haible.
57167 2011-01-01  Jim Meyering  <meyering@redhat.com>
57169         maint: refine the update-copyright rule
57170         * Makefile (update-copyright): Also exclude any file that includes
57171         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57172         code that merely generates the comment.
57174 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57176         New module 'u8-grapheme-len'.
57177         * modules/unigbrk/u8-grapheme-len: New file.
57178         * modules/unigbrk/u8-grapheme-len-tests: New file.
57179         * lib/unigbrk.in.h: Add prototype for new function.
57180         * lib/unigbrk/u8-grapheme-len.c: New file.
57181         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57183         New module 'u16-grapheme-len'.
57184         * modules/unigbrk/u16-grapheme-len: New file.
57185         * modules/unigbrk/u16-grapheme-len-tests: New file.
57186         * lib/unigbrk.in.h: Add prototype for new function.
57187         * lib/unigbrk/u16-grapheme-len.c: New file.
57188         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57190         New module 'u32-grapheme-len'.
57191         * modules/unigbrk/u32-grapheme-len: New file.
57192         * modules/unigbrk/u32-grapheme-len-tests: New file.
57193         * lib/unigbrk.in.h: Add prototype for new function.
57194         * lib/unigbrk/u32-grapheme-len.c: New file.
57195         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57197         New module 'u8-grapheme-next'.
57198         * modules/unigbrk/u8-grapheme-next: New file.
57199         * modules/unigbrk/u8-grapheme-next-tests: New file.
57200         * lib/unigbrk.in.h: Add prototype for new function.
57201         * lib/unigbrk/u8-grapheme-next.c: New file.
57202         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57204         New module 'u16-grapheme-next'.
57205         * modules/unigbrk/u16-grapheme-next: New file.
57206         * modules/unigbrk/u16-grapheme-next-tests: New file.
57207         * lib/unigbrk.in.h: Add prototype for new function.
57208         * lib/unigbrk/u16-grapheme-next.c: New file.
57209         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57211         New module 'u32-grapheme-next'.
57212         * modules/unigbrk/u32-grapheme-next: New file.
57213         * modules/unigbrk/u32-grapheme-next-tests: New file.
57214         * lib/unigbrk.in.h: Add prototype for new function.
57215         * lib/unigbrk/u32-grapheme-next.c: New file.
57216         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57218         New module 'u8-grapheme-prev'.
57219         * modules/unigbrk/u8-grapheme-prev: New file.
57220         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57221         * lib/unigbrk.in.h: Add prototype for new function.
57222         * lib/unigbrk/u8-grapheme-prev.c: New file.
57223         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57225         New module 'u16-grapheme-prev'.
57226         * modules/unigbrk/u16-grapheme-prev: New file.
57227         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57228         * lib/unigbrk.in.h: Add prototype for new function.
57229         * lib/unigbrk/u16-grapheme-prev.c: New file.
57230         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57232         New module 'u32-grapheme-prev'.
57233         * modules/unigbrk/u32-grapheme-prev: New file.
57234         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57235         * lib/unigbrk.in.h: Add prototype for new function.
57236         * lib/unigbrk/u32-grapheme-prev.c: New file.
57237         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57239         New module 'u8-grapheme-breaks'.
57240         * modules/unigbrk/u8-grapheme-breaks: New file.
57241         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57242         * lib/unigbrk.in.h: Add prototype for new function.
57243         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57244         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57246         New module 'u16-grapheme-breaks'.
57247         * modules/unigbrk/u16-grapheme-breaks: New file.
57248         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57249         * lib/unigbrk.in.h: Add prototype for new function.
57250         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57251         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57253         New module 'u32-grapheme-breaks'.
57254         * modules/unigbrk/u32-grapheme-breaks: New file.
57255         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57256         * lib/unigbrk.in.h: Add prototype for new function.
57257         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57258         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57260         New module 'ulc-grapheme-breaks'.
57261         * modules/unigbrk/ulc-grapheme-breaks: New file.
57262         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57263         * m4/locale-ar.m4: New file.
57264         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57265         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57266         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57268 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57270         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57271         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57272         modified how this file was generated before I initially submitted
57273         the module, but failed to regenerate it.  This meant that several
57274         of the level2 entries were wrong.
57275         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57276         Remove the division-by-2 that is folded into the table now that
57277         gbrkprop.h has been regenerated properly.  Now -1 entries are
57278         handled correctly.
57280         New module 'unigbrk/uc-gbrk-prop-tests'.
57281         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57282         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57283         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57284         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57286 2011-01-01  Bruno Haible  <bruno@clisp.org>
57288         Avoid use of hexadecimal escapes.
57289         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57290         instead of hexadecimal escapes.
57292 2011-01-01  Jim Meyering  <meyering@redhat.com>
57294         maint: new rule to update copyright year ranges
57295         * Makefile (update-copyright): New rule.
57297         maint: indent with TABs in Makefile
57298         * Makefile: Expand leading sequences of spaces to TABs
57300         version-etc: update the copyright year it reports
57301         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57303 2010-12-31  Bruno Haible  <bruno@clisp.org>
57305         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57306         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57307         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57308         zero.
57310 2010-12-31  Bruno Haible  <bruno@clisp.org>
57312         pwrite: Work around HP-UX 11.11 bug.
57313         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57314         works and set REPLACE_PWRITE if not.
57315         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57316         function.
57317         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57319 2010-12-31  Bruno Haible  <bruno@clisp.org>
57321         pread: Work around HP-UX 11 bugs.
57322         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57323         and set REPLACE_PREAD if not.
57324         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57326 2010-12-31  Eric Blake  <eblake@redhat.com>
57328         nl_langinfo: fix YESEXPR on Irix 6.5
57329         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57330         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57331         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57332         it.
57334 2010-12-31  Bruno Haible  <bruno@clisp.org>
57336         iconv: Document HP-UX 11 bug.
57337         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57339 2010-12-31  Bruno Haible  <bruno@clisp.org>
57341         ldexpl: Fix link error on HP-UX 11.
57342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57343         LDEXPL_LIBM, using $ISNANL_LIBM.
57345 2010-12-31  Eric Blake  <eblake@redhat.com>
57347         ftello: avoid compilation failure with SunStudio c89
57348         * lib/ftello.c (ftello): Use lseek, not llseek.
57350         tests: avoid failing coreutils tests on cygwin
57351         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57352         (create_exe_shims_): Return 0 when skipping.
57354 2010-12-31  Bruno Haible  <bruno@clisp.org>
57356         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57357         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57359 2010-12-31  Bruno Haible  <bruno@clisp.org>
57361         waitpid: Fix link error in C++ mode.
57362         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57364 2010-12-31  Bruno Haible  <bruno@clisp.org>
57366         isnan: Use GCC built-ins when possible.
57367         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57368         __builtin_isnan.
57369         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57370         (isnan): Define using GCC built-ins for GCC >= 4.0.
57372 2010-12-31  Bruno Haible  <bruno@clisp.org>
57374         isnand: Fix mistake.
57375         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57376         __builtin_isnand.
57378 2010-12-31  Bruno Haible  <bruno@clisp.org>
57380         open: Avoid C++ error on HP-UX 11.
57381         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57383 2010-12-31  Bruno Haible  <bruno@clisp.org>
57385         time_r: Add missing declarations on HP-UX 11.
57386         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57387         instead of HAVE_LOCALTIME_R.
57388         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57389         HAVE_LOCALTIME_R always.
57390         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57391         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57392         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57393         HAVE_LOCALTIME_R.
57394         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57395         * doc/posix-functions/localtime_r.texi: Likewise.
57397 2010-12-29  Eric Blake  <eblake@redhat.com>
57399         mountlist: tweak previous commit
57400         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57401         Reported by Paul Eggert.
57403         mountlist: fix local drive detection on cygwin
57404         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57405         that works for cygwin.
57407 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57409         ftoastr, snprintf: ftoastr + snprintf module
57410         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57411         since the snprintf module now should be good enough here.
57412         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57413         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57414         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57415         GNULIB_SNPRINTF only for the test directory, and the latter
57416         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57417         seems to suffice by itself.
57419 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57421         alloca: one step towards thread-safety
57422         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57423         need for a static variable.  All callers changed.  This does not
57424         make the alloca replacement thread-safe, but it's one step.
57426         tests: minor indenting change
57427         * tests/init.sh: Sync from coreutils housekeeping patch
57428         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57429         to keep lines within 80 columns.
57431 2010-12-28  Jim Meyering  <meyering@redhat.com>
57433         regex: don't infloop on persistent failing calloc
57434         * lib/regexec.c (build_trtable): Return failure indication upon
57435         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57436         In glibc, this was fixed for version 2.13:
57437         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57439 2010-12-28  Bruno Haible  <bruno@clisp.org>
57440             Paul Eggert <eggert@cs.ucla.edu>
57442         linkat: Make implementation robust against system behaviour variations.
57443         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57444         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57445         way, and to -2 if it needs a generic runtime test.
57446         * lib/linkat.c (solaris_optimized_link_immediate,
57447         solaris_optimized_link_follow): New functions.
57448         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57449         (check_same_link): Use it.
57451 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57453         New module 'unigbrk/base'.
57454         * modules/unigbrk/base: New file.
57455         * lib/unigbrk.in.h: New file.
57457         New module 'unigbrk/uc-gbrk-prop'.
57458         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57459         * modules/unigbrk/uc-gbrk-prop: New file.
57460         * lib/unigbrk/gbrkprop.h: New file.
57461         * lib/unigbrk/uc-gbrk-prop.c: New file.
57463         New module 'unigbrk/uc-is-grapheme-break'.
57464         * modules/unigbrk/uc-is-grapheme-break: New file.
57465         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57466         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57467         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57468         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57469         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57471         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57473 2010-12-27  Bruno Haible  <bruno@clisp.org>
57475         linkat test: Avoid failure on Solaris 11 2010-11.
57476         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57478 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57480         utimens: work around glibc rounding bug on more platforms
57481         * lib/utimens.c (fdutimens): Work around rounding bug even if
57482         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57483         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57485 2010-12-27  Bruno Haible  <bruno@clisp.org>
57487         select tests: Improve comments.
57488         * tests/test-select.c (do_select): Add comments.
57490 2010-12-27  Bruno Haible  <bruno@clisp.org>
57492         select tests: Safer way of handling timeout.
57493         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57494         at every invocation.
57496 2010-12-27  Bruno Haible  <bruno@clisp.org>
57498         select tests: Use 'bool' where appropriate.
57499         * tests/test-select.c (connect_to_socket): Change argument type to
57500         'bool'.
57502 2010-12-27  Bruno Haible  <bruno@clisp.org>
57504         select tests: Use existing modules.
57505         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57506         (configure.ac): Don't test for unistd.h.
57507         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57508         declared in <unistd.h>.
57510 2010-12-27  Bruno Haible  <bruno@clisp.org>
57512         mbrtowc: Work around a Solaris 7 bug.
57513         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57514         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57515         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57516         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57517         MBRTOWC_NULL_ARG1_BUG.
57518         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57519         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57520         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57521         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57523 2010-12-27  Jim Meyering  <meyering@redhat.com>
57525         read-file.c: tweak syntax
57526         * lib/read-file.c (fread_file): Remove space after "*" in function
57527         definitions.
57529 2010-12-27  Bruno Haible  <bruno@clisp.org>
57531         times test: Avoid gcc warnings on OSF/1.
57532         * tests/test-times.c (main): Cast printf arguments from clock_t to
57533         'long int'.
57535 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57537         utimens: work around glibc rounding bug on older Linux kernels
57538         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57539         on Linux with a glibc whose utimes might not work, then work
57540         around a longstanding glibc bug involving rounding rather than
57541         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57542         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57544 2010-12-26  Bruno Haible  <bruno@clisp.org>
57546         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57547         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57548         _GL_CXXALIAS_SYS.
57549         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57551 2010-12-26  Bruno Haible  <bruno@clisp.org>
57553         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57554         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57555         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57556         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57557         looking for the declaration.
57558         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57559         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57560         problem.
57561         * doc/posix-functions/inet_pton.texi: Likewise.
57563 2010-12-26  Bruno Haible  <bruno@clisp.org>
57565         arpa_inet: Use the common idioms with C++ support.
57566         * lib/arpa_inet.in.h: Include c++defs.h.
57567         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57568         support.
57569         * modules/arpa_inet (Depends-on): Add c++defs.
57570         (Makefile.am): Substitute the contents of c++defs.h.
57571         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57572         * modules/arpa_inet-c++-tests: New file.
57573         * tests/test-arpa_inet-c++.cc: New file.
57575 2010-12-25  Bruno Haible  <bruno@clisp.org>
57577         Fix more C++ link errors on Solaris 8.
57578         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57579         $(LIB_EACCESS).
57580         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57581         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57582         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57583         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57584         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57586 2010-12-25  Bruno Haible  <bruno@clisp.org>
57588         printf-posix: Fix link error when a non-GCC compiler is used.
57589         * lib/stdio.in.h (printf): When not using GCC, override printf
57590         correctly.
57591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57593 2010-12-25  Bruno Haible  <bruno@clisp.org>
57595         strerror_r-posix: Update doc.
57596         * doc/posix-functions/strerror_r.texi: Update doc about the return
57597         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
57599 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57601         utimens: simplify the logic of the previous change
57602         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
57603         This should not affect whether the test succeeds or fails.
57605         utimens: configure better on hosts with NFS clock skew
57606         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
57607         uses the clock of the local host.  It might use the clock of the
57608         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
57609         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57611 2010-12-25  Bruno Haible  <bruno@clisp.org>
57613         ptsname test: Avoid failure on Solaris.
57614         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
57615         open a pseudo-terminal; don't use BSD-style ptys.
57616         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
57618 2010-12-25  Bruno Haible  <bruno@clisp.org>
57620         ptsname: Avoid ERANGE failure on some systems.
57621         * lib/ptsname.c (buffer): Increase size.
57623 2010-12-25  Bruno Haible  <bruno@clisp.org>
57625         rename, renameat: Avoid test failures at NFS mounted locations.
57626         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
57627         so that subsequent mkdir calls succeed.
57629 2010-12-25  Bruno Haible  <bruno@clisp.org>
57631         iswblank: Fix C++ link error on Solaris 8.
57632         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
57633         _GL_FUNCDECL_SYS.
57635 2010-12-25  Bruno Haible  <bruno@clisp.org>
57637         unistd: Fix C++ link error on Solaris 8.
57638         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
57640 2010-12-25  Bruno Haible  <bruno@clisp.org>
57642         readlink doc: Mention an old glibc bug.
57643         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
57645 2010-12-25  Bruno Haible  <bruno@clisp.org>
57647         fcntl-h: Fix for use of C++ on glibc systems.
57648         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57649         also on glibc systems in C++ mode.
57650         Reported by Gary V. Vaughan <gary@gnu.org>.
57652 2010-12-25  Bruno Haible  <bruno@clisp.org>
57654         roundl-ieee: Make it work on OSF/1 5.1 with cc.
57655         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
57657 2010-12-25  Bruno Haible  <bruno@clisp.org>
57659         truncl-ieee: Make it work on OSF/1 5.1 with cc.
57660         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
57661         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
57662         test whether truncl works according to ISO C 99 with IEC 60559.
57663         * m4/truncl-ieee.m4: New file.
57664         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
57665         m4/signbit.m4.
57666         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
57668 2010-12-25  Bruno Haible  <bruno@clisp.org>
57670         ceill-ieee: Make it work on OSF/1 5.1 with cc.
57671         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
57672         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
57673         test whether ceill works according to ISO C 99 with IEC 60559.
57674         * m4/ceill-ieee.m4: New file.
57675         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
57676         m4/signbit.m4.
57677         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
57679 2010-12-25  Bruno Haible  <bruno@clisp.org>
57681         Ensure all prerequisites of <wchar.h> are included.
57682         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
57683         before <wchar.h>.
57684         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57685         gl_MBRLEN_NUL_RETVAL): Likewise.
57686         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57687         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
57688         AC_FUNC_MBRTOWC): Likewise.
57689         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57690         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57691         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57692         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
57693         Likewise.
57694         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57695         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
57696         (gl_WCHAR_H): Improve comments.
57697         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57699 2010-12-25  Bruno Haible  <bruno@clisp.org>
57701         strtok_r: Fix C syntax error in autoconf macro.
57702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
57703         characters in test program.
57705 2010-12-24  Bruno Haible  <bruno@clisp.org>
57707         ceil, trunc, round: Fix gcc warnings.
57708         * lib/ceil.c (MIN): Undefine before redefining.
57709         * lib/trunc.c (MIN): Likewise.
57710         * lib/round.c (MIN): Likewise.
57711         Include <math.h> first.
57713 2010-12-24  Bruno Haible  <bruno@clisp.org>
57715         select tests: Avoid failures on OSF/1 5.1.
57716         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
57717         failure of closing the last socket; it may fail with ECONNRESET.
57719 2010-12-24  Eric Blake  <eblake@redhat.com>
57721         stdint: avoid HP-UX 10.20 preprocessor bug
57722         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
57723         than #if.
57724         * tests/test-floor2.c (main): Likewise.
57725         Reported by Peter O'Gorman.
57727         pipe: make obsoletion transition easier
57728         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
57729         * modules/pipe (Files): Include revived file.
57730         (Include): Drop reference, to mirror getdate's behavior.
57732 2010-12-24  Bruno Haible  <bruno@clisp.org>
57734         sys_socket: Hide mismatch of declarations on NonStop Kernel.
57735         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
57736         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
57737         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57739 2010-12-24  Bruno Haible  <bruno@clisp.org>
57741         gethostname: Ensure declaration on NonStop Kernel.
57742         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
57743         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57745 2010-12-24  Bruno Haible  <bruno@clisp.org>
57747         sys_select: Ensure all necessary types on NonStop Kernel.
57748         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
57749         include <sys/time.h>.
57750         * doc/posix-headers/sys_select.texi: Mention that it's missing on
57751         NonStop Kernel.
57752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57754 2010-12-24  Bruno Haible  <bruno@clisp.org>
57756         sys_select: Remove unneeded include.
57757         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
57758         have <sys/select.h>.
57760 2010-12-24  Bruno Haible  <bruno@clisp.org>
57762         gethostname: Provide a fallback for HOST_NAME_MAX.
57763         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
57764         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
57765         instead.
57766         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57768 2010-12-24  Bruno Haible  <bruno@clisp.org>
57770         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
57771         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
57772         (SA_RESTART): Likewise.
57773         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57775 2010-12-24  Bruno Haible  <bruno@clisp.org>
57777         signal: Define NSIG.
57778         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
57779         * tests/test-signal.c (nsig): New variable.
57780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57782 2010-12-24  Bruno Haible  <bruno@clisp.org>
57784         rename, renameat: Avoid test failures on OSF/1 5.1.
57785         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
57786         alternative error codes.
57787         * tests/test-renameat.c (main): Likewise.
57789 2010-12-24  Bruno Haible  <bruno@clisp.org>
57791         *printf: Detect large precisions bug on Solaris 10/SPARC.
57792         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
57793         by Paul Eggert.
57794         * tests/test-snprintf-posix.h (test_function): Add this test code here
57795         too.
57796         * tests/test-sprintf-posix.h (test_function): Likewise.
57797         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57798         * tests/test-vasprintf-posix.c (test_function): Likewise.
57799         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
57800         around by gnulib.
57801         * doc/posix-functions/printf.texi: Likewise.
57802         * doc/posix-functions/snprintf.texi: Likewise.
57803         * doc/posix-functions/sprintf.texi: Likewise.
57804         * doc/posix-functions/vfprintf.texi: Likewise.
57805         * doc/posix-functions/vprintf.texi: Likewise.
57806         * doc/posix-functions/vsnprintf.texi: Likewise.
57807         * doc/posix-functions/vsprintf.texi: Likewise.
57808         * doc/posix-functions/dprintf.texi: Undo last commit.
57809         * doc/posix-functions/vdprintf.texi: Likewise.
57811 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57813         tests: port test-fdutimensat.c to Solaris 8
57814         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
57815         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
57816         On Solaris 8, it fails with errno == ENOSYS, because there is no
57817         futimens (so it can't use the fd), and there is no lutimens (so it
57818         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
57820         vsnprintf: make more consistent with snprintf; doc fixes
57822         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
57823         the byte count return problem was promoted from the snprintf-posix
57824         to the snprintf module.
57825         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
57826         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
57827         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
57828         * tests/test-snprintf.c (main): Check the byte count returned.
57829         * tests/test-vsnprintf.c (main): Likewise.
57831 2010-12-23  Eric Blake  <eblake@redhat.com>
57833         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
57834         * modules/sigpipe (License): Relax license.
57836 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57838         doc: document Solaris printf bug with large float precisions
57839         * doc/posix-functions/dprintf.texi (dprintf):
57840         * doc/posix-functions/fprintf.texi (fprintf):
57841         * doc/posix-functions/printf.texi (printf):
57842         * doc/posix-functions/snprintf.texi (snprintf):
57843         * doc/posix-functions/sprintf.texi (sprintf):
57844         * doc/posix-functions/vdprintf.texi (vdprintf):
57845         * doc/posix-functions/vfprintf.texi (vfprintf):
57846         * doc/posix-functions/vprintf.texi (vprintf):
57847         * doc/posix-functions/vsnprintf.texi (vsnprintf):
57848         * doc/posix-functions/vsprintf.texi (vsprintf):
57849         Mention that these functions mishandle large floating point
57850         precisions on Solaris 10.  The same bug is also present in Solaris
57851         8, and I assume earlier.  This causes "cd gnulib-tests; make
57852         check" to fail on Solaris 8 (and I assume, later) when building
57853         the latest coreutils, in test-vasprintf-posix's call to
57854         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
57855         the wide flavors (e.g., wprintf) so this patch just updates the
57856         documentation for the narrow ones.
57858         test-posixtm.c: add two tests
57859         * tests/test-posixtm.c: Add two tests, to highlight the
57860         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
57861         around this bug; this is merely to document it.
57863 2010-12-22  Bruno Haible  <bruno@clisp.org>
57865         getlogin_r: Work around portability problem on OSF/1.
57866         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
57867         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
57868         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
57869         test for a truncated result.
57870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
57871         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
57872         * modules/getlogin_r (Depends-on): Add memchr.
57873         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
57875 2010-12-22  Bruno Haible  <bruno@clisp.org>
57877         ptsname: Avoid test failure on OSF/1 5.1.
57878         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
57879         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
57880         (same_slave): New function.
57881         (main): Use it to compare ptsname's result with the expected file name.
57883 2010-12-22  Bruno Haible  <bruno@clisp.org>
57885         Port extended stdio modules to HP NonStop Kernel.
57886         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
57887         macros.
57888         * lib/fbufmode.c: Update comments.
57889         * lib/fflush.c: Likewise.
57890         * lib/fpurge.c: Likewise.
57891         * lib/freadable.c: Likewise.
57892         * lib/freadahead.c: Likewise.
57893         * lib/freading.c: Likewise.
57894         * lib/freadptr.c: Likewise.
57895         * lib/freadseek.c: Likewise.
57896         * lib/fseeko.c: Likewise.
57897         * lib/fseterr.c: Likewise.
57898         * lib/fwritable.c: Likewise.
57899         * lib/fwriting.c: Likewise.
57900         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57902 2010-12-22  Bruno Haible  <bruno@clisp.org>
57904         ttyname_r: Work around bug on OSF/1 5.1.
57905         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
57906         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
57907         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
57908         present.
57909         * lib/ttyname_r.c (ttyname_r): Update comments.
57911 2010-12-22  Bruno Haible  <bruno@clisp.org>
57913         round: Implement result sign according to IEEE 754.
57914         * lib/round.c (MIN, MINUS_ZERO): New macros.
57915         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
57916         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
57917         * tests/test-round-ieee.c (main): Likewise.
57918         * tests/test-roundl-ieee.c (main): Likewise.
57920         trunc: Implement result sign according to IEEE 754.
57921         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
57922         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
57923         * tests/test-trunc2.c: Include minus-zero.h.
57924         (MINUS_ZERO): New macro.
57925         (trunc_reference): Keep in sync with lib/trunc.c.
57926         * tests/test-truncf2.c: Include minus-zero.h.
57927         (MINUS_ZERO): New macro.
57928         (truncf_reference): Keep in sync with lib/trunc.c.
57929         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
57930         * tests/test-trunc-ieee.c (main): Likewise.
57931         * tests/test-truncl-ieee.c (main): Likewise.
57933         ceil: Implement result sign according to IEEE 754.
57934         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
57935         (FUNC): Return -0.0 for -1 < x < 0.
57936         * tests/test-ceil2.c: Include minus-zero.h.
57937         (MINUS_ZERO): New macro.
57938         (ceil_reference): Keep in sync with lib/ceil.c.
57939         * tests/test-ceilf2.c: Include minus-zero.h.
57940         (MINUS_ZERO): New macro.
57941         (ceilf_reference): Keep in sync with lib/ceil.c.
57942         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
57943         * tests/test-ceil-ieee.c (main): Likewise.
57944         * tests/test-ceill-ieee.c (main): Likewise.
57946         floor: Implement result sign according to IEEE 754.
57947         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
57948         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
57949         * tests/test-floorf2.c (floorf_reference): Likewise.
57950         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
57951         * tests/test-floor-ieee.c (main): Likewise.
57952         * tests/test-floorl-ieee.c (main): Likewise.
57954 2010-12-22  Bruno Haible  <bruno@clisp.org>
57956         getaddrinfo: Update doc.
57957         * doc/posix-functions/gai_strerror.texi: Return type is also different
57958         on AIX and HP-UX.
57960 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57962         getaddrinfo, inet_ntop: Update doc for Solaris.
57963         * doc/posix-functions/gai_strerror.texi: Return type is also an
57964         issue on Solaris 9 and earlier.
57965         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
57966         on Solaris 10 and earlier.
57968 2010-12-21  Bruno Haible  <bruno@clisp.org>
57970         New module 'roundl-ieee'.
57971         * modules/roundl-ieee: New file.
57972         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
57973         test whether roundl works according to ISO C 99 with IEC 60559.
57974         * m4/roundl-ieee.m4: New file.
57975         * modules/roundl-ieee-tests: New file.
57976         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
57977         * tests/test-roundl.c (main): Remove signbit tests.
57978         * modules/roundl-tests (Depends-on): Remove signbit.
57979         * doc/posix-functions/roundl.texi: Mention the new module.
57981 2010-12-21  Bruno Haible  <bruno@clisp.org>
57983         New module 'truncl-ieee'.
57984         * modules/truncl-ieee: New file.
57985         * modules/truncl-ieee-tests: New file.
57986         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
57987         * tests/test-truncl.c (main): Remove signbit tests.
57988         * modules/truncl-tests (Depends-on): Remove signbit.
57989         * doc/posix-functions/truncl.texi: Mention the new module.
57991 2010-12-21  Bruno Haible  <bruno@clisp.org>
57993         New module 'ceill-ieee'.
57994         * modules/ceill-ieee: New file.
57995         * modules/ceill-ieee-tests: New file.
57996         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
57997         * tests/test-ceill.c (main): Remove signbit tests.
57998         * modules/ceill-tests (Depends-on): Remove signbit.
57999         * doc/posix-functions/ceill.texi: Mention the new module.
58001 2010-12-21  Bruno Haible  <bruno@clisp.org>
58003         New module 'floorl-ieee'.
58004         * modules/floorl-ieee: New file.
58005         * modules/floorl-ieee-tests: New file.
58006         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58007         * tests/test-floorl.c (main): Remove signbit tests.
58008         * modules/floorl-tests (Depends-on): Remove signbit.
58009         * doc/posix-functions/floorl.texi: Mention the new module.
58011 2010-12-21  Bruno Haible  <bruno@clisp.org>
58013         New module 'round-ieee'.
58014         * modules/round-ieee: New file.
58015         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58016         whether round works according to ISO C 99 with IEC 60559.
58017         * m4/round-ieee.m4: New file.
58018         * modules/round-ieee-tests: New file.
58019         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58020         * tests/test-round1.c (main): Remove signbit tests.
58021         * modules/round-tests (Depends-on): Remove 'signbit'.
58022         * doc/posix-functions/round.texi: Mention the new module.
58024 2010-12-21  Bruno Haible  <bruno@clisp.org>
58026         New module 'trunc-ieee'.
58027         * modules/trunc-ieee: New file.
58028         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58029         whether trunc works according to ISO C 99 with IEC 60559.
58030         * m4/trunc-ieee.m4: New file.
58031         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58033         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58034         * modules/trunc-ieee-tests: New file.
58035         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58036         * tests/test-trunc1.c (main): Remove signbit tests.
58037         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58038         * doc/posix-functions/trunc.texi: Mention the new module.
58040 2010-12-21  Bruno Haible  <bruno@clisp.org>
58042         New module 'ceil-ieee'.
58043         * modules/ceil-ieee: New file.
58044         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58045         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58046         ISO C 99 with IEC 60559.
58047         * m4/ceil-ieee.m4: New file.
58048         * modules/ceil (Files): Add lib/ceil.c.
58049         (Depends-on): Add 'float'.
58050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58051         * lib/math.in.h (ceil): New declaration.
58052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58053         REPLACE_CEIL.
58054         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58055         * modules/ceil-ieee-tests: New file.
58056         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58057         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58058         * doc/posix-functions/ceil.texi: Mention the new module.
58060 2010-12-21  Bruno Haible  <bruno@clisp.org>
58062         New module 'floor-ieee'.
58063         * modules/floor-ieee: New file.
58064         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58065         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58066         ISO C 99 with IEC 60559.
58067         * m4/floor-ieee.m4: New file.
58068         * modules/floor (Files): Add lib/floor.c.
58069         (Depends-on): Add 'float'.
58070         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58071         * lib/math.in.h (floor): New declaration.
58072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58073         REPLACE_FLOOR.
58074         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58075         * modules/floor-ieee-tests: New file.
58076         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58077         * tests/test-math-c++.cc: Check the signature of 'floor'.
58078         * doc/posix-functions/floor.texi: Mention the new module.
58080 2010-12-21  Bruno Haible  <bruno@clisp.org>
58082         New module 'roundf-ieee'.
58083         * modules/roundf-ieee: New file.
58084         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58085         test whether roundf works according to ISO C 99 with IEC 60559.
58086         * m4/roundf-ieee.m4: New file.
58087         * modules/roundf-ieee-tests: New file.
58088         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58089         * tests/test-roundf1.c (main): Remove signbit tests.
58090         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58091         * doc/posix-functions/roundf.texi: Mention the new module.
58093 2010-12-21  Bruno Haible  <bruno@clisp.org>
58095         New module 'truncf-ieee'.
58096         * modules/truncf-ieee: New file.
58097         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58098         test whether truncf works according to ISO C 99 with IEC 60559.
58099         * m4/truncf-ieee.m4: New file.
58100         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58102         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58103         * modules/truncf-ieee-tests: New file.
58104         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58105         * tests/test-truncf1.c (main): Remove signbit tests.
58106         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58107         * doc/posix-functions/truncf.texi: Mention the new module.
58109 2010-12-21  Bruno Haible  <bruno@clisp.org>
58111         New module 'ceilf-ieee'.
58112         * modules/ceilf-ieee: New file.
58113         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58114         test whether ceilf works according to ISO C 99 with IEC 60559.
58115         * m4/ceilf-ieee.m4: New file.
58116         * modules/ceilf-ieee-tests: New file.
58117         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58118         * tests/test-ceilf1.c (main): Remove signbit tests.
58119         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58120         * doc/posix-functions/ceilf.texi: Mention the new module.
58122 2010-12-21  Bruno Haible  <bruno@clisp.org>
58124         New module 'floorf-ieee'.
58125         * modules/floorf-ieee: New file.
58126         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58127         test whether floorf works according to ISO C 99 with IEC 60559.
58128         * m4/floorf-ieee.m4: New file.
58129         * modules/floorf-ieee-tests: New file.
58130         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58131         * tests/test-floorf1.c (main): Remove signbit tests.
58132         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58133         * doc/posix-functions/floorf.texi: Mention the new module.
58135 2010-12-21  Bruno Haible  <bruno@clisp.org>
58137         Support for minus zero in autoconf macros.
58138         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58139         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58140         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58141         * tests/minus-zero.h: Update comments.
58143 2010-12-21  Bruno Haible  <bruno@clisp.org>
58145         Tests for module 'ceil'.
58146         * modules/ceil-tests: New file.
58147         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58148         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58150 2010-12-21  Bruno Haible  <bruno@clisp.org>
58152         Tests for module 'floor'.
58153         * modules/floor-tests: New file.
58154         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58155         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58157 2010-12-21  Bruno Haible  <bruno@clisp.org>
58159         math: Fix indentation.
58160         * lib/math.in.h (floorf): Fix indentation.
58162 2010-12-21  Bruno Haible  <bruno@clisp.org>
58164         Fix cross-compilation guesses on Solaris.
58165         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58166         not match "solaris2.10".
58167         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58168         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58169         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58171 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58173         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58174         This fixes a problem observed with the latest coreutils snapshot
58175         that caused a test to fail on Solaris 8.  src/csplit.c's call
58176         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58177         earlier, instead of returning the number of bytes that would have
58178         been generated; this causes csplit to incorrectly report memory
58179         exhaustion.
58180         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58181         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58182         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58183         comments to match.
58184         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58185         Fix typo in matching older versions of Solaris: "solaris2.10"
58186         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58187         only for guessing while cross-compiling.
58188         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58190 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58192         ftoastr: fix comment again
58193         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58194         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58195         Also, simplify example a bit by using flags = 0.
58197 2010-12-20  Bruno Haible  <bruno@clisp.org>
58199         round*, trunc*: Update documentation regarding glibc.
58200         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58201         * doc/posix-functions/round.texi: Likewise.
58202         * doc/posix-functions/roundl.texi: Likewise.
58203         * doc/posix-functions/truncf.texi: Likewise.
58204         * doc/posix-functions/trunc.texi: Likewise.
58205         * doc/posix-functions/truncl.texi: Likewise.
58207 2010-12-20  Bruno Haible  <bruno@clisp.org>
58209         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58210         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58211         * doc/posix-functions/round.texi: Likewise.
58212         * doc/posix-functions/roundl.texi: Likewise.
58214 2010-12-20  Bruno Haible  <bruno@clisp.org>
58216         ttyname_r: Add missing declaration on HP-UX 11.
58217         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58218         HAVE_TTYNAME_R.
58219         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58220         declared. Set HAVE_TTYNAME_R always.
58221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58222         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58223         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58224         HAVE_TTYNAME_R.
58225         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58227 2010-12-20  Bruno Haible  <bruno@clisp.org>
58229         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58230         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58231         * doc/posix-functions/getlogin_r.texi: Likewise.
58232         * tests/test-getlogin.c: Include <errno.h>.
58233         (main): Avoid test failure on HP-UX 11.11.
58234         * tests/test-getlogin_r.c (main): Likewise.
58236 2010-12-20  Bruno Haible  <bruno@clisp.org>
58238         getlogin_r: Add missing declaration on HP-UX 11.
58239         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58240         declared also when it exists as a function.
58241         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58243 2010-12-20  Bruno Haible  <bruno@clisp.org>
58245         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58246         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58247         through wcrtomb.
58249 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58251         ftoastr: fix comment
58252         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58253         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58255 2010-12-19  Bruno Haible  <bruno@clisp.org>
58257         isnan: Ensure it is a macro.
58258         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58259         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58260         Solaris.
58262 2010-12-19  Bruno Haible  <bruno@clisp.org>
58264         ldexpl test: Fix link error on OSF/1 5.1.
58265         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58267 2010-12-19  Bruno Haible  <bruno@clisp.org>
58269         wctype: Make it work in C++ mode on OSF/1 5.1.
58270         * lib/wctype.in.h (iswblank): Declare but not define here.
58271         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58272         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58273         * modules/wctype (Files): Add lib/iswblank.c.
58275 2010-12-19  Bruno Haible  <bruno@clisp.org>
58277         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58278         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58279         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58281 2010-12-19  Bruno Haible  <bruno@clisp.org>
58283         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58285         _POSIX_PII_SOCKET.
58286         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58287         * doc/posix-functions/recvfrom.texi: Likewise.
58288         * doc/posix-functions/send.texi: Likewise.
58289         * doc/posix-functions/sendto.texi: Likewise.
58291 2010-12-19  Bruno Haible  <bruno@clisp.org>
58293         tcgetsid: Add missing declaration on OSF/1 5.1.
58294         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58295         HAVE_TCGETSID.
58296         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58297         Don't set HAVE_TCGETSID.
58298         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58299         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58300         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58301         HAVE_TCGETSID.
58302         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58304 2010-12-19  Bruno Haible  <bruno@clisp.org>
58306         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58307         * lib/stdio.in.h: During the include_next statement, let recursive
58308         includes of this file include only the system header file.
58310 2010-12-19  Bruno Haible  <bruno@clisp.org>
58312         iconv_open: Fix regression from 2010-12-04.
58313         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58314         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58316 2010-12-19  Bruno Haible  <bruno@clisp.org>
58318         stdbool test: Avoid a gcc warning.
58319         * tests/test-stdbool.c (main): Fail if e1 is false.
58320         Reported by Jim Meyering.
58322 2010-12-19  Jim Meyering  <meyering@redhat.com>
58324         setenv: restore to working order
58325         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58326         mistakenly removed.
58327         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58328         HAVE_SETENV.
58329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58330         HAVE_SETENV.
58332 2010-12-19  Bruno Haible  <bruno@clisp.org>
58334         Document some different function declarations on OSF/1 5.1.
58335         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58336         * doc/posix-functions/inet_ntop.texi: Likewise.
58337         * doc/posix-functions/gethostname.texi: Likewise.
58338         * lib/unistd.in.h (gethostname): Update comment.
58340 2010-12-19  Bruno Haible  <bruno@clisp.org>
58342         doc: Mention vasprintf-posix module.
58343         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58344         the 'vasprintf-posix' module.
58345         * doc/glibc-functions/vasprintf.texi: Likewise.
58347 2010-12-19  Bruno Haible  <bruno@clisp.org>
58349         unsetenv: Add missing declaration on OSF/1 5.1.
58350         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58352         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58354         not HAVE_UNSETENV.
58355         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58356         HAVE_UNSETENV.
58357         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58359 2010-12-19  Bruno Haible  <bruno@clisp.org>
58361         setenv: Add missing declaration on OSF/1 5.1.
58362         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58363         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58364         declared. Don't set HAVE_SETENV.
58365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58366         not HAVE_SETENV.
58367         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58368         HAVE_SETENV.
58369         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58371 2010-12-19  Bruno Haible  <bruno@clisp.org>
58373         nl_langinfo tests: Avoid gcc warning.
58374         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58376 2010-12-19  Bruno Haible  <bruno@clisp.org>
58378         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58379         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58380         _GL_CXXALIAS_SYS.
58382 2010-12-19  Bruno Haible  <bruno@clisp.org>
58384         stdbool: Relax test.
58385         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58386         address to 'bool' work in static initializer, for compilers other than
58387         GCC.
58389 2010-12-19  Bruno Haible  <bruno@clisp.org>
58391         ftello: Add missing declaration on OSF/1 5.1.
58392         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58393         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58395         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58396         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58398 2010-12-19  Bruno Haible  <bruno@clisp.org>
58400         fseeko: Add missing declaration on OSF/1 5.1.
58401         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58404         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58405         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58407 2010-12-19  Bruno Haible  <bruno@clisp.org>
58409         fchdir: Add missing declaration on OSF/1 5.1.
58410         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58413         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58414         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58416 2010-12-19  Bruno Haible  <bruno@clisp.org>
58418         relocatable-prog-wrapper: Separate from relocatable-prog.
58419         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58420         uninstall-relocwrapper rule here.
58421         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58422         Reported by Ian Beckwith <ianb@erislabs.net>.
58424 2010-12-19  Bruno Haible  <bruno@clisp.org>
58426         unistr/u8-mbsnlen: Add missing dependency.
58427         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58428         Reported by Ian Beckwith <ianb@erislabs.net>.
58430 2010-12-19  Bruno Haible  <bruno@clisp.org>
58432         iconv: Make it possible again to use this module without 'iconv-h'.
58433         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58434         if it is not defined.
58435         Reported by Ian Beckwith <ianb@erislabs.net>.
58437 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58439         acl: port to Solaris 8 when copying from tmpfs to ufs
58440         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58441         error number.  Problem observed on Solaris 8 with latest
58442         coreutils, with "mv A B", where A is on a tmpfs file system and B
58443         is on a ufs file system.  This caused coreutils' mv/part-symlink
58444         test to fail.
58446         tests: set fail=0 at start
58447         * tests/init.sh (setup_): Move fail=0 initialization here ...
58448         (mktempd_): ... from here, so that tests can rely on fail being
58449         set to 0 initially.  This fixes a problem in coreutils; see:
58450         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58452 2010-12-18  Bruno Haible  <bruno@clisp.org>
58454         memmem-simple: Stylistic changes.
58455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58456         Fix preprocessor directive indentation.
58458 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58460         memmem, memmem-simple: reorganize and expand empty needle check
58461         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58462         functional checks to memmem-simple so that one has a fully functional
58463         memmem by using just this module.
58464         Restrict the performance only check to the memmem module.
58465         Also expand the empty needle check to ensure the correct
58466         pointer is returned, not just a non NULL pointer.
58467         * doc/glibc-functions/memmem.texi: Rearrange the portability
58468         documentation to correlate with the rearranged checks.
58469         Clarify exactly how the memmem and memmem-simple modules
58470         relate to each other.
58472 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58473             Bruno Haible  <bruno@clisp.org>
58475         Improve cross-compilation guesses for uClibc.
58476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58477         that uClibc does not have the glibc bug.
58478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58479         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58481 2010-12-14  Eric Blake  <eblake@redhat.com>
58483         configmake: provide fallbacks for oldest supported autotools
58484         * m4/configmake.m4: New file.
58485         * modules/configmake (Files): Ship it.
58486         (configure.ac): Use it to guarantee fallbacks.
58488 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58490         read-file: Improve handling of large files
58491         * lib/read-file.c (fread_file): Minimize realloc()s
58492         for regular files, and better manage sizes around SIZE_MAX.
58494 2010-12-13  Eric Blake  <eblake@redhat.com>
58496         cloexec, fcntl: relax license
58497         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58498         consent from all contributors.
58499         * modules/fcntl (License): Likewise.
58501 2010-12-10  Bruno Haible  <bruno@clisp.org>
58503         Tests for module 'pipe-posix'.
58504         * modules/pipe-posix-tests: New file.
58505         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58507 2010-12-10  Bruno Haible  <bruno@clisp.org>
58509         pipe-posix: Make it work in C++ mode.
58510         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58511         (pipe): Use common idiom, not a macro definition.
58512         * lib/pipe.c: New file.
58513         * m4/pipe.m4: New file.
58514         * modules/pipe-posix (Description): Enhance.
58515         (Files): Add lib/pipe.c, m4/pipe.m4.
58516         (configure.ac): Invoke gl_FUNC_PIPE.
58517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58518         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58519         * tests/test-unistd-c++.cc: Check the signature of pipe.
58521 2010-12-10  Bruno Haible  <bruno@clisp.org>
58523         Rename module 'pipe' to 'spawn-pipe'.
58524         * modules/spawn-pipe: New file, renamed from modules/pipe.
58525         (Files, configure.ac, Makefile.am): Update.
58526         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58527         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58528         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58529         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58530         "spawn-pipe.h" instead of "pipe.h".
58531         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58532         to gl_SPAWN_PIPE.
58533         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58534         (Files, Makefile.am): Update.
58535         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58536         Update.
58537         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58538         Include "spawn-pipe.h" instead of "pipe.h".
58539         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58540         * lib/javacomp.c: Likewise.
58541         * lib/javaversion.c: Likewise.
58542         * lib/pipe-filter-gi.c: Likewise.
58543         * lib/pipe-filter-ii.c: Likewise.
58544         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58545         * modules/javacomp (Depends-on): Likewise.
58546         * modules/javaversion (Depends-on): Likewise.
58547         * modules/pipe-filter-gi (Depends-on): Likewise.
58548         * modules/pipe-filter-ii (Depends-on): Likewise.
58549         * MODULES.html.sh (Executing programs): Update.
58550         * NEWS: Mention the change.
58552 2010-12-10  Eric Blake  <eblake@redhat.com>
58554         pipe-posix: new module
58555         * modules/pipe-posix: New file.
58556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58557         (gl_UNISTD_H): Check for declaration.
58558         * modules/unistd (Makefile.am): Substitute it.
58559         * lib/unistd.in.h (pipe): Provide it for mingw.
58560         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58561         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58563 2010-12-07  Bruno Haible  <bruno@clisp.org>
58565         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58566         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58567         u8_strcmp_gnu.
58568         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58570 2010-12-06  Bruno Haible  <bruno@clisp.org>
58572         Update internal documentation.
58573         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58575 2010-12-04  Bruno Haible  <bruno@clisp.org>
58577         Put more information about failed tests into the test return codes.
58578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58579         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58580         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58582         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58584         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58585         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58586         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
58587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58588         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
58589         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58590         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
58591         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58592         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
58593         returns a bit mask.
58594         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
58595         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
58596         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
58597         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
58598         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
58600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58602         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
58603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
58604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58605         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
58606         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
58607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
58608         * m4/link.m4 (gl_FUNC_LINK): Likewise.
58609         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58610         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
58611         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
58612         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
58614         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58615         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
58617         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58618         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58619         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58620         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
58621         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
58622         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
58623         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
58624         gl_PRINTF_PRECISION): Likewise.
58625         * m4/regex.m4 (gl_REGEX): Likewise.
58626         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58627         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
58629         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58630         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
58633         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
58634         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58635         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58636         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58637         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58638         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
58639         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58640         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58641         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58642         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
58643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58645         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
58646         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
58647         enumerated value.
58648         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
58650 2010-12-04  Bruno Haible  <bruno@clisp.org>
58652         Update for Solaris 11 2010-11.
58653         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
58654         Express, released in November 2010.
58656 2010-12-04  Bruno Haible  <bruno@clisp.org>
58658         nproc: Relax license.
58659         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
58660         and Paul Eggert.
58661         Requested by Ludovic Courtès <ludo@gnu.org>.
58663 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58665         utimecmp: fine-grained src to nearby coarse-grained dest
58667         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
58668         and the source is on a file system with higher-resolution time
58669         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
58670         not work, and the time stamps are close together, the algorithm to
58671         determine the exact resolution from the read-back mtime was buggy:
58672         it had a "!=" where it should have had an "==".  This bug has been
58673         in the code ever since it was introduced to gnulib.
58674         Problem reported by Dan Jacobson in
58675         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
58677 2010-11-30  Bruno Haible  <bruno@clisp.org>
58679         strerror_r-posix: Fix autoconf test.
58680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
58682 2010-11-28  Bruno Haible  <bruno@clisp.org>
58683             Paul Eggert  <eggert@cs.ucla.edu>
58685         Tests for module 'getdomainname'.
58686         * modules/getdomainname-tests: New file.
58687         * tests/test-getdomainname.c: New file, based on
58688         tests/test-gethostname.c.
58690 2010-11-28  Bruno Haible  <bruno@clisp.org>
58691             Paul Eggert  <eggert@cs.ucla.edu>
58693         getdomainname: Use the system function when possible.
58694         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
58695         (getdomainname): Replace if needed. Provide the declaration if it is
58696         missing. Don't use _GL_CXXALIAS_SYS_CAST.
58697         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
58698         (getdomainname): When the system has getdomainname, call the system
58699         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
58700         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
58701         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
58702         found in libnsl. Look for the declaration also in <netdb.h>. Replace
58703         the function if its second argument is of type 'int' or if it is found
58704         in libnsl.
58705         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
58706         <sys/systeminfo.h> and sysinfo().
58707         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
58708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58709         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
58710         HAVE_GETDOMAINNAME.
58711         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
58712         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
58713         * doc/glibc-functions/getdomainname.texi: Document the problems with
58714         the getdomainname declaration.
58716 2010-11-28  Bruno Haible  <bruno@clisp.org>
58718         sys_socket: Ensure ss_family field on AIX.
58719         * lib/sys_socket.in.h (ss_family): New macro definition.
58720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
58721         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
58722         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
58723         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58724         * modules/sys_socket (Makefile.am): Substitute
58725         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58726         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
58728 2010-11-27  Bruno Haible  <bruno@clisp.org>
58730         readline: Improve configure output.
58731         * m4/readline.m4 (gl_FUNC_READLINE): Make the
58732         "checking for readline..." result understandable.
58734 2010-11-27  Bruno Haible  <bruno@clisp.org>
58736         *printf-posix: Detect a bug on Solaris 10/x86.
58737         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
58738         for floating-point output.
58739         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
58740         directive.
58741         * tests/test-snprintf-posix.h (test_function): Likewise.
58742         * tests/test-sprintf-posix.h (test_function): Likewise.
58743         * tests/test-vasprintf-posix.c (test_function): Likewise.
58744         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
58745         * doc/posix-functions/printf.texi: Likewise.
58746         * doc/posix-functions/snprintf.texi: Likewise.
58747         * doc/posix-functions/sprintf.texi: Likewise.
58748         * doc/posix-functions/vfprintf.texi: Likewise.
58749         * doc/posix-functions/vprintf.texi: Likewise.
58750         * doc/posix-functions/vsnprintf.texi: Likewise.
58751         * doc/posix-functions/vsprintf.texi: Likewise.
58752         * doc/glibc-functions/obstack_printf.texi: Likewise.
58753         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
58755 2010-11-27  Bruno Haible  <bruno@clisp.org>
58757         Fix link error when module libunistring-optional is in use.
58758         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
58759         * modules/striconveha-tests (Makefile.am): Likewise.
58761 2010-11-27  Bruno Haible  <bruno@clisp.org>
58763         regex: Mention link dependencies.
58764         * modules/regex (Link): New section.
58765         * modules/rpmatch (Link): Likewise.
58766         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
58768 2010-11-27  Bruno Haible  <bruno@clisp.org>
58770         ftoastr: Fix compilation error on Solaris.
58771         * lib/ftoastr.c: Include <config.h>.
58773 2010-11-27  Bruno Haible  <bruno@clisp.org>
58775         getloadavg: Update documentation.
58776         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
58778 2010-11-27  Bruno Haible  <bruno@clisp.org>
58780         sys_socket: Fix test whether the functions are declared.
58781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
58782         not <sys/select.h>.
58784 2010-11-27  Bruno Haible  <bruno@clisp.org>
58786         getpass: Make sure to get system declaration on some platforms.
58787         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
58788         gl_USE_SYSTEM_EXTENSIONS.
58789         * modules/getpass (Depends-on): Add extensions.
58791 2010-11-26  Bruno Haible  <bruno@clisp.org>
58793         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
58794         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
58795         'iconv' module is present.
58796         (ICONV_CONST): New macro.
58797         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
58798         ICONV_CONST.
58799         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
58800         set ICONV_CONST.
58801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
58802         here.
58803         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
58804         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
58805         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
58806         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
58807         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
58808         present.
58810 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58812         ftoastr: comment fix
58813         * lib/ftoastr.c: "little" -> "little or no" in comment
58815 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
58817         stdint: port to GCC 4.3 + OSX + Octave
58818         On this platform, stdint.h is buggy and defines int64_t to long
58819         long int.  The replacement defined it to long int, causing
58820         problems with C++ style name mangling.  Instead, trust the system
58821         definition if INT64_MAX is defined, and likewise for the unsigned
58822         variant.   Problem reported by Jarno Rajahalme in
58823         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
58824         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
58825         and don't mess with int64_t and INT64_MAX in this case.
58826         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
58828 2010-11-24  Bruno Haible  <bruno@clisp.org>
58830         doc: Corrections regarding MacOS X 10.4 and 10.5.
58831         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
58832         MacOS X.
58833         Reported by Simon Josefsson.
58835 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
58837         Uninstall ".bin" files installed by relocwrapper.
58838         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
58839         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
58840         unless it is already there.
58842 2010-11-21  Bruno Haible  <bruno@clisp.org>
58844         Update for NetBSD 5.0.
58845         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
58846         NetBSD; the test fails on NetBSD 5.0.
58847         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
58848         about NetBSD.
58850 2010-11-21  Bruno Haible  <bruno@clisp.org>
58852         Update for HP-UX 11.23 and HP-UX 11.31.
58853         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
58854         HP-UX.
58856 2010-11-21  Bruno Haible  <bruno@clisp.org>
58858         Update for MacOS X 10.5.
58859         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
58860         MacOS X; the test fails on MacOS X 10.5.8.
58861         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
58862         about MacOS X.
58864 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
58866         bootstrap: add bootstrap_sync option.
58867         See discussion at
58868         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
58869         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
58870         * build-aux/bootstrap: Accept --bootstrap-sync to update
58871         bootstrap if it is not identical to the local gnulib's
58872         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
58873         enable this by default.  Accept --no-bootstrap-sync to disable
58874         it.
58876 2010-11-20  Bruno Haible  <bruno@clisp.org>
58878         Ensure that <features.h> is included before __GLIBC__ is tested.
58879         * lib/printf-parse.h: Include <features.h>.
58880         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
58881         Reported by Mike Frysinger <vapier@gentoo.org>.
58883         Ensure that <features.h> is included before __GLIBC__ is tested.
58884         * lib/wchar.in.h: Include <features.h>.
58885         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
58886         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
58887         Reported by Mike Frysinger <vapier@gentoo.org>.
58889         Ensure that <features.h> is included before __GLIBC__ is tested.
58890         * lib/arpa_inet.in.h: Include <features.h>.
58891         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
58892         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
58893         Reported by Mike Frysinger <vapier@gentoo.org>.
58895         Ensure that <features.h> is included before __GLIBC__ is tested.
58896         * build-aux/link-warning.h: Include <features.h>.
58897         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
58898         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
58899         Reported by Mike Frysinger <vapier@gentoo.org>.
58901         Ensure that <features.h> is included before __GLIBC__ is tested.
58902         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
58903         Reported by Mike Frysinger <vapier@gentoo.org>.
58905 2010-11-20  Bruno Haible  <bruno@clisp.org>
58907         memmem: Fix autoconf test.
58908         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
58910 2010-11-20  Bruno Haible  <bruno@clisp.org>
58912         Port to uClibc.
58913         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
58914         * lib/fcntl.in.h: Likewise.
58915         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
58916         * lib/mbrtowc.c (mbrtowc): Likewise.
58917         * lib/relocatable.c (find_shared_library_fullname): Likewise.
58918         * lib/strerror_r.c: Likewise.
58919         * lib/unistr/u8-strnlen.c: Likewise.
58920         * lib/vasnprintf.c (decimal_point_char): Likewise.
58921         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58922         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
58923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
58924         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
58925         * tests/test-sigaction.c (handler, main): Likewise.
58926         * lib/freading.h: Treat uClibc like a non-glibc platform.
58927         * lib/freading.c: Likewise.
58928         * lib/gettext.h: Likewise.
58929         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
58930         Likewise.
58931         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
58932         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58933         * lib/propername.c (proper_name_utf8): Likewise.
58934         * lib/spawn.in.h: Likewise.
58935         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
58936         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
58937         mem_cd_iconveh_internal): Likewise.
58938         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
58939         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
58940         strstr, strcasestr): Likewise.
58941         * lib/unicodeio.c (unicode_to_mb): Likewise.
58942         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
58943         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
58944         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
58945         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
58946         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
58947         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
58948         * lib/unistr/u8-stpncpy.c: Likewise.
58949         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58950         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
58951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58952         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58953         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
58954         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
58955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
58956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
58957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
58958         Likewise.
58959         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58960         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58961         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
58962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58964         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58965         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58966         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
58967         * tests/test-getopt.h (OPTIND_MIN): Likewise.
58968         * tests/test-striconveha.c (main): Likewise.
58969         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58970         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
58971         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
58972         * doc/posix-functions/getline.texi: Likewise.
58973         Reported by Mike Frysinger <vapier@gentoo.org>.
58975 2010-11-20  Bruno Haible  <bruno@clisp.org>
58977         nproc: Fix condition.
58978         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
58979         HAVE_PTHREAD_AFFINITY_NP.
58981 2010-11-20  Bruno Haible  <bruno@clisp.org>
58983         Fix a comment.
58984         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
58986 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
58988         ftoastr: don't assume snprintf
58989         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
58990         Implement a subset of snprintf here, by using sprintf safely.
58991         * modules/ftoastr (Depends-on): Remove snprintf.
58993 2010-11-19  Jim Meyering  <meyering@redhat.com>
58995         test-rename.h: fix compilation failure
58996         * tests/test-rename.h (test_rename): Add omitted "}".
58998 2010-11-17  Jim Meyering  <meyering@redhat.com>
59000         maint.mk: add a URL discussing the no-@acronym policy
59001         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59003 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59005         ftoastr: depend on snprintf, improve comments
59006         * lib/ftoastr.c: Also mention Loitsch's draft.
59007         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59008         needed in the current implementation, but it might simplify
59009         speeding up the code later.
59010         * modules/ftoastr: Depend on snprintf; this improves portability.
59011         Suggested by Bruno Haible in the same email.
59013         ftoastr: port to hosts lacking strtof and strtold
59014         Problem reported by Bruno Haible in
59015         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59016         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59017         environment and strtold (and presumably strtof) are not available.
59018         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59019         (configure.ac): Require gl_C99_STRTOLD.
59021 2010-11-18  Bruno Haible  <bruno@clisp.org>
59023         c-strtold: Avoid link error on AIX 7.
59024         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59025         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59026         (gl_C_STRTOLD): Test whether strtold_l exists.
59027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59029 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59031         intprops: new macro INT_BITS_STRLEN_BOUND
59032         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59033         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59034         not exposed.  Also, it uses a slightly tighter bound than before;
59035         though this makes no practical difference, we might as well be as
59036         tight as we easily can.
59038         ftoastr: new module, for lossless conversion of floats to short strings
59039         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59040         * modules/ftoastr: New files.
59042 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59044         bootstrap: port to Solaris sed
59045         * build-aux/bootstrap (get_version): Port to Solaris sed.
59046         See Ralf Wildenhues's note in
59047         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59049 2010-11-14  Jim Meyering  <meyering@redhat.com>
59051         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59052         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59053         and move definition closer to sole use.
59055 2010-11-13  Jim Meyering  <meyering@redhat.com>
59057         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59058         Now we require at least autoconf-2.59, which means the work-around
59059         is no longer needed.
59060         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59061         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59062         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59063         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59064         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59066 2010-11-13  Bruno Haible  <bruno@clisp.org>
59068         rename, renameat: Avoid test failures at NFS mounted locations.
59069         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59070         functions.
59071         (test_rename): Use assert_nonexistent.
59072         * tests/test-rename.c: Include <dirent.h>.
59073         * tests/test-renameat.c: Likewise.
59074         Reported by Gary V. Vaughan <gary@gnu.org>.
59076         rename, renameat: Document Linux bug with NFS
59077         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59078         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59079         * doc/posix-functions/renameat.texi: Likewise.
59080         Suggested by Eric Blake.
59082 2010-11-13  Bruno Haible  <bruno@clisp.org>
59084         rename test: Add comments.
59085         * tests/test-rename.h (test_rename): Add structure and comments.
59087 2010-11-13  Eric Blake  <eblake@redhat.com>
59089         maintainer-makefile: cover a few more files
59090         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59091         scripts generated within C files, for libvirt.
59093 2010-11-13  Bruno Haible  <bruno@clisp.org>
59095         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59096         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59097         character, return the number of bytes that belong together, not always
59098         1.
59099         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59100         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59101         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59102         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59103         number of bytes of an invalid character.
59104         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59105         (main): Invoke it.
59106         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59107         results.
59108         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59109         malformed byte sequences.
59110         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59111         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59112         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59113         Reported by Ben Pfaff and Paolo Bonzini.
59115 2010-11-13  Bruno Haible  <bruno@clisp.org>
59117         openat: Work around glibc bug with fchownat() and empty file names.
59118         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59119         (gl_FUNC_FCHOWNAT): Invoke it.
59120         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59121         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59122         Reported by Gary V. Vaughan <gary@gnu.org>.
59124 2010-11-13  Bruno Haible  <bruno@clisp.org>
59126         openat: Ensure autoconf macro ordering.
59127         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59128         gl_USE_SYSTEM_EXTENSIONS.
59129         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59131 2010-11-13  Bruno Haible  <bruno@clisp.org>
59133         Update comments.
59134         * lib/unistr/u8-check.c: Update file name in comments.
59135         * lib/unistr/u8-mblen.c: Likewise.
59136         * lib/unistr/u8-prev.c: Likewise.
59137         * lib/unistr/u8-strmblen.c: Likewise.
59138         * lib/unistr/u8-strmbtouc.c: Likewise.
59140 2010-11-13  Jim Meyering  <meyering@redhat.com>
59142         tests: avoid test failure on Solaris 10 due to lack of PATH export
59143         * tests/test-update-copyright.sh: Don't forget to export PATH.
59145         init.sh: ensure that IFS is defined, just in case...
59146         * tests/init.sh (setup_): Ensure that IFS is defined,
59147         so that saving and restoring it works as expected.  This
59148         appears to be useful at least for an old version of dash
59149         from a long time ago (RH 6).  See here for details:
59150         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59152         maint.mk: tighten "test a == b" check
59153         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59154         test to files that contain something like #!/bin/sh.
59155         Without this, coreutils would get two false positives in
59156         the comments of C source files.
59158 2010-11-12  Eric Blake  <eblake@redhat.com>
59160         bootstrap: fix typo in previous attempt
59161         * build-aux/bootstrap (buildreq): Correct the grouping.
59162         Reported by Paul Eggert.
59164         maintainer-makefile: prohibit test x == x
59165         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59166         Based on a report by Matthias Bolte.
59168         bootstrap: allow FreeBSD gzip
59169         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59170         which has no '.' and goes to stderr.
59171         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59172         Reported by Matthias Bolte.
59174         maintainer-makefile: check for i18n setup
59175         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59176         will likely work.
59178 2010-11-12  Bruno Haible  <bruno@clisp.org>
59180         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59181         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59182         * lib/nanosleep.c (nanosleep): Likewise.
59184 2010-11-11  Bruno Haible  <bruno@clisp.org>
59186         fcntl-h: Fix for use of C++ on glibc systems.
59187         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59188         also on glibc systems in C++ mode.
59189         Reported by Gary V. Vaughan <gary@gnu.org>.
59191 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59193         mknod: avoid false failure with dash
59194         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59196 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59198         unlink: Fix "is it should" typo in diagnostic.
59199         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59200         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59202 2010-11-11  Bruno Haible  <bruno@clisp.org>
59204         Tests for module 'strerror_r-posix'.
59205         * modules/strerror_r-posix-tests: New file.
59206         * tests/test-strerror_r.c: New file.
59207         * tests/test-string-c++.cc: Check the signature of strerror_r.
59209         New module 'strerror_r-posix'.
59210         * lib/string.in.h (strerror_r): New declaration.
59211         * lib/strerror_r.c: New file.
59212         * m4/strerror_r.m4: New file.
59213         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59214         of strerror_r.
59215         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59216         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59217         * modules/strerror_r-posix: New file.
59218         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59219         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59220         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59221         portability problems.
59223 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59225         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59226         line is also considered for output. Quoted function name in shell
59227         command, so temporary files for functions like MyClass::operator()
59228         are removed correctly without errors.
59230 2010-11-09  Bruno Haible  <bruno@clisp.org>
59232         * doc/posix-functions/strerror.texi: List more failing platforms.
59234         * doc/posix-functions/strerror.texi: Add a comment.
59236 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59238         fdopendir: fix bug on MacOS X when low on file descriptors
59240         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59241         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59242         All callers changed.
59243         (fdopendir): Invoke save_cwd at the top level, not after using
59244         multiple dup() calls to use up file descriptors.  Then retry
59245         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59246         less than the maximum number of open file descriptors, because
59247         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59248         on Mac OS X 10.6.4 for tar 1.24
59249         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59250         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59251         and for tar 1.25
59252         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59254 2010-11-07  Bruno Haible  <bruno@clisp.org>
59256         vasnprintf: Support I flag on glibc systems.
59257         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59258         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59259         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59260         snprintf function.
59261         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59262         glibc systems.
59263         * tests/test-vasnprintf-posix3.c: New file.
59264         * modules/vasnprintf-posix-tests (Files): Add it.
59265         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59267 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59269         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59270         * MODULES.html.sh: For compiler warnings, use name
59271         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59273 2010-11-05  Eric Blake  <eblake@redhat.com>
59275         ceil, floor: avoid spurious failure with icc
59276         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59277         [denormals-as-zero] when optimizing without -mieee-fp option.
59278         * tests/test-floorf2.c (floorf_reference): Likewise.
59279         * tests/test-ceilf1.c (dummy): New function.
59280         (main): Use it to outsmart icc's optimization.
59281         * tests/test-floorf1.c (dummy, main): Likewise.
59283         tests: require working signbit
59284         * modules/ceilf-tests (Depends-on): Add signbit.
59285         * modules/ceill-tests (Depends-on): Likewise.
59286         * modules/floorf-tests (Depends-on): Likewise.
59287         * modules/floorl-tests (Depends-on): Likewise.
59288         * modules/round-tests (Depends-on): Likewise.
59289         * modules/roundf-tests (Depends-on): Likewise.
59290         * modules/roundl-tests (Depends-on): Likewise.
59291         * modules/trunc-tests (Depends-on): Likewise.
59292         * modules/truncf-tests (Depends-on): Likewise.
59293         * modules/truncl-tests (Depends-on): Likewise.
59295         strtod: work around icc bug
59296         * lib/strtod.c (minus_zero): Define to working value.
59297         (strtod): Use it to avoid icc bug.
59299         copysign: enhance tests
59300         * modules/copysign-tests (Files): Add minus-zero.h.
59301         * tests/test-copysign.c (main): Also test zeros.
59303 2010-11-04  Eric Blake  <eblake@redhat.com>
59305         ceil, floor, round, trunc: enhance tests of -0
59306         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59307         * tests/test-ceill.c (main): Likewise.
59308         * tests/test-floorf1.c (main): Likewise.
59309         * tests/test-floorl.c (main): Likewise.
59310         * tests/test-round1.c (main): Likewise.
59311         * tests/test-roundf1.c (main): Likewise.
59312         * tests/test-roundl.c (main): Likewise.
59313         * tests/test-trunc1.c (main): Likewise.
59314         * tests/test-truncf1.c (main): Likewise.
59315         * tests/test-truncl.c (main): Likewise.
59317 2010-11-04  Eric Blake  <eblake@redhat.com>
59319         frexp, tests: work around ICC bug with -zero
59320         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59321         works with more compilers.
59322         * tests/minus-zero.h: New file.
59323         * modules/ceilf-tests (Files): Include it.
59324         * modules/ceill-tests (Files): Likewise.
59325         * modules/floorf-tests (Files): Likewise.
59326         * modules/floorl-tests (Files): Likewise.
59327         * modules/frexp-nolibm-tests (Files): Likewise.
59328         * modules/frexp-tests (Files): Likewise.
59329         * modules/frexpl-nolibm-tests (Files): Likewise.
59330         * modules/frexpl-tests (Files): Likewise.
59331         * modules/isnan-tests (Files): Likewise.
59332         * modules/isnand-nolibm-tests (Files): Likewise.
59333         * modules/isnand-tests (Files): Likewise.
59334         * modules/isnanf-nolibm-tests (Files): Likewise.
59335         * modules/isnanf-tests (Files): Likewise.
59336         * modules/isnanl-nolibm-tests (Files): Likewise.
59337         * modules/isnanl-tests (Files): Likewise.
59338         * modules/round-tests (Files): Likewise.
59339         * modules/roundf-tests (Files): Likewise.
59340         * modules/roundl-tests (Files): Likewise.
59341         * modules/ldexpl-tests (Files): Likewise.
59342         * modules/signbit-tests (Files): Likewise.
59343         * modules/snprintf-posix-tests (Files): Likewise.
59344         * modules/sprintf-posix-tests (Files): Likewise.
59345         * modules/strtod-tests (Files): Likewise.
59346         * modules/trunc-tests (Files): Likewise.
59347         * modules/truncf-tests (Files): Likewise.
59348         * modules/truncl-tests (Files): Likewise.
59349         * modules/vsnprintf-posix-tests (Files): Likewise.
59350         * modules/vsprintf-posix-tests (Files): Likewise.
59351         * modules/vasnprintf-posix-tests (Files): Likewise.
59352         * modules/vasprintf-posix-tests (Files): Likewise.
59353         * tests/test-ceilf1.c (main): Use it.
59354         * tests/test-ceill.c (main): Likewise.
59355         * tests/test-floorf1.c (main): Likewise.
59356         * tests/test-floorl.c (main): Likewise.
59357         * tests/test-frexp.c (main): Likewise.
59358         * tests/test-frexpl.c (main): Likewise.
59359         * tests/test-isnan.c (main): Likewise.
59360         * tests/test-isnand.h (main): Likewise.
59361         * tests/test-isnanf.h (main): Likewise.
59362         * tests/test-isnanl.h (main): Likewise.
59363         * tests/test-ldexpl.c (main): Likewise.
59364         * tests/test-round.c (main): Likewise.
59365         * tests/test-roundf.c (main): Likewise.
59366         * tests/test-roundl.c (main): Likewise.
59367         * tests/test-signbit.c (test_signbitf, test_signbitd)
59368         (test_signbitl): Likewise.
59369         * tests/test-snprintf-posix.h (test_function): Likewise.
59370         * tests/test-sprintf-posix.h (test_function): Likewise.
59371         * tests/test-strtod.c (main): Likewise.
59372         * tests/test-trunc1.c (main): Likewise.
59373         * tests/test-truncf1.c (main): Likewise.
59374         * tests/test-truncl.c (main): Likewise.
59376         isnanl: work around icc bug
59377         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59379 2010-11-03  Eric Blake  <eblake@redhat.com>
59381         tests: fix compiler warnings
59382         * tests/test-getopt.h (test_getopt): Fix condition.
59383         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59384         * tests/test-pipe2.c (main): Likewise.
59385         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59387         utimens: fix broken m4 test
59388         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59390 2010-10-28  Bruno Haible  <bruno@clisp.org>
59392         posix_spawn*, getdtablesize: Relax license.
59393         * modules/posix_spawn (License): Change to LGPLv2+.
59394         * modules/posix_spawnp (License): Likewise.
59395         * modules/posix_spawn-internal (License): Likewise.
59396         * modules/posix_spawnattr_init (License): Likewise.
59397         * modules/posix_spawnattr_getflags (License): Likewise.
59398         * modules/posix_spawnattr_setflags (License): Likewise.
59399         * modules/posix_spawnattr_getpgroup (License): Likewise.
59400         * modules/posix_spawnattr_setpgroup (License): Likewise.
59401         * modules/posix_spawnattr_getschedparam (License): Likewise.
59402         * modules/posix_spawnattr_setschedparam (License): Likewise.
59403         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59404         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59405         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59406         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59407         * modules/posix_spawnattr_getsigmask (License): Likewise.
59408         * modules/posix_spawnattr_setsigmask (License): Likewise.
59409         * modules/posix_spawnattr_destroy (License): Likewise.
59410         * modules/posix_spawn_file_actions_init (License): Likewise.
59411         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59412         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59413         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59414         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59415         * modules/getdtablesize (License): Likewise.
59416         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59418 2010-10-26  Bruno Haible  <bruno@clisp.org>
59420         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59421         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59422         Cygwin and mingw.
59423         Suggested by Eric Blake.
59425 2010-10-26  Bruno Haible  <bruno@clisp.org>
59427         stdio: Work around compilation error due to renameat() on Solaris 10.
59428         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59429         * lib/renameat.c: Don't include <unistd.h> here.
59430         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59431         Reported by Paul Eggert and Eric Blake.
59433 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59435         renameat: port to Solaris 10, which declares renameat in unistd.h
59437         * lib/renameat.c: Include unistd.h before stdio.h, because
59438         Solaris 10 declares renameat in unistd.h.  Problem encountered
59439         when building GNU tar 1.24 on Solaris 10.
59441 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59443         fdopendir: fix C89 compilation
59444         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59445         compilers.
59447 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59449         inttostr: simplify by removing unnecessary redundancy
59450         * lib/anytostr.c: Don't include verify.h.
59451         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59452         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59453         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59454         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59455         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59456         Likewise.
59457         * modules/inttostr (Depends-on): Remove 'verify'.
59459 2010-10-23  Bruno Haible  <bruno@clisp.org>
59461         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59462         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59463         Reported by Eric Blake.
59465 2010-10-23  Bruno Haible  <bruno@clisp.org>
59467         Tests: Fix LOCALE_JA on MirBSD 10.
59468         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59469         to an UTF-8 locale.
59470         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59471         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59472         Reported by Eric Blake.
59474 2010-10-21  Bruno Haible  <bruno@clisp.org>
59476         nl_langinfo test: Avoid test failure on NetBSD 5.
59477         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59478         Reported by Eric Blake.
59480 2010-10-21  Eric Blake  <eblake@redhat.com>
59482         c-stack: work around libsigsegv 2.8 bug
59483         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59484         overflow on at least PowerPC64.
59486 2010-10-17  Bruno Haible  <bruno@clisp.org>
59488         userspec: Drop redundant file.
59489         * modules/userspec (Files): Remove lib/inttostr.h.
59491 2010-10-17  Bruno Haible  <bruno@clisp.org>
59493         nl_langinfo tests: Silence some warnings.
59494         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59495         Reported by Jim Meyering.
59497 2010-10-17  Bruno Haible  <bruno@clisp.org>
59499         Make use of GCC's attribute __alloc_size__.
59500         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59501         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59502         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59503         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59504         __alloc_size__.
59505         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59506         Suggested by Jim Meyering.
59508 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59510         bootstrap: anchor .gitignore entries.
59511         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59512         with...
59513         (insert_vc_ignore): ... this new function, which prepends `/' to
59514         all .gitignore entries before passing them to
59515         insert_sorted_if_absent.
59517 2010-10-16  Bruno Haible  <bruno@clisp.org>
59519         nextafter: Fix configure check.
59520         * modules/nextafter (configure.ac): Correct expected prototype.
59522 2010-10-16  Bruno Haible  <bruno@clisp.org>
59524         termios: Update documentation.
59525         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59527 2010-10-16  Bruno Haible  <bruno@clisp.org>
59529         tests: Make them compile with TinyCC.
59530         * tests/test-strstr.c (main): Remove parentheses around array
59531         initializer.
59533 2010-10-15  Eric Blake  <eblake@redhat.com>
59535         ignore-value: make header idempotent
59536         * lib/ignore-value.h: Add double-inclusion guards.
59537         Reported by Stefan Berger.
59539 2010-10-15  Jim Meyering  <meyering@redhat.com>
59541         GNUmakefile: handle "stable" target, not "major"
59542         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59543         lists in maint.mk and announce-gen.  Without this, "make stable"
59544         would fail to ensure that $(VERSION) is up to date.
59546 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59548         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59549         & co.
59551 2010-10-14  Bruno Haible  <bruno@clisp.org>
59553         vasnprintf: Don't set errno to 0.
59554         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59555         block that sets it to 0.
59556         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59558 2010-10-14  Bruno Haible  <bruno@clisp.org>
59560         socketlib: Fix.
59561         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59562         gl_PREREQ_SYS_H_WINSOCK2.
59563         Reported by Ian Beckwith <ianb@erislabs.net>.
59565 2010-10-13  Jim Meyering  <meyering@redhat.com>
59567         test-select-stdin.c: avoid warn_unused_result warnings
59568         * tests/test-select-stdin.c: Include "macros.h".
59569         ASSERT that read and fflush succeed.
59571 2010-10-13  Jim Meyering  <meyering@redhat.com>
59573         git-version-gen: do require git-VC'd files in cwd
59574         * build-aux/git-version-gen: Reject a git version string
59575         if there are no commits associated with the current directory.
59576         This avoids an unlikely false-positive (unrelated dir whose parent
59577         repository also contains a tag matching v*), as pointed out
59578         by Giuseppe Scrivano in
59579         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59581 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59583         argv-iter: omit nonconforming declaration
59584         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59585         enum arg_iter_err declaration, which doesn't conform to C99.
59586         Solaris 10 cc warns about this.
59588 2010-10-13  Eric Blake  <eblake@redhat.com>
59590         termios: fix compilation on mingw
59591         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
59592         (gl_TERMIOS_H): Adjust it on mingw.
59593         * modules/termios (Makefile.am): Substitute new key.
59594         * lib/termios.in.h (includes): Make include_next conditional.
59595         * doc/posix-headers/termios.texi (termios.h): Update
59596         documentation.
59597         Reported by Daniel P. Berrange.
59599 2010-10-13  Jim Meyering  <meyering@redhat.com>
59601         git-version-gen: don't require that .git/ be in the current dir
59602         * build-aux/git-version-gen: Adjust this script so that it works
59603         when run from any working directory beneath the top-level .git/-
59604         containing directory.  Inspired by a patch from Giuseppe Scrivano,
59605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
59607         test-select: avoid warn_unused_result warnings
59608         * tests/test-select.c: Include "macros.h".
59609         ASSERT that each call to read, write, and pipe succeeds.
59610         While not technically required, also check each "close".
59611         * modules/select-tests (Files): Add tests/macros.h.
59613         test-symlinkat: remove declaration of unused local
59614         * tests/test-symlinkat.c (main): Remove unused local, "buf".
59616         test-inttostr: avoid shadowing warnings
59617         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
59618         and use malloc rather than the stack for the same reason as
59619         mentioned in the comment justifying the other allocation.
59621 2010-10-11  Bruno Haible  <bruno@clisp.org>
59623         stdlib: Allow multiple gnulib generated replacements to coexist.
59624         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
59625         Reported by Sam Steingold <sds@gnu.org>.
59627 2010-10-11  Jim Meyering  <meyering@redhat.com>
59629         fix a documentation typo
59630         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
59632 2010-10-11  Eric Blake  <eblake@redhat.com>
59634         futimens: work around Solaris 11 bug
59635         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
59636         * tests/test-futimens.h (test_futimens): Enhance, rather than
59637         weaken test.
59638         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59640 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59642         Indentation.
59643         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
59644         higher-level operators more to the left.
59646 2010-10-11  Jim Meyering  <meyering@redhat.com>
59648         test-futimens: avoid unwarranted test failure on Solaris 5.11
59649         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
59650         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
59651         because it tries to dereference the NULL name argument.
59653 2010-10-11  Bruno Haible  <bruno@clisp.org>
59655         Indentation.
59656         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
59657         indentation.
59659 2010-10-11  Jim Meyering  <meyering@redhat.com>
59661         spawn.in.h: make indentation consistent with parentheses
59662         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
59663         Make indentation consistent with parentheses.
59665 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
59667         Fix mismatched parens in previous commit
59668         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
59669         parens.
59671 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59673         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
59675         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
59676         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
59677         * lib/malloca.c: Include "verify.h".
59678         (verify1): Remove, replacing with a verify call.
59679         * lib/relocwrapper.c (verify1): Likewise.
59680         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
59681         Likewise.
59682         * modules/malloca (Depends-on): Add 'verify'.
59683         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
59684         * modules/vasnprintf (Depends-on): Add 'verify'.
59685         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59686         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59687         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59688         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59689         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59690         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59691         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59693         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
59695         Formerly the style was sometimes 2*X - 1, because the C standard
59696         was wrongly thought to disallow ?: in integral constant expressions.
59697         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
59698         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
59699         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59700         * lib/stdint.in.h (_verify_intmax_size): Likewise.
59701         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
59702         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
59703         verify that time_t cannot be floating.
59705 2010-10-08  Eric Blake  <eblake@redhat.com>
59707         time: enforce recent POSIX ruling that time_t is integral
59708         * lib/time.in.h (__time_t_must_be_integral): Detect any
59709         problematic systems, allowing the rest of gnulib to assume POSIX.
59711 2010-10-08  Jim Meyering  <meyering@redhat.com>
59713         fdopendir: fix a bug on systems lacking openat and /proc support
59714         OpenBSD 4.7 is one such system.  The most noticeable effect was
59715         failure of any application making nontrivial use of fts: rm, du,
59716         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
59717           ./rm: traversal failed: `a': Bad file descriptor
59718         Debugging that, you see that even though FD 6 was closed just
59719         prior to the opendir call in fd_clone_opendir, its resulting
59720         dir->dd_fd was 8, rather than the expected value of 6:
59722         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
59723         93                close (fd);
59724         (gdb) n
59725         94                dir = fd_clone_opendir (dupfd);
59726         (gdb) n
59727         95                saved_errno = errno;
59728         (gdb) p dir->dd_fd
59729         $11 = 8
59731         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
59732         The problem is that on OpenBSD, fd_clone_opendir has to resort
59733         to using the old-style save/restore CWD mechanism, due to its
59734         lack of openat/proc support, and *that* would steal the FD (6)
59735         that opendir was supposed to use.
59737         The fix is to squirrel away the desired FD so that save_cwd uses a
59738         different one, and then free the dest FD right before calling opendir.
59739         That guarantees opendir will use the required file descriptor.
59741         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
59743 2010-10-08  Bruno Haible  <bruno@clisp.org>
59745         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
59746         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
59748 2010-10-08  Bruno Haible  <bruno@clisp.org>
59750         nanosleep: Make replacement POSIX compliant.
59751         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
59752         is out of range.
59753         Reported by Jim Meyering.
59755 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59757         bootstrap: add hook for altering gnulib.mk, for Bison
59758         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
59759         the Bison bootstrapping process can rewrite file names and variables
59760         in this file before later parts of 'bootstrap' use the file.
59761         Bison wants to include lib/gnulib.mk from the top-level makefile,
59762         so it needs the file names in this file to be relative to the top
59763         level, not relative to lib; plus it needs variable names to be
59764         rewritten.
59765         (slurp): Use the new function.
59767         bootstrap: reformat for readability
59768         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
59770 2010-10-08  Eric Blake  <eblake@redhat.com>
59772         docs: update cygwin progress
59773         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
59774         1.7.7.
59775         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
59776         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
59777         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
59778         * doc/posix-functions/carg.texi (carg): Likewise.
59779         * doc/posix-functions/cargf.texi (cargf): Likewise.
59780         * doc/posix-functions/casin.texi (casin): Likewise.
59781         * doc/posix-functions/casinf.texi (casinf): Likewise.
59782         * doc/posix-functions/casinh.texi (casinh): Likewise.
59783         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
59784         * doc/posix-functions/catan.texi (catan): Likewise.
59785         * doc/posix-functions/catanf.texi (catanf): Likewise.
59786         * doc/posix-functions/catanh.texi (catanh): Likewise.
59787         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
59788         * doc/posix-functions/ccos.texi (ccos): Likewise.
59789         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
59790         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
59791         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
59792         * doc/posix-functions/cexp.texi (cexp): Likewise.
59793         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
59794         * doc/posix-functions/cimag.texi (cimag): Likewise.
59795         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
59796         * doc/posix-functions/clog.texi (clog): Likewise.
59797         * doc/posix-functions/clogf.texi (clogf): Likewise.
59798         * doc/posix-functions/conj.texi (conj): Likewise.
59799         * doc/posix-functions/conjf.texi (conjf): Likewise.
59800         * doc/posix-functions/cpow.texi (cpow): Likewise.
59801         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
59802         * doc/posix-functions/cproj.texi (cproj): Likewise.
59803         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
59804         * doc/posix-functions/creal.texi (creal): Likewise.
59805         * doc/posix-functions/crealf.texi (crealf): Likewise.
59806         * doc/posix-functions/csin.texi (csin): Likewise.
59807         * doc/posix-functions/csinf.texi (csinf): Likewise.
59808         * doc/posix-functions/csinh.texi (csinh): Likewise.
59809         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
59810         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
59811         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
59812         * doc/posix-functions/ctan.texi (ctan): Likewise.
59813         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
59814         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
59815         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
59816         * doc/posix-headers/complex.texi (complex.h): Likewise.
59818 2010-10-07  Jim Meyering  <meyering@redhat.com>
59820         parse-datetime: avoid compilation failure on OpenBSD 4.7
59821         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
59822         This works around a compilation failure on OpenBSD 4.7:
59823         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
59825 2010-10-07  Eric Blake  <eblake@redhat.com>
59827         docs: update cygwin progress
59828         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
59829         1.7.6.
59830         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59831         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
59832         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
59833         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
59834         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
59835         Likewise.
59836         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
59837         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
59838         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
59839         Likewise.
59840         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
59841         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
59842         Likewise.
59843         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
59844         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
59845         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
59846         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
59847         Likewise.
59848         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
59849         Likewise.
59850         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
59852         docs: update parse-datetime history
59853         * doc/parse-datetime.texi (Authors of parse_datetime): Better
59854         documentation of this function's history and alternatives.
59856         cygwin: use more robust version check
59857         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
59858         exclude an eventual cygwin 1.9.1.
59859         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
59861         (gl_FUNC_STRCASESTR): Likewise.
59862         Reported by Bruno Haible.
59864 2010-10-06  Bruno Haible  <bruno@clisp.org>
59866         string, sys_select: Avoid #including large headers unless necessary.
59867         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
59868         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
59869         OSF/1, BeOS, Haiku.
59870         Reported by Jim Meyering.
59872 2010-10-05  Eric Blake  <eblake@redhat.com>
59874         memmem, strstr, strcasestr: fix bug with long periodic needle
59875         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
59876         periodic needle having false positive.
59877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
59878         and cygwin 1.7.7.
59879         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
59880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
59881         (gl_FUNC_STRCASESTR): Likewise.
59882         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59883         * tests/test-memmem.c (main): Expose the bug.
59884         * tests/test-strcasestr.c (main): Likewise.
59885         * tests/test-strstr.c (main): Likewise.
59886         * tests/test-c-strcasestr.c (main): Likewise.
59887         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
59888         * doc/posix-functions/strstr.texi (strstr): Likewise.
59889         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59890         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
59892 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59894         parse-datetime: do some more renaming
59895         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
59896         parse_datetime, not get_date.  Mention the renaming.
59897         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
59898         in comments.
59899         * m4/bison.m4: Likewise.
59901 2010-10-05  Eric Blake  <eblake@redhat.com>
59903         parse-datetime: better name than get_date
59904         * NEWS: Reword the deprecation notice.
59905         * modules/get_date: Rename to modules/parse-datetime.
59906         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
59907         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
59908         * lib/get_date.y: Rename to lib/parse-datetime.y.
59909         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
59910         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
59911         * doc/getdate.texi: Provide fallback wrapper.
59912         * lib/getdate.h: Move guts, and wrap...
59913         * lib/parse-datetime.h: ...new file.
59914         * lib/parse-datetime.y (get_date): Rename...
59915         (parse_datetime): ...to this.
59916         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
59917         (gl_PARSE_DATETIME): ...to this.
59918         * doc/posix-functions/getdate.texi (get_date): Provide fallback
59919         documentation.
59920         * modules/getdate (Files): Provide fallback docs and header.
59921         (Notice, Depends-on): Update references.
59922         * tests/test-parse-datetime.c: Likewise.
59923         * DEPENDENCIES: Likewise.
59924         * MODULES.html.sh (Date and time <time.h>): Likewise.
59925         * doc/parse-datetime.texi (Date input formats)
59926         (Authors of parse_datetime): Likewise.
59927         * modules/parse-datetime (Files, configure.ac, Makefile.am)
59928         (Include): Likewise.
59929         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
59930         * gnulib-tool: Likewise.
59931         * m4/bison.m4 (gl_BISON): Likewise.
59932         Suggested by Bruno Haible.
59934 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59936         more ports to Solaris tr, which needs [] around ranges
59937         * gnulib-tool: Solaris tr needs [] around ranges.
59938         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59939         * tests/test-pipe-filter-gi1.c (main): Likewise.
59940         * tests/test-pipe-filter-ii1.c (main): Likewise.
59942 2010-10-05  Eric Blake  <eblake@redhat.com>
59944         bootstrap: fix Solaris regression
59945         * build-aux/bootstrap (check_versions): Solaris tr still needs []
59946         around ranges.
59947         Reported by Pádraig Brady.
59949         bootstrap: work with pkg-config
59950         * build-aux/bootstrap (check_versions): Also transliterate - in
59951         prerequisite name.
59952         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
59953         prerequisites that were already found, to avoid confusion.
59954         Reported by Justin Clift.
59956         faccessat: remove unused wrappers
59957         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
59958         presence of these wrappers dragged in -lgen on Solaris.
59959         Reported by Clemens Brogi; fix suggested by Paul Eggert.
59961 2010-10-05  Jim Meyering  <meyering@redhat.com>
59963         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
59964         * Makefile (sc_pragma_columns): New syntax-check rule.
59966 2010-10-04  Bruno Haible  <bruno@clisp.org>
59968         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
59969         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
59970         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
59971         Reported by Bruce Korb and Eric Blake.
59973 2010-10-04  Bruno Haible  <bruno@clisp.org>
59975         threadlib: Make option --with-libpth-prefix work.
59976         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
59977         use $LIBPTH, not just -lpth.
59979 2010-10-04  Bruno Haible  <bruno@clisp.org>
59981         Avoid line length limitation from HP NonStop system header files.
59982         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
59983         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
59984         * lib/ctype.in.h: Likewise.
59985         * lib/dirent.in.h: Likewise.
59986         * lib/errno.in.h: Likewise.
59987         * lib/fcntl.in.h: Likewise.
59988         * lib/float.in.h: Likewise.
59989         * lib/getopt.in.h: Likewise.
59990         * lib/iconv.in.h: Likewise.
59991         * lib/inttypes.in.h: Likewise.
59992         * lib/langinfo.in.h: Likewise.
59993         * lib/locale.in.h: Likewise.
59994         * lib/math.in.h: Likewise.
59995         * lib/netdb.in.h: Likewise.
59996         * lib/netinet_in.in.h: Likewise.
59997         * lib/poll.in.h: Likewise.
59998         * lib/pthread.in.h: Likewise.
59999         * lib/pty.in.h: Likewise.
60000         * lib/sched.in.h: Likewise.
60001         * lib/se-selinux.in.h: Likewise.
60002         * lib/search.in.h: Likewise.
60003         * lib/signal.in.h: Likewise.
60004         * lib/spawn.in.h: Likewise.
60005         * lib/stdarg.in.h: Likewise.
60006         * lib/stddef.in.h: Likewise.
60007         * lib/stdint.in.h: Likewise.
60008         * lib/stdio.in.h: Likewise.
60009         * lib/stdlib.in.h: Likewise.
60010         * lib/string.in.h: Likewise.
60011         * lib/strings.in.h: Likewise.
60012         * lib/sys_file.in.h: Likewise.
60013         * lib/sys_ioctl.in.h: Likewise.
60014         * lib/sys_select.in.h: Likewise.
60015         * lib/sys_socket.in.h: Likewise.
60016         * lib/sys_stat.in.h: Likewise.
60017         * lib/sys_time.in.h: Likewise.
60018         * lib/sys_times.in.h: Likewise.
60019         * lib/sys_utsname.in.h: Likewise.
60020         * lib/sys_wait.in.h: Likewise.
60021         * lib/sysexits.in.h: Likewise.
60022         * lib/termios.in.h: Likewise.
60023         * lib/time.in.h: Likewise.
60024         * lib/unistd.in.h: Likewise.
60025         * lib/wchar.in.h: Likewise.
60026         * lib/wctype.in.h: Likewise.
60027         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60028         * modules/ctype (Makefile.am): Likewise.
60029         * modules/dirent (Makefile.am): Likewise.
60030         * modules/errno (Makefile.am): Likewise.
60031         * modules/fcntl-h (Makefile.am): Likewise.
60032         * modules/float (Makefile.am): Likewise.
60033         * modules/getopt-posix (Makefile.am): Likewise.
60034         * modules/iconv-h (Makefile.am): Likewise.
60035         * modules/inttypes (Makefile.am): Likewise.
60036         * modules/langinfo (Makefile.am): Likewise.
60037         * modules/locale (Makefile.am): Likewise.
60038         * modules/math (Makefile.am): Likewise.
60039         * modules/netdb (Makefile.am): Likewise.
60040         * modules/netinet_in (Makefile.am): Likewise.
60041         * modules/poll-h (Makefile.am): Likewise.
60042         * modules/pthread (Makefile.am): Likewise.
60043         * modules/pty (Makefile.am): Likewise.
60044         * modules/sched (Makefile.am): Likewise.
60045         * modules/search (Makefile.am): Likewise.
60046         * modules/selinux-h (Makefile.am): Likewise.
60047         * modules/signal (Makefile.am): Likewise.
60048         * modules/spawn (Makefile.am): Likewise.
60049         * modules/stdarg (Makefile.am): Likewise.
60050         * modules/stddef (Makefile.am): Likewise.
60051         * modules/stdint (Makefile.am): Likewise.
60052         * modules/stdio (Makefile.am): Likewise.
60053         * modules/stdlib (Makefile.am): Likewise.
60054         * modules/string (Makefile.am): Likewise.
60055         * modules/strings (Makefile.am): Likewise.
60056         * modules/sys_file (Makefile.am): Likewise.
60057         * modules/sys_ioctl (Makefile.am): Likewise.
60058         * modules/sys_select (Makefile.am): Likewise.
60059         * modules/sys_socket (Makefile.am): Likewise.
60060         * modules/sys_stat (Makefile.am): Likewise.
60061         * modules/sys_time (Makefile.am): Likewise.
60062         * modules/sys_times (Makefile.am): Likewise.
60063         * modules/sys_utsname (Makefile.am): Likewise.
60064         * modules/sys_wait (Makefile.am): Likewise.
60065         * modules/sysexits (Makefile.am): Likewise.
60066         * modules/termios (Makefile.am): Likewise.
60067         * modules/time (Makefile.am): Likewise.
60068         * modules/unistd (Makefile.am): Likewise.
60069         * modules/wchar (Makefile.am): Likewise.
60070         * modules/wctype (Makefile.am): Likewise.
60072 2010-10-04  Bruno Haible  <bruno@clisp.org>
60074         read-file tests: Avoid a test failure on NonStop Kernel.
60075         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60076         a regular file.
60077         Reported by Joachim Schmitz <schmitz@hp.com>.
60079 2010-10-03  Bruno Haible  <bruno@clisp.org>
60081         gnulib-tool: Fixes for --create-testdir with --libtool.
60082         * gnulib-tool (func_get_automake_snippet): Don't augment
60083         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60084         an executable.
60085         (func_create_testdir): Handle module 'alloca' like func_import.
60086         Reported by Bruce Korb <bruce.korb@gmail.com>.
60088 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60090         Avoid some lines longer than 80 characters.
60091         * lib/stdint.in.h: Break long comment lines.
60092         * lib/math.in.h: Likewise.
60093         (_GL_NUM_UINT_WORDS): New macro, for readability.
60094         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60095         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60096         * lib/stdlib.in.h: Likewise.
60097         * lib/spawn.in.h: Likewise.
60098         * lib/sys_socket.in.h: Update an URL.
60099         * lib/sys_stat.in.h: Break long line.
60101 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60103         Improve pmccabe2html.
60104         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60105         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60106         when the sources change. Remove the line in the HTML about "Used
60107         ranges" (which implied that there might be other unused ranges),
60108         rename "Resume" to "Summary" (easier to understand for more users).
60109         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60110         styles, and some unnecessary blank lines.
60112 2010-10-03  Bruno Haible  <bruno@clisp.org>
60113             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60115         acl: Add support for ACLs on NonStop Kernel.
60116         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60117         Check whether the function aclsort() exists.
60118         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60119         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60120         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60121         (acl_nontrivial [HAVE_ACLSORT]: New function.
60122         (file_has_acl): Implement for NonStop Kernel.
60123         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60124         (qset_acl): Implement for NonStop Kernel.
60125         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60126         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60127         (main): Implement for NonStop Kernel.
60128         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60129         Kernel. Handle this flavor.
60130         * tests/test-set-mode-acl.sh: Likewise.
60131         * tests/test-copy-acl.sh: Likewise.
60132         * tests/test-copy-file.sh: Likewise.
60134 2010-10-03  Bruno Haible  <bruno@clisp.org>
60136         Info about ACLs on NonStop Kernel.
60137         * doc/acl-resources.txt: Add info about NonStop Kernel.
60138         References by Joachim Schmitz <schmitz@hp.com>.
60140 2010-10-02  Bruno Haible  <bruno@clisp.org>
60142         Define missing EDQUOT on NonStop Kernel.
60143         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60144         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60145         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60146         missing.
60147         * doc/posix-headers/errno.texi: Mention the NSK bug.
60148         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60149         Reported by Joachim Schmitz <schmitz@hp.com>.
60151 2010-10-02  Bruno Haible  <bruno@clisp.org>
60153         Update doc for POSIX:2008.
60154         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60155         Update URL of POSIX specification.
60157 2010-10-02  Bruno Haible  <bruno@clisp.org>
60159         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60160         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60161         from gnulib, not from Automake.
60163 2010-10-02  Bruno Haible  <bruno@clisp.org>
60165         New module 'system-posix'.
60166         * modules/system-posix: New file.
60167         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60168         module is present.
60169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60170         GNULIB_SYSTEM_POSIX.
60171         * modules/stdlib (Depends-on): Remove sys_wait.
60172         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60173         * doc/posix-functions/system.texi: Mention the new module.
60174         * doc/posix-headers/stdlib.texi: Likewise.
60175         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60176         define test_sys_wait_macros to a no-op.
60177         Reported by Sam Steingold <sds@gnu.org>.
60179 2010-09-30  Bruno Haible  <bruno@clisp.org>
60181         More renaming from 'getdate' to 'get_date'.
60182         * doc/get_date.texi: Renamed from doc/getdate.texi.
60183         * modules/get_date (Files): Update.
60184         * MODULES.html.sh (Date and time <time.h>): Update.
60185         * DEPENDENCIES: Update.
60186         * gnulib-tool: Update comment.
60187         * m4/bison.m4 (gl_BISON): Likewise.
60188         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60190 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60192         bootstrap: support ACLOCAL_FLAGS during aclocal
60193         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60194         can add additional -I dir for third-party .m4 files.
60196 2010-09-30  Eric Blake  <eblake@redhat.com>
60198         bootstrap: use glibtoolize on MacOS
60199         * build-aux/bootstrap (check_versions): Convert libtool into
60200         libtoolize.
60201         (tool search): Move libtool check earlier, and look for
60202         glibtoolize for MacOS.
60203         (gnulib_tool_options): Auto-add --libtool when appropriate.
60204         Reported by Justin Clift.
60206         poll: fix typo that broke test on MacOS
60207         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60208         Reported by Justin Clift.
60210         getdate: rename to get_date
60211         Note: getdate.h is not renamed, to minimize client impact.
60212         * modules/getdate: Mark obsolete.  Move old contents...
60213         * modules/get_date: ...to new module name.
60214         * modules/getdate-tests: Move...
60215         * modules/get_date-tests: ...here.
60216         * m4/getdate.m4: Move...
60217         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60218         * lib/getdate.y: Move...
60219         * lib/get_date.y: ...here.
60220         * tests/test-getdate.c: Move...
60221         * tests/test-get_date.c: ...here.
60222         * doc/posix-functions/getdate.texi (getdate): Update name.
60223         * NEWS: Mention the change.
60225 2010-09-29  Bruno Haible  <bruno@clisp.org>
60227         Separate the module 'waitpid' from the module 'sys_wait'.
60228         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60229         present.
60230         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60231         gl_MODULE_INDICATOR_FOR_TESTS.
60232         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60233         * modules/sys_wait (Depends-on): Remove waitpid.
60234         (Makefile.am): Substitute GNULIB_WAITPID.
60235         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60236         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60237         signature only if the 'waitpid' module is present.
60238         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60239         * NEWS: Mention the change.
60240         * modules/grantpt (Depends-on): Add waitpid.
60241         * modules/wait-process (Depends-on): Likewise.
60243 2010-09-29  Bruno Haible  <bruno@clisp.org>
60245         More tests for module 'sys_wait'.
60246         * modules/sys_wait-c++-tests: New file.
60247         * tests/test-sys_wait-c++.cc: New file.
60248         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60249         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60251 2010-09-29  Bruno Haible  <bruno@clisp.org>
60253         New module 'waitpid'.
60254         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60255         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60256         Don't include <process.h>.
60257         (waitpid): Declare only, using modern idiom.
60258         * m4/waitpid.m4: New file.
60259         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60260         * modules/waitpid: New file.
60261         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60262         (Makefile.am): Update.
60263         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60265 2010-09-28  Bruno Haible  <bruno@clisp.org>
60267         poll: Assume ANSI C.
60268         * lib/poll.c (poll): Use an ANSI C declaration.
60270 2010-09-28  Bruno Haible  <bruno@clisp.org>
60272         poll-h: Create poll.h on all platforms.
60273         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60274         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60275         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60276         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60277         (gl_REPLACE_POLL_H): Don't set POLL_H.
60278         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60279         * modules/poll-h (Depends-on): Add include_next.
60280         (Makefile.am): Create poll.h unconditionally. Substitute also
60281         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60283 2010-09-28  Bruno Haible  <bruno@clisp.org>
60285         Tests for module 'poll-h'.
60286         * modules/poll-h-c++-tests: New file.
60287         * tests/test-poll-h-c++.cc: New file.
60289         Tests for module 'poll-h'.
60290         * modules/poll-h-tests: New file.
60291         * tests/test-poll-h.c: New file.
60293 2010-09-28  Bruno Haible  <bruno@clisp.org>
60295         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60296         * modules/poll-h (Depends-on): Add 'extensions'.
60298 2010-09-28  Bruno Haible  <bruno@clisp.org>
60300         New module 'poll-h'.
60301         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60302         (poll): Use modern idiom.
60303         * modules/poll-h: New file.
60304         * modules/poll (Files): Remove lib/poll.in.h.
60305         (Depends-on): Add poll-h.
60306         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60307         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60308         * m4/poll_h.m4: New file.
60309         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60310         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60311         and invoke gl_REPLACE_POLL_H.
60312         * lib/poll.c: Use common idiom.
60313         * tests/test-poll.c: Likewise.
60314         * doc/posix-headers/poll.texi: Mention the poll-h module.
60315         Suggested by Eric Blake.
60317 2010-09-26  Bruno Haible  <bruno@clisp.org>
60319         sys_wait: Implement WSTOPSIG.
60320         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60321         Reported by Simon Josefsson.
60323 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60325         stdlib, sys_wait: Avoid compilation error on mingw.
60326         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60328 2010-09-26  Bruno Haible  <bruno@clisp.org>
60330         stdlib tests: Avoid code duplication.
60331         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60332         * modules/sys_wait-tests (Files): Likewise.
60333         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60334         * tests/test-stdlib.c: Include test-sys_wait.h.
60335         (main): Invoke test_sys_wait_macros.
60336         * tests/test-sys_wait.c: Include test-sys_wait.h.
60337         (main): Invoke test_sys_wait_macros.
60339 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60341         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60342         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60343         sure Windows sockets are working before calling getaddrinfo.
60344         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60345         * doc/gnulib.texi (Windows sockets): Fix typo.
60347 2010-09-25  Bruno Haible  <bruno@clisp.org>
60349         Tests for module 'regex-quote'.
60350         * modules/regex-quote-tests: New file.
60351         * tests/test-regex-quote.c: New file.
60353         New module 'regex-quote'.
60354         * lib/regex-quote.h: New file.
60355         * lib/regex-quote.c: New file.
60356         * modules/regex-quote: New file.
60357         Suggested by Reuben Thomas <rrt@sc3d.org>.
60359 2010-09-24  Bruno Haible  <bruno@clisp.org>
60361         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60362         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60364 2010-09-23  Bruno Haible  <bruno@clisp.org>
60366         setenv: Relax license.
60367         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60368         Blake.
60369         Requested by Eric Blake.
60371 2010-09-22  Bruno Haible  <bruno@clisp.org>
60373         termios: Relax license.
60374         * modules/termios (License): Change to LGPLv2+.
60375         Requested by Eric Blake.
60377 2010-09-22  Bruno Haible  <bruno@clisp.org>
60379         threadlib: Allow the package to change the default to 'no'.
60380         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60381         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60382         Reported by Paul Eggert.
60384 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60385             Bruno Haible  <bruno@clisp.org>
60387         Fix endless loop in mbmemcasecoll.
60388         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60389         byte.
60390         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60392 2010-09-22  Bruno Haible  <bruno@clisp.org>
60394         Tests for module 'memcoll'.
60395         * modules/memcoll-tests: New file.
60396         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60398         memcoll, xmemcoll: Clarify size vs. length.
60399         * modules/memcoll.c (memcoll0): Clarify specification.
60400         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60401         passed to collate_error.
60403 2010-09-22  Bruno Haible  <bruno@clisp.org>
60405         Tests for module 'memcasecmp'.
60406         * modules/memcasecmp-tests: New file.
60407         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60409 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60411         * lib/pthread.in.h: Add split double-inclusion guard, and include
60412         system <pthread.h> if there is one.  Use @@-style as in other
60413         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60414         pthread.h doesn't.
60415         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60416         (pthread_mutexattr_settype, pthread_mutex_trylock):
60417         New static inline functions, if there's no system <pthread.h>.
60418         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60419         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60420         Approximate with mutexes if the system lacks spinlocks, as in
60421         MacOS.
60422         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60423         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60424         @@-style.  Check for spinlocks separately.
60425         (gl_PTHREAD_DEFAULTS): New macro.
60426         * modules/pthread: Redo to use a more typical style for in.h files.
60428 2010-09-21  Eric Blake  <eblake@redhat.com>
60430         net_if: enhance tests
60431         * tests/test-net_if.c (main): Move signature checks earlier.
60432         Print failures to stderr.
60433         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60434         Document the bug that we do not yet fix.
60436 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60438         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60439         about gnulib, not GSS.
60441 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60443         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60444         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60445         for Emacs.
60446         * build-aux/pmccabe2html: Make Makefile.am example code more
60447         cut-and-paste friendly.
60449 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60451         * tests/test-net_if.c: New file.
60452         * modules/net_if-tests: New file.
60454 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60456         pthread: add pthread_spin_destroy
60457         * lib/pthread.in.h (pthread_spin_destroy): New function.
60459 2010-09-19  Bruno Haible  <bruno@clisp.org>
60461         gnulib-tool: Fix --help output.
60462         * gnulib-tool (func_usage): Fix help message.
60463         Reported by Reuben Thomas <rrt@sc3d.org>.
60465 2010-09-18  Jim Meyering  <meyering@redhat.com>
60467         maint.mk: avoid unexpanded \n in two diagnostics
60468         * top/maint.mk (sc_prohibit_always_true_header_tests):
60469         Don't use a literal \n in a halt=... assignment.  It would not be
60470         expanded, and the two \n bytes would appear in the diagnostic output
60471         rather than the desired newline.  Use halt=$$(printf ... instead.
60472         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60474 2010-09-18  Bruno Haible  <bruno@clisp.org>
60476         netinet_in: Doc tweak.
60477         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60478         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60480 2010-09-18  Jim Meyering  <meyering@redhat.com>
60482         init.sh: correct an outdated comment
60483         * tests/init.sh (create_exe_shims_):  s/function/alias/
60485         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60486         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60487         a file named "*.exe" is removed between the glob expansion and the
60488         processing of that oddly named file.
60490 2010-09-17  Eric Blake  <eblake@redhat.com>
60492         mirbsd: add some more support
60493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60494         in BSD family.
60495         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60496         devices as OpenBSD.
60497         * m4/host-os.m4 (mirbsd): Add MirBSD.
60499         tests: fix unportable assumption on sys/wait.h
60500         * tests/test-sys_wait.c (main): Relax test.
60501         * tests/test-stdlib.c (main): Likewise.
60503         init.sh: accommodate directory with no .exes
60504         * tests/init.sh: Accomodate directory containing only scripts.
60506         tests: avoid compiler warning
60507         * tests/test-stdlib.c (main): Use the variable.
60509         fdutimens, fdutimensat: update signature, again
60510         * lib/utimens.h (gl_futimens): Delete, and move signature...
60511         (fdutimens): ...here.
60512         (fdutimensat): Rearrange signature.
60513         (lutimensat): Rename variable for clarity.
60514         * lib/fdutimensat.c (fdutimensat): Update signature.
60515         * lib/utimens.c (fdutimens): Likewise.
60516         (gl_futimens): Delete.
60517         (utimens, lutimens): Update callers.
60518         * lib/futimens.c (futimens): Likewise.
60519         * tests/test-fdutimensat.c: Likewise.
60520         * tests/test-utimens.c: Likewise.
60521         * tests/test-futimens.h: Update comment.
60522         * NEWS: Mention this.
60523         Suggested by Paul Eggert.
60525 2010-09-17  Bruno Haible  <bruno@clisp.org>
60527         Take over the maintenance of some older macros from Autoconf.
60528         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60529         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60530         GNU Autoconf.
60531         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60532         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60534 2010-09-17  Eric Blake  <eblake@redhat.com>
60536         fdutimensat: drop atflag validation
60537         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60538         with valid fd, to close a race scenario where futimens is
60539         unsupported and FILE was replaced by a symlink.
60540         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60541         accordingly.
60542         Suggested by Paul Eggert.
60544 2010-09-16  Bruno Haible  <bruno@clisp.org>
60546         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60547         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60549 2010-09-16  Bruno Haible  <bruno@clisp.org>
60551         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60552         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60553         login_tty exists.
60554         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60556 2010-09-16  Bruno Haible  <bruno@clisp.org>
60558         login_tty: Make the replacement code work on BSD systems.
60559         * lib/login_tty.c: Include <sys/ioctl.h>.
60560         (login_tty): Use ioctl TIOCSCTTY when available.
60561         * modules/login_tty (Depends-on): Add sys_ioctl.
60562         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60564 2010-09-16  Bruno Haible  <bruno@clisp.org>
60566         login_tty: Stricter unit test.
60567         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60568         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60569         and tcgetsid() after login_tty.
60570         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60572 2010-09-16  Bruno Haible  <bruno@clisp.org>
60574         New module 'tcgetsid'.
60575         * lib/tcgetsid.c: New file.
60576         * m4/tcgetsid.m4: New file.
60577         * modules/tcgetsid: New file.
60578         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60579         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60580         GNULIB_TCGETSID, HAVE_TCGETSID.
60581         * lib/termios.in.h: Include <sys/types.h>.
60582         (tcgetsid): New declaration.
60583         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60584         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60585         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60586         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
60588 2010-09-16  Bruno Haible  <bruno@clisp.org>
60590         Tests for module 'termios'.
60591         * modules/termios-c++-tests: New file.
60592         * modules/termios-tests: New file.
60593         * tests/test-termios-c++.cc: New file.
60594         * tests/test-termios.c: New file.
60596         New module 'termios'.
60597         * modules/termios: New file.
60598         * lib/termios.in.h: New file.
60599         * m4/termios_h.m4: New file.
60600         * doc/posix-headers/termios.texi: Mention the new module.
60602 2010-09-16  Eric Blake  <eblake@redhat.com>
60604         fdutimensat: add an atflag parameter
60605         * lib/fdutimensat.c (fdutimensat): Add new parameter.
60606         * lib/utimens.h (fdutimensat): Update prototype.
60607         * tests/test-fdutimensat.c: Adjust test to match.
60608         * NEWS: Document the change.
60609         Suggested by Paul Eggert.
60611 2010-09-16  Bruno Haible  <bruno@clisp.org>
60613         Fix typos in comments.
60614         * lib/striconveh.h: Fix typo in comment.
60615         * lib/login_tty.c (login_tty): Likewise.
60617 2010-09-15  Bruno Haible  <bruno@clisp.org>
60619         stdlib: clarify MirBSD WEXITSTATUS bug
60620         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
60621         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60623 2010-09-15  Eric Blake  <eblake@redhat.com>
60625         stdlib: work around MirBSD WEXITSTATUS bug
60626         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
60627         * modules/stdlib (Depends-on): Add sys_wait.
60628         * tests/test-sys_wait.c (main): Enhance test.
60629         * tests/test-stdlib.c (main): Likewise.
60630         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
60632         docs: mention MacOS issue with WEXITSTATUS(constant)
60633         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
60634         issue.
60635         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60637         strnlen: add tests
60638         * modules/strnlen-tests: New file.
60639         * tests/test-strnlen.c: Likewise.
60641 2010-09-14  Bruno Haible  <bruno@clisp.org>
60643         unistr/base: Avoid link errors when module 'libunistring' is also used.
60644         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
60645         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
60646         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
60647         Declare also when HAVE_LIBUNISTRING is set.
60648         Reported by Pádraig Brady <P@draigbrady.com>.
60650 2010-09-14  Eric Blake  <eblake@redhat.com>
60652         test-rawmemchr: make more robust
60653         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
60654         (Depends-on, configure.ac): Add needed prerequisites to use it.
60655         * modules/memchr-tests (Files, Depends-on, configure.ac):
60656         Likewise, to avoid implicit reliance on memchr module prereqs.
60657         * tests/test-memchr.c (main): Ensure proper masking.
60658         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
60659         reads.
60661         memchr: detect glibc Alpha bug
60662         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
60663         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
60664         Alpha.
60665         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
60666         * tests/test-memchr.c (main): Enhance test.
60667         Reported by Nelson H. F. Beebe.
60669 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60671         fts, getcwd, glob: audit for dirfd returning -1
60672         * lib/fts.c (opendir): Remove #define; no longer used.
60673         (opendirat): New arg PDIR_FD.  All callers changed.
60674         (fts_build, _opendir2): Use new opendirat to avoid the need for
60675         dirfd, or for checking whether dirfd returns a negative value.
60676         Don't use opendir; always use openat followed by fdopendir.
60677         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
60678         it.
60679         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
60680         returns -1 here.
60681         * modules/fts (Depends-on): Remove dirfd.
60682         * modules/getcwd (Depends-on): Likewise.
60684 2010-09-13  Eric Blake  <eblake@redhat.com>
60686         float: fix broken MirBSD header
60687         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
60688         * doc/posix-headers/float.texi (float.h): Document it.
60690 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60692         fts: use O_NOFOLLOW to avoid race condition when opening a directory
60693         * lib/fts.c (opendirat): New arg extra_flags.
60694         (__opendir2): Use it to avoid following symlinks when opening
60695         a directory, if symlinks are not supposed to be followed.  See
60696         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
60698         fdopendir: preserve argument fd before returning
60699         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
60700         (fdopendir_with_dup, fd_clone_opendir): New static functions.
60701         (fdopendir): Use them, arranging for FD to be open to the same
60702         directory that it was when it started.  (It might be temporarily
60703         closed while fdopendir is running, so this not thread- or
60704         signal-safe.)  Be careful to do the right thing even when file
60705         descriptors are scarce and dup fails with errno == EMFILE.  See
60706         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
60708 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
60710         regex: Pass the system regex if its only problem is 32-bit regoff_t.
60711         * NEWS: Document change.
60712         * m4/regex.m4: Disable test for regoff_t size.
60714 2010-09-13  Jim Meyering  <meyering@redhat.com>
60716         fts: don't operate on an invalid file descriptor after failed dup
60717         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
60718         negative file descriptor.
60720 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60722         savedir: add streamsavedir, deprecate fdsavedir
60723         * NEWS: Mention deprecation of fdsavedir.
60724         * lib/savedir.c (streamsavedir): New extern function, whose name
60725         ends in "savedir" to be consistent with the others.  This differs
60726         from savedirstream in that it doesn't close its argument.  The
60727         next version of GNU tar will use this instead of fdsavedir, to
60728         avoid some race conditions and conserve file descriptors.
60729         (savedirstream): Reimplement as a wrapper around streamsavedir.
60730         (fdsavedir): Add a comment deprecating this function.  As far as
60731         I know, only GNU tar used it, and GNU tar doesn't need it any more.
60732         * lib/savedir.h (streamsavedir): New decl.
60733         (fdsavedir): Add a comment deprecating this.
60735 2010-09-10  Bruno Haible  <bruno@clisp.org>
60737         langinfo: Fix last commit.
60738         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
60739         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
60740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60742 2010-09-10  Bruno Haible  <bruno@clisp.org>
60744         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
60745         * lib/progreloc.c (O_EXEC): Define fallback.
60747 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
60749         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
60750         * NEWS: Document recent changes to fcntl-h.
60751         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
60752         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
60753         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
60754         Similarly for O_SEARCH; this last was already true, but not documented.
60755         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
60756         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
60757         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
60758         Likewise.
60759         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
60760         is zero, not whether it is defined.
60761         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
60762         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
60763         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
60765 2010-09-10  Bruno Haible  <bruno@clisp.org>
60767         langinfo, nl_langinfo: Fix for IRIX 5.3.
60768         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
60769         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
60770         HAVE_LANGINFO_YESEXPR.
60771         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
60772         HAVE_LANGINFO_YESEXPR.
60773         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
60774         HAVE_LANGINFO_T_FMT_AMPM is 0.
60775         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
60776         HAVE_LANGINFO_YESEXPR is 0.
60777         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
60778         NOEXPR.
60779         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
60780         * doc/posix-functions/nl_langinfo.texi: Likewise.
60781         Reported by Eric Blake.
60783 2010-09-10  Bruno Haible  <bruno@clisp.org>
60785         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
60786         * doc/glibc-functions/login_tty.texi: Mention the include file problem
60787         on FreeBSD 8.0 and OpenBSD 4.6.
60788         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
60789         * m4/pty_h.m4 (gl_PTY_H): Likewise.
60790         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
60791         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
60792         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
60793         ac_includes_default.
60794         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60796 2010-09-09  Eric Blake  <eblake@redhat.com>
60798         strsignal: work around NetBSD bug
60799         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
60800         * lib/string.in.h (includes): Likewise.
60801         * doc/posix-functions/strsignal.texi (strsignal): Document the
60802         bug.
60803         Reported by Nelson H. F. Beebe.
60805         gnulib-tool: work with NetBSD /bin/sh
60806         * gnulib-tool (func_cache_var, func_cache_lookup_module)
60807         (func_get_description, func_get_comment, func_get_status)
60808         (func_get_notice, func_get_applicability, func_get_filelist)
60809         (func_get_dependencies, func_get_autoconf_early_snippet)
60810         (func_get_autoconf_snippet, func_get_automake_snippet)
60811         (func_get_include_directive, func_get_link_directive)
60812         (func_get_license, func_get_maintainer, func_import): Avoid
60813         shell syntax errors from parsing syntax extensions.
60815 2010-09-09  Bruno Haible  <bruno@clisp.org>
60817         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
60818         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
60819         a reliable way to determine whether the 'alias' command works.
60821 2010-09-08  Jim Meyering  <meyering@redhat.com>
60823         init.sh: penalize a set-x-impaired shell; don't disqualify it
60824         * tests/init.sh: Too many shells corrupt application stderr when
60825         you set -x, so we can't afford to disqualify them, since at least
60826         on Irix-6.5, that would disqualify all bourne shells.
60827         Instead, use a two-pass approach.
60828         On the first pass, try to find a shell that meets the stricter
60829         condition that set -x does not corrupt stderr.
60830         If no shell meets the stricter condition, retest each candidate
60831         shell, but without that extra condition.  Finally, when
60832         VERBOSE=yes is requested and set -x might cause trouble, simply
60833         issue a warning and refrain from enabling debug output.
60835 2010-09-08  Eric Blake  <eblake@redhat.com>
60837         unsetenv: fix OpenBSD bug
60838         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
60839         * doc/posix-functions/unsetenv.texi (unsetenv): Update
60840         documentation.
60841         Reported by Jim Meyering.
60843         strtod: work around IRIX 6.5 bug
60844         * lib/strtod.c (strtod): Reparse number on shorter string if
60845         exponent parse was invalid.
60846         * tests/test-strtod.c (main): Add check for "0x1p 2".
60847         Reported by Tom G. Christensen.
60849         getopt: optimize previous patch
60850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
60851         empty variable.  Speed up awk script.
60852         Reported by Paolo Bonzini.
60854 2010-09-08  Jim Meyering  <meyering@redhat.com>
60856         test.sh: disqualify shells for which set -x corrupts stderr
60857         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
60858         and OpenBSD 4.7.  They make it so with "set -x", environment settings
60859         appear in stderr output.  For example, this command:
60860             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
60861         prints "P=1" on those two systems:
60863 2010-09-08  Bruno Haible  <bruno@clisp.org>
60865         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
60866         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
60867         commands, because some shells ignore redirections when there is an
60868         error in the command lookup.
60869         Reported by Eric Blake.
60871 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
60873         * lib/regex.h: Fix a mention of `regex_compile' (should be
60874         `re_compile_pattern').
60875         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
60876         (re_set_registers): Correct name of parameter in comment.
60878         * doc/regex.texi: Add documentation for missing syntax flags.
60879         Remove commented-out documentation of defunct syntax option
60880         RE_NO_EMPTY_ALTS.
60881         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
60882         Add documentation of re_set_registers.
60883         Document trick to re-use a pattern buffer by setting fastmap manually.
60884         Update documentation of struct re_pattern_buffer per public members.
60885         Uncomment documentation of equivalence class operators and
60886         collating symbol operators, since they are now implemented,
60887         Explain leftmost-longest matching in relation to alternatives.
60888         Tidy documentation of substring matching.
60889         Remove POSIX documentation, which is done better in
60890         glibc, and refer the reader there. Keep BSD API documentation, as
60891         that is not readily available elsewhere.
60893 2010-09-07  Eric Blake  <eblake@redhat.com>
60895         getopt: handle POSIXLY_CORRECT set but not exported
60896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
60897         export state of POSIXLY_CORRECT, due to bash set -o posix.
60898         Reported by Dustin J. Mitchell.
60900 2010-09-05  Bruno Haible  <bruno@clisp.org>
60902         gnulib-tool: Highlight the changed options.
60903         * gnulib-tool (func_usage): Display the --import, --add-import,
60904         --remove-import explanations in bold font.
60906 2010-09-06  Karl Berry  <karl@gnu.org>
60908         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
60910 2010-09-05  Bruno Haible  <bruno@clisp.org>
60912         uniwidth/width: Update comment.
60913         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
60914         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
60916 2010-09-05  Bruno Haible  <bruno@clisp.org>
60918         isinf, isnan: Relax license.
60919         * modules/isinf (License): Change from GPL to LGPL, with consent from
60920         Ben Pfaff.
60921         * modules/isnan (License): Likewise.
60922         Requested by Ludovic Courtès.
60924 2010-09-04  Bruno Haible  <bruno@clisp.org>
60926         gnulib-tool: Help migration from --import to --add-import or --update.
60927         * gnulib-tool: Emit a verbose error message when --import is used
60928         without any module name.
60930 2010-09-04  Bruno Haible  <bruno@clisp.org>
60932         Update doc about gnulib-tool.
60933         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
60934         'gnulib-tool --update' in more detail.
60935         Reported by Eric Blake.
60937 2010-09-04  Bruno Haible  <bruno@clisp.org>
60939         gnulib-tool: Change --import. New options --add/remove-import.
60940         * gnulib-tool: New options --add-import, --remove-import.
60941         (func_usage): Document them.
60942         (have_associative): Define always.
60943         (func_import): In import mode, don't merge the specified settings with
60944         the cached settings. Implement remove-import mode.
60945         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
60946         Explain when to use them versus --import.
60947         (Simple update): Use --add-import instead of --import.
60948         * NEWS: Mention the change.
60950 2010-09-04  Bruno Haible  <bruno@clisp.org>
60952         * doc/gnulib-tool.texi (Initial import): Update paragraph about
60953         separate gnulib.mk.
60955 2010-09-04  Bruno Haible  <bruno@clisp.org>
60957         gnulib-tool: Don't talk about CVS any more.
60958         * gnulib-tool (func_usage, func_import): Write "version control"
60959         instead of CVS.
60961 2010-09-04  Jim Meyering  <meyering@redhat.com>
60963         maint.mk: avoid obscure sc_copyright_check failure in coreutils
60964         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
60965         false positives (whose names may be ill-chosen) when searching
60966         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
60967         would cause a false-positive.
60969         avoid coreutils "make distcheck" failure
60970         Coreutils tests with an absolute build directory name that contains
60971         a space.  Not quoting this directory name caused a failure.
60972         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
60973         * tests/test-vc-list-files-cvs.sh: Likewise.
60975 2010-09-04  Bruno Haible  <bruno@clisp.org>
60977         gnulib-tool: Avoid error when run in a package without Makefile.am.
60978         * gnulib-tool: When collecting the m4dirs in a package that does not
60979         have a Makefile.am, eliminate those directories that contain no
60980         gnulib-cache.m4. Fix expression that counts these directories.
60982 2010-09-04  Bruno Haible  <bruno@clisp.org>
60984         update-copyright test: Improve output when perl is missing or too old.
60985         * tests/test-update-copyright.sh: Move test of Perl version down after
60986         the test whether Perl exists. Provide an explanation relating Perl's
60987         error message to Automake's SKIP: message.
60989 2010-09-04  Bruno Haible  <bruno@clisp.org>
60991         Don't augment PATH in TESTS_ENVIRONMENT.
60992         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
60993         set abs_aux_dir instead of augmenting PATH.
60994         * modules/vc-list-files-tests (Makefile.am): Likewise.
60995         * tests/test-update-copyright.sh: Augment PATH here.
60996         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
60997         path_prepend_.
60998         * tests/test-vc-list-files-git.sh: Likewise.
61000 2010-09-04  Jim Meyering  <meyering@redhat.com>
61002         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61003         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61005 2010-09-04  Bruno Haible  <bruno@clisp.org>
61007         strdup: Fix compilation error in C++ mode.
61008         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61009         the macro.
61011 2010-09-04  Bruno Haible  <bruno@clisp.org>
61013         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61014         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61015         macro into a function.
61016         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61018 2010-09-04  Bruno Haible  <bruno@clisp.org>
61020         Set PATH_SEPARATOR the same way autoconf does.
61021         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61022         the value of PATH_SEPARATOR the same way autoconf-generated configure
61023         scripts do.
61024         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61025         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61027 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61029         Set PATH_SEPARATOR the same way autoconf does.
61030         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61031         the same way autoconf-generated configure scripts do.
61032         * posix-modules: Likewise.
61034 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61036         hash: fix safe_hasher const typo
61037         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61038         const; otherwise, there is a type error later.
61040 2010-09-02  Jim Meyering  <meyering@redhat.com>
61042         test-update-copyright.sh: require perl 5.8.0
61043         * tests/test-update-copyright.sh: Require 5.8.0,
61044         which Tom G. Christensen has confirmed is adequate,
61045         while 5.6.1 is not.
61047 2010-09-02  Eric Blake  <eblake@redhat.com>
61049         tests: init.sh improvements for re-exec'ing with zsh
61050         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61051         -vx through shell re-exec.
61052         Reported by Tom G. Christensen.
61054         wctype: fix typo in previous commit
61055         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61056         Reported by Ludovic Courtès.
61058 2010-09-02  Jim Meyering  <meyering@redhat.com>
61060         test-update-copyright.sh: skip test if Perl is too old
61061         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61062         Reported by Tom G. Christensen.
61064 2010-09-02  Bruno Haible  <bruno@clisp.org>
61066         wctype: Avoid compilation error on IRIX 6.5.30.
61067         * lib/wctype.in.h (iswblank): Declare with a replacement if
61068         REPLACE_ISWBLANK is set.
61069         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61070         declared. Set REPLACE_ISWBLANK.
61071         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61072         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61073         * doc/posix-headers/wctype.texi: Likewise.
61074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61076 2010-09-01  Bruno Haible  <bruno@clisp.org>
61078         New module 'socketlib'.
61079         * modules/socketlib: New file.
61080         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61081         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61082         * modules/sockets (Depends-on): Add socketlib.
61083         Suggested by Sam Steingold <sds@gnu.org>.
61085 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61087         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61089         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61090         when one needs search access to a directory but not read access.
61091         On systems where it is available, it works in some cases where
61092         O_RDONLY does not, namely on directories that are searchable but
61093         not readable, and which need only to be searchable.  If O_SEARCH
61094         is not available, fall back to the traditional method of using
61095         O_RDONLY.
61097         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61098         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61099         when opening a directory that needs only to be searchable.
61100         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61101         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61102         * lib/openat-proc.c (openat_proc_name): Likewise.
61103         * lib/openat.c (openat_needs_fchdir): Likewise.
61104         * lib/save-cwd.c (save_cwd): Likewise.
61105         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61107 2010-08-28  Bruno Haible  <bruno@clisp.org>
61109         New module 'host-cpu-c-abi'.
61110         * modules/host-cpu-c-abi: New file.
61111         * m4/host-cpu-c-abi.m4: New file, based on part of
61112         clisp/src/m4/general.m4.
61113         Requested by Sam Steingold <sds@gnu.org>.
61115 2010-08-31  Eric Blake  <eblake@redhat.com>
61116         and Jim Meyering  <meyering@redhat.com>
61118         hash: factor, and guard against misbehaving hasher function
61119         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61120         of table->hasher's return value.  Also protect against a hash value
61121         so large that adding it to table->bucket results in a NULL pointer.
61122         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61123         Use it in place of open-coded check-and-abort.
61125 2010-08-30  Bruno Haible  <bruno@clisp.org>
61127         hash: silence spurious clang warning
61128         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61129         Reported by Eric Blake.
61131 2010-08-30  Eric Blake  <eblake@redhat.com>
61133         strstr, memmem, strcasestr: avoid leaked shell message
61134         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61135         FreeBSD.
61136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61139         tests: silence clang warning
61140         * tests/test-malloca.c (do_allocation): Avoid dead store.
61142 2010-08-29  Bruno Haible  <bruno@clisp.org>
61144         gettext: Fix recent mistake.
61145         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61147 2010-08-29  Bruno Haible  <bruno@clisp.org>
61149         selinux-h: Offer a --without-selinux option.
61150         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61151         --without-selinux was specified, skip all tests and define
61152         HAVE_SELINUX_SELINUX_H to 0.
61153         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61154         set LIB_SELINUX to empty.
61155         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61156         gl_LIBSELINUX. If --without-selinux was specified, replace
61157         selinux/context.h.
61158         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61160 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61161             Bruno Haible  <bruno@clisp.org>
61163         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61164         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61165         of HAVE_REALLOC.
61166         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61167         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61168         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61169         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61171 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61172             Bruno Haible  <bruno@clisp.org>
61174         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61175         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61176         HAVE_CALLOC.
61177         * lib/xmalloc.c: Update accordingly.
61178         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61179         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61180         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61182 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61183             Bruno Haible  <bruno@clisp.org>
61185         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61186         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61187         HAVE_MALLOC.
61188         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61189         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61190         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61192 2010-08-29  Bruno Haible  <bruno@clisp.org>
61194         Update modules list.
61195         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61196         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61197         (String handling <string.h>): Add astrxfrm.
61198         (File system functions): Add readlinkat.
61200 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61202         Tests for module 'realloc-gnu'.
61203         * modules/realloc-gnu-tests: New file.
61204         * tests/test-realloc-gnu.c: New file.
61206         Tests for module 'calloc-gnu'.
61207         * modules/calloc-gnu-tests: New file.
61208         * tests/test-calloc-gnu.c: New file.
61210         Tests for module 'malloc-gnu'.
61211         * modules/malloc-gnu-tests: New file.
61212         * tests/test-malloc-gnu.c: New file.
61214 2010-08-28  Bruno Haible  <bruno@clisp.org>
61216         Rename module 'realloc' -> 'realloc-gnu'.
61217         * modules/realloc-gnu: New file, copied from modules/realloc.
61218         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61219         obsolete.
61220         * modules/mgetgroups (Depends-on): Update.
61221         * doc/posix-functions/realloc.texi: Update.
61222         * NEWS: Mention the change.
61224         Rename module 'calloc' -> 'calloc-gnu'.
61225         * modules/calloc-gnu: New file, copied from modules/calloc.
61226         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61227         obsolete.
61228         * doc/posix-functions/calloc.texi: Update.
61229         * NEWS: Mention the change.
61231         Rename module 'malloc' -> 'malloc-gnu'.
61232         * modules/malloc-gnu: New file, copied from modules/malloc.
61233         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61234         obsolete.
61235         * modules/argp (Depends-on): Update.
61236         * modules/regex (Depends-on): Update.
61237         * doc/posix-functions/malloc.texi: Update.
61238         * NEWS: Mention the change.
61240 2010-08-28  Eric Blake  <eblake@redhat.com>
61242         pread, pwrite: add missing dependency
61243         * modules/pread (Depends-on): Add extensions.
61244         * modules/pwrite (Depends-on): Likewise.
61246 2010-08-28  Bruno Haible  <bruno@clisp.org>
61248         unistr/u*-strchr: Fix tests dependencies.
61249         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61250         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61251         Reported by Ian Beckwith <ianb@erislabs.net>.
61253 2010-08-28  Bruno Haible  <bruno@clisp.org>
61255         read-file: Don't occupy too much unused memory.
61256         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61258 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61259             Eric Blake  <eblake@redhat.com>
61260             Bruno Haible  <bruno@clisp.org>
61262         read-file: Avoid memory reallocations with regular files.
61263         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61264         (fread_file): With regular files, use the remaining length as the
61265         initial buffer size.  Check against overflow.
61266         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61267         sys_stat.
61269 2010-08-28  Bruno Haible  <bruno@clisp.org>
61271         ftello: Relax license.
61272         * modules/ftello (License): Relax to LGPLv2+.
61273         Reported by Eric Blake.
61275 2010-08-28  Bruno Haible  <bruno@clisp.org>
61277         Avoid relocwrapper link errors due to gnulib replacement functions.
61278         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61279         function.
61280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61282 2010-08-28  Bruno Haible  <bruno@clisp.org>
61284         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61285         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61286         defined.
61287         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61288         Suggested by Eric Blake.
61290 2010-08-28  Bruno Haible  <bruno@clisp.org>
61292         sys_socket, netdb: Ensure socklen_t gets defined.
61293         * modules/sys_socket (Depends-on): Add socklen.
61294         * modules/netdb (Depends-on): Likewise.
61295         * modules/getaddrinfo (Depends-on): Remove socklen.
61296         * modules/getsockopt (Depends-on): Likewise.
61297         * modules/setsockopt (Depends-on): Likewise.
61298         * tests/test-sys_socket.c: Check that socklen_t is defined.
61299         * tests/test-netdb.c: Likewise.
61300         * m4/socklen.m4: Update comments.
61301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61303 2010-08-27  Eric Blake  <eblake@redhat.com>
61305         login_tty: add missing dependency
61306         * modules/login_tty (Depends-on): Add pty.
61308 2010-08-26  Eric Blake  <eblake@redhat.com>
61310         lib-symbol-versions: fix m4 quoting
61311         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61312         format for AC_LINK_IFELSE.
61314         glob: fix compile test
61315         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61317         btowc: fix missing file
61318         * modules/btowc (Files): Also ship locale-fr.m4.
61320         lseek: fix link test
61321         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61322         AC_LINK_IFELSE.
61324         include_next: silence autoconf 2.68 warning
61325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61326         AC_COMPILE_IFELSE as special.
61327         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61328         autoconf < 2.68.
61330         acl: fix compilation test
61331         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61332         AC_COMPILE_IFELSE.
61334 2010-08-26  Bruno Haible  <bruno@clisp.org>
61336         Modernize AC_TRY_RUN invocations.
61337         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61338         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61339         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61340         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61341         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61342         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61345         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61346         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61347         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61348         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61349         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61350         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61352         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61353         gl_MBRLEN_NUL_RETVAL): Likewise.
61354         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61355         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61356         Likewise.
61357         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61358         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61359         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61360         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61361         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61362         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61363         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61364         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61365         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61366         Likewise.
61367         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61368         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61369         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61370         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61372         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61373         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61374         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61375         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61378 2010-08-26  Bruno Haible  <bruno@clisp.org>
61380         Modernize AC_TRY_LINK invocations.
61381         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61382         AC_TRY_LINK.
61383         * m4/argp.m4 (gl_ARGP): Likewise.
61384         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61385         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61386         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61387         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61388         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61389         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61390         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61391         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61392         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61393         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61394         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61395         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61396         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61397         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61398         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61399         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61400         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61401         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61402         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61403         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61404         Likewise.
61405         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61406         Likewise.
61407         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61408         Likewise.
61409         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61411         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61412         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61413         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61414         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61415         * m4/servent.m4 (gl_SERVENT): Likewise.
61416         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61417         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61418         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61419         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61420         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61421         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61422         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61423         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61424         * modules/tsearch-tests (configure.ac): Likewise.
61426 2010-08-26  Bruno Haible  <bruno@clisp.org>
61428         Modernize AC_TRY_COMPILE invocations.
61429         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61430         AC_TRY_COMPILE.
61431         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61432         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61433         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61434         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61435         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61436         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61437         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61438         * m4/lock.m4 (gl_LOCK): Likewise.
61439         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61440         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61441         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61442         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61443         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61444         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61445         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61447         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61448         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61449         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61450         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61451         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61452         extraneous semicolon.
61454 2010-08-26  Jim Meyering  <meyering@redhat.com>
61456         stat-time: relax license LGPL
61457         * modules/stat-time (License): Change from GPL to LGPL,
61458         with consent from all contributors, for use in libguile.
61459         Requested by Ludovic Courtès.
61461 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61463         poll: return immediately on POLLHUP.
61464         * lib/poll.c (poll): Always set timeout before wait_timeout is
61465         computed.
61467 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61469         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61470         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61471         rmdir ("dir/.//"), unlinkat.
61473 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61475         stdbool: avoid spurious failure with modern xlc
61476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61478 2010-08-24  Bruno Haible  <bruno@clisp.org>
61480         getloadavg: simplify code
61481         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61482         gl_have_func. Update comments.
61484 2010-08-24  Eric Blake  <eblake@redhat.com>
61486         getloadavg: don't define SVR4 on cygwin
61487         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61488         only define SVR4 when -lkvm is required.
61489         Reported by Yaakov Selkowitz.
61491 2010-08-24  Bruno Haible  <bruno@clisp.org>
61493         priv-set: fix comment
61494         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61496 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61498         priv-set: fix comments
61499         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61500         to match code, as suggested by David Bartley in:
61501         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61503 2010-08-23  Eric Blake  <eblake@redhat.com>
61505         stdbool: avoid rejecting clang
61506         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61507         * tests/test-stdbool.c: Enable more tests if using the system
61508         <stdbool.h> instead of the gnulib replacement.
61509         (main): Move xlc bug test to a runtime test for all compilers.
61510         Reported by Anders Kaseorg.
61512         argz: fix shell quoting issue
61513         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61514         Reported by Charles Wilson.
61516 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61517             Erik Faye-Lund <kusmabite@gmail.com>
61519         poll, select: handle ERROR_BROKEN_PIPE.
61520         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61521         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61522         * lib/select.c (win32_compute_revents): Do not mark a pipe
61523         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61525 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61527         fts: allow compilation with C++
61528         * lib/fts_.h: Specify extern "C" linkage with C++.
61530 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61532         Fix gnulib-tool sed script de-commentation for AIX sed.
61533         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61534         sed.
61536 2010-08-17  Eric Blake  <eblake@redhat.com>
61538         test-stddef: test for (some) offsetof bugs
61539         * tests/test-stddef.c: Enhance test to ensure correct type of
61540         offsetof.
61541         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61542         that we are not fixing at this time.
61544 2010-08-15  Bruno Haible  <bruno@clisp.org>
61546         stpncpy: Allow stpncpy to be defined as a macro.
61547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61548         if it's already correctly declared.
61549         * lib/string.in.h (stpncpy): Undefine before redefining.
61550         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61552 2010-08-14  Bruno Haible  <bruno@clisp.org>
61554         Rename module 'memxfrm' to 'amemxfrm'.
61555         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61556         (amemxfrm): Renamed from memxfrm.
61557         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61558         (amemxfrm): Renamed from memxfrm.
61559         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61560         * NEWS: Mention the change.
61561         * MODULES.html.sh (String handling <string.h>): Update.
61562         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61563         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61564         * lib/unicase/u16-casexfrm.c: Likewise.
61565         * lib/unicase/u32-casexfrm.c: Likewise.
61566         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61567         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61568         * lib/uninorm/u16-normxfrm.c: Likewise.
61569         * lib/uninorm/u32-normxfrm.c: Likewise.
61570         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61571         memxfrm.
61572         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61573         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61574         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61575         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61576         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61577         Suggested by Paul Eggert.
61579 2010-08-14  Bruno Haible  <bruno@clisp.org>
61581         Tests for module 'astrxfrm'.
61582         * modules/astrxfrm-tests: New file.
61583         * tests/test-astrxfrm.c: New file.
61585         New module 'astrxfrm'.
61586         * lib/astrxfrm.h: New file.
61587         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
61588         * modules/astrxfrm: New file.
61590 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
61592         regex: Tweak doc.
61593         * doc/regex.texi (Overview): Don't mention regex.c.
61594         (GNU Regular Expression Compiling): Likewise.
61595         (Match-end-of-line Operator): Mention 'not_eol'.
61597 2010-08-14  Brian Gough  <bjg@gnu.org>
61598             Bruno Haible  <bruno@clisp.org>
61600         git-merge-changelog: add doc relating to use with bzr and hg.
61601         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
61603 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
61605         pthread: fix pthread.h creation for srcdir != builddir
61606         * modules/pthread (Makefile.am): Fix the rule to work also in a
61607         non-srcdir build.
61609 2010-08-13  Karl Berry  <karl@gnu.org>
61611         * doc/regex.texi (Predefined Syntaxes): @smallexample.
61612         * doc/posix-*/*: force line break before @url of POSIX
61613         specifications.
61614         Suggested by Werner Lemberg.
61616 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61618         strtod: fix const diagnostic
61619         * lib/strtod.c (strtod): Don't assign const char * to char *,
61620         as this elicits a warning from GCC when warnings are enabled.
61622 2010-08-10  Pádraig Brady  <P@draigbrady.com>
61623         and Eric Blake  <eblake@redhat.com>
61625         copy-acl: ignore ENOTSUP on HP-UX
61626         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
61627         so that it is available for HP-UX.
61628         * lib/copy-acl.c (qcopy_acl): Use it.
61629         Reported by Patrick M. Callahan.
61631 2010-08-10  Eric Blake  <eblake@redhat.com>
61633         open, chown: relax license
61634         * modules/open (License): Change to LGPLv2+, with consent by all
61635         authors, for use in augeas.
61636         * modules/chown (License): Likewise.
61637         * modules/lchown (Likewise): Likewise.
61638         Requested by Adam Stokes.
61640 2010-08-09  Karl Berry  <karl@gnu.org>
61642         * build-aux/ar-lib: new file, import from Automake.
61643         * config/srclist.txt: autocheck for updates.
61645 2010-08-09  Eric Blake  <eblake@redhat.com>
61647         readlinkat: adjust client modules
61648         * modules/areadlinkat (Depends-on): Use readlinkat, not
61649         symlinkat.
61650         * modules/areadlinkat-with-size (Depends-on): Likewise.
61652         mknod: be more vocal about danger of running tests as root
61653         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
61654         root, since that is just asking for problems.
61655         Suggested by Bruno Haible, based on a report by Rainer Tammer.
61657         readlinkat: split into its own module
61658         * modules/symlinkat: Split readlinkat...
61659         * modules/readlinkat: ...into separate module.
61660         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
61661         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
61662         * lib/symlinkat.c (readlinkat): Move...
61663         * lib/readlinkat.c: ...into new file.
61664         * modules/symlinkat-tests: Split readlinkat test...
61665         * modules/readlinkat-tests: ...into separate module.
61666         * tests/test-symlinkat.c: Split...
61667         * tests/test-readlinkat.c: ...into new file.
61668         * NEWS: Document the split.
61669         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61670         * lib/unistd.in.h (readlinkat): Likewise.
61671         Suggested by Bruno Haible.
61673 2010-08-08  Bruno Haible  <bruno@clisp.org>
61675         memxfrm: Speed up.
61676         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
61677         that usually only one call to strxfrm is necessary for each string
61678         part.
61679         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61681 2010-08-07  Karl Berry  <karl@gnu.org>
61683         * doc/posix-headers/limits.texi,
61684         * doc/posix-functions/malloc.texi,
61685         * doc/posix-functions/strsignal.texi: missing @item.
61686         * doc/ld-version-script.texi: spurious leading i.
61687         * doc/regex.texi (Interval Operators): no commas inside @var.
61689 2010-08-01  Bruno Haible  <bruno@clisp.org>
61691         Integrate the regex documentation.
61692         * doc/gnulib.texi: Define 'cn' index.
61693         (Regular expressions): New a chapter that includes regex.texi and
61694         regexprops-generic.texi.
61695         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
61696         syntax.
61698         Whitespace cleanup.
61699         * doc/regex.texi: Remove trailing spaces.
61701         Add regex documentation.
61702         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
61703         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
61704         Written by Kathy A. Hargreaves and Karl Berry.
61706 2010-08-01  Bruno Haible  <bruno@clisp.org>
61708         link: Update documentation.
61709         * doc/posix-functions/link.texi: Update regarding Solaris.
61711 2010-07-31  Bruno Haible  <bruno@clisp.org>
61713         Update modules list.
61714         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
61715         (String handling <string.h>): Add memcmp2, memxfrm.
61716         (Container data structures): Add xlist, xsublist, xoset.
61717         (Core language properties): Add alignof, unused-parameter.
61718         (Process control, Numeric conversion functions <stdlib.h>): Renamed
61719         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
61720         (Unibyte characters <ctype.h>): New section.
61721         (String handling <string.h>): New section.
61722         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
61723         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
61724         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
61725         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
61726         tan, tanh, tanl, y0, y1, yn.
61727         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
61728         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
61729         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
61730         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
61731         unlockpt, vdprintf, vdprintf-posix.
61732         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
61733         (File system functions): Add concat-filename, sys_file, sys_ioctl,
61734         xconcat-filename.
61735         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
61736         getdtablesize, pipe2, pipe2-safer.
61737         (Security): New section.
61738         (Networking functions): Add accept4.
61739         (Signal handling): Add sigpipe.
61740         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
61741         mbmemcasecoll.
61742         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
61743         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
61744         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
61745         pipe-filter-ii.
61746         (Misc): Add argp-version-etc, login_tty, parse-duration.
61748 2010-07-31  Bruno Haible  <bruno@clisp.org>
61750         Improve doc in MODULES.html.
61751         * modules/linkat (Description): Add the word "function".
61752         * modules/mkfifo (Description): Likewise.
61753         * modules/mknod (Description): Likewise.
61754         * modules/remove (Description): Likewise.
61755         * modules/renameat (Description): Likewise.
61756         * modules/stat (Description): Likewise.
61757         * modules/symlink (Description): Likewise.
61758         * modules/unlink (Description): Likewise.
61760 2010-07-31  Bruno Haible  <bruno@clisp.org>
61762         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
61763         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
61764         option --enable/disable-c++ instead of --enable/disable-cxx.
61765         * NEWS: Mention the change.
61767 2010-07-31  Bruno Haible  <bruno@clisp.org>
61769         readlink, areadlink: Relax test a bit.
61770         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
61771         alternative to ENOTDIR.
61772         * tests/test-areadlink.h (test_areadlink): Likewise.
61773         Reported by Rainer Tammer.
61775 2010-07-31  Bruno Haible  <bruno@clisp.org>
61777         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
61778         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
61779         character, perform the search using U_STRCHR.
61780         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
61781         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
61782         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
61783         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
61784         Suggested by Paolo Bonzini.
61786 2010-07-31  Bruno Haible  <bruno@clisp.org>
61788         unistr/u*-strstr: Fix dependencies.
61789         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
61790         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
61791         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
61793 2010-07-31  Bruno Haible  <bruno@clisp.org>
61795         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
61796         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
61797         the beginning of the loop.
61798         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
61799         cases in 'switch' statement.
61801         unistr/u8-strchr: Fix several bugs.
61802         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
61803         the string. When not found, return NULL, not a pointer near the end.
61805         More tests for unistr/u8-strchr.
61806         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
61807         that the function does not read past the first occurrence of the byte
61808         being searched.
61809         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
61810         * tests/unistr/test-u16-strchr.c (main): New function.
61811         * tests/unistr/test-u32-strchr.c (main): New function.
61813 2010-07-31  Bruno Haible  <bruno@clisp.org>
61815         posix-modules: Ignore backup files of documentation files.
61816         * posix-modules: grep only through files named *.texi.
61818 2010-07-31  Bruno Haible  <bruno@clisp.org>
61820         symlinkat: Fix documentation.
61821         * doc/posix-functions/readlinkat.texi: Fix module name.
61823 2010-07-31  Bruno Haible  <bruno@clisp.org>
61825         fchownat: Replace also when chown has the trailing slash bug.
61826         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
61827         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
61828         introduced on 2010-04-10.
61829         Reported by Rainer Tammer.
61831 2010-07-31  Bruno Haible  <bruno@clisp.org>
61833         linkat: Work around AIX 7.1 bug.
61834         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
61835         whether linkat handles trailing slash correctly. If not, replace linkat
61836         and define LINKAT_TRAILING_SLASH_BUG.
61837         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
61838         check whether (fd1,file1) points to a directory if file1 or file2 ends
61839         in a slash. Code taken from lib/link.c.
61840         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
61841         Reported by Rainer Tammer.
61843 2010-07-31  Bruno Haible  <bruno@clisp.org>
61845         Correctly determine whether pow is available in libc on AIX 7 with xlc.
61846         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
61847         This disables an xlc optimization that was causing wrong test results.
61848         Reported by Rainer Tammer.
61850 2010-07-31  Bruno Haible  <bruno@clisp.org>
61852         iconv: Work around AIX 6.1..7.1 bug.
61853         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
61854         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
61855         cross-compiling, guess no on all versions of AIX.
61856         Reported by Rainer Tammer.
61858 2010-07-31  Bruno Haible  <bruno@clisp.org>
61860         readlink: Relax test a bit.
61861         * tests/test-readlink.h (test_readlink): Allow different errno value
61862         when readlink is called with a file name that ends in / and refers to
61863         a file.
61864         Suggested by Eric Blake.
61865         Reported by Rainer Tammer.
61867 2010-07-31  Bruno Haible  <bruno@clisp.org>
61869         copysign: Does not require -lm on glibc systems.
61870         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
61871         gl_COMMON_DOUBLE_MATHFUNC.
61872         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
61874 2010-07-31  Bruno Haible  <bruno@clisp.org>
61876         duplocale: Work around AIX 7.1 bug.
61877         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
61878         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
61879         * lib/duplocale.c (rpl_duplocale): Update comment.
61880         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
61881         Reported by Rainer Tammer.
61883 2010-07-30  Bruno Haible  <bruno@clisp.org>
61885         dirfd: Avoid link error on AIX 7.1.
61886         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
61887         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
61888         exist, set REPLACE_DIRFD.
61889         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
61890         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
61891         * doc/posix-functions/dirfd.texi: Update.
61892         Reported by Rainer Tammer.
61894 2010-07-30  Eric Blake  <eblake@redhat.com>
61896         strtod: next round of AIX fixes
61897         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
61898         exponent.
61899         * tests/test-strtod.c (main): Enhance tests.
61900         * doc/posix-functions/strtod.texi (strtod): Document next bug.
61901         Reported by Rainer Tammer.
61903         futimens: fix configure check
61904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
61905         Reported by Bruno Haible.
61907 2010-07-30  Bruno Haible  <bruno@clisp.org>
61909         getline: Update regarding AIX.
61910         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
61911         Reported by Rainer Tammer.
61913 2010-07-30  Bruno Haible  <bruno@clisp.org>
61915         wcwidth: Drop replacement on AIX 7.
61916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
61917         AIX 7.
61918         Reported by Rainer Tammer.
61920 2010-07-30  Bruno Haible  <bruno@clisp.org>
61922         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
61923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
61924         a 'char *'.
61925         Reported by Rainer Tammer.
61927 2010-07-30  Bruno Haible  <bruno@clisp.org>
61929         unlink: Update regarding AIX.
61930         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
61931         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
61932         Reported by Rainer Tammer.
61934 2010-07-30  Bruno Haible  <bruno@clisp.org>
61936         symlink: Update regarding AIX.
61937         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
61938         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
61939         Reported by Rainer Tammer.
61941 2010-07-30  Bruno Haible  <bruno@clisp.org>
61943         strndup: Update regarding AIX.
61944         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
61945         AIX 7.
61946         Reported by Rainer Tammer.
61948 2010-07-30  Bruno Haible  <bruno@clisp.org>
61950         stat: Update regarding AIX.
61951         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
61952         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
61953         Reported by Rainer Tammer.
61955 2010-07-30  Bruno Haible  <bruno@clisp.org>
61957         truncl: Fix autoconf test.
61958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
61959         whether truncl works.
61960         Reported by Rainer Tammer.
61962 2010-07-30  Bruno Haible  <bruno@clisp.org>
61964         round: Update regarding AIX.
61965         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
61966         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
61967         Reported by Rainer Tammer.
61969 2010-07-30  Bruno Haible  <bruno@clisp.org>
61971         rename: Update regarding AIX.
61972         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
61973         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
61974         Reported by Rainer Tammer.
61976 2010-07-30  Bruno Haible  <bruno@clisp.org>
61978         printf.m4: Update regarding AIX.
61979         * m4/printf.m4: Update comments regarding AIX.
61980         Reported by Rainer Tammer.
61982 2010-07-30  Bruno Haible  <bruno@clisp.org>
61984         iconv: Update regarding AIX.
61985         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
61986         AIX 7.
61987         Reported by Rainer Tammer.
61989 2010-07-30  Bruno Haible  <bruno@clisp.org>
61991         getopt: Update regarding AIX.
61992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
61993         no on AIX.
61994         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
61995         Reported by Rainer Tammer.
61997 2010-07-30  Bruno Haible  <bruno@clisp.org>
61999         ldexpl; Update regarding AIX.
62000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62001         on AIX 7.
62002         Reported by Rainer Tammer.
62004 2010-07-30  Bruno Haible  <bruno@clisp.org>
62006         frexpl: Update regarding AIX.
62007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62008         on AIX 7.
62009         Reported by Rainer Tammer.
62011 2010-07-30  Bruno Haible  <bruno@clisp.org>
62013         open, fopen: Update regarding AIX.
62014         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62015         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62016         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62017         * doc/posix-functions/fopen.texi: Likewise.
62018         Reported by Rainer Tammer.
62020 2010-07-30  Bruno Haible  <bruno@clisp.org>
62022         chown: Update doc regarding AIX.
62023         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62024         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62025         Reported by Rainer Tammer.
62027 2010-07-30  Eric Blake  <eblake@redhat.com>
62029         strtod: fix bug in replacement function on AIX
62030         * lib/strtod.c (strtod): Special case broken "0x" parse in
62031         underlying strtod.
62032         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62033         * doc/posix-functions/strtod.texi (strtod): Likewise.
62034         Reported by Rainer Tammer.
62036 2010-07-30  Bruno Haible  <bruno@clisp.org>
62038         mbrlen: Fix cross-compilation guess for AIX.
62039         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62040         guess. Leftover from 2008-12-22.
62042 2010-07-30  Bruno Haible  <bruno@clisp.org>
62044         mbrtowc: Fix cross-compilation guess for AIX.
62045         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62046         guess. Leftover from 2008-12-21.
62048 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62050         init.sh: work around trap limitation of some shells
62051         * tests/init.sh (setup_): Move exit trap outside of shell function.
62053 2010-07-29  Eric Blake  <eblake@redhat.com>
62055         strtod: aid debugging
62056         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62057         understanding why strtod is rejected.
62059 2010-07-28  Bruno Haible  <bruno@clisp.org>
62061         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62062         * lib/unistr/u8-chr.c: Include <string.h>.
62063         * tests/unistr/test-u8-chr.c: Likewise.
62064         * tests/unistr/test-u16-chr.c: Likewise.
62065         * tests/unistr/test-u32-chr.c: Likewise.
62066         * tests/unistr/test-u8-strchr.c: Likewise.
62067         * tests/unistr/test-u16-strchr.c: Likewise.
62068         * tests/unistr/test-u32-strchr.c: Likewise.
62069         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62070         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62071         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62072         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62074 2010-07-28  Bruno Haible  <bruno@clisp.org>
62076         Use spaces for indentation, not tabs.
62077         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62079 2010-07-27  Bruno Haible  <bruno@clisp.org>
62081         mbspcasecmp: Fix function specification.
62082         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62083         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62084         Reported by Eric Blake <eblake@redhat.com>.
62086 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62088         timespec: use cast and not conditional, as truncation isn't possible
62089         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62090         instead of a conditional.  Comment about the situation in more detail.
62091         This undoes most of the 2009-10-29 patch.
62093 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62095         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62096         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62097         * lib/unistr/u8-strchr.c: Likewise.
62098         * modules/unistr/u8-chr: Depend on memchr.
62100         unistr/u*-strchr: add tests
62101         * modules/unistr/u8-strchr-tests: New file.
62102         * modules/unistr/u16-strchr-tests: New file.
62103         * modules/unistr/u32-strchr-tests: New file.
62104         * tests/unistr/test-strchr.h: New file.
62105         * tests/unistr/test-u8-strchr.c: New file.
62106         * tests/unistr/test-u16-strchr.c: New file.
62107         * tests/unistr/test-u32-strchr.c: New file.
62109         unistr/u*-chr: test multibyte sequences more
62110         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62111         test vector.
62112         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62113         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62114         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62116         unistr/u*-chr: test multibyte sequences
62117         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62119         unistr/u*-chr: prepare for multibyte tests
62120         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62121         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62122         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62123         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62124         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62125         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62127 2010-07-18  Bruno Haible  <bruno@clisp.org>
62129         unistr/u8-strchr: Optimize non-ASCII argument case.
62130         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62131         because the first byte often matches anyway.
62132         Reported by Pádraig Brady <P@draigbrady.com>.
62134 2010-07-15  Karl Berry  <karl@gnu.org>
62136         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62138 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62140         getcwd: on Solaris, work better if ancestors are inaccessible
62141         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62142         buffer and size, try again with a large buffer.  This works better
62143         on Solaris, since its getcwd succeeds even if the path to the root
62144         is inaccessible, and this is helpful in common cases such as .zfs
62145         hidden directories.  Problem reported by J Chapman Flack in
62146         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62147         Use system getcwd if it's declared, not merely if it's partly
62148         working; use the partly-working test only to avoid needless effort
62149         if the system getcwd fails.
62150         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62151         comment that was already obsolete and is now even more obsolete.
62152         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62153         now might call strdup.
62155 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62157         pthread: Add enough so that coreutils/src/sort.c compiles.
62158         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62159         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62160         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62161         Include <sys/types.h>, in case it defines pthread_t.
62162         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62163         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62164         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62165         (pthread_rwlockattr_t, pthread_spinlock_t):
62166         New typedefs, if HAVE_PTHREAD_T is not defined.
62167         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62168         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62169         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62170         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62171         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62172         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62173         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62174         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62175         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62176         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62177         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62178         New macros.
62179         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62180         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62181         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62182         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62183         (pthread_spin_unlock): New dummy functions.
62184         (pthread_create): Return EAGAIN; don't set errno.
62185         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62186         require AC_C_INLINE.
62187         * modules/pthread (Depends-on): Add sched, time.
62188         (pthread.h): Use AM_V_GEN.
62190 2010-07-13  Bruno Haible  <bruno@clisp.org>
62192         striconveh: Don't malloc memory if the result buffer is sufficient.
62193         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62194         buffer if its size is sufficient.
62195         Reported by Ludovic Courtès <ludo@gnu.org>.
62197 2010-07-13  Bruno Haible  <bruno@clisp.org>
62199         strtod: Add safety check.
62200         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62202 2010-07-12  Bruno Haible  <bruno@clisp.org>
62204         Unify tests that set gl_cv_func_ldexpl_no_libm.
62205         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62206         gl_FUNC_LDEXPL.
62207         (gl_FUNC_LDEXPL): Invoke it.
62208         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62210 2010-07-12  Bruno Haible  <bruno@clisp.org>
62212         Unify tests that set gl_cv_func_ldexp_no_libm.
62213         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62214         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62215         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62216         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62217         * modules/strtod (Files): Add m4/ldexp.m4.
62219 2010-07-12  Bruno Haible  <bruno@clisp.org>
62221         Unify tests that set gl_cv_func_frexpl_no_libm.
62222         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62223         gl_FUNC_FREXPL_NO_LIBM.
62224         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62225         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62227 2010-07-12  Bruno Haible  <bruno@clisp.org>
62229         Unify tests that set gl_cv_func_frexp_no_libm.
62230         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62231         gl_FUNC_FREXP_NO_LIBM.
62232         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62233         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62235 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62237         memcoll: clarify sizes versus lengths, document better, and tweak perf
62238         * lib/memcoll.c (strcoll_loop, memcoll0):
62239         Improve quality of descriptive comments.  Name variables
62240         consistently as to whether they are lengths (which do not include
62241         terminating null) versus sizes (which do).
62242         * lib/xmemcoll.c (xmemcoll0): Likewise.
62243         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62244         returned when s1size == 0; this is easier to compile and saves
62245         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62247 2010-07-12  Bruno Haible  <bruno@clisp.org>
62249         Tests for module '_Exit'.
62250         * modules/_Exit-tests: New file.
62251         * tests/test-_Exit.sh: New file.
62252         * tests/test-_Exit.c: New file.
62254         New module '_Exit'.
62255         * lib/stdlib.in.h (__attribute__): New macro.
62256         (_Exit): New declaration.
62257         * lib/_Exit.c: New file.
62258         * m4/_Exit.m4: New file.
62259         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62260         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62261         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62262         * modules/_Exit: New file.
62263         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62264         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62266 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62268         strtod: make it more-accurate typically, and don't require libm
62269         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62270         Include limits.h.  Don't include string.h.
62271         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62272         (locale_isspace): New function, so that no casts are needed to
62273         check whether *s is a space.
62274         (ldexp): Provide an unused dummy if not available.
62275         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62276         (strtod): Use them.  This implementation prefers to use the
62277         underlying strtod if available, falling back on our own code
62278         only to fix known bugs.  This is more likely to produce an
62279         accurate result.  Also, it avoids the use of libm functions.
62280         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62281         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62282         was absent, but it caused a test failure with coreutils.
62283         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62284         with libm.
62285         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62286         * modules/strtod-tests (Makefile.am): Likewise.
62288 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62289             Bruno Haible  <bruno@clisp.org>
62291         unistr/u8-strchr: Optimize ASCII argument case.
62292         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62294 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62296         (x)memcoll: minor tweaks
62297         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62298         is after the type that it qualifies.
62299         (memcoll0): Likewise.
62300         * lib/memcoll.h (memcoll0): Likewise.
62301         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62302         * lib/xmemcoll.h (xmemcoll0): Likewise.
62303         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62304         differs from memcoll in that the NUL byte is part of the argument.
62305         Omit the abort-checks, as performance is a real issue here.  Plus,
62306         the checks were wrong anyway (an off-by-one error).  Omit local
62307         variable 'diff', as it's a bit clearer that way.
62308         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62309         no longer needed.
62311 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62313         (x)memcoll: speedup when input is known to be NUL delimited
62314         * lib/memcoll.c: Include stdlib.
62315         (memcoll0): New function.
62316         (strcoll_loop): New function, refactored for use in both memcoll
62317         and memcoll0.
62318         * lib/memcoll.h (memcoll0): Add prototype.
62319         * lib/xmemcoll.c (xmemcoll0): New function.
62320         (collate_error): New function, refactored for use in both xmemcoll
62321         and xmemcoll0.
62322         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62323         * m4/memcoll.m4: add inline invocation.
62325 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62327         * build-aux/bootstrap: Remove any local translations
62328         from the translation project synchronization directory,
62329         so that local only translations are not distributed.
62331 2010-07-04  Bruno Haible  <bruno@clisp.org>
62333         fsusage: Clarify which code applies to which platforms.
62334         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62335         platform.
62336         * lib/fsusage.c (get_fs_usage): Likewise.
62338 2010-07-04  Bruno Haible  <bruno@clisp.org>
62340         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62341         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62342         Reported by Martin Lambers <marlam@marlam.de>.
62344 2010-07-04  Jim Meyering  <meyering@redhat.com>
62346         hash: once again explicitly disallow insertion of NULL
62347         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62348         inserting a NULL pointer cannot work with these functions.
62349         Add a comment with details.
62350         This reverts part of the 2010-07-01 commit, 5bef1a35
62351         "hash: extend module to deal with non-pointer keys".
62353 2010-07-01  Bruno Haible  <bruno@clisp.org>
62355         stdbool: Update doc.
62356         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62357         Info from Christian Weisgerber <naddy@mips.inka.de>.
62359 2010-07-01  Jim Meyering  <meyering@redhat.com>
62361         hash: extend module to deal with non-pointer keys
62362         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62363         but that allows insertion of non-pointer entries.
62364         Do not disallow an ENTRY value of NULL.
62365         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62366         * lib/hash.h (hash_insert0): Declare.
62368 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62370         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62371         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62372         not present (i.e. with autoconf 2.59 and when using gettextize, not
62373         gnulib), require AC_GNU_SOURCE instead.
62375 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62377         idpriv-drop: Fix tests.
62378         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62379         not to the test-idpriv-droptemp program.
62381 2010-06-29  Bruno Haible  <bruno@clisp.org>
62383         string: Fix syntax error with g++ 2.96.
62384         * lib/string.in.h (__pure__): Remove definition.
62385         (_GL_ATTRIBUTE_PURE): New macro.
62386         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62387         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62388         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62390 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62392         unitypes: Fix bug introduced on 2010-05-18.
62393         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62395 2010-06-22  Eric Blake  <eblake@redhat.com>
62397         memmem: slight optimization
62398         * lib/str-two-way.h (critical_factorization): Update comments.
62399         Reduce work during factorization phase.
62400         Reported by Carlos Bueno <carlos@bueno.org>.
62402 2010-06-21  Bruno Haible  <bruno@clisp.org>
62404         Fix HAVE_CALLOC_POSIX misnomer.
62405         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62406         !HAVE_CALLOC_POSIX.
62407         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62408         HAVE_CALLOC_POSIX.
62409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62410         instead of HAVE_CALLOC_POSIX.
62411         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62412         HAVE_CALLOC_POSIX.
62414         Use modern idiom for calloc() replacement.
62415         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62416         AC_FUNC_CALLOC.
62417         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62418         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62419         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62420         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62421         (gl_REPLACE_CALLOC): New macro.
62423 2010-06-21  Bruno Haible  <bruno@clisp.org>
62425         Fix HAVE_REALLOC_POSIX misnomer.
62426         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62427         !HAVE_REALLOC_POSIX.
62428         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62429         HAVE_REALLOC_POSIX.
62430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62431         instead of HAVE_REALLOC_POSIX.
62432         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62433         HAVE_REALLOC_POSIX.
62435         Use modern idiom for realloc() replacement.
62436         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62437         AC_FUNC_REALLOC.
62438         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62439         Autoconf's AC_FUNC_REALLOC.
62440         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62441         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62442         (gl_REPLACE_REALLOC): New macro.
62443         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62445 2010-06-21  Bruno Haible  <bruno@clisp.org>
62447         Fix HAVE_MALLOC_POSIX misnomer.
62448         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62449         !HAVE_MALLOC_POSIX.
62450         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62451         HAVE_MALLOC_POSIX.
62452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62453         instead of HAVE_MALLOC_POSIX.
62454         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62455         HAVE_MALLOC_POSIX.
62457         Use modern idiom for malloc() replacement.
62458         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62459         AC_FUNC_MALLOC.
62460         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62461         Autoconf's AC_FUNC_MALLOC.
62462         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62463         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62464         (gl_REPLACE_MALLOC): New macro.
62465         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62467 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62469         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62470         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62471         This macro takes 3 arguments, not 4.
62473 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62475         ipv6: fix detection under mingw
62476         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62477         in6_addr.
62479 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62481         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62482         that strtod() works when cross-compiling to a glibc version known
62483         to work.
62485 2010-06-15  Bruno Haible  <bruno@clisp.org>
62487         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62489 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62491         select: Correct timeout.
62492         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62494 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62496         git-version-gen: init shell var to avoid env var influence
62497         * build-aux/git-version-gen (v): Init shell var to empty.
62499 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62501         priv-set: Don't assume that priv.h exists merely because getppriv does.
62502         See Jan Andersen's bug report about AIX 5L in
62503         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62504         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62505         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62506         * lib/priv-set.h: Likewise.
62507         * tests/test-priv-set.c: Likewise.
62509 2010-06-13  Bruno Haible  <bruno@clisp.org>
62511         relocatable: Make it easier to test whether to install wrappers.
62512         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62513         RELOCATABLE_VIA_WRAPPER.
62515 2010-06-13  Bruno Haible  <bruno@clisp.org>
62517         gnulib-tool: Display specified modules and dependencies differently.
62518         * gnulib-tool (func_show_module_list): New function.
62519         (func_import, func_create_testdir): Invoke it.
62520         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62522 2010-06-13  Bruno Haible  <bruno@clisp.org>
62524         gnulib-tool: Align code of func_import and func_create_testdir.
62525         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62526         specified_modules.
62528 2010-06-12  Jim Meyering  <meyering@redhat.com>
62530         test-inttostr: avoid spurious failure on Solaris 9
62531         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62532         to accept "%ju".  Reported by Bruno Haible.
62534 2010-06-11  Jim Meyering  <meyering@redhat.com>
62536         test-sys_socket: mark variables as used more readably
62537         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62538         as "used" explicitly via (void) statement casts.  This is more
62539         readable than using them in an artificial return expression.
62540         Suggestion from Bruno Haible.
62542 2010-06-11  Bruno Haible  <bruno@clisp.org>
62544         Avoid some more warnings from "gcc -Wwrite-strings".
62545         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62546         to 'const char *'.
62547         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62548         * tests/test-c-strcasestr.c (main): Likewise.
62549         * tests/test-mbscasestr1.c (main): Likewise.
62550         * tests/test-mbscasestr2.c (main): Likewise.
62551         * tests/test-memmem.c (main): Likewise.
62552         * tests/test-strstr.c (main): Likewise.
62553         * tests/test-strcasestr.c (main): Likewise.
62555 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62557         init.sh: change framework_failure_ to fail with status 99, not 1
62558         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62559         automake's parallel-tests rule that this is an unexpected failure,
62560         even if the test is listed in XFAIL_TESTS.
62562 2010-06-11  Jim Meyering  <meyering@redhat.com>
62564         test-inttostr: avoid warnings about 4-6KB literal strings
62565         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62566         Include "macros.h", for its definition of ASSERT.
62567         (CK): s/assert/ASSERT/
62568         * modules/inttostr-tests (Files): Add macros.h.
62570         init.sh: don't use $ME_ or skip_ before they are defined
62571         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62572         their first uses.  Also hoist their companions: warn_, fail_,
62573         framework_failure_, $stderr_fileno.  Prompted by a patch from
62574         Stefano Lattarini.
62576         test-sys_socket: avoid set-but-not-used warnings from gcc
62577         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62578         avoid warning about set-but-not-used variables.
62580         test-xvasprintf: avoid 'const' discard warnings
62581         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62582         "const" when assigning from literal strings.
62583         (test_xasprintf): Add "void" in function argument list to placate
62584         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62586         tests: avoid compilation warnings in argmatch and exclude tests...
62587         in packages that define ARGMATCH_DIE_DECL, like coreutils.
62588         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
62589         Since it always exits, declare with the "noreturn" attribute.
62590         * tests/test-argmatch.c: Likewise.
62592         tests: avoid 'const' discard warnings in mbsstr tests
62593         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
62594         * tests/test-mbsstr2.c (main): Likewise.
62596         test-verify: avoid warning from gcc's -Wmissing-declarations
62597         * tests/test-verify.c (function): Declare to be static.
62599         test-inttostr.c: include <string.h> for use of strcmp
62600         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
62602         test-linkat: avoid failed assertion on "other" architectures
62603         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
62604         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
62605         sparc: https://bugs.launchpad.net/bugs/591968
62607 2010-06-11  Jim Meyering  <meyering@redhat.com>
62609         printf.m4: avoid autoconf's "Expanded Before Required" warning
62610         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
62611         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
62612         autoconf warning.
62614 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
62616         Replacement header templates are now named with ".in", not "_".
62617         * doc/gnulib-intro.texi: Correct.
62619 2010-06-10  Jim Meyering  <meyering@redhat.com>
62621         inttostr-tests: depend on snprintf, not snprintf-posix
62622         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
62623         snprintf-posix, to avoid this aclocal failure:
62624           missing file gnulib-tests/vasnprintf.c
62625           configure.ac:45: error: expected source file, required through \
62626           AC_LIBSOURCES, not found
62628 2010-06-10  Jim Meyering  <meyering@redhat.com>
62630         inttostr: add a new function, inttostr, and tests
62631         The namesake function was not available.  The existence of the
62632         template file, inttostr.c makes its addition nontrivial.
62633         * lib/anytostr.c: Rename from inttostr.c.
62634         (anytostr): Rename from inttostr.
62635         * lib/inttostr.c: New file.
62636         * modules/inttostr (Files): Add anytostr.c.
62637         (Makefile.am): Set lib_SOURCES instead of ...
62638         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
62639         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
62640         * lib/offtostr.c: Likewise.
62641         * lib/uinttostr.c: Likewise.
62642         * lib/umaxtostr.c: Likewise.
62643         * modules/inttostr-tests: New file.
62644         * tests/test-inttostr.c: New file.  Test these functions.
62646 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
62647             Bruno Haible  <bruno@clisp.org>
62649         Add "Extending Gnulib" chapter to manual.
62650         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
62651         chapter.
62652         (Extending Gnulib): New chapter.
62653         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
62654         chapter.
62656 2010-06-09  Bruno Haible  <bruno@clisp.org>
62658         Avoid relocwrapper link errors due to gnulib replacement functions.
62659         * lib/areadlink.c: Use the system's malloc, realloc functions.
62660         (areadlink): Set errno to ENOMEM explicitly.
62661         * modules/areadlink (Depends-on): Remove malloc-posix.
62662         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62664 2010-06-09  Bruno Haible  <bruno@clisp.org>
62666         Avoid relocwrapper link errors due to gnulib replacement functions.
62667         * lib/canonicalize-lgpl.c: Use the system's malloc function.
62668         * lib/malloca.c: Likewise.
62669         * lib/relocatable.c: Likewise.
62670         * lib/progreloc.c: Use the system's malloc, sprintf functions.
62671         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
62672         * lib/setenv.c: Use the system's malloc, realloc functions.
62673         * lib/strerror.c: Use the system's sprintf function.
62674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62676 2010-06-04  Bruno Haible  <bruno@clisp.org>
62678         Prefer documented low-level autoconf macro names.
62679         * m4/lib-link.m4: Use m4_translit instead of translit.
62680         * m4/environ.m4: Likewise.
62681         * m4/mathfunc.m4: Likewise.
62682         * m4/onceonly.m4: Likewise.
62683         * m4/stdint.m4: Likewise.
62684         Suggested by Eric Blake.
62686 2010-06-04  Martin Lambers  <marlam@marlam.de>
62687             Bruno Haible  <bruno@clisp.org>
62689         havelib: Allow library names with '+' characters.
62690         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62691         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
62693 2010-06-09  Bruno Haible  <bruno@clisp.org>
62695         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
62696         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
62697         realloc failed.
62699 2010-06-08  Peter Simons  <simons@cryp.to>
62701         maint.mk: make the news-check rule more configurable
62702         * top/maint.mk (news-check-lines-spec): New variable.
62703         (news-check): Use "sed -n 1,10p" in place of "head".
62705 2010-06-07  Jim Meyering  <meyering@redhat.com>
62707         do-release-commit-and-tag: fix typo in --help
62708         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
62710         regex: avoid new dead-code warning with gcc-4.6.0
62711         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
62712         if-block containing a while-loop.  It's been unused for at least
62713         5 years.
62715 2010-06-05  Bruno Haible  <bruno@clisp.org>
62717         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
62718         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
62720 2010-06-04  Bruno Haible  <bruno@clisp.org>
62722         Update to GNU gettext 0.18.1.
62723         * modules/gettext (configure.ac): Require gettext infrastructure from
62724         version 0.18.1.
62726 2010-06-03  Bruno Haible  <bruno@clisp.org>
62728         Don't use AC_LIBOBJ with file names in subdirectories.
62729         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
62730         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
62731         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
62732         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
62733         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
62734         gl_LIBUNISTRING_LIBSOURCE.
62735         (Makefile.am): Augment lib_SOURCES here, conditionally.
62736         * NEWS: Drop requirement for Automake option 'subdir-objects'.
62738 2010-06-03  Bruno Haible  <bruno@clisp.org>
62740         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
62741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
62742         expansion does not end with a newline.
62743         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
62744         unnecessary newline.
62746 2010-06-03  Bruno Haible  <bruno@clisp.org>
62748         Reduce dependencies.
62749         * tests/test-quotearg.h: New file, extracted from
62750         tests/test-quotearg.c.
62751         * tests/test-quotearg-simple.c: New file, extracted from
62752         tests/test-quotearg.c.
62753         * tests/test-quotearg.c: Don't include <ctype.h>.
62754         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
62755         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
62756         use_quote_double_quotes, use_quotearg_colon): Moved to
62757         tests/test-quotearg.h.
62758         (results_g, flag_results, custom_quotes, custom_results): Moved
62759         to tests/test-quotearg-simple.c.
62760         (main): Moved the part that does not depend on gettext to
62761         tests/test-quotearg-simple.c. Return 77 if the test cannot be
62762         performed.
62763         * modules/quotearg-simple: New file.
62764         * modules/quotearg-simple-tests: New file.
62765         * modules/quotearg (Depends-on): Add quotearg-simple.
62766         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
62767         (Files): Add tests/test-quotearg.h.
62768         Reported by Paolo Bonzini.
62770 2010-06-03  Bruno Haible  <bruno@clisp.org>
62772         Reduce dependencies.
62773         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
62775 2010-06-03  Bruno Haible  <bruno@clisp.org>
62777         time: Undefine more broken macros.
62778         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
62779         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
62780         Reported by Eric Blake.
62782 2010-06-03  Bruno Haible  <bruno@clisp.org>
62784         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
62785         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
62786         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
62787         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
62788         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
62789         Reported by Ludovic Courtès <ludo@gnu.org>.
62791 2010-06-02  Eric Blake  <eblake@redhat.com>
62793         time: work with mingw + pthreads-win32 library
62794         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
62795         if timespec is defined only in pthread.h.
62796         * modules/time (Makefile.am): Substitute it.
62797         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
62798         <pthread.h>, when needed.
62799         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
62800         from the library.
62802 2010-05-31  Bruno Haible  <bruno@clisp.org>
62804         Avoid expanding two macros in the wrong order.
62805         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
62806         gl_LIBUNISTRING if it is defined.
62807         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
62808         autoconf >= 2.64.
62809         Reported by Ludovic Courtès <ludo@gnu.org>.
62811 2010-05-27  Jim Meyering  <meyering@redhat.com>
62813         maint.mk: also prohibit "#undef" of always-defined symbols
62814         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
62815         Allow more than one space before the symbol name.
62816         (sc_prohibit_always-defined_macros): Use grep's -E, now that
62817         the regexp uses alternation.
62819 2010-05-26  Eric Blake  <eblake@redhat.com>
62821         maint.mk: avoid echo -e
62822         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
62823         Convert all uses of echo -* to printf.
62824         Reported by Matthias Bolte.
62826 2010-05-25  Bruno Haible  <bruno@clisp.org>
62828         Update to GNU gettext 0.18, part 2.
62829         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
62830         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
62832 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62834         Add missing include in test-pwrite.c.
62835         * tests/test-pwrite.c: Include string.h, for strcmp.
62837 2010-05-24  Bruno Haible  <bruno@clisp.org>
62839         * NEWS: Mention requirement for Automake option 'subdir-objects'.
62841 2010-05-24  Bruno Haible  <bruno@clisp.org>
62843         Don't use conversion with transliteration in u{8,16,32}_strcoll.
62844         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
62845         iconveh_error argument.
62846         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
62847         U_STRCONV_TO_LOCALE.
62848         * lib/unistr/u16-strcoll.c: Likewise.
62849         * lib/unistr/u32-strcoll.c: Likewise.
62850         * modules/unistr/u8-strcoll (Depends-on): Add
62851         uniconv/u8-strconv-to-enc, localcharset. Remove
62852         uniconv/u8-strconv-to-locale.
62853         (configure.ac): Bump version number.
62854         * modules/unistr/u16-strcoll (Depends-on): Add
62855         uniconv/u16-strconv-to-enc, localcharset. Remove
62856         uniconv/u16-strconv-to-locale.
62857         (configure.ac): Bump version number.
62858         * modules/unistr/u32-strcoll (Depends-on): Add
62859         uniconv/u32-strconv-to-enc, localcharset. Remove
62860         uniconv/u32-strconv-to-locale.
62861         (configure.ac): Bump version number.
62863 2010-05-24  Bruno Haible  <bruno@clisp.org>
62865         Avoid a test failure on NetBSD 5.0.
62866         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
62867         an iconv() bug.
62869 2010-05-24  Bruno Haible  <bruno@clisp.org>
62871         Adjust #include directive style.
62872         * modules/regex (Includes): Recommend to write <regex.h>.
62874 2010-05-24  Bruno Haible  <bruno@clisp.org>
62876         regex: Don't require alloca.
62877         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
62878         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
62879         only inside if (0).
62881 2010-05-23  Jim Meyering  <meyering@redhat.com>
62883         test-renameat.c: include <sys/stat.h>
62884         * tests/test-renameat.c: Include <sys/stat.h>; required for
62885         definition of S_IS* macros.
62887 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
62889         Update maintainer documentation for 'relocatable-prog' module.
62890         * doc/relocatable-maint.texi: Update.
62891         Comments by Bruno Haible.
62893 2010-05-23  Bruno Haible  <bruno@clisp.org>
62895         git-merge-changelog: Enable --split-merged-entry by default.
62896         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
62897         (usage): Don't mention this option any more.
62898         Reported by Ralf Wildenhues.
62900 2010-05-23  Jim Meyering  <meyering@redhat.com>
62902         test-pwrite: do not leave behind a test file named "out"
62903         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
62904         The trivial-looking use of init.sh is really necessary.
62905         It ensures that the temporary file, "out", is created in
62906         a temporary directory, and removed upon termination.
62907         * tests/test-pwrite.sh: Re-add file.
62908         * modules/pwrite-tests: Reference it.
62910 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62912         Fix output redirection buglet in init.sh.
62913         * tests/init.sh: Fix redirection of stderr.
62915 2010-05-20  Simon Josefsson  <simon@josefsson.org>
62917         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
62919 2010-05-17  Simon Josefsson  <simon@josefsson.org>
62921         * modules/valgrind-tests: New file.
62922         * m4/valgrind-tests.m4: New file.
62923         * doc/valgrind-tests.texi: New file.
62924         * doc/gnulib.texi (Running self-tests under valgrind): New
62925         section.
62927 2010-05-19  Bruno Haible  <bruno@clisp.org>
62929         Clean up dead code in recent commit.
62930         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
62931         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
62932         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
62933         Suggested by Paolo Bonzini.
62935 2010-05-19  Bruno Haible  <bruno@clisp.org>
62937         Avoid valgrind error reports from libunistring.
62938         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
62939         * modules/libunistring (Files): Add it.
62940         * modules/libunistring-optional (Files): Likewise.
62942 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
62943             Bruno Haible  <bruno@clisp.org>
62945         New module 'libunistring-optional'.
62946         * modules/libunistring-optional: New file.
62947         * m4/libunistring-base.m4: New file.
62948         * m4/libunistring-optional.m4: New file.
62949         * lib/unicase.in.h: Renamed from lib/unicase.h.
62950         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
62951         * lib/unictype.in.h: Renamed from lib/unictype.h.
62952         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
62953         * lib/uniname.in.h: Renamed from lib/uniname.h.
62954         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
62955         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
62956         * lib/unistr.in.h: Renamed from lib/unistr.h.
62957         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
62958         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
62959         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
62960         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
62961         gl_LIBUNISTRING. If the library was found, determine the installed
62962         version and set LIBUNISTRING_VERSION.
62963         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
62964         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
62965         handle a configuration option --with-included-libunistring.
62966         * modules/libunistring (Files): Add m4/absolute-header.m4.
62967         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
62968         Add m4/libunistring-base.m4.
62969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62970         (Makefile.am): Build unicase.h from unicase.in.h.
62971         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
62972         Add m4/libunistring-base.m4.
62973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62974         (Makefile.am): Build uniconv.h from uniconv.in.h.
62975         * modules/unictype/base (Files): Use unictype.in.h instead of
62976         unictype.h. Add m4/libunistring-base.m4.
62977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62978         (Makefile.am): Build unictype.h from unictype.in.h.
62979         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
62980         Add m4/libunistring-base.m4.
62981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62982         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
62983         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
62984         Add m4/libunistring-base.m4.
62985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62986         (Makefile.am): Build uniname.h from uniname.in.h.
62987         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
62988         Add m4/libunistring-base.m4.
62989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62990         (Makefile.am): Build uninorm.h from uninorm.in.h.
62991         * modules/unistdio/base (Files): Use unistdio.in.h instead of
62992         unistdio.h. Add m4/libunistring-base.m4.
62993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62994         (Makefile.am): Build unistdio.h from unistdio.in.h.
62995         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
62996         Add m4/libunistring-base.m4.
62997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
62998         (Makefile.am): Build unistr.h from unistr.in.h.
62999         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63000         Add m4/libunistring-base.m4.
63001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63002         (Makefile.am): Build unitypes.h from unitypes.in.h.
63003         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63004         Add m4/libunistring-base.m4.
63005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63006         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63007         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63008         uniwidth.h. Add m4/libunistring-base.m4.
63009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63010         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63011         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63012         instead of augmenting lib_SOURCES.
63013         * modules/unicase/empty-suffix-context: Likewise.
63014         * modules/unicase/locale-language: Likewise.
63015         * modules/unicase/tolower: Likewise.
63016         * modules/unicase/totitle: Likewise.
63017         * modules/unicase/toupper: Likewise.
63018         * modules/unicase/u8-casecmp: Likewise.
63019         * modules/unicase/u8-casecoll: Likewise.
63020         * modules/unicase/u8-casefold: Likewise.
63021         * modules/unicase/u8-casexfrm: Likewise.
63022         * modules/unicase/u8-ct-casefold: Likewise.
63023         * modules/unicase/u8-ct-tolower: Likewise.
63024         * modules/unicase/u8-ct-totitle: Likewise.
63025         * modules/unicase/u8-ct-toupper: Likewise.
63026         * modules/unicase/u8-is-cased: Likewise.
63027         * modules/unicase/u8-is-casefolded: Likewise.
63028         * modules/unicase/u8-is-lowercase: Likewise.
63029         * modules/unicase/u8-is-titlecase: Likewise.
63030         * modules/unicase/u8-is-uppercase: Likewise.
63031         * modules/unicase/u8-prefix-context: Likewise.
63032         * modules/unicase/u8-suffix-context: Likewise.
63033         * modules/unicase/u8-tolower: Likewise.
63034         * modules/unicase/u8-totitle: Likewise.
63035         * modules/unicase/u8-toupper: Likewise.
63036         * modules/unicase/u16-casecmp: Likewise.
63037         * modules/unicase/u16-casecoll: Likewise.
63038         * modules/unicase/u16-casefold: Likewise.
63039         * modules/unicase/u16-casexfrm: Likewise.
63040         * modules/unicase/u16-ct-casefold: Likewise.
63041         * modules/unicase/u16-ct-tolower: Likewise.
63042         * modules/unicase/u16-ct-totitle: Likewise.
63043         * modules/unicase/u16-ct-toupper: Likewise.
63044         * modules/unicase/u16-is-cased: Likewise.
63045         * modules/unicase/u16-is-casefolded: Likewise.
63046         * modules/unicase/u16-is-lowercase: Likewise.
63047         * modules/unicase/u16-is-titlecase: Likewise.
63048         * modules/unicase/u16-is-uppercase: Likewise.
63049         * modules/unicase/u16-prefix-context: Likewise.
63050         * modules/unicase/u16-suffix-context: Likewise.
63051         * modules/unicase/u16-tolower: Likewise.
63052         * modules/unicase/u16-totitle: Likewise.
63053         * modules/unicase/u16-toupper: Likewise.
63054         * modules/unicase/u32-casecmp: Likewise.
63055         * modules/unicase/u32-casecoll: Likewise.
63056         * modules/unicase/u32-casefold: Likewise.
63057         * modules/unicase/u32-casexfrm: Likewise.
63058         * modules/unicase/u32-ct-casefold: Likewise.
63059         * modules/unicase/u32-ct-tolower: Likewise.
63060         * modules/unicase/u32-ct-totitle: Likewise.
63061         * modules/unicase/u32-ct-toupper: Likewise.
63062         * modules/unicase/u32-is-cased: Likewise.
63063         * modules/unicase/u32-is-casefolded: Likewise.
63064         * modules/unicase/u32-is-lowercase: Likewise.
63065         * modules/unicase/u32-is-titlecase: Likewise.
63066         * modules/unicase/u32-is-uppercase: Likewise.
63067         * modules/unicase/u32-prefix-context: Likewise.
63068         * modules/unicase/u32-suffix-context: Likewise.
63069         * modules/unicase/u32-tolower: Likewise.
63070         * modules/unicase/u32-totitle: Likewise.
63071         * modules/unicase/u32-toupper: Likewise.
63072         * modules/unicase/ulc-casecmp: Likewise.
63073         * modules/unicase/ulc-casecoll: Likewise.
63074         * modules/unicase/ulc-casexfrm: Likewise.
63075         * modules/uniconv/u8-conv-from-enc: Likewise.
63076         * modules/uniconv/u8-conv-to-enc: Likewise.
63077         * modules/uniconv/u8-strconv-from-enc: Likewise.
63078         * modules/uniconv/u8-strconv-from-locale: Likewise.
63079         * modules/uniconv/u8-strconv-to-enc: Likewise.
63080         * modules/uniconv/u8-strconv-to-locale: Likewise.
63081         * modules/uniconv/u16-conv-from-enc: Likewise.
63082         * modules/uniconv/u16-conv-to-enc: Likewise.
63083         * modules/uniconv/u16-strconv-from-enc: Likewise.
63084         * modules/uniconv/u16-strconv-from-locale: Likewise.
63085         * modules/uniconv/u16-strconv-to-enc: Likewise.
63086         * modules/uniconv/u16-strconv-to-locale: Likewise.
63087         * modules/uniconv/u32-conv-from-enc: Likewise.
63088         * modules/uniconv/u32-conv-to-enc: Likewise.
63089         * modules/uniconv/u32-strconv-from-enc: Likewise.
63090         * modules/uniconv/u32-strconv-from-locale: Likewise.
63091         * modules/uniconv/u32-strconv-to-enc: Likewise.
63092         * modules/uniconv/u32-strconv-to-locale: Likewise.
63093         * modules/unictype/bidicategory-byname: Likewise.
63094         * modules/unictype/bidicategory-name: Likewise.
63095         * modules/unictype/bidicategory-of: Likewise.
63096         * modules/unictype/bidicategory-test: Likewise.
63097         * modules/unictype/block-list: Likewise.
63098         * modules/unictype/block-test: Likewise.
63099         * modules/unictype/category-C: Likewise.
63100         * modules/unictype/category-Cc: Likewise.
63101         * modules/unictype/category-Cf: Likewise.
63102         * modules/unictype/category-Cn: Likewise.
63103         * modules/unictype/category-Co: Likewise.
63104         * modules/unictype/category-Cs: Likewise.
63105         * modules/unictype/category-L: Likewise.
63106         * modules/unictype/category-Ll: Likewise.
63107         * modules/unictype/category-Lm: Likewise.
63108         * modules/unictype/category-Lo: Likewise.
63109         * modules/unictype/category-Lt: Likewise.
63110         * modules/unictype/category-Lu: Likewise.
63111         * modules/unictype/category-M: Likewise.
63112         * modules/unictype/category-Mc: Likewise.
63113         * modules/unictype/category-Me: Likewise.
63114         * modules/unictype/category-Mn: Likewise.
63115         * modules/unictype/category-N: Likewise.
63116         * modules/unictype/category-Nd: Likewise.
63117         * modules/unictype/category-Nl: Likewise.
63118         * modules/unictype/category-No: Likewise.
63119         * modules/unictype/category-P: Likewise.
63120         * modules/unictype/category-Pc: Likewise.
63121         * modules/unictype/category-Pd: Likewise.
63122         * modules/unictype/category-Pe: Likewise.
63123         * modules/unictype/category-Pf: Likewise.
63124         * modules/unictype/category-Pi: Likewise.
63125         * modules/unictype/category-Po: Likewise.
63126         * modules/unictype/category-Ps: Likewise.
63127         * modules/unictype/category-S: Likewise.
63128         * modules/unictype/category-Sc: Likewise.
63129         * modules/unictype/category-Sk: Likewise.
63130         * modules/unictype/category-Sm: Likewise.
63131         * modules/unictype/category-So: Likewise.
63132         * modules/unictype/category-Z: Likewise.
63133         * modules/unictype/category-Zl: Likewise.
63134         * modules/unictype/category-Zp: Likewise.
63135         * modules/unictype/category-Zs: Likewise.
63136         * modules/unictype/category-and: Likewise.
63137         * modules/unictype/category-and-not: Likewise.
63138         * modules/unictype/category-byname: Likewise.
63139         * modules/unictype/category-name: Likewise.
63140         * modules/unictype/category-none: Likewise.
63141         * modules/unictype/category-of: Likewise.
63142         * modules/unictype/category-or: Likewise.
63143         * modules/unictype/category-test: Likewise.
63144         * modules/unictype/combining-class: Likewise.
63145         * modules/unictype/ctype-alnum: Likewise.
63146         * modules/unictype/ctype-alpha: Likewise.
63147         * modules/unictype/ctype-blank: Likewise.
63148         * modules/unictype/ctype-cntrl: Likewise.
63149         * modules/unictype/ctype-digit: Likewise.
63150         * modules/unictype/ctype-graph: Likewise.
63151         * modules/unictype/ctype-lower: Likewise.
63152         * modules/unictype/ctype-print: Likewise.
63153         * modules/unictype/ctype-punct: Likewise.
63154         * modules/unictype/ctype-space: Likewise.
63155         * modules/unictype/ctype-upper: Likewise.
63156         * modules/unictype/ctype-xdigit: Likewise.
63157         * modules/unictype/decimal-digit: Likewise.
63158         * modules/unictype/digit: Likewise.
63159         * modules/unictype/mirror: Likewise.
63160         * modules/unictype/numeric: Likewise.
63161         * modules/unictype/property-alphabetic: Likewise.
63162         * modules/unictype/property-ascii-hex-digit: Likewise.
63163         * modules/unictype/property-bidi-arabic-digit: Likewise.
63164         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63165         * modules/unictype/property-bidi-block-separator: Likewise.
63166         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63167         * modules/unictype/property-bidi-common-separator: Likewise.
63168         * modules/unictype/property-bidi-control: Likewise.
63169         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63170         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63171         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63172         * modules/unictype/property-bidi-european-digit: Likewise.
63173         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63174         * modules/unictype/property-bidi-left-to-right: Likewise.
63175         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63176         * modules/unictype/property-bidi-other-neutral: Likewise.
63177         * modules/unictype/property-bidi-pdf: Likewise.
63178         * modules/unictype/property-bidi-segment-separator: Likewise.
63179         * modules/unictype/property-bidi-whitespace: Likewise.
63180         * modules/unictype/property-byname: Likewise.
63181         * modules/unictype/property-combining: Likewise.
63182         * modules/unictype/property-composite: Likewise.
63183         * modules/unictype/property-currency-symbol: Likewise.
63184         * modules/unictype/property-dash: Likewise.
63185         * modules/unictype/property-decimal-digit: Likewise.
63186         * modules/unictype/property-default-ignorable-code-point: Likewise.
63187         * modules/unictype/property-deprecated: Likewise.
63188         * modules/unictype/property-diacritic: Likewise.
63189         * modules/unictype/property-extender: Likewise.
63190         * modules/unictype/property-format-control: Likewise.
63191         * modules/unictype/property-grapheme-base: Likewise.
63192         * modules/unictype/property-grapheme-extend: Likewise.
63193         * modules/unictype/property-grapheme-link: Likewise.
63194         * modules/unictype/property-hex-digit: Likewise.
63195         * modules/unictype/property-hyphen: Likewise.
63196         * modules/unictype/property-id-continue: Likewise.
63197         * modules/unictype/property-id-start: Likewise.
63198         * modules/unictype/property-ideographic: Likewise.
63199         * modules/unictype/property-ids-binary-operator: Likewise.
63200         * modules/unictype/property-ids-trinary-operator: Likewise.
63201         * modules/unictype/property-ignorable-control: Likewise.
63202         * modules/unictype/property-iso-control: Likewise.
63203         * modules/unictype/property-join-control: Likewise.
63204         * modules/unictype/property-left-of-pair: Likewise.
63205         * modules/unictype/property-line-separator: Likewise.
63206         * modules/unictype/property-logical-order-exception: Likewise.
63207         * modules/unictype/property-lowercase: Likewise.
63208         * modules/unictype/property-math: Likewise.
63209         * modules/unictype/property-non-break: Likewise.
63210         * modules/unictype/property-not-a-character: Likewise.
63211         * modules/unictype/property-numeric: Likewise.
63212         * modules/unictype/property-other-alphabetic: Likewise.
63213         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63214         * modules/unictype/property-other-grapheme-extend: Likewise.
63215         * modules/unictype/property-other-id-continue: Likewise.
63216         * modules/unictype/property-other-id-start: Likewise.
63217         * modules/unictype/property-other-lowercase: Likewise.
63218         * modules/unictype/property-other-math: Likewise.
63219         * modules/unictype/property-other-uppercase: Likewise.
63220         * modules/unictype/property-paired-punctuation: Likewise.
63221         * modules/unictype/property-paragraph-separator: Likewise.
63222         * modules/unictype/property-pattern-syntax: Likewise.
63223         * modules/unictype/property-pattern-white-space: Likewise.
63224         * modules/unictype/property-private-use: Likewise.
63225         * modules/unictype/property-punctuation: Likewise.
63226         * modules/unictype/property-quotation-mark: Likewise.
63227         * modules/unictype/property-radical: Likewise.
63228         * modules/unictype/property-sentence-terminal: Likewise.
63229         * modules/unictype/property-soft-dotted: Likewise.
63230         * modules/unictype/property-space: Likewise.
63231         * modules/unictype/property-terminal-punctuation: Likewise.
63232         * modules/unictype/property-test: Likewise.
63233         * modules/unictype/property-titlecase: Likewise.
63234         * modules/unictype/property-unassigned-code-value: Likewise.
63235         * modules/unictype/property-unified-ideograph: Likewise.
63236         * modules/unictype/property-uppercase: Likewise.
63237         * modules/unictype/property-variation-selector: Likewise.
63238         * modules/unictype/property-white-space: Likewise.
63239         * modules/unictype/property-xid-continue: Likewise.
63240         * modules/unictype/property-xid-start: Likewise.
63241         * modules/unictype/property-zero-width: Likewise.
63242         * modules/unictype/scripts: Likewise.
63243         * modules/unictype/syntax-c-ident: Likewise.
63244         * modules/unictype/syntax-c-whitespace: Likewise.
63245         * modules/unictype/syntax-java-ident: Likewise.
63246         * modules/unictype/syntax-java-whitespace: Likewise.
63247         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63248         * modules/unilbrk/u8-width-linebreaks: Likewise.
63249         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63250         * modules/unilbrk/u16-width-linebreaks: Likewise.
63251         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63252         * modules/unilbrk/u32-width-linebreaks: Likewise.
63253         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63254         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63255         * modules/uniname/uniname: Likewise.
63256         * modules/uninorm/canonical-decomposition: Likewise.
63257         * modules/uninorm/composition: Likewise.
63258         * modules/uninorm/decomposing-form: Likewise.
63259         * modules/uninorm/decomposition: Likewise.
63260         * modules/uninorm/filter: Likewise.
63261         * modules/uninorm/nfc: Likewise.
63262         * modules/uninorm/nfd: Likewise.
63263         * modules/uninorm/nfkc: Likewise.
63264         * modules/uninorm/nfkd: Likewise.
63265         * modules/uninorm/u8-normalize: Likewise.
63266         * modules/uninorm/u8-normcmp: Likewise.
63267         * modules/uninorm/u8-normcoll: Likewise.
63268         * modules/uninorm/u8-normxfrm: Likewise.
63269         * modules/uninorm/u16-normalize: Likewise.
63270         * modules/uninorm/u16-normcmp: Likewise.
63271         * modules/uninorm/u16-normcoll: Likewise.
63272         * modules/uninorm/u16-normxfrm: Likewise.
63273         * modules/uninorm/u32-normalize: Likewise.
63274         * modules/uninorm/u32-normcmp: Likewise.
63275         * modules/uninorm/u32-normcoll: Likewise.
63276         * modules/uninorm/u32-normxfrm: Likewise.
63277         * modules/unistdio/u8-asnprintf: Likewise.
63278         * modules/unistdio/u8-asprintf: Likewise.
63279         * modules/unistdio/u8-snprintf: Likewise.
63280         * modules/unistdio/u8-sprintf: Likewise.
63281         * modules/unistdio/u8-u8-asnprintf: Likewise.
63282         * modules/unistdio/u8-u8-asprintf: Likewise.
63283         * modules/unistdio/u8-u8-snprintf: Likewise.
63284         * modules/unistdio/u8-u8-sprintf: Likewise.
63285         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63286         * modules/unistdio/u8-u8-vasprintf: Likewise.
63287         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63288         * modules/unistdio/u8-u8-vsprintf: Likewise.
63289         * modules/unistdio/u8-vasnprintf: Likewise.
63290         * modules/unistdio/u8-vasprintf: Likewise.
63291         * modules/unistdio/u8-vsnprintf: Likewise.
63292         * modules/unistdio/u8-vsprintf: Likewise.
63293         * modules/unistdio/u16-asnprintf: Likewise.
63294         * modules/unistdio/u16-asprintf: Likewise.
63295         * modules/unistdio/u16-snprintf: Likewise.
63296         * modules/unistdio/u16-sprintf: Likewise.
63297         * modules/unistdio/u16-u16-asnprintf: Likewise.
63298         * modules/unistdio/u16-u16-asprintf: Likewise.
63299         * modules/unistdio/u16-u16-snprintf: Likewise.
63300         * modules/unistdio/u16-u16-sprintf: Likewise.
63301         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63302         * modules/unistdio/u16-u16-vasprintf: Likewise.
63303         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63304         * modules/unistdio/u16-u16-vsprintf: Likewise.
63305         * modules/unistdio/u16-vasnprintf: Likewise.
63306         * modules/unistdio/u16-vasprintf: Likewise.
63307         * modules/unistdio/u16-vsnprintf: Likewise.
63308         * modules/unistdio/u16-vsprintf: Likewise.
63309         * modules/unistdio/u32-asnprintf: Likewise.
63310         * modules/unistdio/u32-asprintf: Likewise.
63311         * modules/unistdio/u32-snprintf: Likewise.
63312         * modules/unistdio/u32-sprintf: Likewise.
63313         * modules/unistdio/u32-u32-asnprintf: Likewise.
63314         * modules/unistdio/u32-u32-asprintf: Likewise.
63315         * modules/unistdio/u32-u32-snprintf: Likewise.
63316         * modules/unistdio/u32-u32-sprintf: Likewise.
63317         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63318         * modules/unistdio/u32-u32-vasprintf: Likewise.
63319         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63320         * modules/unistdio/u32-u32-vsprintf: Likewise.
63321         * modules/unistdio/u32-vasnprintf: Likewise.
63322         * modules/unistdio/u32-vasprintf: Likewise.
63323         * modules/unistdio/u32-vsnprintf: Likewise.
63324         * modules/unistdio/u32-vsprintf: Likewise.
63325         * modules/unistdio/ulc-asnprintf: Likewise.
63326         * modules/unistdio/ulc-asprintf: Likewise.
63327         * modules/unistdio/ulc-fprintf: Likewise.
63328         * modules/unistdio/ulc-snprintf: Likewise.
63329         * modules/unistdio/ulc-sprintf: Likewise.
63330         * modules/unistdio/ulc-vasnprintf: Likewise.
63331         * modules/unistdio/ulc-vasprintf: Likewise.
63332         * modules/unistdio/ulc-vfprintf: Likewise.
63333         * modules/unistdio/ulc-vsnprintf: Likewise.
63334         * modules/unistdio/ulc-vsprintf: Likewise.
63335         * modules/unistr/u8-check: Likewise.
63336         * modules/unistr/u8-chr: Likewise.
63337         * modules/unistr/u8-cmp: Likewise.
63338         * modules/unistr/u8-cmp2: Likewise.
63339         * modules/unistr/u8-cpy: Likewise.
63340         * modules/unistr/u8-cpy-alloc: Likewise.
63341         * modules/unistr/u8-endswith: Likewise.
63342         * modules/unistr/u8-mblen: Likewise.
63343         * modules/unistr/u8-mbsnlen: Likewise.
63344         * modules/unistr/u8-mbtouc: Likewise.
63345         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63346         * modules/unistr/u8-mbtoucr: Likewise.
63347         * modules/unistr/u8-move: Likewise.
63348         * modules/unistr/u8-next: Likewise.
63349         * modules/unistr/u8-prev: Likewise.
63350         * modules/unistr/u8-set: Likewise.
63351         * modules/unistr/u8-startswith: Likewise.
63352         * modules/unistr/u8-stpcpy: Likewise.
63353         * modules/unistr/u8-stpncpy: Likewise.
63354         * modules/unistr/u8-strcat: Likewise.
63355         * modules/unistr/u8-strchr: Likewise.
63356         * modules/unistr/u8-strcmp: Likewise.
63357         * modules/unistr/u8-strcoll: Likewise.
63358         * modules/unistr/u8-strcpy: Likewise.
63359         * modules/unistr/u8-strcspn: Likewise.
63360         * modules/unistr/u8-strdup: Likewise.
63361         * modules/unistr/u8-strlen: Likewise.
63362         * modules/unistr/u8-strmblen: Likewise.
63363         * modules/unistr/u8-strmbtouc: Likewise.
63364         * modules/unistr/u8-strncat: Likewise.
63365         * modules/unistr/u8-strncmp: Likewise.
63366         * modules/unistr/u8-strncpy: Likewise.
63367         * modules/unistr/u8-strnlen: Likewise.
63368         * modules/unistr/u8-strpbrk: Likewise.
63369         * modules/unistr/u8-strrchr: Likewise.
63370         * modules/unistr/u8-strspn: Likewise.
63371         * modules/unistr/u8-strstr: Likewise.
63372         * modules/unistr/u8-strtok: Likewise.
63373         * modules/unistr/u8-to-u16: Likewise.
63374         * modules/unistr/u8-to-u32: Likewise.
63375         * modules/unistr/u8-uctomb: Likewise.
63376         * modules/unistr/u16-check: Likewise.
63377         * modules/unistr/u16-chr: Likewise.
63378         * modules/unistr/u16-cmp: Likewise.
63379         * modules/unistr/u16-cmp2: Likewise.
63380         * modules/unistr/u16-cpy: Likewise.
63381         * modules/unistr/u16-cpy-alloc: Likewise.
63382         * modules/unistr/u16-endswith: Likewise.
63383         * modules/unistr/u16-mblen: Likewise.
63384         * modules/unistr/u16-mbsnlen: Likewise.
63385         * modules/unistr/u16-mbtouc: Likewise.
63386         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63387         * modules/unistr/u16-mbtoucr: Likewise.
63388         * modules/unistr/u16-move: Likewise.
63389         * modules/unistr/u16-next: Likewise.
63390         * modules/unistr/u16-prev: Likewise.
63391         * modules/unistr/u16-set: Likewise.
63392         * modules/unistr/u16-startswith: Likewise.
63393         * modules/unistr/u16-stpcpy: Likewise.
63394         * modules/unistr/u16-stpncpy: Likewise.
63395         * modules/unistr/u16-strcat: Likewise.
63396         * modules/unistr/u16-strchr: Likewise.
63397         * modules/unistr/u16-strcmp: Likewise.
63398         * modules/unistr/u16-strcoll: Likewise.
63399         * modules/unistr/u16-strcpy: Likewise.
63400         * modules/unistr/u16-strcspn: Likewise.
63401         * modules/unistr/u16-strdup: Likewise.
63402         * modules/unistr/u16-strlen: Likewise.
63403         * modules/unistr/u16-strmblen: Likewise.
63404         * modules/unistr/u16-strmbtouc: Likewise.
63405         * modules/unistr/u16-strncat: Likewise.
63406         * modules/unistr/u16-strncmp: Likewise.
63407         * modules/unistr/u16-strncpy: Likewise.
63408         * modules/unistr/u16-strnlen: Likewise.
63409         * modules/unistr/u16-strpbrk: Likewise.
63410         * modules/unistr/u16-strrchr: Likewise.
63411         * modules/unistr/u16-strspn: Likewise.
63412         * modules/unistr/u16-strstr: Likewise.
63413         * modules/unistr/u16-strtok: Likewise.
63414         * modules/unistr/u16-to-u32: Likewise.
63415         * modules/unistr/u16-to-u8: Likewise.
63416         * modules/unistr/u16-uctomb: Likewise.
63417         * modules/unistr/u32-check: Likewise.
63418         * modules/unistr/u32-chr: Likewise.
63419         * modules/unistr/u32-cmp: Likewise.
63420         * modules/unistr/u32-cmp2: Likewise.
63421         * modules/unistr/u32-cpy: Likewise.
63422         * modules/unistr/u32-cpy-alloc: Likewise.
63423         * modules/unistr/u32-endswith: Likewise.
63424         * modules/unistr/u32-mblen: Likewise.
63425         * modules/unistr/u32-mbsnlen: Likewise.
63426         * modules/unistr/u32-mbtouc: Likewise.
63427         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63428         * modules/unistr/u32-mbtoucr: Likewise.
63429         * modules/unistr/u32-move: Likewise.
63430         * modules/unistr/u32-next: Likewise.
63431         * modules/unistr/u32-prev: Likewise.
63432         * modules/unistr/u32-set: Likewise.
63433         * modules/unistr/u32-startswith: Likewise.
63434         * modules/unistr/u32-stpcpy: Likewise.
63435         * modules/unistr/u32-stpncpy: Likewise.
63436         * modules/unistr/u32-strcat: Likewise.
63437         * modules/unistr/u32-strchr: Likewise.
63438         * modules/unistr/u32-strcmp: Likewise.
63439         * modules/unistr/u32-strcoll: Likewise.
63440         * modules/unistr/u32-strcpy: Likewise.
63441         * modules/unistr/u32-strcspn: Likewise.
63442         * modules/unistr/u32-strdup: Likewise.
63443         * modules/unistr/u32-strlen: Likewise.
63444         * modules/unistr/u32-strmblen: Likewise.
63445         * modules/unistr/u32-strmbtouc: Likewise.
63446         * modules/unistr/u32-strncat: Likewise.
63447         * modules/unistr/u32-strncmp: Likewise.
63448         * modules/unistr/u32-strncpy: Likewise.
63449         * modules/unistr/u32-strnlen: Likewise.
63450         * modules/unistr/u32-strpbrk: Likewise.
63451         * modules/unistr/u32-strrchr: Likewise.
63452         * modules/unistr/u32-strspn: Likewise.
63453         * modules/unistr/u32-strstr: Likewise.
63454         * modules/unistr/u32-strtok: Likewise.
63455         * modules/unistr/u32-to-u16: Likewise.
63456         * modules/unistr/u32-to-u8: Likewise.
63457         * modules/unistr/u32-uctomb: Likewise.
63458         * modules/uniwbrk/u8-wordbreaks: Likewise.
63459         * modules/uniwbrk/u16-wordbreaks: Likewise.
63460         * modules/uniwbrk/u32-wordbreaks: Likewise.
63461         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63462         * modules/uniwbrk/wordbreak-property: Likewise.
63463         * modules/uniwidth/u8-strwidth: Likewise.
63464         * modules/uniwidth/u8-width: Likewise.
63465         * modules/uniwidth/u16-strwidth: Likewise.
63466         * modules/uniwidth/u16-width: Likewise.
63467         * modules/uniwidth/u32-strwidth: Likewise.
63468         * modules/uniwidth/u32-width: Likewise.
63469         * modules/uniwidth/width: Likewise.
63470         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63471         with $(LIBUNISTRING).
63472         * modules/unicase/ignorable-tests: Likewise.
63473         * modules/unicase/locale-language-tests: Likewise.
63474         * modules/unicase/tolower-tests: Likewise.
63475         * modules/unicase/totitle-tests: Likewise.
63476         * modules/unicase/toupper-tests: Likewise.
63477         * modules/unicase/u8-casecmp-tests: Likewise.
63478         * modules/unicase/u8-casecoll-tests: Likewise.
63479         * modules/unicase/u8-casefold-tests: Likewise.
63480         * modules/unicase/u8-is-cased-tests: Likewise.
63481         * modules/unicase/u8-is-casefolded-tests: Likewise.
63482         * modules/unicase/u8-is-lowercase-tests: Likewise.
63483         * modules/unicase/u8-is-titlecase-tests: Likewise.
63484         * modules/unicase/u8-is-uppercase-tests: Likewise.
63485         * modules/unicase/u8-tolower-tests: Likewise.
63486         * modules/unicase/u8-totitle-tests: Likewise.
63487         * modules/unicase/u8-toupper-tests: Likewise.
63488         * modules/unicase/u16-casecmp-tests: Likewise.
63489         * modules/unicase/u16-casecoll-tests: Likewise.
63490         * modules/unicase/u16-casefold-tests: Likewise.
63491         * modules/unicase/u16-is-cased-tests: Likewise.
63492         * modules/unicase/u16-is-casefolded-tests: Likewise.
63493         * modules/unicase/u16-is-lowercase-tests: Likewise.
63494         * modules/unicase/u16-is-titlecase-tests: Likewise.
63495         * modules/unicase/u16-is-uppercase-tests: Likewise.
63496         * modules/unicase/u16-tolower-tests: Likewise.
63497         * modules/unicase/u16-totitle-tests: Likewise.
63498         * modules/unicase/u16-toupper-tests: Likewise.
63499         * modules/unicase/u32-casecmp-tests: Likewise.
63500         * modules/unicase/u32-casecoll-tests: Likewise.
63501         * modules/unicase/u32-casefold-tests: Likewise.
63502         * modules/unicase/u32-is-cased-tests: Likewise.
63503         * modules/unicase/u32-is-casefolded-tests: Likewise.
63504         * modules/unicase/u32-is-lowercase-tests: Likewise.
63505         * modules/unicase/u32-is-titlecase-tests: Likewise.
63506         * modules/unicase/u32-is-uppercase-tests: Likewise.
63507         * modules/unicase/u32-tolower-tests: Likewise.
63508         * modules/unicase/u32-totitle-tests: Likewise.
63509         * modules/unicase/u32-toupper-tests: Likewise.
63510         * modules/unicase/ulc-casecmp-tests: Likewise.
63511         * modules/unicase/ulc-casecoll-tests: Likewise.
63512         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63513         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63514         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63515         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63516         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63517         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63518         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63519         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63520         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63521         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63522         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63523         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63524         * modules/unictype/bidicategory-byname-tests: Likewise.
63525         * modules/unictype/bidicategory-name-tests: Likewise.
63526         * modules/unictype/bidicategory-of-tests: Likewise.
63527         * modules/unictype/bidicategory-test-tests: Likewise.
63528         * modules/unictype/block-list-tests: Likewise.
63529         * modules/unictype/block-of-tests: Likewise.
63530         * modules/unictype/block-test-tests: Likewise.
63531         * modules/unictype/category-C-tests: Likewise.
63532         * modules/unictype/category-Cc-tests: Likewise.
63533         * modules/unictype/category-Cf-tests: Likewise.
63534         * modules/unictype/category-Cn-tests: Likewise.
63535         * modules/unictype/category-Co-tests: Likewise.
63536         * modules/unictype/category-Cs-tests: Likewise.
63537         * modules/unictype/category-L-tests: Likewise.
63538         * modules/unictype/category-Ll-tests: Likewise.
63539         * modules/unictype/category-Lm-tests: Likewise.
63540         * modules/unictype/category-Lo-tests: Likewise.
63541         * modules/unictype/category-Lt-tests: Likewise.
63542         * modules/unictype/category-Lu-tests: Likewise.
63543         * modules/unictype/category-M-tests: Likewise.
63544         * modules/unictype/category-Mc-tests: Likewise.
63545         * modules/unictype/category-Me-tests: Likewise.
63546         * modules/unictype/category-Mn-tests: Likewise.
63547         * modules/unictype/category-N-tests: Likewise.
63548         * modules/unictype/category-Nd-tests: Likewise.
63549         * modules/unictype/category-Nl-tests: Likewise.
63550         * modules/unictype/category-No-tests: Likewise.
63551         * modules/unictype/category-P-tests: Likewise.
63552         * modules/unictype/category-Pc-tests: Likewise.
63553         * modules/unictype/category-Pd-tests: Likewise.
63554         * modules/unictype/category-Pe-tests: Likewise.
63555         * modules/unictype/category-Pf-tests: Likewise.
63556         * modules/unictype/category-Pi-tests: Likewise.
63557         * modules/unictype/category-Po-tests: Likewise.
63558         * modules/unictype/category-Ps-tests: Likewise.
63559         * modules/unictype/category-S-tests: Likewise.
63560         * modules/unictype/category-Sc-tests: Likewise.
63561         * modules/unictype/category-Sk-tests: Likewise.
63562         * modules/unictype/category-Sm-tests: Likewise.
63563         * modules/unictype/category-So-tests: Likewise.
63564         * modules/unictype/category-Z-tests: Likewise.
63565         * modules/unictype/category-Zl-tests: Likewise.
63566         * modules/unictype/category-Zp-tests: Likewise.
63567         * modules/unictype/category-Zs-tests: Likewise.
63568         * modules/unictype/category-and-not-tests: Likewise.
63569         * modules/unictype/category-and-tests: Likewise.
63570         * modules/unictype/category-byname-tests: Likewise.
63571         * modules/unictype/category-name-tests: Likewise.
63572         * modules/unictype/category-none-tests: Likewise.
63573         * modules/unictype/category-of-tests: Likewise.
63574         * modules/unictype/category-or-tests: Likewise.
63575         * modules/unictype/category-test-withtable-tests: Likewise.
63576         * modules/unictype/combining-class-tests: Likewise.
63577         * modules/unictype/ctype-alnum-tests: Likewise.
63578         * modules/unictype/ctype-alpha-tests: Likewise.
63579         * modules/unictype/ctype-blank-tests: Likewise.
63580         * modules/unictype/ctype-cntrl-tests: Likewise.
63581         * modules/unictype/ctype-digit-tests: Likewise.
63582         * modules/unictype/ctype-graph-tests: Likewise.
63583         * modules/unictype/ctype-lower-tests: Likewise.
63584         * modules/unictype/ctype-print-tests: Likewise.
63585         * modules/unictype/ctype-punct-tests: Likewise.
63586         * modules/unictype/ctype-space-tests: Likewise.
63587         * modules/unictype/ctype-upper-tests: Likewise.
63588         * modules/unictype/ctype-xdigit-tests: Likewise.
63589         * modules/unictype/decimal-digit-tests: Likewise.
63590         * modules/unictype/digit-tests: Likewise.
63591         * modules/unictype/mirror-tests: Likewise.
63592         * modules/unictype/numeric-tests: Likewise.
63593         * modules/unictype/property-alphabetic-tests: Likewise.
63594         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
63595         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
63596         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
63597         * modules/unictype/property-bidi-block-separator-tests: Likewise.
63598         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
63599         * modules/unictype/property-bidi-common-separator-tests: Likewise.
63600         * modules/unictype/property-bidi-control-tests: Likewise.
63601         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
63602         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
63603         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
63604         * modules/unictype/property-bidi-european-digit-tests: Likewise.
63605         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
63606         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
63607         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
63608         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
63609         * modules/unictype/property-bidi-pdf-tests: Likewise.
63610         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
63611         * modules/unictype/property-bidi-whitespace-tests: Likewise.
63612         * modules/unictype/property-byname-tests: Likewise.
63613         * modules/unictype/property-combining-tests: Likewise.
63614         * modules/unictype/property-composite-tests: Likewise.
63615         * modules/unictype/property-currency-symbol-tests: Likewise.
63616         * modules/unictype/property-dash-tests: Likewise.
63617         * modules/unictype/property-decimal-digit-tests: Likewise.
63618         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
63619         * modules/unictype/property-deprecated-tests: Likewise.
63620         * modules/unictype/property-diacritic-tests: Likewise.
63621         * modules/unictype/property-extender-tests: Likewise.
63622         * modules/unictype/property-format-control-tests: Likewise.
63623         * modules/unictype/property-grapheme-base-tests: Likewise.
63624         * modules/unictype/property-grapheme-extend-tests: Likewise.
63625         * modules/unictype/property-grapheme-link-tests: Likewise.
63626         * modules/unictype/property-hex-digit-tests: Likewise.
63627         * modules/unictype/property-hyphen-tests: Likewise.
63628         * modules/unictype/property-id-continue-tests: Likewise.
63629         * modules/unictype/property-id-start-tests: Likewise.
63630         * modules/unictype/property-ideographic-tests: Likewise.
63631         * modules/unictype/property-ids-binary-operator-tests: Likewise.
63632         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
63633         * modules/unictype/property-ignorable-control-tests: Likewise.
63634         * modules/unictype/property-iso-control-tests: Likewise.
63635         * modules/unictype/property-join-control-tests: Likewise.
63636         * modules/unictype/property-left-of-pair-tests: Likewise.
63637         * modules/unictype/property-line-separator-tests: Likewise.
63638         * modules/unictype/property-logical-order-exception-tests: Likewise.
63639         * modules/unictype/property-lowercase-tests: Likewise.
63640         * modules/unictype/property-math-tests: Likewise.
63641         * modules/unictype/property-non-break-tests: Likewise.
63642         * modules/unictype/property-not-a-character-tests: Likewise.
63643         * modules/unictype/property-numeric-tests: Likewise.
63644         * modules/unictype/property-other-alphabetic-tests: Likewise.
63645         * modules/unictype/property-other-default-ignorable-code-point-tests:
63646         Likewise.
63647         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
63648         * modules/unictype/property-other-id-continue-tests: Likewise.
63649         * modules/unictype/property-other-id-start-tests: Likewise.
63650         * modules/unictype/property-other-lowercase-tests: Likewise.
63651         * modules/unictype/property-other-math-tests: Likewise.
63652         * modules/unictype/property-other-uppercase-tests: Likewise.
63653         * modules/unictype/property-paired-punctuation-tests: Likewise.
63654         * modules/unictype/property-paragraph-separator-tests: Likewise.
63655         * modules/unictype/property-pattern-syntax-tests: Likewise.
63656         * modules/unictype/property-pattern-white-space-tests: Likewise.
63657         * modules/unictype/property-private-use-tests: Likewise.
63658         * modules/unictype/property-punctuation-tests: Likewise.
63659         * modules/unictype/property-quotation-mark-tests: Likewise.
63660         * modules/unictype/property-radical-tests: Likewise.
63661         * modules/unictype/property-sentence-terminal-tests: Likewise.
63662         * modules/unictype/property-soft-dotted-tests: Likewise.
63663         * modules/unictype/property-space-tests: Likewise.
63664         * modules/unictype/property-terminal-punctuation-tests: Likewise.
63665         * modules/unictype/property-test-tests: Likewise.
63666         * modules/unictype/property-titlecase-tests: Likewise.
63667         * modules/unictype/property-unassigned-code-value-tests: Likewise.
63668         * modules/unictype/property-unified-ideograph-tests: Likewise.
63669         * modules/unictype/property-uppercase-tests: Likewise.
63670         * modules/unictype/property-variation-selector-tests: Likewise.
63671         * modules/unictype/property-white-space-tests: Likewise.
63672         * modules/unictype/property-xid-continue-tests: Likewise.
63673         * modules/unictype/property-xid-start-tests: Likewise.
63674         * modules/unictype/property-zero-width-tests: Likewise.
63675         * modules/unictype/scripts-tests: Likewise.
63676         * modules/unictype/syntax-c-ident-tests: Likewise.
63677         * modules/unictype/syntax-c-whitespace-tests: Likewise.
63678         * modules/unictype/syntax-java-ident-tests: Likewise.
63679         * modules/unictype/syntax-java-whitespace-tests: Likewise.
63680         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
63681         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
63682         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
63683         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
63684         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
63685         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
63686         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
63687         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
63688         * modules/uniname/uniname-tests: Likewise.
63689         * modules/uninorm/canonical-decomposition-tests: Likewise.
63690         * modules/uninorm/compat-decomposition-tests: Likewise.
63691         * modules/uninorm/composition-tests: Likewise.
63692         * modules/uninorm/decomposing-form-tests: Likewise.
63693         * modules/uninorm/decomposition-tests: Likewise.
63694         * modules/uninorm/filter-tests: Likewise.
63695         * modules/uninorm/nfc-tests: Likewise.
63696         * modules/uninorm/nfd-tests: Likewise.
63697         * modules/uninorm/nfkc-tests: Likewise.
63698         * modules/uninorm/nfkd-tests: Likewise.
63699         * modules/uninorm/u8-normcmp-tests: Likewise.
63700         * modules/uninorm/u8-normcoll-tests: Likewise.
63701         * modules/uninorm/u16-normcmp-tests: Likewise.
63702         * modules/uninorm/u16-normcoll-tests: Likewise.
63703         * modules/uninorm/u32-normcmp-tests: Likewise.
63704         * modules/uninorm/u32-normcoll-tests: Likewise.
63705         * modules/unistdio/u8-asnprintf-tests: Likewise.
63706         * modules/unistdio/u8-vasnprintf-tests: Likewise.
63707         * modules/unistdio/u8-vasprintf-tests: Likewise.
63708         * modules/unistdio/u8-vsnprintf-tests: Likewise.
63709         * modules/unistdio/u8-vsprintf-tests: Likewise.
63710         * modules/unistdio/u16-asnprintf-tests: Likewise.
63711         * modules/unistdio/u16-vasnprintf-tests: Likewise.
63712         * modules/unistdio/u16-vasprintf-tests: Likewise.
63713         * modules/unistdio/u16-vsnprintf-tests: Likewise.
63714         * modules/unistdio/u16-vsprintf-tests: Likewise.
63715         * modules/unistdio/u32-asnprintf-tests: Likewise.
63716         * modules/unistdio/u32-vasnprintf-tests: Likewise.
63717         * modules/unistdio/u32-vasprintf-tests: Likewise.
63718         * modules/unistdio/u32-vsnprintf-tests: Likewise.
63719         * modules/unistdio/u32-vsprintf-tests: Likewise.
63720         * modules/unistdio/ulc-asnprintf-tests: Likewise.
63721         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
63722         * modules/unistdio/ulc-vasprintf-tests: Likewise.
63723         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
63724         * modules/unistdio/ulc-vsprintf-tests: Likewise.
63725         * modules/unistr/u8-check-tests: Likewise.
63726         * modules/unistr/u8-chr-tests: Likewise.
63727         * modules/unistr/u8-cmp-tests: Likewise.
63728         * modules/unistr/u8-cmp2-tests: Likewise.
63729         * modules/unistr/u8-cpy-alloc-tests: Likewise.
63730         * modules/unistr/u8-cpy-tests: Likewise.
63731         * modules/unistr/u8-mblen-tests: Likewise.
63732         * modules/unistr/u8-mbsnlen-tests: Likewise.
63733         * modules/unistr/u8-mbtouc-tests: Likewise.
63734         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
63735         * modules/unistr/u8-mbtoucr-tests: Likewise.
63736         * modules/unistr/u8-move-tests: Likewise.
63737         * modules/unistr/u8-next-tests: Likewise.
63738         * modules/unistr/u8-prev-tests: Likewise.
63739         * modules/unistr/u8-set-tests: Likewise.
63740         * modules/unistr/u8-stpcpy-tests: Likewise.
63741         * modules/unistr/u8-stpncpy-tests: Likewise.
63742         * modules/unistr/u8-strcat-tests: Likewise.
63743         * modules/unistr/u8-strcmp-tests: Likewise.
63744         * modules/unistr/u8-strcoll-tests: Likewise.
63745         * modules/unistr/u8-strcpy-tests: Likewise.
63746         * modules/unistr/u8-strdup-tests: Likewise.
63747         * modules/unistr/u8-strlen-tests: Likewise.
63748         * modules/unistr/u8-strmblen-tests: Likewise.
63749         * modules/unistr/u8-strmbtouc-tests: Likewise.
63750         * modules/unistr/u8-strncat-tests: Likewise.
63751         * modules/unistr/u8-strncmp-tests: Likewise.
63752         * modules/unistr/u8-strncpy-tests: Likewise.
63753         * modules/unistr/u8-strnlen-tests: Likewise.
63754         * modules/unistr/u8-to-u16-tests: Likewise.
63755         * modules/unistr/u8-to-u32-tests: Likewise.
63756         * modules/unistr/u8-uctomb-tests: Likewise.
63757         * modules/unistr/u16-check-tests: Likewise.
63758         * modules/unistr/u16-chr-tests: Likewise.
63759         * modules/unistr/u16-cmp-tests: Likewise.
63760         * modules/unistr/u16-cmp2-tests: Likewise.
63761         * modules/unistr/u16-cpy-alloc-tests: Likewise.
63762         * modules/unistr/u16-cpy-tests: Likewise.
63763         * modules/unistr/u16-mblen-tests: Likewise.
63764         * modules/unistr/u16-mbsnlen-tests: Likewise.
63765         * modules/unistr/u16-mbtouc-tests: Likewise.
63766         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
63767         * modules/unistr/u16-mbtoucr-tests: Likewise.
63768         * modules/unistr/u16-move-tests: Likewise.
63769         * modules/unistr/u16-next-tests: Likewise.
63770         * modules/unistr/u16-prev-tests: Likewise.
63771         * modules/unistr/u16-set-tests: Likewise.
63772         * modules/unistr/u16-stpcpy-tests: Likewise.
63773         * modules/unistr/u16-stpncpy-tests: Likewise.
63774         * modules/unistr/u16-strcat-tests: Likewise.
63775         * modules/unistr/u16-strcmp-tests: Likewise.
63776         * modules/unistr/u16-strcoll-tests: Likewise.
63777         * modules/unistr/u16-strcpy-tests: Likewise.
63778         * modules/unistr/u16-strdup-tests: Likewise.
63779         * modules/unistr/u16-strlen-tests: Likewise.
63780         * modules/unistr/u16-strmblen-tests: Likewise.
63781         * modules/unistr/u16-strmbtouc-tests: Likewise.
63782         * modules/unistr/u16-strncat-tests: Likewise.
63783         * modules/unistr/u16-strncmp-tests: Likewise.
63784         * modules/unistr/u16-strncpy-tests: Likewise.
63785         * modules/unistr/u16-strnlen-tests: Likewise.
63786         * modules/unistr/u16-to-u32-tests: Likewise.
63787         * modules/unistr/u16-to-u8-tests: Likewise.
63788         * modules/unistr/u16-uctomb-tests: Likewise.
63789         * modules/unistr/u32-check-tests: Likewise.
63790         * modules/unistr/u32-chr-tests: Likewise.
63791         * modules/unistr/u32-cmp-tests: Likewise.
63792         * modules/unistr/u32-cmp2-tests: Likewise.
63793         * modules/unistr/u32-cpy-alloc-tests: Likewise.
63794         * modules/unistr/u32-cpy-tests: Likewise.
63795         * modules/unistr/u32-mblen-tests: Likewise.
63796         * modules/unistr/u32-mbsnlen-tests: Likewise.
63797         * modules/unistr/u32-mbtouc-tests: Likewise.
63798         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
63799         * modules/unistr/u32-mbtoucr-tests: Likewise.
63800         * modules/unistr/u32-move-tests: Likewise.
63801         * modules/unistr/u32-next-tests: Likewise.
63802         * modules/unistr/u32-prev-tests: Likewise.
63803         * modules/unistr/u32-set-tests: Likewise.
63804         * modules/unistr/u32-stpcpy-tests: Likewise.
63805         * modules/unistr/u32-stpncpy-tests: Likewise.
63806         * modules/unistr/u32-strcat-tests: Likewise.
63807         * modules/unistr/u32-strcmp-tests: Likewise.
63808         * modules/unistr/u32-strcoll-tests: Likewise.
63809         * modules/unistr/u32-strcpy-tests: Likewise.
63810         * modules/unistr/u32-strdup-tests: Likewise.
63811         * modules/unistr/u32-strlen-tests: Likewise.
63812         * modules/unistr/u32-strmblen-tests: Likewise.
63813         * modules/unistr/u32-strmbtouc-tests: Likewise.
63814         * modules/unistr/u32-strncat-tests: Likewise.
63815         * modules/unistr/u32-strncmp-tests: Likewise.
63816         * modules/unistr/u32-strncpy-tests: Likewise.
63817         * modules/unistr/u32-strnlen-tests: Likewise.
63818         * modules/unistr/u32-to-u16-tests: Likewise.
63819         * modules/unistr/u32-to-u8-tests: Likewise.
63820         * modules/unistr/u32-uctomb-tests: Likewise.
63821         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
63822         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
63823         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
63824         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
63825         * modules/uniwidth/u8-strwidth-tests: Likewise.
63826         * modules/uniwidth/u8-width-tests: Likewise.
63827         * modules/uniwidth/u16-strwidth-tests: Likewise.
63828         * modules/uniwidth/u16-width-tests: Likewise.
63829         * modules/uniwidth/u32-strwidth-tests: Likewise.
63830         * modules/uniwidth/u32-width-tests: Likewise.
63831         * modules/uniwidth/width-tests: Likewise.
63833 2010-05-18  Richard Jones  <rjones@redhat.com>
63835         doc: users.txt: list hivex
63836         * users.txt: Add hivex.
63838 2010-05-18  Richard Jones  <rjones@redhat.com>
63840         doc: users.txt: list febootstrap
63841         * users.txt: Add febootstrap.
63843 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
63845         bootstrap: fix an error when gnulib is not used as a git submodule
63846         * build-aux/bootstrap (gnulib_path): If its length is zero then
63847         assign "gnulib" to it.
63848         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
63850 2010-05-16  Bruno Haible  <bruno@clisp.org>
63852         Avoid autoconf warnings about AM_ICONV.
63853         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
63854         2.64.
63856 2010-05-16  Bruno Haible  <bruno@clisp.org>
63858         absolute-header: Make the macro usable in more situations.
63859         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
63860         from gl_ABSOLUTE_HEADER.
63861         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
63863 2010-05-16  James Youngman  <jay@gnu.org>
63865         doc: update users.txt
63866         * users.txt: Add CSSC.
63868 2010-05-16  Jim Meyering  <meyering@redhat.com>
63870         init.sh: fix an error in the previous change; add more comments
63871         * tests/init.sh: Compare exit code in loop against 9, not 2.
63872         Patch by Bruno Haible.
63873         Make the two tests more similar by adding an empty "then" clause.
63874         Add comments.
63876         init.sh: avoid unnecessary shell re-exec
63877         * tests/init.sh: Improve the re-exec-required check to first test the
63878         current shell.  If it passes the test, do not search for a shell that
63879         does pass, and do not re-exec.  This test is particularly contorted to
63880         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
63881         of $(...) evokes a syntax error and causes immediate shell exit with
63882         status 2.  Bruno Haible reported that the re-exec made it impossible
63883         to single-step through any init.sh-using script.
63885 2010-05-16  Bruno Haible  <bruno@clisp.org>
63887         Fix collision between gnulib's and libintl's printf replacements.
63888         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
63889         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
63890         (printf): When using GNU C, map the __printf__ function to rpl_printf
63891         via __asm__. When not using GNU C, define rpl_printf instead of
63892         __printf__.
63893         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
63894         commit.
63895         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
63896         commit.
63897         * m4/asm-underscore.m4: New file.
63898         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
63899         * modules/stdio (Files): Add m4/asm-underscore.m4.
63900         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
63901         Reported by Ben Pfaff.
63903 2010-05-16  Bruno Haible  <bruno@clisp.org>
63905         verify: Avoid skipping the test on openSUSE 11.0.
63906         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
63908 2010-05-13  Bruno Haible  <bruno@clisp.org>
63910         Avoid useless warnings from G++.
63911         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
63912         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
63913         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63915 2010-05-11  Jim Meyering  <meyering@redhat.com>
63917         maint.mk: tweak preceding change
63918         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
63919         regexps tighter by anchoring at EOL, and make the new group "shy"
63920         for slightly decreased overhead.
63922 2010-05-11  Eric Blake  <eblake@redhat.com>
63924         maint.mk: gnulib doesn't guarantee NSIG
63925         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
63927 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
63929         test-pwrite.c: Remove unused variable declaration.
63930         * tests/test-pwrite.c (main): Remove read_buf declaration.
63932         Remove useless test-pwrite.sh file.
63933         * tests/test-pwrite.sh: Delete file.
63934         * modules/pwrite-tests: Remove references.
63935         Reported by Bruno Haible.
63937 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
63939         init.sh: fix a typo
63940         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
63942 2010-05-10  Jim Meyering  <meyering@redhat.com>
63944         maint.mk: avoid using a temporary file in the always-defined-macros check
63945         * top/maint.mk (.re-defmac): Remove rule.
63946         (gl_trap_): Remove definition.
63947         (sc_prohibit_always-defined_macros): Rewrite not to create and
63948         depend on a temporary file.  Instead, depend on GNU grep's ability
63949         to read a list of regular expressions from stdin when given "-f -".
63951 2010-05-09  Bruno Haible  <bruno@clisp.org>
63953         Update to GNU gettext 0.18, part 1.
63954         * m4/gettext.m4: Update to GNU gettext 0.18.
63955         * m4/intl.m4: Likewise.
63956         * m4/po.m4: Likewise.
63957         * modules/gettext (Files): Add m4/fcntl-o.m4.
63958         (configure.ac): Require gettext infrastructure from version 0.18.
63960 2010-05-09  Jim Meyering  <meyering@redhat.com>
63962         init.sh: enable MALLOC_PERTURB_
63963         * tests/init.sh: Enable glibc's malloc-perturbing option.
63965         maint.mk: improve sc_cross_check_PATH_usage_in_tests
63966         With my recent change in init.sh from the two-line form:
63967             -#   : ${srcdir=.}
63968             -#   . "$srcdir/init.sh"; path_prepend_ .
63969             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
63970         I noticed that using the one-line form would cause this test
63971         to fail with a false-positive, or to stop working altogether,
63972         depending on whether help-version changed or all the tests did.
63973         * top/maint.mk (_hv_regex): Remove this definition.
63974         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
63975         (_hv_regex_strong): Use a stronger regex to check for conformance.
63976         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
63977         Give a separate diagnostic for lack of conforming use.
63979         maint.mk: prohibit definition of symbols defined by gnulib
63980         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
63981         definition of symbols defined by gnulib.
63983 2010-05-09  Bruno Haible  <bruno@clisp.org>
63985         acl: Avoid test failure on Cygwin-hosted mingw.
63986         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
63988 2010-05-09  Bruno Haible  <bruno@clisp.org>
63990         error: Use system's fcntl function.
63991         * lib/error.c (fcntl): Undefine.
63993 2010-05-09  Jim Meyering  <meyering@redhat.com>
63995         verify: adjust formatting to be more consistent
63996         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
63997         argument-list '('s, and after one comma.
63999 2010-05-09  Bruno Haible  <bruno@clisp.org>
64001         error: More reliable output on mingw.
64002         * lib/error.c: Include <windows.h>.
64003         (is_open): New function.
64004         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64005         defined.
64007 2010-05-09  Bruno Haible  <bruno@clisp.org>
64009         vasnprintf: Fix syntax errors in libintl build on mingw.
64010         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64011         pad_ourselves and prec_ourselves after use.
64013 2010-05-08  Bruno Haible  <bruno@clisp.org>
64015         * lib/config.charset: Update comments for Cygwin 1.7.
64016         * lib/localcharset.c: Likewise.
64018 2010-05-07  Jim Meyering  <meyering@redhat.com>
64020         init.sh: improve comments
64021         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64022         . "${srcdir=.}/init.sh"; path_prepend_ .
64023         Add a note about path_prepend_ and the alternative of using
64024         TESTS_ENVIRONMENT.
64026 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64028         exclude: Unescape hashed patterns in wildcard mode.
64029         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64030         to the hash list.
64031         * tests/test-exclude8.sh: New test case.
64032         * modules/exclude-tests: Add new test.
64034 2010-05-05  Eric Blake  <eblake@redhat.com>
64036         verify: automate tests
64037         * modules/verify-tests: New module.
64038         * tests/test-verify.sh: New file.
64039         * tests/test-verify.c: Guard each negative test with a unique id.
64040         Also avoid warning about unused left hand of comma expressions.
64042 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64044         Further improvements to verify.h, suggested by Eric Blake.
64045         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64046         the GL_* versions, to avoid collision with OpenGL.
64047         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64048         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64049         than testing merely whether it's defined.
64051         Modify verify.h to pacify gcc -Wredundant_decls.
64052         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64053         These use the prefix "GL_" since they're likely to be useful elsewhere.
64054         We may need to break them out into a different .h file.
64055         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64056         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64057         of verify_function__.
64059 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64061         Tests for module pwrite.
64062         * modules/pwrite-tests: New file.
64063         * tests/test-pwrite.sh: New file.
64064         * tests/test-pwrite.c: New file.
64066         New module pwrite.
64067         * lib/unistd.in.h (pwrite): New declaration.
64068         * lib/pwrite.c: New file, from glibc with modifications.
64069         * m4/pwrite.m4: New file.
64070         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64071         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64072         REPLACE_PWRITE.
64073         * modules/pwrite: New file.
64074         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64075         REPLACE_PWRITE.
64076         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64077         * doc/posix-functions/pwrite.texi: Mention the new module.
64079 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64081         pread: Update documentation.
64082         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64084 2010-05-04  Eric Blake  <eblake@redhat.com>
64086         docs: update cygwin progress
64087         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64088         this bug.
64089         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64090         Added in cygwin 1.7.2.
64091         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64092         Likewise.
64093         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64094         Likewise.
64095         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64096         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64097         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64098         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64099         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64100         Mention nproc module.
64101         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64102         bug in cygwin 1.7.5 addition.
64103         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64104         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64105         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64106         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64107         1.7.5.
64108         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64109         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64110         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64111         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64112         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64113         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64114         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64115         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64116         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64117         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64118         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64119         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64120         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64121         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64122         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64123         Likewise.
64124         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64125         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64126         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64127         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64128         Likewise.
64129         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64130         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64131         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64132         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64133         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64134         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64135         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64136         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64137         Likewise.
64138         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64139         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64140         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64141         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64142         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64143         Likewise.
64144         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64145         Likewise.
64146         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64147         Likewise.
64148         * doc/glibc-functions/xdrrec_endofrecord.texi
64149         (xdrrec_endofrecord): Likewise.
64150         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64151         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64152         Likewise.
64153         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64154         Likewise.
64156 2010-05-04  Jim Meyering  <meyering@redhat.com>
64158         gendocs.sh: make its "-s FILE" option more useful
64159         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64160         $PACKAGE to reflect the probably-different basename of "FILE".
64162 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64164         bootstrap: don't ignore download_po_files failure
64165         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64166         failure.
64168 2010-05-03  Jim Meyering  <meyering@redhat.com>
64170         maint.mk: allow to pass options to gendocs.sh
64171         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64172         (gendocs_options_): New overridable variable.
64174         gnu-web-doc-update: don't ignore configure or build failure
64175         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64177         announce-gen: backslash-escape '@'s in --help output
64178         * build-aux/announce-gen: Fix syntax errors.
64180         maint.mk, announce-gen: allow project-specific announcement mail headers
64181         * top/maint.mk (translation_project_): Define default.
64182         (announcement_Cc_, announcement_mail_headers_): Likewise.
64183         (announcement): Invoke announce-gen with new --mail-headers option.
64184         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64186         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64187         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64188         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64189         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64190         line in the "err2" output file when running "make check" in verbose
64191         mode (i.e., with set -x enabled).
64193 2010-05-03  Bruno Haible  <bruno@clisp.org>
64195         wctob: Fix for weird platforms.
64196         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64197         argument value.
64199 2010-05-03  Jim Meyering  <meyering@redhat.com>
64201         maint.mk: prohibit unwarranted use of <strings.h>
64202         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64203         strings.h in a file that does not also use strcasecmp, strncasecmp,
64204         ffs or ffsll.
64206         maint.mk: remove obsolete comments
64207         * top/maint.mk: Remove stale, commented-out rules.
64209 2010-05-02  Bruno Haible  <bruno@clisp.org>
64211         wcwidth: Declare also when it's aliased.
64212         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64213         macro.
64215 2010-05-02  Bruno Haible  <bruno@clisp.org>
64217         Fix regression from 2010-04-25.
64218         * gnulib-tool (func_modules_transitive_closure): Check the status of
64219         all modules, not only of the tests that are of the form foo-tests where
64220         foo is a module.
64222 2010-05-02  Bruno Haible  <bruno@clisp.org>
64224         wctob: Work around nasty Cygwin 1.7.2 bug.
64225         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64226         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64228 2010-05-01  Bruno Haible  <bruno@clisp.org>
64230         fpurge: Sharper test.
64231         * tests/test-fpurge.c (main): Add one more ftell check.
64232         * modules/fpurge-tests (Depends-on): Add ftell.
64233         Suggested by Eric Blake.
64235 2010-05-01  Bruno Haible  <bruno@clisp.org>
64237         ftello: Another test.
64238         * tests/test-ftello3.c: New file.
64239         * modules/ftello-tests (Files): Add it.
64240         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64241         MOSTLYCLEANFILES.
64243         ftell: Another test.
64244         * tests/test-ftell3.c: New file.
64245         * modules/ftell-tests (Files): Add it.
64246         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64247         MOSTLYCLEANFILES.
64249 2010-05-01  Bruno Haible  <bruno@clisp.org>
64251         ftell, ftello: Work around Solaris bug.
64252         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64253         * lib/ftello.c: Include stdio-impl.h.
64254         (ftello): On Solaris, when _IOWRT is set, compute the result without
64255         looking at _IOREAD.
64256         * modules/ftello (Files): Add lib/stdio-impl.h.
64257         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64258         * doc/posix-functions/ftello.texi: Likewise.
64259         Reported by Eric Blake.
64261 2010-05-01  Bruno Haible  <bruno@clisp.org>
64263         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64264         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64265         the _IOWRT flag is also set.
64267 2010-05-01  Bruno Haible  <bruno@clisp.org>
64269         Fix doc about a HP-UX stdio bug.
64270         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64271         * doc/posix-functions/ftello.texi: Likewise.
64273 2010-05-01  Bruno Haible  <bruno@clisp.org>
64275         lseek test: Fix failure on Solaris.
64276         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64277         output.
64279 2010-04-30  Jim Meyering  <meyering@redhat.com>
64281         bootstrap: don't ignore failure to generate po*/Makevars
64282         * build-aux/bootstrap (with_gettext): Don't ignore failure
64283         to create po/Makevars or runtime-po/Makevars.
64285 2010-04-29  Eric Blake  <eblake@redhat.com>
64287         headers: relax license to LGPLv2+
64288         * modules/fcntl-h (License): Relax license.
64289         * modules/getopt-posix (License): Likewise.
64290         * modules/locale (License): Likewise.
64291         * modules/math (License): Likewise.
64292         * modules/pty (License): Likewise.
64293         * modules/sched (License): Likewise.
64294         * modules/search (License): Likewise.
64295         * modules/spawn (License): Likewise.
64296         * modules/stdarg (License): Likewise.
64297         * modules/sysexits (License): Likewise.
64299 2010-04-29  Jim Meyering  <meyering@redhat.com>
64301         inttypes: relax license to LGPLv2+
64302         * modules/inttypes (License): Relax license.
64304 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64306         * top/maint.mk (indent): Run twice to produce idempotent results.
64308 2010-04-28  Bruno Haible  <bruno@clisp.org>
64310         getdate: Generate getdate.c in the source directory.
64311         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64312         MOSTLYCLEANFILES.
64313         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64315 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64317         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64318         is not declared as a const *; avoid warnings in that case.
64320 2010-04-28  Eric Blake  <eblake@redhat.com>
64322         canonicalize-lgpl: avoid compiler warning
64323         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64324         declaration' / 'extraneous semicolon' warning with some compilers.
64325         Reported by Andreas Gruenbacher.
64327 2010-04-28  Jim Meyering  <meyering@redhat.com>
64329         init.sh: ensure a more reliable exit status when exiting via trap
64330         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64331         Inspired by patches from Dmitry V. Levin.
64332         Also trap on signal 3 (SIGQUIT).
64334 2010-04-27  Bruno Haible  <bruno@clisp.org>
64336         Update doc about utimes().
64337         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64338         'utimens' module.
64339         Reported by Andreas Gruenbacher <agruen@suse.de>.
64341 2010-04-27  Eric Blake  <eblake@redhat.com>
64343         full-read, full-write: relax license
64344         * modules/full-read (License): Drop to LGPLv2+.
64345         * modules/full-write (License): Likewise.
64346         * modules/safe-read (License): Likewise.
64347         * modules/safe-write (License): Likewise.
64349         pthread: mention library for linking
64350         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64352 2010-04-27  Jim Meyering  <meyering@redhat.com>
64354         maint.mk: fix a bug introduced in last change
64355         * top/maint.mk (gl_assured_headers_): Now that all names are on
64356         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64357         is not anchored to end of word, it should be adequate.
64359         maint.mk: avoid side-effect in latest syntax-check
64360         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64361         to run commands via $(shell...), and hence to incur cost only when
64362         the new rule is actually run.
64364         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64365         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64366         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64367         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64368         (gl_assured_headers_, az_, AZ_): Define.
64369         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64371 2010-04-26  Jim Meyering  <jim@meyering.net>
64372             Bruno Haible  <bruno@clisp.org>
64374         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64375         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64376         Prompted by an exchange with Gilles Espinasse.
64378 2010-04-26  Jim Meyering  <meyering@redhat.com>
64380         git-version-gen: aesthetic tweak
64381         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64382         so that the command remains on a single line.
64384 2010-04-26  Eric Blake  <eblake@redhat.com>
64386         git-version-gen: allow use on EBCDIC hosts
64387         * build-aux/git-version-gen (dirty): Use literal rather than tying
64388         ourselves to ascii.
64389         Reported by Steve Goetze.
64391 2010-04-25  Bruno Haible  <bruno@clisp.org>
64393         netdb: Add support for GNULIB_POSIXCHECK.
64394         * lib/netdb.in.h: Include warn-on-use.h.
64395         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64396         functions are used when GNULIB_POSIXCHECK is defined and the
64397         getaddrinfo module is not in use.
64398         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64399         freeaddrinfo, gai_strerror, getnameinfo are declared.
64400         * modules/netdb (Depends-on): Add warn-on-use.
64401         (Makefile.am): Include warn-on-use.h in netdb.h.
64403 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64405         build: avoid "make check" failure without .git/ directory
64406         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64407         there is no .git/ directory.
64409 2010-04-25  Bruno Haible  <bruno@clisp.org>
64411         ptsname: Fix misuse of ttyname_r.
64412         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64413         of errno.
64415 2010-04-25  Bruno Haible  <bruno@clisp.org>
64417         ttyname_r: Make it work on Solaris 10.
64418         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64419         if the system function has the POSIX declaration. Test whether the
64420         function fails if the buffer is less than 128 bytes large.
64421         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64422         system's ttyname_r function. Provide a reasonably large buffer.
64423         * modules/ttyname_r (Depends-on): Add extensions.
64424         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64426 2010-04-25  Bruno Haible  <bruno@clisp.org>
64428         Use the 'extensions' module for some more functions on Solaris.
64429         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64430         module.
64431         * doc/posix-functions/ctime_r.texi: Likewise.
64432         * doc/posix-functions/getgrgid_r.texi: Likewise.
64433         * doc/posix-functions/getgrnam_r.texi: Likewise.
64434         * doc/posix-functions/getpwnam_r.texi: Likewise.
64435         * doc/posix-functions/getpwuid_r.texi: Likewise.
64436         * doc/posix-functions/readdir_r.texi: Likewise.
64437         * doc/posix-functions/sigwait.texi: Likewise.
64438         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64439         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64441 2010-04-25  Bruno Haible  <bruno@clisp.org>
64443         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64444         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64445         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64446         * lib/ttyname_r.c: Include <limits.h>.
64447         (ttyname_r): Define using the system's ttyname_r function, if it exists
64448         and not on Solaris.
64449         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64450         set.
64451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64452         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64453         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64454         Reported by Simon Josefsson.
64456 2010-04-25  Bruno Haible  <bruno@clisp.org>
64458         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64459         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64460         * doc/posix-functions/ctime_r.texi: Likewise.
64461         * doc/posix-functions/getgrgid_r.texi: Likewise.
64462         * doc/posix-functions/getgrnam_r.texi: Likewise.
64463         * doc/posix-functions/getlogin_r.texi: Likewise.
64464         * doc/posix-functions/getpwnam_r.texi: Likewise.
64465         * doc/posix-functions/getpwuid_r.texi: Likewise.
64466         * doc/posix-functions/readdir_r.texi: Likewise.
64467         * doc/posix-functions/sigwait.texi: Likewise.
64468         * doc/posix-functions/ttyname_r.texi: Likewise.
64469         Reported by Simon Josefsson.
64471 2010-04-25  Bruno Haible  <bruno@clisp.org>
64473         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64474         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64475         also to --create-testdir.
64476         (func_acceptable): Don't consider the status of *-tests modules here.
64477         (func_modules_transitive_closure): Consider it here, before including a
64478         test module.
64479         (func_import, func_create_testdir): Set inc_all_direct_tests,
64480         inc_all_indirect_tests.
64481         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64482         --create-testdir and --create-megatestdir.
64484 2010-04-25  Bruno Haible  <bruno@clisp.org>
64486         gnulib-tool: Add --without-*-tests options.
64487         * gnulib-tool (func_usage): Document the --without-*-tests options.
64488         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64489         excl_unportable_tests): New variables.
64490         Fail if they are specified with --import or --update.
64491         (func_acceptable): Respect the excl_*_tests variables.
64492         (func_import): Set the excl_*_tests variables to empty.
64494 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64495             Bruno Haible  <bruno@clisp.org>
64497         Work around a MacOS X 10.4 bug with openpty.
64498         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64499         * tests/test-openpty.c (main): Close the master side explicitly.
64501 2010-04-25  Bruno Haible  <bruno@clisp.org>
64503         strnlen: Fix a C++ test error on MacOS X and Solaris.
64504         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64505         the function is not declared.
64506         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64507         Simon Josefsson.
64509 2010-04-24  Bruno Haible  <bruno@clisp.org>
64511         Avoid a gcc warning.
64512         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64513         of correct type for %08lx directive.
64514         Reported by Eric Blake.
64516 2010-04-24  Bruno Haible  <bruno@clisp.org>
64518         vasnprintf: Correct errno value in case of out-of-memory.
64519         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64520         or sprintf. Use the errno value from SNPRINTF or sprintf.
64521         Reported by Ian Beckwith <ianb@erislabs.net>.
64523 2010-04-24  Bruno Haible  <bruno@clisp.org>
64525         ansi-c++-opt: Find correct compiler when cross-compiling.
64526         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64527         AC_CHECK_PROGS.
64528         Reported by Simon Josefsson.
64530 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64532         vc-list-files: Add support for subversion
64533         * build-aux/vc-list-files: Use "svn list" to generate the list of
64534         files controlled by subversion.
64536 2010-04-23  Jim Meyering  <meyering@redhat.com>
64538         vc-list-files tests: convert to use init.sh
64539         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64540         path_prepend_.
64541         Use Exit, not exit.
64542         Use skip_ rather than open coding it.
64543         Remove trap set-up and compare definitions.
64544         * tests/test-vc-list-files-git.sh: Likewise.
64545         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64547 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64549         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64550         backup files.
64552 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64554         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64556 2010-04-20  Eric Blake  <eblake@redhat.com>
64558         tests: be robust to ignored SIGPIPE
64559         * tests/test-select-in.sh: Consume all output.
64560         * tests/test-lseek.sh: Check correct exit status, while avoiding
64561         EPIPE.
64563 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64564             Bruno Haible  <bruno@clisp.org>
64566         visibility: Don't use -fvisibility if it leads to a warning.
64567         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64568         yes, don't pretend that visibility works if it leads to a warning.
64569         Reported by Mike Gran <spk121@yahoo.com>.
64571 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64573         * build-aux/bootstrap: Use "git -h" for testing for supported options
64574         instead of "git --help".  The short-form option only shows a summary,
64575         and doesn't layout the full man page.  Grep for the full option name
64576         in the summary, too.
64578 2010-04-19  Bruno Haible  <bruno@clisp.org>
64580         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64582         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64583         mention of RELOCATABLE_STRIP.
64584         Reported by Sylvain Beucler <beuc@beuc.net>.
64586 2010-04-19  Bruno Haible  <bruno@clisp.org>
64588         * lib/diffseq.h: Fix typo in comment.
64589         Reported by Eric Blake.
64591 2010-04-19  Bruno Haible  <bruno@clisp.org>
64593         ioctl: Move autoconf macro to a .m4 file.
64594         * m4/ioctl.m4: New file, extracted from modules/ioctl.
64595         * modules/ioctl (Files): Add it.
64596         (configure.ac): Simply invoke gl_FUNC_IOCTL.
64597         Reported by Ian Beckwith <ianb@erislabs.net>.
64599 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
64600             Bruno Haible  <bruno@clisp.org>
64602         diffseq: Accommodate use-case with abstract arrays.
64603         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
64604         is not defined.
64605         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
64606         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
64608 2010-04-18  Bruno Haible  <bruno@clisp.org>
64610         * doc/posix-headers/stdbool.texi: More precise wording.
64612 2010-04-17  Jim Meyering  <meyering@redhat.com>
64614         maint.mk: use gnu-style indentation in an embedded perl script
64615         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
64616         Rename variable: s/two/last_two_bytes/
64618 2010-04-16  Eric Blake  <eblake@redhat.com>
64620         test-stdbool: skip test that fails with Solaris CC
64621         * tests/test-stdbool.c (f): Skip test that causes compilation
64622         error under buggy C++ compiler.
64623         * lib/stdbool.in.h: Document the limitation.
64624         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
64626         setenv: allow compilation with C++
64627         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
64628         register keyword.
64630         stdint: allow test to pass with C++
64631         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
64633         getopt: allow compilation with C++
64634         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
64635         struct.
64636         * lib/getopt.c (_getopt_internal_r): Use correct type.
64637         Reported by Dagobert Michelson, via Joel E. Denny.
64639 2010-04-16  Bruno Haible  <bruno@clisp.org>
64641         Override netdb.h always.
64642         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
64643         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
64644         Reported by Ludovic Courtès <ludo@gnu.org>.
64646 2010-04-15  Bruno Haible  <bruno@clisp.org>
64648         openpty: Fix mistake from 2010-03-21.
64649         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
64650         Reported by Simon Josefsson.
64652 2010-04-15  Eric Blake  <eblake@redhat.com>
64654         test-forkpty: fix expected signature
64655         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
64656         Reported by Simon Josefsson.
64658 2010-04-15  Jim Meyering  <meyering@redhat.com>
64660         maint.mk: texinfo_suffix_re_: correct the default regexp
64661         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
64663         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
64664         make it configurable via texinfo_suffix_re_.
64666 2010-04-14  Eric Blake  <eblake@redhat.com>
64668         strtok_r: relax license to LGPLv2+
64669         * modules/strtok_r (License): Relax license.
64670         Reported by Matthias Bolte.
64672 2010-04-14  Simon Josefsson  <simon@josefsson.org>
64674         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
64675         version 1.4.4 by default instead of requiring the libgcrypt
64676         version used during build.  This makes it possible to use the
64677         application with older but still binary compatible libgcrypt
64678         versions.
64680 2010-04-13  Eric Blake  <eblake@redhat.com>
64682         getopt-gnu: match recent glibc fixes and posix ruling
64683         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
64684         '+' handling, when requesting extensions.
64685         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
64686         'W;' handling.
64687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
64688         * doc/posix-functions/getopt.texi (getopt): Document this.
64689         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64690         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64691         Likewise.
64693         getopt: merge bug fixes from glibc
64694         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
64695         diagnostics.  Honor '+:' correctly.  Reject ';'.
64697         getopt-posix: detect MacOS bug
64698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
64699         optind when missing a required argument.
64700         * doc/posix-functions/getopt.texi (getopt): Document the bug.
64701         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64703         Likewise.
64705         getopt-posix: avoid spurious failure on Solaris
64706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
64707         an indicator that setting optind=1 is sufficient for reset.
64709         getopt-posix: avoid spurious failure on FreeBSD
64710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
64711         in POSIX mode, since the m4 test uses it.
64713         gnulib-tool: silence warning on BSD sh
64714         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
64716 2010-04-13  Jim Meyering  <meyering@redhat.com>
64718         doc: users.txt: GNU patch now uses gnulib
64719         * users.txt: Add patch.
64721 2010-04-12  Jim Meyering  <meyering@redhat.com>
64723         maint.mk: generate more concise timing data for syntax-check rules
64724         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
64725         " done" from each line that reports a syntax-check test duration.
64727 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
64729         git-version-gen: use "git update-index..." rather than "git status"
64730         * build-aux/git-version-gen: Use git update-index --refresh, not
64731         "git status".  With some versions of git, "git status" would fail
64732         to update the index and result in an unwarranted "-dirty" suffix.
64734 2010-04-11  Jim Meyering  <meyering@redhat.com>
64736         openat: correct formatting (no semantic change)
64737         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
64738         Suggested by Bruno Haible.
64740 2010-04-11  Bruno Haible  <bruno@clisp.org>
64742         Stricter declaration checking in testdirs.
64743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64744         If for_tests is true, augment AM_CPPFLAGS to define
64745         GNULIB_STRICT_CHECKING.
64746         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
64747         GNULIB_STRICT_CHECKING is defined, verify that the function is
64748         declared.
64750 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
64751             Bruno Haible  <bruno@clisp.org>
64753         libunistring: Improve configure output.
64754         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
64755         Don't say "consider installing GNU libunistring" when checking again
64756         with libiconv.
64758 2010-04-11  Bruno Haible  <bruno@clisp.org>
64760         libunistring: Correct value of $LTLIBUNISTRING.
64761         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
64762         correct the value of $LTLIBUNISTRING.
64764 2010-04-11  Bruno Haible  <bruno@clisp.org>
64766         havelib: Add static libraries to LIBS in the right order.
64767         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
64768         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
64770 2010-04-11  Bruno Haible  <bruno@clisp.org>
64772         libunistring: Detect libunistring also when it depends on libiconv.
64773         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
64774         the second AC_LIB_HAVE_LINKFLAGS invocation.
64776 2010-04-11  James Youngman  <jay@gnu.org>
64778         close-stream: declare local scalars to be "const"
64779         * lib/close-stream.c (close_stream): Make boolean variables const
64780         to document the fact that we set but do not change them.
64782 2010-04-11  Bruno Haible  <bruno@clisp.org>
64784         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
64786 2010-04-11  Jim Meyering  <meyering@redhat.com>
64788         maint.mk: don't include dist-check.mk
64789         * top/maint.mk: Remove bogus include directive.
64791         maint.mk: improve empty-line-at-EOF check
64792         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
64793         solution, rather than tail+Perl-based one.  The latter would read
64794         a few kilobytes from the end of each file, and did not handle empty
64795         files properly.
64797         maint.mk: print the elapsed time for each syntax-check rule
64798         * top/maint.mk (sc_m_rules_): Save start time in a file.
64799         (sc_z_rules_): New rules: remove temp file and print elapsed time.
64800         (local-check): Interpose the .z rules
64802 2010-04-11  Jim Meyering  <meyering@redhat.com>
64804         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
64805         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
64806         empty file with one that ends in an empty line.
64808 2010-04-10  Bruno Haible  <bruno@clisp.org>
64810         mkdir: Make it work on mingw64.
64811         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
64812         * lib/mkdir.c: Update comment.
64813         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
64815 2010-04-10  Bruno Haible  <bruno@clisp.org>
64817         Don't override improved macro from newer autoconf.
64818         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
64819         autoconf >= 2.62.
64820         Reported by Joel E. Denny <jdenny@clemson.edu>.
64822 2010-04-10  Jim Meyering  <meyering@redhat.com>
64824         maint.mk: new syntax-check rule: prohibit empty lines at end of file
64825         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
64827         maint.mk: correct a diagnostic
64828         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
64829         in diagnostic; now use $prohibit.
64831 2010-04-10  Bruno Haible  <address@hidden>
64833         fchownat: Fix a C++ test error on Solaris 8.
64834         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
64835         the function does not exist.
64837 2010-04-10  Bruno Haible  <bruno@clisp.org>
64839         vasnprintf: Add more tests.
64840         * tests/test-vasnprintf-posix.c: Include <errno.h>.
64841         (test_function): Test converting an invalid wide string.
64843         vasnprintf: Correct handling of unconvertible wide string arguments.
64844         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
64845         VASNPRINTF.
64846         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
64847         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
64848         smaller than the expected maximum need for the directive. Set errno to
64849         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
64850         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
64851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
64852         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
64853         * modules/vasnprintf (Files): Add m4/printf.m4.
64854         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64856 2010-04-10  Bruno Haible  <bruno@clisp.org>
64858         vasnprintf: Fix crash in %ls directive.
64859         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
64860         string is passed as argument to %ls, with no precision and no width.
64861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64863 2010-04-10  Bruno Haible  <bruno@clisp.org>
64865         vasnprintf: Fix multiple test failures on mingw.
64866         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
64867         _snprintf, or snwprintf, not _snwprintf.
64869 2010-04-10  Bruno Haible  <bruno@clisp.org>
64871         write: Fix a C++ test error on mingw.
64872         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
64874 2010-04-10  Bruno Haible  <bruno@clisp.org>
64876         vasnprintf test: Reduce code duplication.
64877         * tests/test-vasnprintf.c (test_function): New function, extracted from
64878         test_vasnprintf.
64879         (test_vasnprintf, test_asnprintf): Invoke it.
64881 2010-04-10  Bruno Haible  <bruno@clisp.org>
64883         strnlen: Fix warning in C++ mode on MacOS X.
64884         * lib/string.in.h (strnlen): Use the modern idiom.
64885         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
64886         defining strnlen as a macro already in <config.h>.
64887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64888         REPLACE_STRNLEN.
64889         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
64890         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64892 2010-04-08  James Youngman  <jay@gnu.org>
64894         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
64895         the example.
64897 2010-04-09  Jim Meyering  <meyering@redhat.com>
64899         maint.mk: print better diagnostic when there is no $(_hv_file)
64900         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
64901         announce that when $(_hv_file) (aka help-version) does not exist.
64903         init.sh: run tr in the "C" locale to avoid multibyte interpretation
64904         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
64905         not try to interpret its random input bytes.  Jarno Rajahalme reported
64906         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
64907         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
64908         (mktempd_): Likewise, just in case.
64910         ftruncate: add two years to projected module removal date: 2012
64911         * m4/ftruncate.m4: Adjust comments.
64913         ftruncate: mark module as obsolete; even MinGW provides it, now
64914         * modules/ftruncate (Status): Obsolete.
64915         (Notice): Say that.
64916         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
64917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
64919 2010-04-08  Bruno Haible  <bruno@clisp.org>
64921         Fix side effects from tests-related modules.
64922         * modules/dprintf-posix (Comment): New section.
64923         * modules/fprintf-posix (Comment): Likewise.
64924         * modules/obstack-printf-posix (Comment): Likewise.
64925         * modules/printf-posix (Comment): Likewise.
64926         * modules/snprintf-posix (Comment): Likewise.
64927         * modules/sprintf-posix (Comment): Likewise.
64928         * modules/vasnprintf-posix (Comment): Likewise.
64929         * modules/vasprintf-posix (Comment): Likewise.
64930         * modules/vdprintf-posix (Comment): Likewise.
64931         * modules/vfprintf-posix (Comment): Likewise.
64932         * modules/vprintf-posix (Comment): Likewise.
64933         * modules/vsnprintf-posix (Comment): Likewise.
64934         * modules/vsprintf-posix (Comment): Likewise.
64935         * modules/xprintf-posix (Comment): Likewise.
64936         * modules/xvasprintf-posix (Comment): Likewise.
64937         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
64938         * modules/floorf-tests (Depends-on): Likewise.
64939         * modules/round-tests (Depends-on): Likewise.
64940         * modules/roundf-tests (Depends-on): Likewise.
64941         * modules/trunc-tests (Depends-on): Likewise.
64942         * modules/truncf-tests (Depends-on): Likewise.
64943         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
64944         'fprintf-posix' module is not present.
64945         * tests/test-floorf2.c (check): Likewise.
64946         * tests/test-trunc2.c (check): Likewise.
64947         * tests/test-truncf2.c (check): Likewise.
64948         * tests/test-round2.c (equal): Likewise.
64949         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64951 2010-04-07  Karl Berry  <karl@gnu.org>
64953         * config/srclist.txt,
64954         * config/srclistvars.sh,
64955         * config/srclist-update: doc fixes.
64957 2010-04-07  Jim Meyering  <meyering@redhat.com>
64959         maint.mk: add a PATH crosschecking syntax-check rule
64960         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
64961         Useful if you use a test like the one in help-version (coreutils,
64962         diffutils, grep, gzip) that ensures $(VERSION) matches what is
64963         printed by prog --version.
64965 2010-04-06  Bruno Haible  <bruno@clisp.org>
64967         Fix link error on mingw.
64968         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
64969         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
64971 2010-04-06  Bruno Haible  <bruno@clisp.org>
64973         Assume rmdir exists.
64974         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
64976 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
64978         doc: update users.txt
64979         * users.txt: Add gcal.
64981 2010-04-06  Jim Meyering  <meyering@redhat.com>
64983         init.sh: simply unset TMPDIR rather than risking env -i
64984         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
64985         although it probably works fine on all Unix-based systems, some
64986         systems (Cygwin?) cannot tolerate a totally cleared environment.
64987         Suggestion from Eric Blake.
64989 2010-04-06  Jim Meyering  <meyering@redhat.com>
64991         init.sh: portability fix: use env's POSIX-specified -i option not -u
64992         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
64993         than unportable env -u.  Solaris 5.11's env lacks support for -u.
64995 2010-04-05  Bruno Haible  <bruno@clisp.org>
64997         btowc: Work around Cygwin 1.7.2 bug.
64998         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
64999         does not map NUL to 0.
65000         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65002 2010-04-05  Bruno Haible  <bruno@clisp.org>
65004         Make the multithread modules work on Cygwin 1.7.2.
65005         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65006         imported symbols can be declared weak, so that it returns "no" on
65007         Cygwin 1.7.2.
65009 2010-04-05  Bruno Haible  <bruno@clisp.org>
65011         Use the module 'strncat'.
65012         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65014         Tests for module 'strncat'.
65015         * modules/strncat-tests: New file.
65016         * tests/test-strncat.c: New file.
65018         New module 'strncat'.
65019         * lib/string.in.h (strncat): New declaration.
65020         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65021         * m4/strncat.m4: New file, based on m4/memchr.m4.
65022         * modules/strncat: New file.
65023         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65024         is declared.
65025         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65026         REPLACE_STRNCAT.
65027         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65028         REPLACE_STRNCAT.
65029         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65030         module.
65031         * tests/test-string-c++.cc: Check signature of strncat.
65033 2010-04-05  Jim Meyering  <meyering@redhat.com>
65035         xstrtoumax-tests: convert to use init.sh
65036         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65037         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65038         Use Exit, not exit.
65039         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65041         xstrtoimax-tests: convert to use init.sh
65042         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65043         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65044         Use Exit, not exit.
65045         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65047 2010-04-05  Bruno Haible  <bruno@clisp.org>
65049         sys_socket: Avoid #define replacements in C++ mode.
65050         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65051         warning to the function if possible, rather than #defining the symbol
65052         to a dysfunctional alias.
65054 2010-04-05  Bruno Haible  <bruno@clisp.org>
65056         fseeko: Fix C++ test error on mingw.
65057         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65058         gl_FUNC_FSEEKO.
65059         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65060         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65062         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65064 2010-04-05  Bruno Haible  <bruno@clisp.org>
65066         duplocale: Improve test output.
65067         * tests/test-duplocale.c (main): Print reason for skipped test.
65069 2010-04-05  Bruno Haible  <bruno@clisp.org>
65071         Assume rmdir exists.
65072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65073         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65075 2010-04-05  Bruno Haible  <bruno@clisp.org>
65077         Fix link error on Solaris 8 with cc.
65078         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65080 2010-04-05  Bruno Haible  <bruno@clisp.org>
65082         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65083         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65085 2010-04-05  Bruno Haible  <bruno@clisp.org>
65087         vasprintf: Update documentation.
65088         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65090 2010-04-05  Bruno Haible  <bruno@clisp.org>
65092         ptsname: Improve test.
65093         * tests/test-ptsname.c (main): Also try the various master names of BSD
65094         systems.
65096 2010-04-05  Bruno Haible  <bruno@clisp.org>
65098         memchr: Avoid a possible C++ test error.
65099         * lib/string.in.h (memchr): Provide declaration if function is missing.
65100         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65101         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65103         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65105 2010-04-05  Bruno Haible  <bruno@clisp.org>
65107         strtok_r: Improve idiom.
65108         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65109         AC_LIBOBJ is used.
65111 2010-04-05  Bruno Haible  <bruno@clisp.org>
65113         strdup: Improve idiom.
65114         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65115         AC_LIBOBJ is used.
65116         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65117         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65118         when AC_LIBOBJ is used.
65120 2010-04-05  Bruno Haible  <bruno@clisp.org>
65122         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65123         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65124         don't set REPLACE_MBSINIT to 1.
65125         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65126         don't set REPLACE_MBRTOWC to 1.
65127         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65128         exist, don't set REPLACE_MBSRTOWCS to 1.
65129         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65130         exist, don't set REPLACE_MBSNRTOWCS to 1.
65131         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65132         don't set REPLACE_WCRTOMB to 1.
65133         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65134         exist, don't set REPLACE_WCSRTOMBS to 1.
65135         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65136         exist, don't set REPLACE_WCSNRTOMBS to 1.
65138 2010-04-05  Bruno Haible  <bruno@clisp.org>
65140         ldexpl: Improve idiom.
65141         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65142         make sure to set HAVE_DECL_LDEXPL to 0.
65144 2010-04-05  Jim Meyering  <meyering@redhat.com>
65146         xstrtol-tests: convert to use init.sh
65147         * modules/xstrtol-tests (Files): Add tests/init.sh.
65148         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65149         Use Exit, not exit.
65150         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65152         atexit-tests: convert to use init.sh
65153         * modules/atexit-tests (Files): Add tests/init.sh.
65154         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65155         Use Exit, not exit.
65156         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65158         init.sh: fix typo
65159         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65161         init.sh: make it easier for a test script to write to the tty, ...
65162         when using automake's parallel-tests mode.
65163         * tests/init.sh (stderr_fileno_): Define overridable variable.
65164         (warn_): New function, to use it.
65165         (fail_, skip_, framework_failure_): Use warn_.
65167 2010-04-04  Bruno Haible  <bruno@clisp.org>
65169         btowc: Avoid warning.
65170         * lib/btowc.c: Include <stdlib.h>.
65171         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65173 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65174             Bruno Haible  <bruno@clisp.org>
65176         wchar: Port to NetBSD 1.5.
65177         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65178         * lib/wctype.in.h (WEOF): Likewise.
65180 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65181             Bruno Haible  <bruno@clisp.org>
65183         Port extended stdio to NetBSD 1.5.
65184         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65185         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65186         older.
65188 2010-04-04  Bruno Haible  <bruno@clisp.org>
65190         string: Remove unused substitution.
65191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65192         HAVE_DECL_STRERROR.
65193         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65195 2010-04-04  Bruno Haible  <bruno@clisp.org>
65197         strtod: Avoid a possible C++ test error.
65198         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65199         set REPLACE_STRTOD.
65201 2010-04-04  Bruno Haible  <bruno@clisp.org>
65203         strerror: Update documentation.
65204         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65206 2010-04-04  Bruno Haible  <bruno@clisp.org>
65208         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65209         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65210         _GL_CXXALIAS_SYS_CAST.
65212 2010-04-04  Bruno Haible  <bruno@clisp.org>
65214         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65215         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65216         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65217         REPLACE_FREXPL to 1.
65218         * doc/posix-functions/frexpl.texi: Update documentation.
65220 2010-04-04  Bruno Haible  <bruno@clisp.org>
65222         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65223         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65225 2010-04-04  Bruno Haible  <bruno@clisp.org>
65227         Implement nanosleep for native Windows.
65228         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65230 2010-04-04  Bruno Haible  <bruno@clisp.org>
65232         math: Fix some C++ test errors on Solaris 8.
65233         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65235 2010-04-04  Bruno Haible  <bruno@clisp.org>
65237         math: Fix some C++ test errors on Cygwin.
65238         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65239         truncl): Provide declaration if the system does not have it.
65240         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65241         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65242         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65243         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65244         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65245         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65246         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65247         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65248         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65249         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65250         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65251         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65252         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65253         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65254         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65255         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65257         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65258         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65259         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65260         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65261         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65263 2010-04-04  Bruno Haible  <bruno@clisp.org>
65265         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65266         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65267         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65268         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65269         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65270         * m4/isinf.m4 (gl_ISINF): Likewise.
65271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65273 2010-04-04  Bruno Haible  <bruno@clisp.org>
65275         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65276         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65278 2010-04-04  Bruno Haible  <bruno@clisp.org>
65280         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65281         * modules/tmpfile (configure.ac): Update.
65283         tmpfile: Fix C++ test error on mingw.
65284         * lib/stdio.in.h (tmpfile): New declaration.
65285         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65286         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65287         * modules/tmpfile (Depends-on): Add stdio.
65288         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65289         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65290         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65291         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65292         REPLACE_TMPFILE.
65293         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65295 2010-04-04  Bruno Haible  <bruno@clisp.org>
65297         ioctl: Fix C++ test error on mingw.
65298         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65299         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65300         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65302 2010-04-03  Bruno Haible  <bruno@clisp.org>
65304         wcwidth: Fix C++ test error on mingw.
65305         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65307         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65309 2010-04-03  Bruno Haible  <bruno@clisp.org>
65311         nanosleep: Fix C++ test error on mingw.
65312         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65313         * lib/time.in.h (nanosleep): Use modern idiom.
65314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65315         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65316         REPLACE_NANOSLEEP to 1.
65317         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65318         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65320 2010-04-03  Bruno Haible  <bruno@clisp.org>
65322         strptime: Fix C++ test error on mingw.
65323         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65324         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65325         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65326         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65327         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65328         not REPLACE_STRPTIME.
65329         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65330         REPLACE_STRPTIME.
65332 2010-04-03  Bruno Haible  <bruno@clisp.org>
65334         timegm: Fix C++ test error on mingw.
65335         * lib/time.in.h (timegm): Use modern idiom.
65336         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65337         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65338         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65339         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65341 2010-04-03  Bruno Haible  <bruno@clisp.org>
65343         timegm: Assume declaration if function exists.
65344         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65345         if it exists. Don't clobber ac_cv_func_timegm.
65347 2010-04-03  Bruno Haible  <bruno@clisp.org>
65349         time_r: Fix C++ test error on mingw.
65350         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65351         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65352         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65354         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65356 2010-04-03  Bruno Haible  <bruno@clisp.org>
65358         time_r: Minor updates.
65359         * modules/time_r (Description): Mention the provided functions.
65360         * lib/time_r.c: Don't include <string.h>.
65361         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65362         * doc/posix-functions/localtime_r.texi: Likewise.
65364 2010-04-03  Bruno Haible  <bruno@clisp.org>
65366         time: Fix regression introduced on 2010-03-08.
65367         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65368         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65370 2010-04-03  Jim Meyering  <meyering@redhat.com>
65372         maint.mk: don't silently disable project-specific syntax-check rules
65373         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65374         that they need to convert their project-specific syntax-check rules
65375         to use the new _sc_search_regexp.
65377 2010-04-03  Bruno Haible  <bruno@clisp.org>
65379         fchdir: Fix regression introduced on 2010-03-08.
65380         * lib/unistd.in.h (fchdir): Fix declaration.
65381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65383         REPLACE_FCHDIR.
65384         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65385         REPLACE_FCHDIR.
65387 2010-04-03  Bruno Haible  <bruno@clisp.org>
65389         getpagesize: Fix C++ test error on mingw.
65390         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65391         system does not declare the function.
65392         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65393         declared.
65394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65395         HAVE_DECL_GETPAGESIZE.
65396         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65398 2010-04-03  Bruno Haible  <bruno@clisp.org>
65400         stdio: Make C++ tests work on mingw.
65401         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65402         does not declare the function.
65404 2010-04-03  Bruno Haible  <bruno@clisp.org>
65406         ftello: Fix C++ test error on mingw.
65407         * lib/stdio.in.h (ftello): Use modern idiom.
65408         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65409         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65410         is missing and that it needs to be replaced.
65411         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65413         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65415 2010-04-03  Bruno Haible  <bruno@clisp.org>
65417         fseeko: Fix C++ test error on mingw.
65418         * lib/stdio.in.h (fseeko): Use modern idiom.
65419         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65420         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65421         is missing and that it needs to be replaced.
65422         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65424         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65426 2010-04-03  Bruno Haible  <bruno@clisp.org>
65428         mkstemp: Fix C++ test error on mingw.
65429         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65431         function is missing and that it needs to be replaced.
65432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65433         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65435 2010-04-03  Bruno Haible  <bruno@clisp.org>
65437         stpncpy: Fix C++ test error on mingw.
65438         * lib/string.in.h (stpncpy): Use modern idiom.
65439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65440         function is missing and that it needs to be replaced.
65441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65442         REPLACE_STPNCPY.
65443         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65445 2010-04-03  Bruno Haible  <bruno@clisp.org>
65447         sys_stat: Fix C++ test error on mingw.
65448         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65449         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65451 2010-04-03  Bruno Haible  <bruno@clisp.org>
65453         pty: Update doc.
65454         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65456 2010-04-03  Bruno Haible  <bruno@clisp.org>
65458         unistd: Fix C++ test error on mingw.
65459         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65461 2010-04-03  Bruno Haible  <bruno@clisp.org>
65463         Update doc regarding mingw.
65464         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65465         * doc/glibc-functions/login_tty.texi: Likewise.
65466         * doc/glibc-functions/forkpty.texi: Likewise.
65468 2010-04-03  Bruno Haible  <bruno@clisp.org>
65470         stdlib: Avoid compilation failure of c-strtold on mingw.
65471         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65473 2010-04-03  Bruno Haible  <bruno@clisp.org>
65475         locale: Make C++ tests work on Cygwin and mingw.
65476         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65477         cannot provide the function.
65478         Reported by Simon Josefsson.
65480 2010-04-03  Bruno Haible  <bruno@clisp.org>
65482         localename: Port to MacOS X 10.6.
65483         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65484         memory layout of the locales in MacOS X 10.6 as well.
65485         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65487 2010-04-02  Bruno Haible  <bruno@clisp.org>
65489         gnulib-tool: Ensure that long-running tests are executed last.
65490         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65491         running tests after the one for the other tests.
65493 2010-04-02  Bruno Haible  <bruno@clisp.org>
65495         gnulib-tool: Ensure the tests in the main directory are executed first.
65496         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65497         start with the current directory.
65499 2010-04-02  Bruno Haible  <bruno@clisp.org>
65501         Tests for module 'havelib', moved here from GNU gettext.
65502         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65503         modifications.
65504         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65505         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65506         with modifications.
65507         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65508         modifications.
65509         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65510         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65511         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65512         with modifications.
65513         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65514         with modifications.
65515         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65516         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65517         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65518         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65519         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65520         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65521         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65522         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65523         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65524         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65525         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65526         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65527         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65528         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65529         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65530         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65531         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65532         with modifications.
65533         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65534         with modifications.
65535         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65536         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65537         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65538         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65539         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65540         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65541         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65542         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65543         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65544         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65545         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65546         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65547         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65548         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65549         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65550         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65551         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65552         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65553         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65554         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65555         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65556         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65557         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65558         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65559         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65560         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65561         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65562         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65563         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65564         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65565         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65566         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65567         * tests/havelib/rpathx/rpathx.c: New file, from
65568         gettext/autoconf-lib-link.
65569         * tests/havelib/rpathx/Makefile.am: New file, from
65570         gettext/autoconf-lib-link.
65571         * tests/havelib/rpathx/configure.ac: New file, from
65572         gettext/autoconf-lib-link with modifications.
65573         * tests/havelib/rpathy/rpathy.c: New file, from
65574         gettext/autoconf-lib-link.
65575         * tests/havelib/rpathy/Makefile.am: New file, from
65576         gettext/autoconf-lib-link.
65577         * tests/havelib/rpathy/configure.ac: New file, from
65578         gettext/autoconf-lib-link with modifications.
65579         * tests/havelib/rpathz/rpathz.c: New file, from
65580         gettext/autoconf-lib-link.
65581         * tests/havelib/rpathz/Makefile.am: New file, from
65582         gettext/autoconf-lib-link.
65583         * tests/havelib/rpathz/configure.ac: New file, from
65584         gettext/autoconf-lib-link with modifications.
65585         * tests/havelib/rpathlx/usex.c: New file, from
65586         gettext/autoconf-lib-link.
65587         * tests/havelib/rpathlx/Makefile.am: New file, from
65588         gettext/autoconf-lib-link.
65589         * tests/havelib/rpathlx/configure.ac: New file, from
65590         gettext/autoconf-lib-link with modifications.
65591         * tests/havelib/rpathly/usey.c: New file, from
65592         gettext/autoconf-lib-link.
65593         * tests/havelib/rpathly/Makefile.am: New file, from
65594         gettext/autoconf-lib-link.
65595         * tests/havelib/rpathly/configure.ac: New file, from
65596         gettext/autoconf-lib-link with modifications.
65597         * tests/havelib/rpathlz/usez.c: New file, from
65598         gettext/autoconf-lib-link.
65599         * tests/havelib/rpathlz/Makefile.am: New file, from
65600         gettext/autoconf-lib-link.
65601         * tests/havelib/rpathlz/configure.ac: New file, from
65602         gettext/autoconf-lib-link with modifications.
65603         * tests/havelib/rpathlyx/usey.c: New file, from
65604         gettext/autoconf-lib-link.
65605         * tests/havelib/rpathlyx/Makefile.am: New file, from
65606         gettext/autoconf-lib-link.
65607         * tests/havelib/rpathlyx/configure.ac: New file, from
65608         gettext/autoconf-lib-link with modifications.
65609         * tests/havelib/rpathlzyx/usez.c: New file, from
65610         gettext/autoconf-lib-link.
65611         * tests/havelib/rpathlzyx/Makefile.am: New file, from
65612         gettext/autoconf-lib-link.
65613         * tests/havelib/rpathlzyx/configure.ac: New file, from
65614         gettext/autoconf-lib-link with modifications.
65615         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
65616         with modifications.
65618 2010-04-02  Bruno Haible  <bruno@clisp.org>
65620         gnulib-tool: Create distributed built sources also for the tests.
65621         * gnulib-tool (func_create_testdir): Also generate distributed built
65622         sources in the tests directory.
65624 2010-04-02  Bruno Haible  <bruno@clisp.org>
65626         gnulib-tool: Obey user's environment variables.
65627         * gnulib-tool (func_create_testdir): When creating built sources,
65628         respect the environment variables for autoconf, automake, etc. given by
65629         the user.
65631 2010-04-02  Bruno Haible  <bruno@clisp.org>
65633         gnulib-tool: Provide the value of --m4-base to modules.
65634         * gnulib-tool (func_import, func_create_testdir): Emit a definition
65635         of gl_m4_base.
65637 2010-04-02  Eric Blake  <eblake@redhat.com>
65639         maint.mk: fix some fallout
65640         * NEWS: Document the incompatible change, and its effect on cfg.mk.
65641         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
65643 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65645         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
65646         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
65647         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
65648         (sc_cast_of_x_alloc_return_value): Likewise.
65649         (sc_cast_of_alloca_return_value): Likewise.
65650         (sc_space_tab): Likewise.
65651         (sc_prohibit_atoi_atof): Likewise.
65652         (sc_prohibit_magic_number_exit): Likewise.
65653         (sc_error_exit_success): Likewise.
65654         (sc_file_system): Likewise.
65655         (sc_prohibit_have_config_h): Likewise.
65656         (sc_require_config_h): Likewise.
65657         (sc_prohibit_HAVE_MBRTOWC): Likewise.
65658         (sc_obsolete_symbols): Likewise.
65659         (sc_changelog): Likewise.
65660         (sc_program_name): Likewise.
65661         (sc_the_the): Likewise.
65662         (sc_trailing_blank): Likewise.
65663         (sc_two_space_separator_in_usage): Likewise.
65664         (sc_useless_cpp_parens): Likewise.
65665         (sc_GPL_version): Likewise.
65666         (sc_GFDL_version): Likewise.
65667         (sc_texinfo_acronym): Likewise.
65668         (sc_prohibit_cvs_keyword): Likewise.
65669         (sc_prohibit_stat_st_blocks): Likewise.
65670         (sc_prohibit_S_IS_definition): Likewise.
65671         (sc_redundant_const): Likewise.
65672         (sc_makefile_TAB_only_indentation): Likewise.
65673         (sc_m4_quote_check): Likewise.
65674         (sc_makefile_path_separator_check): Likewise.
65675         (sc_copyright_check): Likewise.
65676         (sc_Wundef_boolean): Likewise.
65677         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65679         maint.mk: match 0 or more whitespace-before-function-call '('
65680         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
65681         that have zero or two-and-more spaces between the function name
65682         and the open parenthesis.
65683         (sc_error_message_warn_fatal): Likewise.
65684         (sc_error_message_uppercase): Likewise.
65685         (sc_error_message_period): Likewise.
65687 2010-03-31  Eric Blake  <eblake@redhat.com>
65689         maint.mk: check for [ as well as test
65690         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
65691         Based on a libvirt report by Matthias Bolte.
65693         gnumakefile: don't squelch _version output
65694         * top/GNUmakefile (_version): Create one-shot dependency rather
65695         than using $(shell) when version must be regenerated.
65696         (_autoreconf): Run verbosely, by default.
65698         sys_time: avoid compiler warnings
65699         * lib/sys_time.in.h (includes): Ensure gcc pragma is
65700         unconditional, fixing regression from 2010-03-29.
65701         Reported by Simon Josefsson.
65703 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65705         maint.mk: s/_header_without_use/_sc_header_without_use/
65706         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
65707         (sc_prohibit_assert_without_use): Use the new name.
65708         (sc_prohibit_close_stream_without_use): Likewise.
65709         (sc_prohibit_getopt_without_use): Likewise.
65710         (sc_prohibit_quotearg_without_use): Likewise.
65711         (sc_prohibit_quote_without_use): Likewise.
65712         (sc_prohibit_long_options_without_use): Likewise.
65713         (sc_prohibit_inttostr_without_use): Likewise.
65714         (sc_prohibit_ignore_value_without_use): Likewise.
65715         (sc_prohibit_error_without_use): Likewise.
65716         (sc_prohibit_xalloc_without_use): Likewise.
65717         (sc_prohibit_hash_without_use): Likewise.
65718         (sc_prohibit_hash_pjw_without_use): Likewise.
65719         (sc_prohibit_safe_read_without_use): Likewise.
65720         (sc_prohibit_argmatch_without_use): Likewise.
65721         (sc_prohibit_canonicalize_without_use): Likewise.
65722         (sc_prohibit_root_dev_ino_without_use): Likewise.
65723         (sc_prohibit_openat_without_use): Likewise.
65724         (sc_prohibit_c_ctype_without_use): Likewise.
65725         (sc_prohibit_signal_without_use): Likewise.
65726         (sc_prohibit_intprops_without_use): Likewise.
65728 2010-03-30  Eric Blake  <eblake@redhat.com>
65730         maint: improve module indicators
65731         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
65732         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
65733         columns, and avoid extra macro expansion.
65735         fdopendir: work around FreeBSD bug
65736         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
65737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
65738         * modules/dirent (Makefile.am): Substitute it.
65739         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
65740         declaration.
65741         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
65742         fix.
65743         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65745 2010-03-29  Bruno Haible  <bruno@clisp.org>
65747         Emit #pragma system_header after the inclusion guard, not before.
65748         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
65749         guard that spans the entire file, not before. This enables an
65750         optimization in GCC's preprocessor.
65751         * lib/ctype.in.h: Likewise.
65752         * lib/dirent.in.h: Likewise.
65753         * lib/errno.in.h: Likewise.
65754         * lib/float.in.h: Likewise.
65755         * lib/getopt.in.h: Likewise.
65756         * lib/iconv.in.h: Likewise.
65757         * lib/langinfo.in.h: Likewise.
65758         * lib/locale.in.h: Likewise.
65759         * lib/math.in.h: Likewise.
65760         * lib/netdb.in.h: Likewise.
65761         * lib/netinet_in.in.h: Likewise.
65762         * lib/pty.in.h: Likewise.
65763         * lib/sched.in.h: Likewise.
65764         * lib/se-selinux.in.h: Likewise.
65765         * lib/search.in.h: Likewise.
65766         * lib/spawn.in.h: Likewise.
65767         * lib/stdarg.in.h: Likewise.
65768         * lib/stdint.in.h: Likewise.
65769         * lib/string.in.h: Likewise.
65770         * lib/strings.in.h: Likewise.
65771         * lib/sys_file.in.h: Likewise.
65772         * lib/sys_ioctl.in.h: Likewise.
65773         * lib/sys_time.in.h: Likewise.
65774         * lib/sys_times.in.h: Likewise.
65775         * lib/sys_utsname.in.h: Likewise.
65776         * lib/sys_wait.in.h: Likewise.
65777         * lib/sysexits.in.h: Likewise.
65778         * lib/wctype.in.h: Likewise.
65780 2010-03-28  James Youngman  <jay@gnu.org>
65782         save-cwd: don't leak a file descriptor when the caller execs.
65783         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
65784         saved file descriptor.
65785         * modules/save-cwd (Depends-on): Depend on cloexec.
65787 2010-03-29  Bruno Haible  <bruno@clisp.org>
65789         Remove vestiges of fts-lgpl module.
65790         * lib/fts_.h: Assume GNULIB_FTS is 1.
65791         * lib/fts.c: Likewise.
65792         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
65794 2010-03-28  Bruno Haible  <bruno@clisp.org>
65796         Fix definition of tests witness macro.
65797         * gnulib-tool (func_import): Fix definition of witness macro.
65799 2010-03-28  Bruno Haible  <bruno@clisp.org>
65801         Fix ioctl's protoype on glibc systems.
65802         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
65803         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
65804         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
65805         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
65806         signature. If not, arrange to replace the ioctl function.
65807         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65808         REPLACE_IOCTL.
65809         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
65810         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
65811         Reported by Ludovic Courtès <ludo@gnu.org>.
65813 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
65815         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
65816         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
65817         made it so grep -r --include=GLOB* ... did not work.
65819 2010-03-26  Jim Meyering  <meyering@redhat.com>
65820             Eric Blake  <eblake@redhat.com>
65822         maint.mk: prohibit use of test's -o and -a operators
65823         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
65825 2010-03-28  Bruno Haible  <bruno@clisp.org>
65827         Remove unused GNULIB_XYZ macro definitions.
65828         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
65829         invocation.
65831 2010-03-28  Bruno Haible  <bruno@clisp.org>
65833         Mark privileged tests modules.
65834         * modules/idpriv-drop-tests (Status): New section.
65835         * modules/idpriv-droptemp-tests (Status): New section.
65837 2010-03-28  Bruno Haible  <bruno@clisp.org>
65839         Split C++ tests into separate tests modules.
65840         * modules/dirent-c++-tests: New file, extracted from
65841         modules/dirent-tests.
65842         * modules/dirent-tests: Depend on it.
65843         * modules/fcntl-h-c++-tests: New file, extracted from
65844         modules/fcntl-h-tests.
65845         * modules/fcntl-h-tests: Depend on it.
65846         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
65847         * modules/glob-tests: Depend on it.
65848         * modules/iconv-h-c++-tests: New file, extracted from
65849         modules/iconv-h-tests.
65850         * modules/iconv-h-tests: Depend on it.
65851         * modules/langinfo-c++-tests: New file, extracted from
65852         modules/langinfo-tests.
65853         * modules/langinfo-tests: Depend on it.
65854         * modules/locale-c++-tests: New file, extracted from
65855         modules/locale-tests.
65856         * modules/locale-tests: Depend on it.
65857         * modules/math-c++-tests: New file, extracted from modules/math-tests.
65858         * modules/math-tests: Depend on it.
65859         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
65860         * modules/pty-tests: Depend on it.
65861         * modules/search-c++-tests: New file, extracted from
65862         modules/search-tests.
65863         * modules/search-tests: Depend on it.
65864         * modules/signal-c++-tests: New file, extracted from
65865         modules/signal-tests.
65866         * modules/signal-tests: Depend on it.
65867         * modules/spawn-c++-tests: New file, extracted from
65868         modules/spawn-tests.
65869         * modules/spawn-tests: Depend on it.
65870         * modules/stdio-c++-tests: New file, extracted from
65871         modules/stdio-tests.
65872         * modules/stdio-tests: Depend on it.
65873         * modules/stdlib-c++-tests: New file, extracted from
65874         modules/stdlib-tests.
65875         * modules/stdlib-tests: Depend on it.
65876         * modules/string-c++-tests: New file, extracted from
65877         modules/string-tests.
65878         * modules/string-tests: Depend on it.
65879         * modules/sys_ioctl-c++-tests: New file, extracted from
65880         modules/sys_ioctl-tests.
65881         * modules/sys_ioctl-tests: Depend on it.
65882         * modules/sys_select-c++-tests: New file, extracted from
65883         modules/sys_select-tests.
65884         * modules/sys_select-tests: Depend on it.
65885         * modules/sys_socket-c++-tests: New file, extracted from
65886         modules/sys_socket-tests.
65887         * modules/sys_socket-tests: Depend on it.
65888         * modules/sys_stat-c++-tests: New file, extracted from
65889         modules/sys_stat-tests.
65890         * modules/sys_stat-tests: Depend on it.
65891         * modules/sys_time-c++-tests: New file, extracted from
65892         modules/sys_time-tests.
65893         * modules/sys_time-tests: Depend on it.
65894         * modules/time-c++-tests: New file, extracted from modules/time-tests.
65895         * modules/time-tests: Depend on it.
65896         * modules/unistd-c++-tests: New file, extracted from
65897         modules/unistd-tests.
65898         * modules/unistd-tests: Depend on it.
65899         * modules/wchar-c++-tests: New file, extracted from
65900         modules/wchar-tests.
65901         * modules/wchar-tests: Depend on it.
65902         * modules/wctype-c++-tests: New file, extracted from
65903         modules/wctype-tests.
65904         * modules/wctype-tests: Depend on it.
65905         Reported by Simon Josefsson.
65907 2010-03-28  Bruno Haible  <bruno@clisp.org>
65909         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
65910         * gnulib-tool (func_exists_module): New function, extracted from
65911         func_verify_module.
65912         (func_verify_module): Use it.
65913         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
65914         'foo' only if 'foo' exists.
65915         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
65916         module.
65918 2010-03-28  Bruno Haible  <bruno@clisp.org>
65920         gnulib-tool: Add support for special categories of tests.
65921         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
65922         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
65923         (func_usage): Document them.
65924         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
65925         inc_unportable_tests, inc_all_tests): New variables.
65926         (func_acceptable): Consider these variables.
65927         (func_modules_transitive_closure): Make it work when the 'Status' field
65928         consists of multiple words.
65929         (func_import): Store and restore the values of inc_cxx_tests,
65930         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
65931         inc_all_tests in gnulib-comp.m4.
65932         (func_create_testdir): Set inc_all_tests to true.
65933         * doc/gnulib.texi (Extra tests modules): New section.
65934         Suggested by Jim Meyering.
65936 2010-03-28  Bruno Haible  <bruno@clisp.org>
65938         ansi-c++-opt: Allow turning off the C++ build by default.
65939         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
65940         gl_CXX_CHOICE_DEFAULT_NO is defined.
65941         Requested by Eric Blake.
65943 2010-03-28  Bruno Haible  <bruno@clisp.org>
65945         unistd: Avoid #define replacements in C++ mode.
65946         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
65947         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
65948         setsockopt, shutdown, select): In C++, attach a warning to the function
65949         if possible, rather than #defining the symbol to a dysfunctional alias.
65950         Reported by John W. Eaton <jwe@gnu.org>.
65952 2010-03-28  Bruno Haible  <bruno@clisp.org>
65954         Fix link errors on mingw.
65955         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
65956         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
65957         $(LIBSOCKET).
65958         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
65959         $(LIBSOCKET).
65961 2010-03-28  Bruno Haible  <bruno@clisp.org>
65962             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65964         lib-ignore: Determine different options for different compilers.
65965         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
65966         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
65967         Add comments.
65968         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
65969         * NEWS: Mention the change.
65971 2010-03-27  Bruno Haible  <bruno@clisp.org>
65973         Remove unused GNULIB_XYZ macro definitions.
65974         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
65975         * modules/fseek (configure.ac): Likewise.
65976         * modules/ioctl (configure.ac): Likewise.
65977         * modules/open (configure.ac): Likewise.
65978         * modules/stdlib-safer (configure.ac): Likewise.
65980 2010-03-27  Bruno Haible  <bruno@clisp.org>
65982         Add a remark about certain modules.
65983         * modules/malloc (Comment): New section.
65984         * modules/realloc (Comment): Likewise.
65985         * modules/sigpipe (Comment): Likewise.
65987 2010-03-27  Bruno Haible  <bruno@clisp.org>
65989         Resolve conflict between the two kinds of module indicators.
65990         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
65991         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
65992         * modules/canonicalize (configure.ac): Invoke
65993         gl_MODULE_INDICATOR_FOR_TESTS.
65994         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
65995         GNULIB_XYZ.
65996         * tests/test-dirent-c++.cc: Likewise.
65997         * tests/test-dirent-safer.c: Likewise.
65998         * tests/test-dup2.c: Likewise.
65999         * tests/test-fchdir.c: Likewise.
66000         * tests/test-fcntl-h-c++.cc: Likewise.
66001         * tests/test-getopt.c: Likewise.
66002         * tests/test-getopt.h: Likewise.
66003         * tests/test-langinfo-c++.cc: Likewise.
66004         * tests/test-locale-c++.cc: Likewise.
66005         * tests/test-math-c++.cc: Likewise.
66006         * tests/test-pty-c++.cc: Likewise.
66007         * tests/test-search-c++.cc: Likewise.
66008         * tests/test-signal-c++.cc: Likewise.
66009         * tests/test-spawn-c++.cc: Likewise.
66010         * tests/test-stdio-c++.cc: Likewise.
66011         * tests/test-stdlib-c++.cc: Likewise.
66012         * tests/test-string-c++.cc: Likewise.
66013         * tests/test-sys_ioctl-c++.cc: Likewise.
66014         * tests/test-sys_select-c++.cc: Likewise.
66015         * tests/test-sys_socket-c++.cc: Likewise.
66016         * tests/test-sys_stat-c++.cc: Likewise.
66017         * tests/test-sys_time-c++.cc: Likewise.
66018         * tests/test-time-c++.cc: Likewise.
66019         * tests/test-unistd-c++.cc: Likewise.
66020         * tests/test-wchar-c++.cc: Likewise.
66021         * tests/uninorm/test-u8-nfc.c: Likewise.
66022         * tests/uninorm/test-u8-nfd.c: Likewise.
66023         * tests/uninorm/test-u8-nfkc.c: Likewise.
66024         * tests/uninorm/test-u8-nfkd.c: Likewise.
66025         * tests/uninorm/test-u16-nfc.c: Likewise.
66026         * tests/uninorm/test-u16-nfd.c: Likewise.
66027         * tests/uninorm/test-u16-nfkc.c: Likewise.
66028         * tests/uninorm/test-u16-nfkd.c: Likewise.
66029         * tests/uninorm/test-u32-nfc.c: Likewise.
66030         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66031         * tests/uninorm/test-u32-nfd.c: Likewise.
66032         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66033         * tests/uninorm/test-u32-nfkc.c: Likewise.
66034         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66035         * tests/uninorm/test-u32-nfkd.c: Likewise.
66036         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66037         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66039 2010-03-27  Bruno Haible  <bruno@clisp.org>
66041         Distinguish two kinds of module indicators.
66042         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66043         gl_MODULE_INDICATOR.
66044         (gl_MODULE_INDICATOR): New macro.
66045         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66046         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66047         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66048         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66049         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66050         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66051         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66052         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66053         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66054         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66055         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66056         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66058         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66059         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66060         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66061         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66062         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66063         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66064         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66065         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66066         * modules/cloexec (configure.ac): Likewise.
66067         * modules/getopt-gnu (configure.ac): Likewise.
66068         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66069         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66070         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66071         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66073 2010-03-27  Bruno Haible  <bruno@clisp.org>
66075         New module description field 'Comment'.
66076         * gnulib-tool: New option --extract-comment.
66077         (func_usage): Document it.
66078         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66079         (func_get_comment): New function.
66080         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66082 2010-03-27  Bruno Haible  <bruno@clisp.org>
66084         Addendum to 2010-02-07 commit.
66085         * gnulib-tool (func_usage): Document --extract-applicability option.
66087 2010-03-27  Bruno Haible  <bruno@clisp.org>
66089         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66090         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66091         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66092         rather than link errors.
66094 2010-03-27  Bruno Haible  <bruno@clisp.org>
66096         Avoid side effects from tests-related modules on the compilation of lib.
66097         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66098         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66099         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66100         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66101         macro.
66102         (func_import): Define a witness macro. Assign it a value that depends
66103         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66104         tests-related modules.
66105         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66106         Reported by Jim Meyering.
66108 2010-03-27  Bruno Haible  <bruno@clisp.org>
66110         Factorize common .m4 code.
66111         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66112         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66113         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66114         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66115         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66116         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66117         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66118         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66119         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66120         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66121         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66122         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66123         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66124         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66125         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66126         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66127         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66128         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66130         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66131         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66132         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66133         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66134         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66135         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66136         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66137         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66138         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66139         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66140         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66141         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66142         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66144 2010-03-27  Bruno Haible  <bruno@clisp.org>
66146         Fix a compilation error on Cygwin with g++ >= 4.3.
66147         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66148         if it is undefined or if we alias it to chmod.
66149         (lstat): Don't warn about the use of this function if it is undefined
66150         or if we alias it to stat.
66151         Reported by Simon Josefsson.
66153 2010-03-27  Bruno Haible  <bruno@clisp.org>
66155         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66156         * modules/getlogin (configure.ac): Update.
66158         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66159         * modules/getlogin_r (configure.ac): Update.
66161         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66163         * modules/inet_ntop (configure.ac): Update.
66165         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66166         * modules/inet_pton (configure.ac): Update.
66168         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66169         * modules/mbslen (configure.ac): Update.
66171         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66172         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66173         * modules/forkpty (configure.ac): Update.
66174         * modules/openpty (configure.ac): Update.
66176 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66178         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66179         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66181 2010-03-25  Eric Blake  <eblake@redhat.com>
66183         maint: use pragma consistently across replacement headers
66184         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66185         * lib/dirent.in.h (system_header): Likewise.
66186         * lib/errno.in.h (system_header): Likewise.
66187         * lib/float.in.h (system_header): Likewise.
66188         * lib/getopt.in.h (system_header): Likewise.
66189         * lib/iconv.in.h (system_header): Likewise.
66190         * lib/inttypes.in.h (system_header): Likewise.
66191         * lib/langinfo.in.h (system_header): Likewise.
66192         * lib/locale.in.h (system_header): Likewise.
66193         * lib/math.in.h (system_header): Likewise.
66194         * lib/netdb.in.h (system_header): Likewise.
66195         * lib/netinet_in.in.h (system_header): Likewise.
66196         * lib/pty.in.h (system_header): Likewise.
66197         * lib/sched.in.h (system_header): Likewise.
66198         * lib/se-selinux.in.h (system_header): Likewise.
66199         * lib/search.in.h (system_header): Likewise.
66200         * lib/spawn.in.h (system_header): Likewise.
66201         * lib/stdarg.in.h (system_header): Likewise.
66202         * lib/stdint.in.h (system_header): Likewise.
66203         * lib/string.in.h (system_header): Likewise.
66204         * lib/strings.in.h (system_header): Likewise.
66205         * lib/sys_file.in.h (system_header): Likewise.
66206         * lib/sys_ioctl.in.h (system_header): Likewise.
66207         * lib/sys_socket.in.h (system_header): Likewise.
66208         * lib/sys_times.in.h (system_header): Likewise.
66209         * lib/sys_utsname.in.h (system_header): Likewise.
66210         * lib/sys_wait.in.h (system_header): Likewise.
66211         * lib/sysexits.in.h (system_header): Likewise.
66212         * lib/unistd.in.h (system_header): Likewise.
66213         * lib/wctype.in.h (system_header): Likewise.
66215         arpa/inet: fix mingw compilation warning
66216         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66217         Reported by Matthew Bolte.
66219 2010-03-25  Bruno Haible  <bruno@clisp.org>
66221         Avoid collision between gnulib wrapper and libintl wrapper.
66222         * lib/printf.c (printf): Don't define if a printf wrapper is already
66223         defined in intl/printf.c.
66224         Reported by Michel Boaventura <michel@michelboaventura.com>.
66226 2010-03-25  Bruno Haible  <bruno@clisp.org>
66228         Use ANSI C.
66229         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66231 2010-03-25  Bruno Haible  <bruno@clisp.org>
66233         Minor formatting changes.
66234         * lib/acosl.c: Insert space before function argument list.
66235         * lib/argz.c: Likewise.
66236         * lib/asinl.c: Likewise.
66237         * lib/expl.c: Likewise.
66238         * lib/gen-uni-tables.c: Likewise.
66239         * lib/gettext.h: Likewise.
66240         * lib/glthread/lock.h: Likewise.
66241         * lib/tanl.c: Likewise.
66242         * lib/uniname/uniname.c: Likewise.
66243         * tests/test-idpriv-drop.c: Likewise.
66244         * tests/test-idpriv-droptemp.c: Likewise.
66245         * tests/test-lock.c: Likewise.
66246         * tests/test-tls.c: Likewise.
66247         * lib/argp-help.c: Insert space before function-like macro argument
66248         list.
66249         * lib/memcmp.c: Likewise.
66250         * tests/test-base64.c: Likewise.
66251         * lib/localename.c: Insert space before sizeof's argument list.
66252         * lib/safe-alloc.h: Likewise.
66253         * lib/file-set.h: Insert space before macro argument list.
66254         * tests/test-argp.c: Likewise.
66255         * lib/argp-namefrob.h: Insert space before function parameter list.
66256         * lib/getaddrinfo.c: Likewise.
66257         * lib/netdb.in.h: Likewise.
66258         * lib/parse-duration.h: Likewise.
66259         * lib/parse-duration.c: Likewise.
66260         * lib/poll.c: Likewise.
66261         * lib/select.c: Likewise.
66262         * lib/trim.h: Likewise.
66263         * tests/test-usleep.c: Likewise.
66264         * lib/ldexpl.c: Insert space before function parameter list and before
66265         function argument list.
66266         * lib/logl.c: Likewise.
66267         * lib/sqrtl.c: Likewise.
66268         * lib/trim.c: Likewise.
66269         * lib/cosl.c: Use GNU style indentation. Insert space before function
66270         argument list.
66271         * lib/sinl.c: Likewise.
66272         * lib/tsearch.c: Insert space after 'for'.
66273         Reported by Jim Meyering.
66275 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66277         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66278         config header before grepping, as it's not present before
66279         autoreconf/configure are run.  Reported by Simon Josefsson.
66281 2010-03-23  Bruno Haible  <bruno@clisp.org>
66283         pt_chown: Make it work with automake < 1.11.
66284         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66285         Reported by Simon Josefsson.
66287 2010-03-23  Bruno Haible  <bruno@clisp.org>
66289         pt_chown: Don't depend on GPLed modules.
66290         * lib/pt_chown.c: Don't include idpriv.h.
66291         (main): Don't drop privileges.
66292         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66293         Reported by Simon Josefsson.
66295 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66297         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66298         suggestions from karl@freefriends.org (Karl Berry).
66300 2010-03-22  Eric Blake  <eblake@redhat.com>
66302         gethostname: further tweaks
66303         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66304         are overriding gethostname.
66305         Suggested by Bruno Haible.
66307 2010-03-21  Bruno Haible  <bruno@clisp.org>
66309         Fix comments.
66310         * lib/forkpty.c (rpl_forkpty): Fix comment.
66311         * lib/openpty.c (rpl_openpty): Likewise.
66312         Reported by Eric Blake.
66314 2010-03-22  Eric Blake  <eblake@redhat.com>
66316         gethostname: fix build on mingw
66317         * lib/unistd.in.h (includes): Work around fact that mingw
66318         <winsock2.h> re-includes <unistd.h>, by avoiding any
66319         redeclarations if we are being included by <winsock2.h>.
66320         Reported by Matthias Bolte.
66322 2010-03-21  Bruno Haible  <bruno@clisp.org>
66324         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66325         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66326         modifications.
66327         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66328         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66329         provide the replacement.
66330         * modules/forkpty (Depends-on): Add openpty, login_tty.
66331         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66332         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66333         * doc/glibc-functions/forkpty.texi: More supported platforms.
66334         * config/srclist.txt: Add forkpty.c (commented).
66336 2010-03-21  Bruno Haible  <bruno@clisp.org>
66338         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66339         (Makefile.am): Verify that PTY_LIB is defined.
66341         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66343 2010-03-21  Bruno Haible  <bruno@clisp.org>
66345         Tests for module 'login_tty'.
66346         * modules/login_tty-tests: New file.
66347         * tests/test-login_tty.c: New file.
66349         New module 'login_tty'.
66350         * lib/login_tty.c: New file.
66351         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66352         * modules/login_tty: New file.
66353         * doc/glibc-functions/login_tty.texi: Mention the new module.
66355 2010-03-21  Bruno Haible  <bruno@clisp.org>
66357         login_tty: Documentation.
66358         * doc/glibc-functions/login_tty.texi: New file.
66359         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66361 2010-03-21  Bruno Haible  <bruno@clisp.org>
66363         pty: Consistent macro naming.
66364         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66365         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66366         * modules/pty (configure.ac): Update.
66368 2010-03-21  Bruno Haible  <bruno@clisp.org>
66370         Tests for openpty: Make stricter.
66371         * tests/test-openpty.c (main): Add test of canonical processing and
66372         erase.
66373         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66375         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66376         * lib/openpty.c (openpty): New replacement function.
66377         * lib/pty.in.h: Include <termios.h>.
66378         (openpty): Update declaration. Add comments.
66379         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66380         is not declared, arrange to provide the replacement. Check for _getpty
66381         and posix_openpt.
66382         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66383         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66384         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66385         * modules/pty-tests (test_pty_c___LDADD): New variable.
66386         * doc/glibc-functions/openpty.texi: More supported platforms.
66388 2010-03-21  Bruno Haible  <bruno@clisp.org>
66390         setenv: Tweaks.
66391         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66392         the test program.
66393         * doc/posix-functions/setenv.texi: Update platforms list.
66395 2010-03-21  Bruno Haible  <bruno@clisp.org>
66397         New module 'unlockpt'.
66398         * lib/unlockpt.c: New file, from glibc with modifications.
66399         * m4/unlockpt.m4: New file.
66400         * modules/unlockpt: New file.
66401         * lib/stdlib.in.h (unlockpt): New declaration.
66402         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66403         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66404         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66405         HAVE_UNLOCKPT.
66406         * doc/posix-functions/unlockpt.texi: Mention the new module.
66407         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66408         * config/srclist.txt: Add unlockpt.c (commented).
66410 2010-03-21  Jim Meyering  <meyering@redhat.com>
66412         maint.mk: prohibit inclusion of "intprops.h" without use
66413         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66415 2010-03-21  Bruno Haible  <bruno@clisp.org>
66417         New module 'grantpt'.
66418         * lib/grantpt.c: New file, from glibc with modifications.
66419         * m4/grantpt.m4: New file.
66420         * modules/grantpt: New file.
66421         * lib/stdlib.in.h (grantpt): New declaration.
66422         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66423         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66424         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66425         HAVE_GRANTPT.
66426         * doc/posix-functions/grantpt.texi: Mention the new module.
66427         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66428         * config/srclist.txt: Add grantpt.c (commented).
66430 2010-03-21  Bruno Haible  <bruno@clisp.org>
66432         New module 'pt_chown'.
66433         * lib/pt_chown.c: New file, from glibc with modifications.
66434         * lib/pty-private.h: New file, from glibc with modifications.
66435         * modules/pt_chown: New file.
66436         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66438 2010-03-21  Bruno Haible  <bruno@clisp.org>
66440         Tests for module 'ptsname'.
66441         * modules/ptsname-tests: New file.
66442         * tests/test-ptsname.c: New file.
66444         New module 'ptsname'.
66445         * lib/ptsname.c: New file, from glibc with modifications.
66446         * m4/ptsname.m4: New file.
66447         * modules/ptsname: New file.
66448         * lib/stdlib.in.h (ptsname): New declaration.
66449         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66450         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66451         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66452         HAVE_PTSNAME.
66453         * doc/posix-functions/ptsname.texi: Mention the new module.
66454         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66455         * config/srclist.txt: Add ptsname.c (commented).
66457 2010-03-21  Bruno Haible  <bruno@clisp.org>
66459         Tests for module 'ttyname_r'.
66460         * modules/ttyname_r-tests: New file.
66461         * tests/test-ttyname_r.c: New file.
66463         New module 'ttyname_r'.
66464         * lib/ttyname_r.c: New file.
66465         * m4/ttyname_r.m4: New file.
66466         * modules/ttyname_r: New file.
66467         * lib/unistd.in.h (ttyname_r): New declaration.
66468         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66469         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66470         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66471         HAVE_TTYNAME_R.
66472         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66473         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66475 2010-03-20  Bruno Haible  <bruno@clisp.org>
66477         signal: Undefine macro definitions in C++ mode.
66478         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66479         sigfillset): Undefine macro definitions from the system header in C++
66480         mode.
66481         Reported by John W. Eaton <jwe@gnu.org>.
66483 2010-03-20  Bruno Haible  <bruno@clisp.org>
66485         Ensure no #include statements inside extern "C" { ... }.
66486         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66487         contain #include statements.
66488         * lib/time.in.h: Likewise.
66490 2010-03-20  Bruno Haible  <bruno@clisp.org>
66492         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66493         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66494         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66495         Reported by John W. Eaton <jwe@gnu.org>.
66497 2010-03-20  Bruno Haible  <bruno@clisp.org>
66499         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66500         Reported by Jim Meyering.
66502 2010-03-20  Bruno Haible  <bruno@clisp.org>
66504         pipe: Set errno upon failure.
66505         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66506         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66507         errno value in error message.
66509 2010-03-20  Bruno Haible  <bruno@clisp.org>
66510             Jim Meyering  <meyering@redhat.com>
66512         lchown: Avoid "unused variable" warning.
66513         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66515 2010-03-20  Bruno Haible  <bruno@clisp.org>
66517         Work around unlink() bug on MacOS X 10.5.6.
66518         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66519         attempting to unlink a parent directory.
66520         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66521         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66522         activate for the replacement function.
66523         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66525 2010-03-20  Bruno Haible  <bruno@clisp.org>
66527         Fix link errors on Solaris 8.
66528         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66529         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66531 2010-03-19  Jim Meyering  <meyering@redhat.com>
66533         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66534         The _LIBC implementation of build_range_exp correctly honors the
66535         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66536         However, the non-_LIBC implementation would ignore that syntax-bit
66537         flag and return REG_ERANGE unconditionally.
66538         This change makes it honor that flag.
66539         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66540         Make two pointer parameters "const".
66541         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66542         (parse_bracket_exp): Update caller.
66544         regex.m4: correct the reversed range endpoint ([b-a]) test
66545         * m4/regex.m4: When requiring that [b-a] evoke failure,
66546         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66547         test pass once again for x86-based systems.
66549 2010-03-19  Bruno Haible  <bruno@clisp.org>
66551         scandir: Fix link error on Solaris 8.
66552         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66553         macros.
66555 2010-03-19  Bruno Haible  <bruno@clisp.org>
66557         getusershell: Fix documentation.
66558         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66559         module.
66560         * doc/glibc-functions/setusershell.texi: Likewise.
66562         getusershell: Provide declaration, missing on Solaris 9.
66563         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66564         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66565         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66566         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66568         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66569         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66570         HAVE_GETUSERSHELL.
66571         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66573 2010-03-19  Bruno Haible  <bruno@clisp.org>
66575         wctype: Provide iswblank function.
66576         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66577         exists and is fine.
66578         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66579         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66580         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66581         * doc/posix-functions/iswblank.texi: Update.
66583 2010-03-19  Bruno Haible  <bruno@clisp.org>
66585         Tests of module 'pty' in C++ mode.
66586         * modules/pty-tests: New file.
66587         * tests/test-pty-c++.cc: New file.
66588         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66590 2010-03-19  Eric Blake  <eblake@redhat.com>
66592         logb: fix documentation
66593         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
66594         1.5 declaration bug.
66596         forkpty, openpty: prefer glibc's const-safe prototype
66597         * lib/forkpty.c (rpl_forkpty): New file.
66598         * lib/openpty.c (rpl_openpty): Likewise.
66599         * modules/forkpty (Files): Distribute it.
66600         * modules/openpty (Files): Likewise.
66601         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
66602         check...
66603         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
66604         replacement for non-const BSD signature.
66605         * modules/pty (Makefile.am): Substitute witnesses.
66606         * lib/pty.in.h (forkpty, openpty): Declare replacements.
66607         * tests/test-forkpty.c: Update signature check.
66608         * tests/test-openpty.c: Likewise.
66609         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
66610         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66612         forkpty, openpty: split functions into new modules
66613         * modules/pty (Makefile.am): Substitute new witnesses.
66614         (Libraries): Move library detection...
66615         * modules/forkpty: ...into new module.
66616         * modules/openpty: Another new module.
66617         * modules/pty-tests: Rename and split...
66618         * modules/forkpty-tests: ...to this...
66619         * modules/openpty-tests: ...and this.
66620         * tests/test-pty.c: Rename and split...
66621         * tests/test-forkpty.c: ...to this...
66622         * tests/test-openpty.c: ...and this.
66623         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
66624         (gl_PTY): Split library searching...
66625         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
66626         (gl_FORKPTY, gl_OPENPTY): New macros.
66627         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
66628         * NEWS: Mention the split.
66629         * MODULES.html.sh (Misc): Document the modules.
66630         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
66631         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66633         pty: improve replacement header
66634         * lib/pty.in.h: New file.
66635         * modules/pty (Files): Ship it.
66636         (Makefile.am): Always build replacement.
66637         * m4/pty.m4: Rename...
66638         * m4/pty_h.m4: ...to this.
66639         (gl_PTY): Modernize setting of witness macros; update check of
66640         forkpty to take proper advantage of cache.
66641         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
66643         getopt: avoid compiler warning
66644         * lib/getopt.c (attribute_hidden): Remove unused macro.
66646 2010-03-18  Bruno Haible  <bruno@clisp.org>
66648         Fix link errors on Solaris 8.
66649         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
66650         * modules/search-tests (test_search_c___LDADD): Likewise.
66651         * modules/signal-tests (test_signal_c___LDADD): Likewise.
66652         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
66653         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
66654         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
66655         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
66656         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
66657         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
66659 2010-03-18  Bruno Haible  <bruno@clisp.org>
66661         Fix bug introduced on 2010-03-14.
66662         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
66663         (gl_SPAWN_H): Require it.
66664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
66665         Reported by Simon Josefsson.
66667 2010-03-18  Bruno Haible  <bruno@clisp.org>
66669         Fix typo introduced on 2009-12-31.
66670         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
66671         posix_spawn_file_actions_adddup2.
66673 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
66674         and Eric Blake  <eblake@redhat.com>
66676         test-vc-list-files-git: make more robust
66677         * tests/test-vc-list-files-git.sh: Unset problematic environment
66678         variables.  Chain commands together.
66680 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
66682         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
66683         `AC_CHECK_DECL' invocation.
66685 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
66687         * lib/inttostr.c (inttostr): Make sure the invocation of verify
66688         appears before executable statements. Suggested by Petr Sumbera
66689         <Petr.Sumbera@Sun.COM>.
66691 2010-03-14  Bruno Haible  <bruno@clisp.org>
66693         * tests/test-flock.c (test_exclusive): Comment out a test that causes
66694         portability problems. Instead use a simpler test.
66695         (main): Check that invalid arguments are rejected only on Linux.
66697 2010-03-14  Bruno Haible  <bruno@clisp.org>
66699         Fix bug introduced on 2009-12-31.
66700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
66701         gl_PREREQ_SYS_H_WINSOCK2 always.
66702         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
66703         SYS_SOCKET_H variable.
66704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
66705         Update comments.
66706         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
66707         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66708         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66709         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
66710         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
66712 2010-03-14  Bruno Haible  <bruno@clisp.org>
66714         Fix values returned by sinl, cosl.
66715         * lib/trigl.h: Add specification comments.
66716         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
66717         that combines the values from the precomputed table with the values of
66718         the Chebyshev polynomials.
66720 2010-03-14  Bruno Haible  <bruno@clisp.org>
66722         Fix compilation error when modules 'posix_spawn[p]' are not used.
66723         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
66724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
66726 2010-03-14  Bruno Haible  <bruno@clisp.org>
66728         Fix compilation error on mingw when module 'time_r' is not used.
66729         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
66730         is 1.
66731         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
66732         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
66733         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
66734         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
66736 2010-03-14  Bruno Haible  <bruno@clisp.org>
66738         Fix compilation error with Sun C.
66739         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
66740         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
66741         instead of GCC specific ULONG_LONG_MAX.
66742         * lib/xstrtoll.c: Likewise.
66743         * lib/xstrtoull.c: Likewise.
66745 2010-03-13  Bruno Haible  <bruno@clisp.org>
66747         Allow the user to disable C++ code and tests.
66748         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
66749         (gl_PROG_ANSI_CXX): Require it.
66751 2010-03-13  Bruno Haible  <bruno@clisp.org>
66753         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
66754         cases.
66756 2010-03-13  Bruno Haible  <bruno@clisp.org>
66758         Test that gnulib does not break the standard C++ headers.
66759         * tests/test-locale-c++2.cc: New file.
66760         * modules/locale-tests (Files): Add it.
66761         (Makefile.am): Compile it for test-locale-c++.
66762         * tests/test-math-c++2.cc: New file.
66763         * modules/math-tests (Files): Add it.
66764         (Makefile.am): Compile it for test-math-c++.
66765         * tests/test-signal-c++2.cc: New file.
66766         * modules/signal-tests (Files): Add it.
66767         (Makefile.am): Compile it for test-signal-c++.
66768         * tests/test-stdio-c++2.cc: New file.
66769         * modules/stdio-tests (Files): Add it.
66770         (Makefile.am): Compile it for test-stdio-c++.
66771         * tests/test-stdlib-c++2.cc: New file.
66772         * modules/stdlib-tests (Files): Add it.
66773         (Makefile.am): Compile it for test-stdlib-c++.
66774         * tests/test-string-c++2.cc: New file.
66775         * modules/string-tests (Files): Add it.
66776         (Makefile.am): Compile it for test-string-c++.
66777         * tests/test-time-c++2.cc: New file.
66778         * modules/time-tests (Files): Add it.
66779         (Makefile.am): Compile it for test-time-c++.
66780         Reported by John W. Eaton <jwe@gnu.org>.
66782 2010-03-13  Bruno Haible  <bruno@clisp.org>
66784         * gnulib-tool (func_usage): Clarify which options are available for
66785         --create-testdir and --create-megatestdir.
66787 2010-03-13  Bruno Haible  <bruno@clisp.org>
66789         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
66790         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
66791         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
66792         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
66793         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
66794         when appropriate.
66795         Reported by Jim Meyering.
66797 2010-03-12  Simon Josefsson  <simon@josefsson.org>
66799         * gnulib-tool (func_import): Explain origin of code.
66801 2010-03-12  Bruno Haible  <bruno@clisp.org>
66803         Fix problem with automake's definition of CXXLINK.
66804         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
66805         Reported by Simon Josefsson and Ludovic Courtès.
66807 2010-03-12  Bruno Haible  <bruno@clisp.org>
66809         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
66810         stable releases.
66812 2010-03-11  Bruno Haible  <bruno@clisp.org>
66814         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
66815         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
66816         whether the system provides one variant or multiple variants of the
66817         function.
66818         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
66819         C++ compilers.
66820         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
66821         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
66822         Reported by Jim Meyering.
66824 2010-03-09  Simon Josefsson  <simon@josefsson.org>
66826         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
66828 2010-03-08  Bruno Haible  <bruno@clisp.org>
66830         gnulib-tool: Add support for --libtool in --create-testdir.
66831         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
66832         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
66834 2010-03-08  Eric Blake  <eblake@redhat.com>
66836         gnulib-tool.texi: mention possibility of git submodule
66837         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
66838         submodules.
66839         * doc/.gitignore: Ignore another generated file.
66841 2010-03-08  Karl Berry  <karl@gnu.org>
66843         * doc/gnulib-tool.texi (VCS Issues): Mention third option
66844         of committing gnulib files while skipping others.
66846 2010-03-07  Bruno Haible  <bruno@clisp.org>
66848         Tests of module 'wctype' in C++ mode.
66849         * tests/test-wctype-c++.cc: New file.
66850         * modules/wctype-tests (Files): Add it and tests/signature.h.
66851         (Depends-on): Add ansi-c++-opt.
66852         (Makefile.am): Arrange to compile and run test-wctype-c++.
66854         Tests of module 'wchar' in C++ mode.
66855         * tests/test-wchar-c++.cc: New file.
66856         * modules/wchar-tests (Files): Add it and tests/signature.h.
66857         (Depends-on): Add ansi-c++-opt.
66858         (Makefile.am): Arrange to compile and run test-wchar-c++.
66859         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
66860         gl_MODULE_INDICATOR.
66862         Tests of module 'unistd' in C++ mode.
66863         * tests/test-unistd-c++.cc: New file.
66864         * modules/unistd-tests (Files): Add it and tests/signature.h.
66865         (Depends-on): Add ansi-c++-opt.
66866         (Makefile.am): Arrange to compile and run test-unistd-c++.
66867         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
66868         gl_MODULE_INDICATOR.
66870         Tests of module 'time' in C++ mode.
66871         * tests/test-time-c++.cc: New file.
66872         * modules/time-tests (Files): Add it and tests/signature.h.
66873         (Depends-on): Add ansi-c++-opt.
66874         (Makefile.am): Arrange to compile and run test-time-c++.
66875         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66877         Tests of module 'sys_time' in C++ mode.
66878         * tests/test-sys_time-c++.cc: New file.
66879         * modules/sys_time-tests (Files): Add it and tests/signature.h.
66880         (Depends-on): Add ansi-c++-opt.
66881         (Makefile.am): Arrange to compile and run test-sys_time-c++.
66882         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
66883         gl_MODULE_INDICATOR.
66885         Tests of module 'sys_stat' in C++ mode.
66886         * tests/test-sys_stat-c++.cc: New file.
66887         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
66888         (Depends-on): Add ansi-c++-opt.
66889         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
66890         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
66891         gl_MODULE_INDICATOR.
66893         Tests of module 'sys_socket' in C++ mode.
66894         * tests/test-sys_socket-c++.cc: New file.
66895         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
66896         (Depends-on): Add ansi-c++-opt.
66897         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
66898         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
66899         gl_MODULE_INDICATOR.
66901         Tests of module 'sys_select' in C++ mode.
66902         * tests/test-sys_select-c++.cc: New file.
66903         * modules/sys_select-tests (Files): Add it and tests/signature.h.
66904         (Depends-on): Add ansi-c++-opt.
66905         (Makefile.am): Arrange to compile and run test-sys_select-c++.
66906         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
66907         gl_MODULE_INDICATOR.
66909         Tests of module 'sys_ioctl' in C++ mode.
66910         * tests/test-sys_ioctl-c++.cc: New file.
66911         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
66912         (Depends-on): Add ansi-c++-opt.
66913         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
66914         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
66915         gl_MODULE_INDICATOR.
66917         Tests of module 'string' in C++ mode.
66918         * tests/test-string-c++.cc: New file.
66919         * modules/string-tests (Files): Add it and tests/signature.h.
66920         (Depends-on): Add ansi-c++-opt.
66921         (Makefile.am): Arrange to compile and run test-string-c++.
66922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
66923         gl_MODULE_INDICATOR.
66925         Tests of module 'stdlib' in C++ mode.
66926         * tests/test-stdlib-c++.cc: New file.
66927         * modules/stdlib-tests (Files): Add it and tests/signature.h.
66928         (Depends-on): Add ansi-c++-opt.
66929         (Makefile.am): Arrange to compile and run test-stdlib-c++.
66930         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
66931         gl_MODULE_INDICATOR.
66933         Tests of module 'stdio' in C++ mode.
66934         * tests/test-stdio-c++.cc: New file.
66935         * modules/stdio-tests (Files): Add it and tests/signature.h.
66936         (Depends-on): Add ansi-c++-opt.
66937         (Makefile.am): Arrange to compile and run test-stdio-c++.
66938         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
66939         gl_MODULE_INDICATOR.
66941         Tests of module 'spawn' in C++ mode.
66942         * tests/test-spawn-c++.cc: New file.
66943         * modules/spawn-tests (Files): Add it and tests/signature.h.
66944         (Depends-on): Add ansi-c++-opt.
66945         (Makefile.am): Arrange to compile and run test-spawn-c++.
66946         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
66947         gl_MODULE_INDICATOR.
66949         Tests of module 'signal' in C++ mode.
66950         * tests/test-signal-c++.cc: New file.
66951         * modules/signal-tests (Files): Add it and tests/signature.h.
66952         (Depends-on): Add ansi-c++-opt.
66953         (Makefile.am): Arrange to compile and run test-signal-c++.
66954         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
66955         gl_MODULE_INDICATOR.
66957         Tests of module 'search' in C++ mode.
66958         * tests/test-search-c++.cc: New file.
66959         * modules/search-tests (Files): Add it and tests/signature.h.
66960         (Depends-on): Add ansi-c++-opt.
66961         (Makefile.am): Arrange to compile and run test-search-c++.
66962         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
66963         gl_MODULE_INDICATOR.
66965         Tests of module 'math' in C++ mode.
66966         * tests/test-math-c++.cc: New file.
66967         * modules/math-tests (Files): Add it and tests/signature.h.
66968         (Depends-on): Add ansi-c++-opt.
66969         (Makefile.am): Arrange to compile and run test-math-c++.
66970         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66972         Tests of module 'locale' in C++ mode.
66973         * tests/test-locale-c++.cc: New file.
66974         * modules/locale-tests (Files): Add it and tests/signature.h.
66975         (Depends-on): Add ansi-c++-opt.
66976         (Makefile.am): Arrange to compile and run test-locale-c++.
66977         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
66978         gl_MODULE_INDICATOR.
66980         Tests of module 'langinfo' in C++ mode.
66981         * tests/test-langinfo-c++.cc: New file.
66982         * modules/langinfo-tests (Files): Add it and tests/signature.h.
66983         (Depends-on): Add ansi-c++-opt.
66984         (Makefile.am): Arrange to compile and run test-langinfo-c++.
66985         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
66986         gl_MODULE_INDICATOR.
66988         Tests of module 'iconv-h' in C++ mode.
66989         * tests/test-iconv-h-c++.cc: New file.
66990         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
66991         (Depends-on): Add ansi-c++-opt.
66992         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
66994         Tests of module 'glob' in C++ mode.
66995         * tests/test-glob-c++.cc: New file.
66996         * modules/glob-tests (Files): Add it.
66997         (Depends-on): Add ansi-c++-opt.
66998         (Makefile.am): Arrange to compile and run test-glob-c++.
67000         Tests of module 'fcntl-h' in C++ mode.
67001         * tests/test-fcntl-h-c++.cc: New file.
67002         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67003         (Depends-on): Add ansi-c++-opt.
67004         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67005         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67006         gl_MODULE_INDICATOR.
67008         Tests of module 'dirent' in C++ mode.
67009         * tests/test-dirent-c++.cc: New file.
67010         * modules/dirent-tests (Files): Add it and tests/signature.h.
67011         (Depends-on): Add ansi-c++-opt.
67012         (Makefile.am): Arrange to compile and run test-dirent-c++.
67013         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67014         gl_MODULE_INDICATOR.
67016         New module 'ansi-c++-opt'.
67017         * modules/ansi-c++-opt: New file.
67018         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67020         Document C++ namespace mode.
67021         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67023         wctype: Avoid #define replacements in C++ mode.
67024         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67025         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67026         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67027         In C++, define a namespaced alias symbol.
67028         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67029         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67030         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67031         rule.
67033         wchar: Avoid #define replacements in C++ mode.
67034         * lib/wchar.in.h: Include c++defs.h.
67035         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67036         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67037         symbol.
67038         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67039         * modules/wchar (Depends-on): Add c++defs.
67040         (Makefile.am): Update wchar.h rule.
67042         unistd: Avoid #define replacements in C++ mode.
67043         * lib/unistd.in.h: Include c++defs.h.
67044         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67045         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67046         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67047         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67048         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67049         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67050         symbol.
67051         (environ): Update.
67052         * modules/unistd (Depends-on): Add c++defs.
67053         (Makefile.am): Update unistd.h rule.
67055         time: Avoid #define replacements in C++ mode.
67056         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67057         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67058         define a namespaced alias symbol.
67059         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67060         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67061         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67062         * modules/time (Depends-on): Add c++defs, warn-on-use.
67063         (Makefile.am): Update time.h rule.
67064         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67065         * modules/nanosleep (configure.ac): Likewise.
67066         * modules/strptime (configure.ac): Likewise.
67067         * modules/timegm (configure.ac): Likewise.
67069         sys_time: Avoid #define replacements in C++ mode.
67070         * lib/sys_time.in.h: Include c++defs.h.
67071         (gettimeofday): In C++, define a namespaced alias symbol.
67072         * modules/sys_time (Depends-on): Add c++defs.
67073         (Makefile.am): Update sys/time.h rule.
67075         sys_stat: Avoid #define replacements in C++ mode.
67076         * lib/sys_stat.in.h: Include c++defs.h.
67077         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67078         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67079         namespaced alias symbol.
67080         In C++, define a namespaced alias symbol.
67081         * modules/sys_stat (Depends-on): Add c++defs.
67082         (Makefile.am): Update sys/stat.h rule.
67084         sys_socket: Avoid #define replacements in C++ mode.
67085         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67086         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67087         definitions also when the system has a <sys/socket.h>.
67088         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67089         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67090         In C++, define a namespaced alias symbol.
67091         * modules/sys_socket (Depends-on): Add c++defs.
67092         (Makefile.am): Update sys/socket.h rule.
67094         sys_select: Avoid #define replacements in C++ mode.
67095         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67096         definitions also when the system has a <sys/select.h>.
67097         (select): In C++, define a namespaced alias symbol.
67098         * modules/sys_select (Depends-on): Add c++defs.
67099         (Makefile.am): Update sys/select.h rule.
67101         sys_ioctl: Avoid #define replacements in C++ mode.
67102         * lib/sys_ioctl.in.h: Include c++defs.h.
67103         (ioctl): In C++, define a namespaced alias symbol.
67104         * modules/sys_ioctl (Depends-on): Add c++defs.
67105         (Makefile.am): Update sys/ioctl.h rule.
67107         string: Avoid #define replacements in C++ mode.
67108         * lib/string.in.h: Include c++defs.h.
67109         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67110         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67111         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67112         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67113         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67114         * modules/string (Depends-on): Add c++defs.
67115         (Makefile.am): Update string.h rule.
67117         stdlib: Avoid #define replacements in C++ mode.
67118         * lib/stdlib.in.h: Include c++defs.h.
67119         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67120         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67121         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67122         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67123         symbol.
67124         * modules/stdlib (Depends-on): Add c++defs.
67125         (Makefile.am): Update stdlib.h rule.
67127         stdio: Avoid #define replacements in C++ mode.
67128         * lib/stdio.in.h: Include c++defs.h.
67129         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67130         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67131         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67132         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67133         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67134         namespaced alias symbol.
67135         * modules/stdio (Depends-on): Add c++defs.
67136         (Makefile.am): Update stdio.h rule.
67138         spawn: Avoid #define replacements in C++ mode.
67139         * lib/spawn.in.h: Include c++defs.h.
67140         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67141         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67142         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67143         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67144         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67145         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67146         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67147         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67148         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67149         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67150         In C++, define a namespaced alias symbol.
67151         * modules/spawn (Depends-on): Add c++defs.
67152         (Makefile.am): Update spawn.h rule.
67154         signal: Avoid #define replacements in C++ mode.
67155         * lib/signal.in.h: Include c++defs.h.
67156         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67157         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67158         namespaced alias symbol.
67159         * modules/signal (Depends-on): Add c++defs.
67160         (Makefile.am): Update signal.h rule.
67162         search: Avoid #define replacements in C++ mode.
67163         * lib/search.in.h: Include c++defs.h.
67164         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67165         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67166         symbol.
67167         * modules/search (Depends-on): Add c++defs.
67168         (Makefile.am): Update search.h rule.
67170         math: Avoid #define replacements in C++ mode.
67171         * lib/math.in.h: Include c++defs.h.
67172         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67173         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67174         trunc, truncl): In C++, define a namespaced alias symbol.
67175         * modules/math (Depends-on): Add c++defs.
67176         (Makefile.am): Update math.h rule.
67178         locale: Avoid #define replacements in C++ mode.
67179         * lib/locale.in.h: Include c++defs.h.
67180         (duplocale): In C++, define a namespaced alias symbol.
67181         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67182         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67183         * modules/locale (Depends-on): Add c++defs.
67184         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67186         langinfo: Avoid #define replacements in C++ mode.
67187         * lib/langinfo.in.h: Include c++defs.h.
67188         (nl_langinfo): In C++, define a namespaced alias symbol.
67189         * modules/langinfo (Depends-on): Add c++defs.
67190         (Makefile.am): Update langinfo.h rule.
67192         iconv-h: Avoid #define replacements in C++ mode.
67193         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67194         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67195         symbol.
67196         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67197         whenever iconv is present.
67198         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67199         (Makefile.am): Update iconv.h rule.
67201         glob: Avoid #define replacements in C++ mode.
67202         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67203         (_gl_glob_errfunc_fn): New type.
67204         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67205         symbol.
67206         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67207         (Makefile.am): Update glob.h rule.
67209         fcntl-h: Avoid #define replacements in C++ mode.
67210         * lib/fcntl.in.h: Include c++defs.h.
67211         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67212         * modules/fcntl-h (Depends-on): Add c++defs.
67213         (Makefile.am): Update fcntl.h rule.
67215         dirent: Avoid #define replacements in C++ mode.
67216         * lib/dirent.in.h: Include c++defs.h.
67217         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67218         namespaced alias symbol.
67219         (dirfd): Update declaration.
67220         * modules/dirent (Depends-on): Add c++defs.
67221         (Makefile.am): Update dirent.h rule.
67223         ctype: Make it usable in C++ code.
67224         * lib/ctype.in.h: Include c++defs.h.
67225         (isblank): Declare as extern "C".
67226         * modules/ctype (Depends-on): Add c++defs.
67227         (Makefile.am): Update ctype.h rule.
67229         New module 'c++defs'.
67230         * modules/c++defs: New file.
67231         * build-aux/c++defs.h: New file.
67232         Reported by John W. Eaton <jwe@gnu.org>.
67234 2010-03-07  Bruno Haible  <bruno@clisp.org>
67236         logb: Provide missing declaration for Cygwin.
67237         * lib/math.in.h (logb): New declaration.
67238         * m4/logb.m4: New file.
67239         * modules/logb (Files): Add m4/logb.m4.
67240         (Depends-on): Add math.
67241         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67242         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67244         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67245         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67247 2010-03-07  Bruno Haible  <bruno@clisp.org>
67249         Fix test-cond link error.
67250         * tests/test-cond.c: Include <stdio.h>.
67252 2010-03-07  Bruno Haible  <bruno@clisp.org>
67254         Fix test-dirent-safer link error.
67255         * modules/dirent-safer-tests (Makefile.am): Define
67256         test_dirent_safer_LDADD.
67258 2010-03-07  Bruno Haible  <bruno@clisp.org>
67260         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67261         among default module list.
67263 2010-03-07  Bruno Haible  <bruno@clisp.org>
67265         Fix link error on platforms with GNU libiconv.
67266         * modules/unistr/u8-strcoll-tests (Makefile): Define
67267         test_u8_strcoll_LDADD.
67268         * modules/unistr/u16-strcoll-tests (Makefile): Define
67269         test_u16_strcoll_LDADD.
67270         * modules/unistr/u32-strcoll-tests (Makefile): Define
67271         test_u32_strcoll_LDADD.
67273 2010-03-07  Bruno Haible  <bruno@clisp.org>
67275         Use POSIX declarations for socket functions.
67276         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67277         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67278         rpl_sendto): Change declaration to match POSIX.
67279         * lib/connect.c (rpl_connect): Likewise.
67280         * lib/accept.c (rpl_accept): Likewise.
67281         * lib/bind.c (rpl_bind): Likewise.
67282         * lib/getpeername.c (rpl_getpeername): Likewise.
67283         * lib/getsockname.c (rpl_getsockname): Likewise.
67284         * lib/recv.c (rpl_recv): Likewise.
67285         * lib/send.c (rpl_send): Likewise.
67286         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67287         * lib/sendto.c (rpl_sendto): Likewise.
67289 2010-03-06  Bruno Haible  <bruno@clisp.org>
67291         Clarify access, euidaccess, faccessat.
67292         * doc/posix-functions/faccessat.texi: Mention security problem under
67293         "Other problems", not "Portability problems".
67294         * doc/posix-functions/access.texi: Likewise. Mention a related security
67295         problem.
67296         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67297         * lib/euidaccess.c: Add comments about platforms.
67298         * lib/unistd.in.h (access, euidaccess): Add warnings.
67300 2010-03-07  Bruno Haible  <bruno@clisp.org>
67302         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67303         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67304         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67305         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67306         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67307         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67308         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67309         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67310         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67311         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67312         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67313         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67314         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67315         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67316         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67317         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67318         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67319         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67320         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67321         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67322         Likewise.
67323         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67324         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67325         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67326         Likewise.
67327         * tests/test-spawn.c (main): Make it work when
67328         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67330 2010-03-07  Bruno Haible  <bruno@clisp.org>
67332         Fix incorrect Makefile.am generation in German locale.
67333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67334         Execute sed command with character range in C locale.
67336 2010-03-06  Bruno Haible  <bruno@clisp.org>
67338         Tests for module 'iconv-h'.
67339         * modules/iconv-h-tests: New file.
67340         * tests/test-iconv-h.c: New file.
67342         New module 'iconv-h'.
67343         * modules/iconv-h: New file.
67344         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67345         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67346         (configure.ac): Remove gl_ICONV_H.
67347         (Makefile.am): Remove rule for iconv.h.
67349 2010-03-06  Bruno Haible  <bruno@clisp.org>
67351         More consistent naming of *.m4 files.
67352         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67353         * modules/wctype (Files): Update.
67355         More consistent naming of *.m4 files.
67356         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67357         * modules/wchar (Files): Update.
67359 2010-03-06  Jim Meyering  <meyering@redhat.com>
67361         euidaccess: relax license to LGPLv2+
67362         * modules/euidaccess (License): Relax to LGPLv2+.
67364 2010-03-06  Bruno Haible  <bruno@clisp.org>
67366         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67367         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67368         (Makefile.am): Augment lib_SOURCES instead.
67370 2010-03-04  Jim Meyering  <meyering@redhat.com>
67372         utime: remove obsolete module
67373         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67374         unnecessary for years, and has been marked as obsolete for 10 months.
67375         * modules/utime: Remove file.
67376         * lib/utime.c: Remove file.
67377         * m4/utime.m4: Remove file.
67378         * m4/utimes-null.m4: Remove file.
67379         * doc/posix-functions/utime.texi (utime): Remove reference to
67380         the module.  Move the sole "fixed by gnulib" item into the
67381         "problems not fixed by Gnulib" list.
67382         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67384 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67386         * modules/exit (License): Relax license to LGPLv2+.
67387         (Status): Mark as obsolete.
67388         * NEWS: Mention deprecated 'exit' module.
67389         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67390         of now obsolete 'exit'.
67392 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67394         fts-lgpl: remove unused module
67395         * modules/fts-lgpl: Remove.
67396         * MODULES.html.sh (func_all_modules): Adjust.
67397         * check-module (find_included_lib_files): Adjust.
67398         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67400 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67402         copy-acl: enhance Solaris ACL error handling
67403         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67404         * lib/set-mode-acl.c (qset_acl): Likewise.
67406 2010-03-02  Bruno Haible  <bruno@clisp.org>
67408         spawn: Don't override the system defined values on FreeBSD 8.
67409         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67410         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67411         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67412         if HAVE_POSIX_SPAWN is 1.
67413         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67415 2010-03-01  Bruno Haible  <bruno@clisp.org>
67417         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67418         regarding Automake.
67420 2010-02-25  Bruno Haible  <bruno@clisp.org>
67422         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67423         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67424         setting, not afterwards.
67425         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67427 2010-02-24  Eric Blake  <eblake@redhat.com>
67429         bootstrap, git-version-gen: use timestamp
67430         * build-aux/git-version-gen (scriptversion): Force UTC.
67431         * build-aux/bootstrap (scriptversion): New variable.
67433         bootstrap: allow older git
67434         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67435         older than 1.6.4.  Requested by the libvirt project.
67437 2010-02-23  Eric Blake  <eblake@redhat.com>
67439         warn-on-use: work with old autoconf
67440         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67441         AS_VAR semantics of autoconf 2.60.
67442         Reported by Bruno Haible.
67444         bootstrap: improve some comments
67445         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67446         clarification comments.
67448         gettimeofday: provide correct function
67449         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67450         when replacement is declared, otherwise provide gettimeofday.
67451         Reported by Michael Goffioul.
67453 2010-02-23  Jim Meyering  <meyering@redhat.com>
67455         lib-ignore: relax license to "unlimited", not LGPLv2+
67456         * modules/lib-ignore (License): Relax to "unlimited".
67458 2010-02-23  Jim Meyering  <meyering@redhat.com>
67460         lib-ignore: relax license to LGPLv2+
67461         * modules/lib-ignore (License): Relax to LGPLv2+.
67463 2010-02-22  Eric Blake  <eblake@redhat.com>
67465         lseek: avoid bash 3.2 broken pipe bug
67466         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67467         warning from bash 3.2.
67468         Reported by Ben Pfaff, with analysis from Bruno Haible.
67470         bootstrap: support non-FSF copyright holder
67471         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67472         bootstrap.conf override of COPYRIGHT_HOLDER.
67473         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67475         bootstrap: interoperate with gettext 0.14.1
67476         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67478         bootstrap: allow for alternate submodule location
67479         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67480         hardcoding submodule location.
67481         (gnulib_mk): Allow direct use of Makefile.am.
67483         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67484         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67485         rather than reconfiguring where the submodule points.
67487         gettimeofday: restore support for platforms that lack function
67488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67489         replacement if function is missing.
67490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67491         * modules/sys_time (Makefile.am): Substitute it.
67492         * lib/sys_time.in.h (gettimeofday): Check it.
67493         Reported by Michael Goffioul.
67495 2010-02-21  Bruno Haible  <bruno@clisp.org>
67497         * lib/stdio.in.h (obstack_printf): Fix typo.
67499 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67501         vc-list-files: use bzr ls's -R option
67502         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67503         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67505 2010-02-21  Jim Meyering  <meyering@redhat.com>
67507         init.sh: fix EXEEXT shims to work also for names like test-prog
67508         * tests/init.sh: Re-exec a better shell, when needed.
67509         If the current shell lacks support for posix $(...), an init.sh-using
67510         test will now try to find a shell that supports that.  If EXEEXT is
67511         nonempty, we also require support for hyphen-in-alias-name and shell
67512         substitutions like ${var#glob}.  Failure to find such a shell results
67513         in a skipped test.
67515 2010-02-21  Bruno Haible  <bruno@clisp.org>
67517         Really work around "broken pipe" error message from bash 3.2.
67518         * gnulib-tool (func_reset_sigpipe): Remove function.
67519         (echo): In bash 3.2, define to a function that uses printf.
67520         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67522 2010-02-20  Bruno Haible  <bruno@clisp.org>
67524         Restore support for automake 1.9.6 with autoconf 2.61.
67525         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67526         Reported by James Youngman <jay@gnu.org>.
67528 2010-02-20  Bruno Haible  <bruno@clisp.org>
67530         Improve *printf warning condition.
67531         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67532         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67533         and the function is overridden due to SIGPIPE emulation.
67535 2010-02-20  Bruno Haible  <bruno@clisp.org>
67537         * lib/stdio.in.h: Tweak comments.
67539 2010-02-19  Bruno Haible  <bruno@clisp.org>
67541         Make it easier to find modules. New gnulib-tool option '--find'.
67542         * gnulib-tool: New option --find.
67543         (func_usage): Document it.
67544         (func_sanitize_modulelist): New function, extracted from
67545         func_all_modules.
67546         (func_all_modules): Invoke it.
67547         * doc/gnulib-tool.texi (Which modules?): New node.
67549 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67551         * lib/sys_select.in.h: Provide select replacement even if
67552         sys/select.h exists on a system, for Interix.
67554 2010-02-18  Jim Meyering  <meyering@redhat.com>
67556         init.sh: don't use $(...) just yet
67557         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67558         to accommodate e.g., Solaris' /bin/sh.
67560 2010-02-17  Bruno Haible  <bruno@clisp.org>
67562         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67563         Reported by Ludovic Courtès <ludo@gnu.org>.
67565 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67567         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67568         linking with -lintl.
67570 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67572         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67573         if not provided by the system's netdb.h.  Reported by
67574         ludo@gnu.org (Ludovic Courtès).
67576 2010-02-15  Jim Meyering  <meyering@redhat.com>
67578         init.sh: improve portability and efficiency
67579         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67580         "dummy" in a for loop.
67581         Use '!', not '^' to select the complement of a character set used
67582         in a "case" statement.
67583         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67584         Suggestions from Eric Blake.
67586         init.sh: automatically accommodate programs with the .exe suffix
67587         Automatically arrange for an invocation of "prog" to execute the
67588         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
67589         may use the simpler "prog", yet still work when built on a system
67590         that requires specifying the added suffix.
67591         Do this by constructing a function named "prog" that invokes
67592         "prog.exe" for each .exe file in selected directories.
67593         * tests/init.sh (find_exe_basenames_): New function.
67594         (create_exe_shim_functions_): New function.
67595         (path_prepend_): Use it.
67597         maint.mk: mark syntax-check sc_*.m rules as .PHONY
67598         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
67599         "make -t syntax-check" doesn't create a ton of sc_*.m files.
67601 2010-02-14  Jim Meyering  <meyering@redhat.com>
67603         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
67604         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
67605         (sc_prohibit_hash_pjw_without_use): New rule.
67607         maint.mk: allow the default upload destination dir to be overridden
67608         * top/maint.mk (upload_dest_dir_): Define with a default that
67609         preserves the status quo.
67610         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
67611         Reported by Peter Simons.
67613         maint.mk: prohibit inclusion of "hash.h" without_use
67614         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
67616 2010-02-10  Jim Meyering  <meyering@redhat.com>
67618         maint.mk: prohibit inclusion of "ignore-value.h" without_use
67619         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
67621 2010-02-09  Eric Blake  <ebb9@byu.net>
67622         and Bruno Haible  <bruno@clisp.org>
67624         obstack-printf-posix: ensure declaration
67625         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
67626         extracted from gl_FUNC_OBSTACK_PRINTF.
67627         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
67628         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67629         Likewise.
67630         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
67631         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
67632         0.
67634 2010-02-08  Bruno Haible  <bruno@clisp.org>
67636         gnulib-tool: Fix typo in 2010-02-07 commit.
67637         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
67638         Reported by Eric Blake.
67640 2010-02-07  Bruno Haible  <bruno@clisp.org>
67642         gnulib-tool: Fix up caching patches.
67643         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
67644         option --no-cache. Use associative arrays when supported by the shell.
67645         (sed_comments): New variable.
67646         (modcache): Renamed from do_cache.
67647         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
67648         abbreviate unnecessarily.
67649         (have_associative): New variable.
67650         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
67651         way also for ksh and zsh.
67652         (func_init_sed_convert_to_cache_statements): New function, extracted
67653         from func_cache_lookup_module. Add support for associative arrays.
67654         Don't set the c_MODULE_cached variable here. Ignore all lines before
67655         the first field header. Remove only the final newline, not all trailing
67656         newlines. Support empty fields correctly. Limit the use of 'eval' to
67657         assignments.
67658         (func_get_description, func_get_status, func_get_notice,
67659         func_get_applicability, func_get_filelist, func_get_dependencies,
67660         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
67661         func_get_automake_snippet, func_get_include_directive,
67662         func_get_link_directive, func_get_license, func_get_maintainer):
67663         Update documentation. List the unoptimized code first. Add support for
67664         associative arrays. Limit the use of 'eval' to assignments.
67665         (func_get_applicability): Undo stylistic pessimisations.
67666         (func_get_automake_snippet, func_get_include_directive): Reduce code
67667         duplication.
67668         (func_modules_transitive_closure, func_modules_add_dummy,
67669         func_modules_notice, func_modules_to_filelist, func_add_file,
67670         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
67671         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
67672         func_create_testdir, func_create_megatestdir): Update documentation.
67674 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67676         * gnulib-tool (func_cache_lookup_module): Store the module name
67677         belonging to the cache variable; error out if two different
67678         module names map to the same cache variable name.
67680 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67682         gnulib-tool: Make caching optional.
67683         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
67684         Update matching short versions of --no-changelog.
67685         (func_usage): Update.
67686         (sed_extract_cache_prog): Renamed from ...
67687         (sed_extract_prog): ... this; revert to old extraction script.
67688         (func_get_description, func_get_status)
67689         (func_get_notice, func_get_applicability, func_get_filelist)
67690         (func_get_dependencies, func_get_autoconf_early_snippet)
67691         (func_get_autoconf_snippet, func_get_automake_snippet)
67692         (func_get_include_directive, func_get_link_directive)
67693         (func_get_license, func_get_maintainer): If $do_cache is false,
67694         use old, non-caching extraction scripts.
67695         Suggestion by Bruno Haible.
67697 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67699         gnulib-tool: cache module metainformation.
67700         * gnulib-tool (sed_extract_prog): Match newline before each
67701         header, and rewrite header to a shell variable suffix.
67702         (func_cache_var, func_cache_lookup_module): New functions,
67703         to turn a module name into a cache variable prefix, and to
67704         look up and cache module metainformation.
67705         (func_get_description, func_get_status)
67706         (func_get_notice, func_get_applicability, func_get_filelist)
67707         (func_get_dependencies, func_get_autoconf_early_snippet)
67708         (func_get_autoconf_snippet, func_get_automake_snippet)
67709         (func_get_include_directive, func_get_link_directive)
67710         (func_get_license, func_get_maintainer): Use
67711         func_cache_lookup_module.
67713 2010-02-07  Bruno Haible  <bruno@clisp.org>
67715         fnctl: Fix missing dependency.
67716         * modules/fcntl (Depends-on): Add getdtablesize.
67717         Reported by John W. Eaton <jwe@gnu.org>.
67719 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67721         Argp: fix recognition of short alias options.
67723         * lib/argp-parse.c (convert_options): Fix improper use of
67724         `|' between character values.
67725         * tests/test-argp.c (group1_option): New alias option
67726         --read (-r).
67727         (group1_parser): Special handling for 'r'.
67728         (test15): New test case.
67729         (test_fun): Add test15.
67730         * tests/test-argp-2.sh: Update expected --help and --usage
67731         outputs.
67733 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67735         * tests/test-argp.c: Fix indentation.
67737 2010-02-04  Eric Blake  <ebb9@byu.net>
67739         gettimeofday: expose type of second argument
67740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
67741         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
67742         * tests/test-gettimeofday.c: Use it to silence warning.
67743         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
67744         the issue.
67746 2010-02-03  Jim Meyering  <meyering@redhat.com>
67748         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
67749         * lib/regcomp.c (TYPE_SIGNED): Define.
67750         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
67752         regcomp.c: avoid a new -Wshadow warning
67753         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
67755 2010-02-01  Jim Meyering  <meyering@redhat.com>
67757         removing useless parentheses in cpp #define directives
67758         For motivation, see commit c0221df4, "define STREQ(a,b)
67759         consistently, removing useless parentheses"
67760         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
67761         * lib/mountlist.c (MNT_IGNORE): Likewise.
67762         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
67764 2010-02-01  Eric Blake  <ebb9@byu.net>
67766         sys_time: use link-warning
67767         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
67768         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
67769         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
67770         * modules/sys_time (Depends-on): Add warn-on-use.
67771         (Makefile.am): Always build replacement.
67772         (configure.ac): Update substitutions.
67773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
67774         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
67775         bother with SYS_TIME_H.
67776         * modules/gettimeofday (configure.ac): Declare indicator.
67777         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
67778         in use.
67780         closein-tests: silence compiler warning
67781         * tests/test-closein.c (main): Ignore fread result.
67782         * modules/closein-tests (Depends-on): Add ignore-value.
67784         tests: silence warning about system return
67785         * tests/test-areadlink-with-size.c (main): Ignore system result.
67786         * tests/test-areadlink.c (main): Likewise.
67787         * tests/test-areadlinkat-with-size.c (main): Likewise.
67788         * tests/test-areadlinkat.c (main): Likewise.
67789         * tests/test-canonicalize-lgpl.c (main): Likewise.
67790         * tests/test-canonicalize.c (main): Likewise.
67791         * tests/test-chown.c (main): Likewise.
67792         * tests/test-fchownat.c (main): Likewise.
67793         * tests/test-fdutimensat.c (main): Likewise.
67794         * tests/test-fstatat.c (main): Likewise.
67795         * tests/test-futimens.c (main): Likewise.
67796         * tests/test-lchown.c (main): Likewise.
67797         * tests/test-link.c (main): Likewise.
67798         * tests/test-linkat.c (main): Likewise.
67799         * tests/test-lstat.c (main): Likewise.
67800         * tests/test-mkdir.c (main): Likewise.
67801         * tests/test-mkdirat.c (main): Likewise.
67802         * tests/test-mkfifo.c (main): Likewise.
67803         * tests/test-mkfifoat.c (main): Likewise.
67804         * tests/test-mknod.c (main): Likewise.
67805         * tests/test-readlink.c (main): Likewise.
67806         * tests/test-remove.c (main): Likewise.
67807         * tests/test-rename.c (main): Likewise.
67808         * tests/test-renameat.c (main): Likewise.
67809         * tests/test-rmdir.c (main): Likewise.
67810         * tests/test-symlink.c (main): Likewise.
67811         * tests/test-symlinkat.c (main): Likewise.
67812         * tests/test-unlink.c (main): Likewise.
67813         * tests/test-unlinkat.c (main): Likewise.
67814         * tests/test-utimens.c (main): Likewise.
67815         * tests/test-utimensat.c (main): Likewise.
67816         * modules/areadlink-tests (Depends-on): Add ignore-value.
67817         * modules/areadlink-with-size-tests (Depends-on): Likewise.
67818         * modules/areadlinkat-tests (Depends-on): Likewise.
67819         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
67820         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
67821         * modules/canonicalize-tests (Depends-on): Likewise.
67822         * modules/chown-tests (Depends-on): Likewise.
67823         * modules/fdutimensat-tests (Depends-on): Likewise.
67824         * modules/futimens-tests (Depends-on): Likewise.
67825         * modules/lchown-tests (Depends-on): Likewise.
67826         * modules/link-tests (Depends-on): Likewise.
67827         * modules/linkat-tests (Depends-on): Likewise.
67828         * modules/lstat-tests (Depends-on): Likewise.
67829         * modules/mkdir-tests (Depends-on): Likewise.
67830         * modules/mkfifo-tests (Depends-on): Likewise.
67831         * modules/mkfifoat-tests (Depends-on): Likewise.
67832         * modules/mknod-tests (Depends-on): Likewise.
67833         * modules/openat-tests (Depends-on): Likewise.
67834         * modules/readlink-tests (Depends-on): Likewise.
67835         * modules/remove-tests (Depends-on): Likewise.
67836         * modules/rename-tests (Depends-on): Likewise.
67837         * modules/renameat-tests (Depends-on): Likewise.
67838         * modules/rmdir-tests (Depends-on): Likewise.
67839         * modules/symlink-tests (Depends-on): Likewise.
67840         * modules/symlinkat-tests (Depends-on): Likewise.
67841         * modules/unlink-tests (Depends-on): Likewise.
67842         * modules/utimens-tests (Depends-on): Likewise.
67843         * modules/utimensat-tests (Depends-on): Likewise.
67845 2010-01-31  Bruno Haible  <bruno@clisp.org>
67847         Perform the same test for many <math.h> functions.
67848         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
67849         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
67850         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
67851         of gl_MATHFUNC.
67852         * modules/acos (configure.ac): Likewise.
67853         * modules/asin (configure.ac): Likewise.
67854         * modules/atan (configure.ac): Likewise.
67855         * modules/atan2 (configure.ac): Likewise.
67856         * modules/cbrt (configure.ac): Likewise.
67857         * modules/copysign (configure.ac): Likewise.
67858         * modules/cos (configure.ac): Likewise.
67859         * modules/cosh (configure.ac): Likewise.
67860         * modules/erf (configure.ac): Likewise.
67861         * modules/erfc (configure.ac): Likewise.
67862         * modules/exp (configure.ac): Likewise.
67863         * modules/fmod (configure.ac): Likewise.
67864         * modules/hypot (configure.ac): Likewise.
67865         * modules/j0 (configure.ac): Likewise.
67866         * modules/j1 (configure.ac): Likewise.
67867         * modules/jn (configure.ac): Likewise.
67868         * modules/lgamma (configure.ac): Likewise.
67869         * modules/log (configure.ac): Likewise.
67870         * modules/log10 (configure.ac): Likewise.
67871         * modules/log1p (configure.ac): Likewise.
67872         * modules/pow (configure.ac): Likewise.
67873         * modules/remainder (configure.ac): Likewise.
67874         * modules/sin (configure.ac): Likewise.
67875         * modules/sinh (configure.ac): Likewise.
67876         * modules/tan (configure.ac): Likewise.
67877         * modules/tanh (configure.ac): Likewise.
67878         * modules/y0 (configure.ac): Likewise.
67879         * modules/y1 (configure.ac): Likewise.
67880         * modules/yn (configure.ac): Likewise.
67881         Suggested by Paolo Bonzini.
67883 2010-01-31  Bruno Haible  <bruno@clisp.org>
67885         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
67887 2010-01-31  Bruno Haible  <bruno@clisp.org>
67889         Work around getdelim() bug on FreeBSD 8.0.
67890         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
67891         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
67892         not work.
67893         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
67894         is 1.
67895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
67896         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
67897         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
67898         a non-zero size.
67899         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
67901 2010-01-31  Bruno Haible  <bruno@clisp.org>
67903         Work around getline() bug on FreeBSD 8.0.
67904         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
67905         and a non-zero size.
67906         * tests/test-getline.c (main): Likewise.
67907         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
67908         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
67910 2010-01-28  Eric Blake  <ebb9@byu.net>
67912         regex: fix build failure
67913         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
67914         platforms.
67916 2010-01-28  Jim Meyering  <meyering@redhat.com>
67918         regex: do not ignore memory allocation failure
67919         * lib/regex_internal.c (create_cd_newstate): Detect
67920         re_node_set_init_copy failure.   Extracted from glibc commit
67921         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67923         regex: sync more white-space changes from libc
67924         * lib/regex_internal.c: White-space only changes.
67925         * lib/regexec.c: Likewise.
67927         regex: add many uses of __attribute_warn_unused_result__
67928         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
67929         * lib/regexec.c: Likewise.
67930         Extracted from a messy glibc commit.
67932         regcomp.c: spelling and merge-artifact from glibc
67933         * lib/regcomp.c: Merge remainder of glibc's
67934         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67936         regcomp.c: sync white-space changes from glibc
67937         * lib/regcomp.c: Merge to accommodate white space
67938         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
67940         regcomp.c: do not ignore internal return values
67941         * lib/regcomp.c: Do not ignore internal return values.
67942         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
67943         but without its white-space changes and spelling fixes.
67945         regex_internal.h: define __attribute_warn_unused_result__
67946         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
67948         maint: add a syntax-check rule to check for vulnerable Makefile.in
67949         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
67951 2010-01-27  Jim Meyering  <meyering@redhat.com>
67953         ncftpput-ftp: clean up spaces
67954         * build-aux/ncftpput-ftp: Make Copyright line consistent.
67955         Remove trailing blanks.
67957 2010-01-27  Simon Josefsson  <simon@josefsson.org>
67959         * build-aux/git-version-gen: Fix copyright statement.
67960         * build-aux/gnupload: Likewise.
67961         * tests/test-arcfour.c: Likewise.
67962         * tests/test-arctwo.c: Likewise.
67963         * tests/test-count-one-bits.c: Likewise.
67964         * tests/test-crc.c: Likewise.
67965         * tests/test-des.c: Likewise.
67966         * tests/test-gc-arcfour.c: Likewise.
67967         * tests/test-gc-arctwo.c: Likewise.
67968         * tests/test-gc-des.c: Likewise.
67969         * tests/test-gc-hmac-md5.c: Likewise.
67970         * tests/test-gc-hmac-sha1.c: Likewise.
67971         * tests/test-gc-md2.c: Likewise.
67972         * tests/test-gc-md4.c: Likewise.
67973         * tests/test-gc-md5.c: Likewise.
67974         * tests/test-gc-pbkdf2-sha1.c: Likewise.
67975         * tests/test-gc-rijndael.c: Likewise.
67976         * tests/test-gc-sha1.c: Likewise.
67977         * tests/test-gc.c: Likewise.
67978         * tests/test-gethostname.c: Likewise.
67979         * tests/test-gettimeofday.c: Likewise.
67980         * tests/test-hash.c: Likewise.
67981         * tests/test-hmac-md5.c: Likewise.
67982         * tests/test-hmac-sha1.c: Likewise.
67983         * tests/test-md2.c: Likewise.
67984         * tests/test-md4.c: Likewise.
67985         * tests/test-md5.c: Likewise.
67986         * tests/test-memchr.c: Likewise.
67987         * tests/test-memchr2.c: Likewise.
67988         * tests/test-memcmp.c: Likewise.
67989         * tests/test-memmem.c: Likewise.
67990         * tests/test-memrchr.c: Likewise.
67991         * tests/test-rawmemchr.c: Likewise.
67992         * tests/test-read-file.c: Likewise.
67993         * tests/test-rijndael.c: Likewise.
67994         * tests/test-sockets.c: Likewise.
67995         * tests/test-strchrnul.c: Likewise.
67996         * tests/test-strstr.c: Likewise.
67997         * tests/test-strtod.c: Likewise.
67998         * build-aux/ncftpput-ftp: Likewise.
68000 2010-01-26  Eric Blake  <ebb9@byu.net>
68002         ignore-value: update recommended header name
68003         * modules/ignore-value (Include): Only use <> for headers that
68004         exist in glibc.
68006 2010-01-26  Jim Meyering  <meyering@redhat.com>
68008         test-userspec.c: avoid compiler warnings
68009         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68010         and "initialization discards qualifiers..." warnings.
68011         Put the first "uid" in its own scope, and make char* members "const".
68013 2010-01-25  Bruno Haible  <bruno@clisp.org>
68015         gnulib-tool: Make warning diagnostics consistent.
68016         * gnulib-tool (func_warning): New function.
68017         Use it everywhere where gnulib-tool produces output to stderr and it is
68018         not a fatal error.
68020 2010-01-25  Bruno Haible  <bruno@clisp.org>
68022         Fix test dependencies.
68023         * modules/xstrtol-tests (Depends-on): Add inttypes.
68024         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68026 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68028         syntax-check: detect incorrect boolean macro values in config.h
68029         * modules/maintainer-makefile (configure.ac): Parameterize the location
68030         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68031         The logic is from Eric Blake and the location indicated by Jim Meyering.
68032         Note the more natural CONFIG_HEADER name is prohibited by automake
68033         for backwards compatibility reasons.
68034         * top/maint.mk (sc_Wundef_boolean): New rule.
68036 2010-01-25  Jim Meyering  <meyering@redhat.com>
68038         bootstrap: detect MacOS 10.6's shasum, too
68039         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68040         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68042 2010-01-23  Jim Meyering  <meyering@redhat.com>
68044         xstrtoll: new module
68045         * modules/xstrtoll: New file.
68046         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68047         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68048         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68049         ./configure fails if you use this module and lack "long long".
68050         * modules/xstrtoll-tests: New module.
68051         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68052         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68053         new init.sh-based test framework.
68055 2010-01-24  Bruno Haible  <bruno@clisp.org>
68057         Tests for module 'yn'.
68058         * modules/yn-tests: New file.
68059         * tests/test-yn.c: New file.
68061         Tests for module 'y1'.
68062         * modules/y1-tests: New file.
68063         * tests/test-y1.c: New file.
68065         Tests for module 'y0'.
68066         * modules/y0-tests: New file.
68067         * tests/test-y0.c: New file.
68069         Tests for module 'tanh'.
68070         * modules/tanh-tests: New file.
68071         * tests/test-tanh.c: New file.
68073         Tests for module 'tan'.
68074         * modules/tan-tests: New file.
68075         * tests/test-tan.c: New file.
68077         Tests for module 'sqrt'.
68078         * modules/sqrt-tests: New file.
68079         * tests/test-sqrt.c: New file.
68081         Tests for module 'sinh'.
68082         * modules/sinh-tests: New file.
68083         * tests/test-sinh.c: New file.
68085         Tests for module 'sin'.
68086         * modules/sin-tests: New file.
68087         * tests/test-sin.c: New file.
68089         Tests for module 'rint'.
68090         * modules/rint-tests: New file.
68091         * tests/test-rint.c: New file.
68093         Tests for module 'remainder'.
68094         * modules/remainder-tests: New file.
68095         * tests/test-remainder.c: New file.
68097         Tests for module 'pow'.
68098         * modules/pow-tests: New file.
68099         * tests/test-pow.c: New file.
68101         Tests for module 'nextafter'.
68102         * modules/nextafter-tests: New file.
68103         * tests/test-nextafter.c: New file.
68105         Tests for module 'modf'.
68106         * modules/modf-tests: New file.
68107         * tests/test-modf.c: New file.
68109         Tests for module 'logb'.
68110         * modules/logb-tests: New file.
68111         * tests/test-logb.c: New file.
68113         Tests for module 'log1p'.
68114         * modules/log1p-tests: New file.
68115         * tests/test-log1p.c: New file.
68117         Tests for module 'log10'.
68118         * modules/log10-tests: New file.
68119         * tests/test-log10.c: New file.
68121         Tests for module 'log'.
68122         * modules/log-tests: New file.
68123         * tests/test-log.c: New file.
68125         Tests for module 'lgamma'.
68126         * modules/lgamma-tests: New file.
68127         * tests/test-lgamma.c: New file.
68129         Tests for module 'ldexp'.
68130         * modules/ldexp-tests: New file.
68131         * tests/test-ldexp.c: New file.
68133         Tests for module 'jn'.
68134         * modules/jn-tests: New file.
68135         * tests/test-jn.c: New file.
68137         Tests for module 'j1'.
68138         * modules/j1-tests: New file.
68139         * tests/test-j1.c: New file.
68141         Tests for module 'j0'.
68142         * modules/j0-tests: New file.
68143         * tests/test-j0.c: New file.
68145         Tests for module 'hypot'.
68146         * modules/hypot-tests: New file.
68147         * tests/test-hypot.c: New file.
68149         Tests for module 'fmod'.
68150         * modules/fmod-tests: New file.
68151         * tests/test-fmod.c: New file.
68153         Tests for module 'fabs'.
68154         * modules/fabs-tests: New file.
68155         * tests/test-fabs.c: New file.
68157         Tests for module 'exp'.
68158         * modules/exp-tests: New file.
68159         * tests/test-exp.c: New file.
68161         Tests for module 'erfc'.
68162         * modules/erfc-tests: New file.
68163         * tests/test-erfc.c: New file.
68165         Tests for module 'erf'.
68166         * modules/erf-tests: New file.
68167         * tests/test-erf.c: New file.
68169         Tests for module 'cosh'.
68170         * modules/cosh-tests: New file.
68171         * tests/test-cosh.c: New file.
68173         Tests for module 'cos'.
68174         * modules/cos-tests: New file.
68175         * tests/test-cos.c: New file.
68177         Tests for module 'copysign'.
68178         * modules/copysign-tests: New file.
68179         * tests/test-copysign.c: New file.
68181         Tests for module 'cbrt'.
68182         * modules/cbrt-tests: New file.
68183         * tests/test-cbrt.c: New file.
68185         Tests for module 'atan2'.
68186         * modules/atan2-tests: New file.
68187         * tests/test-atan2.c: New file.
68189         Tests for module 'atan'.
68190         * modules/atan-tests: New file.
68191         * tests/test-atan.c: New file.
68193         Tests for module 'asin'.
68194         * modules/asin-tests: New file.
68195         * tests/test-asin.c: New file.
68197         Tests for module 'acos'.
68198         * modules/acos-tests: New file.
68199         * tests/test-acos.c: New file.
68201 2010-01-24  Bruno Haible  <bruno@clisp.org>
68203         Fix tests for common <math.h> functions.
68204         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68205         code snippet that references the function pointer, rather than merely
68206         calling the function. Substitute the FUNC_LIBM variable.
68207         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68208         * modules/acos (configure.ac): Likewise.
68209         * modules/asin (configure.ac): Likewise.
68210         * modules/atan (configure.ac): Likewise.
68211         * modules/atan2 (configure.ac): Likewise.
68212         * modules/cbrt (configure.ac): Likewise.
68213         * modules/copysign (configure.ac): Likewise.
68214         * modules/cos (configure.ac): Likewise.
68215         * modules/cosh (configure.ac): Likewise.
68216         * modules/erf (configure.ac): Likewise.
68217         * modules/erfc (configure.ac): Likewise.
68218         * modules/exp (configure.ac): Likewise.
68219         * modules/fabs (configure.ac): Likewise.
68220         * modules/fmod (configure.ac): Likewise.
68221         * modules/hypot (configure.ac): Likewise.
68222         * modules/j0 (configure.ac): Likewise.
68223         * modules/j1 (configure.ac): Likewise.
68224         * modules/jn (configure.ac): Likewise.
68225         * modules/ldexp (configure.ac): Likewise.
68226         * modules/lgamma (configure.ac): Likewise.
68227         * modules/log (configure.ac): Likewise.
68228         * modules/log10 (configure.ac): Likewise.
68229         * modules/log1p (configure.ac): Likewise.
68230         * modules/logb (configure.ac): Likewise.
68231         * modules/modf (configure.ac): Likewise.
68232         * modules/nextafter (configure.ac): Likewise.
68233         * modules/pow (configure.ac): Likewise.
68234         * modules/remainder (configure.ac): Likewise.
68235         * modules/rint (configure.ac): Likewise.
68236         * modules/sin (configure.ac): Likewise.
68237         * modules/sinh (configure.ac): Likewise.
68238         * modules/tan (configure.ac): Likewise.
68239         * modules/tanh (configure.ac): Likewise.
68240         * modules/y0 (configure.ac): Likewise.
68241         * modules/y1 (configure.ac): Likewise.
68242         * modules/yn (configure.ac): Likewise.
68244 2010-01-24  Bruno Haible  <bruno@clisp.org>
68246         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68247         * tests/test-acosl.c (x): New variable.
68248         (main): Store argument in x and fetch it from x.
68249         * tests/test-asinl.c (x): New variable.
68250         (main): Store argument in x and fetch it from x.
68251         * tests/test-atanl.c (x): New variable.
68252         (main): Store argument in x and fetch it from x.
68253         * tests/test-cosl.c (x): New variable.
68254         (main): Store argument in x and fetch it from x.
68255         * tests/test-expl.c (x): New variable.
68256         (main): Store argument in x and fetch it from x.
68257         * tests/test-logl.c (x): New variable.
68258         (main): Store argument in x and fetch it from x.
68259         * tests/test-sinl.c (x): New variable.
68260         (main): Store argument in x and fetch it from x.
68261         * tests/test-sqrtl.c (x): New variable.
68262         (main): Store argument in x and fetch it from x.
68263         * tests/test-tanl.c (x): New variable.
68264         (main): Store argument in x and fetch it from x.
68266 2010-01-24  Bruno Haible  <bruno@clisp.org>
68268         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68269         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68270         assignments to the initial TESTS_ENVIRONMENT.
68271         * doc/gnulib.texi (Unit test modules): Document it.
68272         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68273         TESTS_ENVIRONMENT.
68274         * modules/btowc-tests (Makefile.am): Likewise.
68275         * modules/c-stack-tests (Makefile.am): Likewise.
68276         * modules/c-strcase-tests (Makefile.am): Likewise.
68277         * modules/copy-file-tests (Makefile.am): Likewise.
68278         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68279         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68280         * modules/mbrtowc-tests (Makefile.am): Likewise.
68281         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68282         * modules/mbscasestr-tests (Makefile.am): Likewise.
68283         * modules/mbschr-tests (Makefile.am): Likewise.
68284         * modules/mbscspn-tests (Makefile.am): Likewise.
68285         * modules/mbsinit-tests (Makefile.am): Likewise.
68286         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68287         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68288         * modules/mbspbrk-tests (Makefile.am): Likewise.
68289         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68290         * modules/mbsrchr-tests (Makefile.am): Likewise.
68291         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68292         * modules/mbsspn-tests (Makefile.am): Likewise.
68293         * modules/mbsstr-tests (Makefile.am): Likewise.
68294         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68295         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68296         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68297         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68298         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68299         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68300         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68301         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68302         * modules/wcrtomb-tests (Makefile.am): Likewise.
68303         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68304         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68305         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68306         assignments from TESTS_ENVIRONMENT.
68307         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68308         augmentation.
68309         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68310         * modules/atexit-tests (Makefile.am): Likewise.
68311         * modules/binary-io-tests (Makefile.am): Likewise.
68312         * modules/closein-tests (Makefile.am): Likewise.
68313         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68314         * modules/exclude-tests (Makefile.am): Likewise.
68315         * modules/fflush-tests (Makefile.am): Likewise.
68316         * modules/fpending-tests (Makefile.am): Likewise.
68317         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68318         * modules/freadahead-tests (Makefile.am): Likewise.
68319         * modules/freadptr-tests (Makefile.am): Likewise.
68320         * modules/freadseek-tests (Makefile.am): Likewise.
68321         * modules/fseek-tests (Makefile.am): Likewise.
68322         * modules/fseeko-tests (Makefile.am): Likewise.
68323         * modules/ftell-tests (Makefile.am): Likewise.
68324         * modules/ftello-tests (Makefile.am): Likewise.
68325         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68326         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68327         * modules/lseek-tests (Makefile.am): Likewise.
68328         * modules/parse-duration-tests (Makefile.am): Likewise.
68329         * modules/perror-tests (Makefile.am): Likewise.
68330         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68331         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68332         * modules/pipe-tests (Makefile.am): Likewise.
68333         * modules/pread-tests (Makefile.am): Likewise.
68334         * modules/printf-posix-tests (Makefile.am): Likewise.
68335         * modules/select-tests (Makefile.am): Likewise.
68336         * modules/sigpipe-tests (Makefile.am): Likewise.
68337         * modules/tsearch-tests (Makefile.am): Likewise.
68338         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68339         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68340         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68341         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68342         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68343         * modules/version-etc-tests (Makefile.am): Likewise.
68344         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68345         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68346         * modules/xalloc-die-tests (Makefile.am): Likewise.
68347         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68348         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68349         * modules/xstrtol-tests (Makefile.am): Likewise.
68350         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68351         * modules/yesno-tests (Makefile.am): Likewise.
68352         Suggested by Jim Meyering.
68354 2010-01-24  Bruno Haible  <bruno@clisp.org>
68356         More documentation.
68357         * doc/gnulib.texi (Writing modules): New chapter.
68358         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68359         the new chapter.
68361 2010-01-24  Jim Meyering  <meyering@redhat.com>
68363         maint.mk: do not prepend "./" after filtering
68364         * top/maint.mk (_prepend_srcdir_prefix): New variable
68365         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68366         "./" when $(srcdir) is ".".
68368         define STREQ(a,b) consistently, removing useless parentheses
68369         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68370         since the only risk is that "a" or "b" contains an unparenthesized
68371         comma, but if either did that, STREQ would have 3 or more arguments.
68372         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68373         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68374         * lib/hash-triple.c (STREQ): Likewise.
68375         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68376         * lib/getugroups.c (STREQ): Likewise.
68378 2010-01-23  Jim Meyering  <meyering@redhat.com>
68380         maint.mk: fix syntax-check in a non-srcdir build directory
68381         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68382         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68384 2010-01-22  Jim Meyering  <meyering@redhat.com>
68386         userspec: add unit tests
68387         * tests/test-userspec.c: New file.
68388         * modules/userspec-tests: Likewise.
68390 2010-01-21  Jim Meyering  <meyering@redhat.com>
68392         maint.mk: handle source file names containing "." robustly
68393         * top/maint.mk (_dot_escaped_srcdir): Define.
68394         (VC_LIST): Use it in LHS of sed substitution.
68396 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68398         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68399         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68400         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68401         from a non-srcdir build.
68403 2010-01-20  Eric Blake  <ebb9@byu.net>
68405         warn-on-use: use instead of link-warning
68406         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68407         * modules/unistd (Depends-on, Makefile.am): Likewise.
68408         * modules/arpa_inet (Depends-on): Replace link-warning with
68409         warn-on-use.
68410         (Makefile.am): Update rules accordingly.
68411         * modules/ctype (Depends-on, Makefile.am): Likewise.
68412         * modules/dirent (Depends-on, Makefile.am): Likewise.
68413         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68414         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68415         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68416         * modules/locale (Depends-on, Makefile.am): Likewise.
68417         * modules/math (Depends-on, Makefile.am): Likewise.
68418         * modules/search (Depends-on, Makefile.am): Likewise.
68419         * modules/signal (Depends-on, Makefile.am): Likewise.
68420         * modules/spawn (Depends-on, Makefile.am): Likewise.
68421         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68422         * modules/string (Depends-on, Makefile.am): Likewise.
68423         * modules/strings (Depends-on, Makefile.am): Likewise.
68424         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68425         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68426         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68427         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68428         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68429         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68430         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68431         * modules/wchar (Depends-on, Makefile.am): Likewise.
68432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68433         should be poisoned.
68434         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68435         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68436         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68437         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68438         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68439         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68440         * m4/math_h.m4 (gl_MATH_H): Likewise.
68441         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68442         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68443         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68444         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68445         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68446         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68447         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68448         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68449         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68450         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68451         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68453         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68455         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68456         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68457         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68458         GL_LINK_WARNING.
68459         * lib/ctype.in.h: Likewise.
68460         * lib/dirent.in.h: Likewise.
68461         * lib/fcntl.in.h: Likewise.
68462         * lib/inttypes.in.h: Likewise.
68463         * lib/langinfo.in.h: Likewise.
68464         * lib/locale.in.h: Likewise.
68465         * lib/math.in.h: Likewise.
68466         * lib/search.in.h: Likewise.
68467         * lib/signal.in.h: Likewise.
68468         * lib/spawn.in.h: Likewise.
68469         * lib/stdio.in.h: Likewise.
68470         * lib/stdlib.in.h: Likewise.
68471         * lib/string.in.h: Likewise.
68472         * lib/strings.in.h: Likewise.
68473         * lib/sys_file.in.h: Likewise.
68474         * lib/sys_ioctl.in.h: Likewise.
68475         * lib/sys_select.in.h: Likewise.
68476         * lib/sys_socket.in.h: Likewise.
68477         * lib/sys_stat.in.h: Likewise.
68478         * lib/sys_times.in.h: Likewise.
68479         * lib/sys_utsname.in.h: Likewise.
68480         * lib/unistd.in.h: Likewise.
68481         * lib/wchar.in.h: Likewise.
68483 2010-01-20  Bruno Haible  <bruno@clisp.org>
68485         Avoid duplicate -lm.
68486         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68487         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68489         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68490         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68491         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68492         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68493         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68494         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68495         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68496         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68497         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68498         Reported by Paolo Bonzini.
68500 2010-01-19  Bruno Haible  <bruno@clisp.org>
68502         langinfo, nl_langinfo: Relicense under LGPLv2+.
68503         * modules/langinfo (License): Change to LGPLv2+.
68504         * modules/nl_langinfo (License): Likewise.
68505         Patch by David Lutterkort <lutter@redhat.com>.
68507 2010-01-19  Bruno Haible  <bruno@clisp.org>
68509         Avoid compilation error with cc on OSF/1 5.1.
68510         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68511         statement, not before.
68512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68514 2010-01-18  Bruno Haible  <bruno@clisp.org>
68516         Avoid a link error due to the __printf__ symbol.
68517         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68518         and 2.6.x.
68519         (__format__, __printf__): Remove definitions.
68520         * lib/argp-fmtstream.h: Likewise.
68521         * lib/argp.h: Likewise.
68522         * lib/error.h: Likewise.
68523         * lib/vasnprintf.h: Likewise.
68524         * lib/xprintf.h: Likewise.
68525         * lib/xvasprintf.h: Likewise.
68526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68528 2010-01-18  Bruno Haible  <bruno@clisp.org>
68530         Tests for module 'tanl'.
68531         * modules/tanl-tests: New file.
68532         * tests/test-tanl.c: New file.
68534         Tests for module 'sqrtl'.
68535         * modules/sqrtl-tests: New file.
68536         * tests/test-sqrtl.c: New file.
68538         Tests for module 'sinl'.
68539         * modules/sinl-tests: New file.
68540         * tests/test-sinl.c: New file.
68542         Tests for module 'logl'.
68543         * modules/logl-tests: New file.
68544         * tests/test-logl.c: New file.
68546         Tests for module 'expl'.
68547         * modules/expl-tests: New file.
68548         * tests/test-expl.c: New file.
68550         Tests for module 'cosl'.
68551         * modules/cosl-tests: New file.
68552         * tests/test-cosl.c: New file.
68554         Tests for module 'atanl'.
68555         * modules/atanl-tests: New file.
68556         * tests/test-atanl.c: New file.
68558         Tests for module 'asinl'.
68559         * modules/asinl-tests: New file.
68560         * tests/test-asinl.c: New file.
68562         Tests for module 'acosl'.
68563         * modules/acosl-tests: New file.
68564         * tests/test-acosl.c: New file.
68566         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68567         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68568         tanl): Use the standard gnulib idiom.
68569         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68570         * lib/sinl.c: Likewise.
68571         * lib/tanl.c: Don't include trigl.c.
68572         (kernel_tanl): Make static.
68573         * lib/sincosl.c: Include trigl.h first.
68574         * lib/trigl.c: Likewise.
68575         * m4/acosl.m4: New file.
68576         * m4/asinl.m4: New file.
68577         * m4/atanl.m4: New file.
68578         * m4/cosl.m4: New file.
68579         * m4/expl.m4: New file.
68580         * m4/logl.m4: New file.
68581         * m4/sinl.m4: New file.
68582         * m4/sqrtl.m4: New file.
68583         * m4/tanl.m4: New file.
68584         * m4/mathl.m4: Remove file.
68585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68586         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68587         Don't initialize GNULIB_MATHL.
68588         * modules/acosl: New file.
68589         * modules/asinl: New file.
68590         * modules/atanl: New file.
68591         * modules/cosl: New file.
68592         * modules/expl: New file.
68593         * modules/logl: New file.
68594         * modules/sinl: New file.
68595         * modules/sqrtl: New file.
68596         * modules/tanl: New file.
68597         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
68598         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
68599         substitute GNULIB_MATHL.
68600         * modules/mathl: Rewritten.
68601         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
68602         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
68603         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
68604         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
68605         * doc/posix-functions/expl.texi: Mention the 'expl' module.
68606         * doc/posix-functions/logl.texi: Mention the 'logl' module.
68607         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
68608         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
68609         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
68611 2010-01-18  Bruno Haible  <bruno@clisp.org>
68613         sqrt: Make gl_FUNC_SQRT requirable.
68614         * m4/sqrt.m4: New file.
68615         * modules/sqrt (Files): Add it.
68616         (configure.ac): Invoke gl_FUNC_SQRT.
68618 2010-01-18  Bruno Haible  <bruno@clisp.org>
68620         New modules for common <math.h> functions.
68621         * m4/mathfunc.m4: New file.
68622         * modules/acos: New file.
68623         * modules/asin: New file.
68624         * modules/atan: New file.
68625         * modules/atan2: New file.
68626         * modules/cbrt: New file.
68627         * modules/copysign: New file.
68628         * modules/cos: New file.
68629         * modules/cosh: New file.
68630         * modules/erf: New file.
68631         * modules/erfc: New file.
68632         * modules/exp: New file.
68633         * modules/fabs: New file.
68634         * modules/fmod: New file.
68635         * modules/hypot: New file.
68636         * modules/j0: New file.
68637         * modules/j1: New file.
68638         * modules/jn: New file.
68639         * modules/ldexp: New file.
68640         * modules/lgamma: New file.
68641         * modules/log: New file.
68642         * modules/log10: New file.
68643         * modules/log1p: New file.
68644         * modules/logb: New file.
68645         * modules/modf: New file.
68646         * modules/nextafter: New file.
68647         * modules/pow: New file.
68648         * modules/remainder: New file.
68649         * modules/rint: New file.
68650         * modules/sin: New file.
68651         * modules/sinh: New file.
68652         * modules/sqrt: New file.
68653         * modules/tan: New file.
68654         * modules/tanh: New file.
68655         * modules/y0: New file.
68656         * modules/y1: New file.
68657         * modules/yn: New file.
68658         * doc/posix-functions/acos.texi: Mention the 'acos' module.
68659         * doc/posix-functions/asin.texi: Mention the 'asin' module.
68660         * doc/posix-functions/atan.texi: Mention the 'atan' module.
68661         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
68662         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
68663         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
68664         * doc/posix-functions/cos.texi: Mention the 'cos' module.
68665         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
68666         * doc/posix-functions/erf.texi: Mention the 'erf' module.
68667         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
68668         * doc/posix-functions/exp.texi: Mention the 'exp' module.
68669         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
68670         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
68671         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
68672         * doc/posix-functions/j0.texi: Mention the 'j0' module.
68673         * doc/posix-functions/j1.texi: Mention the 'j1' module.
68674         * doc/posix-functions/jn.texi: Mention the 'jn' module.
68675         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
68676         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
68677         * doc/posix-functions/log.texi: Mention the 'log' module.
68678         * doc/posix-functions/log10.texi: Mention the 'log10' module.
68679         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
68680         * doc/posix-functions/logb.texi: Mention the 'logb' module.
68681         * doc/posix-functions/modf.texi: Mention the 'modf' module.
68682         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
68683         * doc/posix-functions/pow.texi: Mention the 'pow' module.
68684         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
68685         * doc/posix-functions/rint.texi: Mention the 'rint' module.
68686         * doc/posix-functions/sin.texi: Mention the 'sin' module.
68687         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
68688         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
68689         * doc/posix-functions/tan.texi: Mention the 'tan' module.
68690         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
68691         * doc/posix-functions/y0.texi: Mention the 'y0' module.
68692         * doc/posix-functions/y1.texi: Mention the 'y1' module.
68693         * doc/posix-functions/yn.texi: Mention the 'yn' module.
68695 2010-01-18  Jim Meyering  <meyering@redhat.com>
68697         ignore-value: relax license to LGPLv2+
68698         * modules/ignore-value (License): Relax to LGPLv2+.
68700         getdate: don't leak when TZ contains two or more '"'s
68701         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
68702         double quote in TZ after the first one.
68704         readtokens: do not leak internal token_lengths buffer
68705         * lib/readtokens.c (readtokens): Free the local, lengths,
68706         when the supplied "token_lengths" parameter is NULL.
68708 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68710         Fix a couple of missing LIBTHREAD link failures on AIX.
68711         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
68712         $(LIBTHREAD).
68713         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
68715         Link test-poll against INET_PTON_LIB.
68716         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
68717         for inet_pton on Solaris 10.
68719 2010-01-17  Bruno Haible  <bruno@clisp.org>
68721         unistdio/*-sprintf: Fix typo in module description.
68722         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
68723         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
68724         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
68725         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
68726         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
68727         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
68728         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
68729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68731 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68733         gnulib-tool: fix filelist for AIX, HP-UX ksh.
68734         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
68735         variables in shell case patterns, for AIX and HP-UX ksh.
68737         Split large sed scripts, for HP-UX sed.
68738         * modules/stdio: Split sed scripts around 50 sed commands,
68739         to avoid HP-UX limit of 99 commands, in the near future.
68740         * modules/string: Likewise.
68741         * modules/unistd: Likewise.
68743         gnulib-tool: avoid writing in the current directory.
68744         * gnulib-tool (func_emit_lib_Makefile_am)
68745         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
68746         not in the current directory, so concurrent gnulib-tool
68747         instances do not interfere.
68749 2010-01-16  Jim Meyering  <meyering@redhat.com>
68751         doc: update users.txt
68752         * users.txt: Add grep.
68753         (diffutils, gzip): Update URLs.
68755 2010-01-12  Bruno Haible  <bruno@clisp.org>
68757         posix_spawn: Avoid test failure on Cygwin.
68758         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
68759         characters.
68760         Reported by Simon Josefsson.
68762 2010-01-12  Bruno Haible  <bruno@clisp.org>
68764         * tests/test-cond.c (main): When skipping the test, show the reason.
68766 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68768         * lib/striconv.c (str_cd_iconv): Avoid if before free.
68770 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68772         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
68773         VC_LIST_ALWAYS_EXCLUDE_REGEX.
68775 2010-01-12  Eric Blake  <ebb9@byu.net>
68777         build: guarantee AS_VAR_IF
68778         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
68779         (gl_AS_VAR_IF): Move...
68780         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
68781         Reported by Simon Josefsson.
68783 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68785         * lib/stdio.in.h: Fix typo.
68787 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68789         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
68790         libgpg-error.
68792 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68794         * tests/test-xalloc-die.sh: Use $EXEEXT.
68796 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68797             Bruno Haible  <bruno@clisp.org>
68799         getlogin, getlogin_r: Avoid test failure.
68800         * tests/test-getlogin.c: Include <stdio.h>.
68801         (main): Skip the test when the function fails because stdin is not a
68802         tty.
68803         * tests/test-getlogin_r.c: Include <stdio.h>.
68804         (main): Skip the test when the function fails because stdin is not a
68805         tty.
68807 2010-01-11  Eric Blake  <ebb9@byu.net>
68809         tests: avoid more large file warnings
68810         * tests/test-fflush.c: Avoid warning about ftell use.
68811         * tests/test-fseek.c: Avoid warning about fseek use.
68813 2010-01-10  Bruno Haible  <bruno@clisp.org>
68815         nproc: Work better on Linux when /proc and /sys are not mounted.
68816         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
68817         as lower bound when, on glibc/Linux systems,
68818         sysconf (_SC_NPROCESSORS_CONF) returns 1.
68819         Suggested by Pádraig Brady <P@draigbrady.com>.
68820         Reported by Dmitry V. Levin <ldv@altlinux.org>.
68822         nproc: Refactor.
68823         * lib/nproc.c (num_processors_via_affinity_mask): New function,
68824         extracted from num_processors.
68825         (num_processors): Call it.
68827 2010-01-11  Jim Meyering  <meyering@redhat.com>
68829         utimecmp: avoid new warning from upcoming gcc-4.5.0
68830         * lib/utimecmp.c (BILLION): Define using #define rather than an
68831         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
68833 2010-01-11  Eric Blake  <ebb9@byu.net>
68835         math: add portability warnings for classification macros
68836         * modules/math (Depends-on): Add warn-on-use.
68837         (Makefile.am): Provide new substitutions.
68838         * m4/math_h.m4 (gl_MATH_H): Require inline.
68839         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
68840         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
68841         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
68842         implement warnings.
68844         unistd: warn on use of environ without module
68845         * modules/unistd (Depends-on): Add warn-on-use.
68846         (Makefile.am): Provide new substitutions.
68847         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
68848         * lib/unistd.in.h (environ): Wrap with a warning helper function.
68850         stdio: warn on suspicious uses
68851         * modules/stdio (Depends-on): Add warn-on-use.
68852         (Makefile.am): Provide new substitutions.
68853         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
68854         fseeko.
68855         * lib/stdio.in.h (gets): Always warn on use.
68856         (fseek, ftell): Adjust when warnings are issued, and honor
68857         _GL_NO_LARGE_FILES as a way to silence the warning.
68858         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
68859         any warning about large file offsets.
68860         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
68861         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
68862         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
68863         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
68864         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
68865         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
68866         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
68867         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
68869         warn-on-use: new module
68870         * modules/warn-on-use: New file.
68871         * build-aux/warn-on-use.h: Likewise.
68872         * m4/warn-on-use.m4: Likewise.
68873         * MODULES.html.sh (Support for building): Mention it.
68875 2010-01-10  Bruno Haible  <bruno@clisp.org>
68877         Tests for module 'unistr/u32-strdup'.
68878         * modules/unistr/u32-strdup-tests: New file.
68879         * tests/unistr/test-u32-strdup.c: New file.
68881         Tests for module 'unistr/u16-strdup'.
68882         * modules/unistr/u16-strdup-tests: New file.
68883         * tests/unistr/test-u16-strdup.c: New file.
68885         Tests for module 'unistr/u8-strdup'.
68886         * modules/unistr/u8-strdup-tests: New file.
68887         * tests/unistr/test-u8-strdup.c: New file.
68888         * tests/unistr/test-strdup.h: New file.
68890         Tests for module 'unistr/u32-strncmp'.
68891         * modules/unistr/u32-strncmp-tests: New file.
68892         * tests/unistr/test-u32-strncmp.c: New file.
68894         Tests for module 'unistr/u16-strncmp'.
68895         * modules/unistr/u16-strncmp-tests: New file.
68896         * tests/unistr/test-u16-strncmp.c: New file.
68898         Tests for module 'unistr/u8-strncmp'.
68899         * modules/unistr/u8-strncmp-tests: New file.
68900         * tests/unistr/test-u8-strncmp.c: New file.
68901         * tests/unistr/test-strncmp.h: New file.
68903         Tests for module 'unistr/u32-strcoll'.
68904         * modules/unistr/u32-strcoll-tests: New file.
68905         * tests/unistr/test-u32-strcoll.c: New file.
68907         Tests for module 'unistr/u16-strcoll'.
68908         * modules/unistr/u16-strcoll-tests: New file.
68909         * tests/unistr/test-u16-strcoll.c: New file.
68911         Tests for module 'unistr/u8-strcoll'.
68912         * modules/unistr/u8-strcoll-tests: New file.
68913         * tests/unistr/test-u8-strcoll.c: New file.
68915         Tests for module 'unistr/u32-strcmp'.
68916         * modules/unistr/u32-strcmp-tests: New file.
68917         * tests/unistr/test-u32-strcmp.c: New file.
68918         * tests/unistr/test-u32-strcmp.h: New file.
68920         Tests for module 'unistr/u16-strcmp'.
68921         * modules/unistr/u16-strcmp-tests: New file.
68922         * tests/unistr/test-u16-strcmp.c: New file.
68923         * tests/unistr/test-u16-strcmp.h: New file.
68925         Tests for module 'unistr/u8-strcmp'.
68926         * modules/unistr/u8-strcmp-tests: New file.
68927         * tests/unistr/test-u8-strcmp.c: New file.
68928         * tests/unistr/test-u8-strcmp.h: New file.
68929         * tests/unistr/test-strcmp.h: New file.
68931         Tests for module 'unistr/u32-strncat'.
68932         * modules/unistr/u32-strncat-tests: New file.
68933         * tests/unistr/test-u32-strncat.c: New file.
68935         Tests for module 'unistr/u16-strncat'.
68936         * modules/unistr/u16-strncat-tests: New file.
68937         * tests/unistr/test-u16-strncat.c: New file.
68939         Tests for module 'unistr/u8-strncat'.
68940         * modules/unistr/u8-strncat-tests: New file.
68941         * tests/unistr/test-u8-strncat.c: New file.
68942         * tests/unistr/test-strncat.h: New file.
68944         Tests for module 'unistr/u32-strcat'.
68945         * modules/unistr/u32-strcat-tests: New file.
68946         * tests/unistr/test-u32-strcat.c: New file.
68948         Tests for module 'unistr/u16-strcat'.
68949         * modules/unistr/u16-strcat-tests: New file.
68950         * tests/unistr/test-u16-strcat.c: New file.
68952         Tests for module 'unistr/u8-strcat'.
68953         * modules/unistr/u8-strcat-tests: New file.
68954         * tests/unistr/test-u8-strcat.c: New file.
68955         * tests/unistr/test-strcat.h: New file.
68957         Tests for module 'unistr/u32-stpncpy'.
68958         * modules/unistr/u32-stpncpy-tests: New file.
68959         * tests/unistr/test-u32-stpncpy.c: New file.
68961         Tests for module 'unistr/u16-stpncpy'.
68962         * modules/unistr/u16-stpncpy-tests: New file.
68963         * tests/unistr/test-u16-stpncpy.c: New file.
68965         Tests for module 'unistr/u8-stpncpy'.
68966         * modules/unistr/u8-stpncpy-tests: New file.
68967         * tests/unistr/test-u8-stpncpy.c: New file.
68968         * tests/unistr/test-stpncpy.h: New file.
68970         Tests for module 'unistr/u32-strncpy'.
68971         * modules/unistr/u32-strncpy-tests: New file.
68972         * tests/unistr/test-u32-strncpy.c: New file.
68974         Tests for module 'unistr/u16-strncpy'.
68975         * modules/unistr/u16-strncpy-tests: New file.
68976         * tests/unistr/test-u16-strncpy.c: New file.
68978         Tests for module 'unistr/u8-strncpy'.
68979         * modules/unistr/u8-strncpy-tests: New file.
68980         * tests/unistr/test-u8-strncpy.c: New file.
68981         * tests/unistr/test-strncpy.h: New file.
68983         Tests for module 'unistr/u32-stpcpy'.
68984         * modules/unistr/u32-stpcpy-tests: New file.
68985         * tests/unistr/test-u32-stpcpy.c: New file.
68987         Tests for module 'unistr/u16-stpcpy'.
68988         * modules/unistr/u16-stpcpy-tests: New file.
68989         * tests/unistr/test-u16-stpcpy.c: New file.
68991         Tests for module 'unistr/u8-stpcpy'.
68992         * modules/unistr/u8-stpcpy-tests: New file.
68993         * tests/unistr/test-u8-stpcpy.c: New file.
68994         * tests/unistr/test-stpcpy.h: New file.
68996         Tests for module 'unistr/u32-strcpy'.
68997         * modules/unistr/u32-strcpy-tests: New file.
68998         * tests/unistr/test-u32-strcpy.c: New file.
69000         Tests for module 'unistr/u16-strcpy'.
69001         * modules/unistr/u16-strcpy-tests: New file.
69002         * tests/unistr/test-u16-strcpy.c: New file.
69004         Tests for module 'unistr/u8-strcpy'.
69005         * modules/unistr/u8-strcpy-tests: New file.
69006         * tests/unistr/test-u8-strcpy.c: New file.
69007         * tests/unistr/test-strcpy.h: New file.
69009         Tests for module 'unistr/u32-strnlen'.
69010         * modules/unistr/u32-strnlen-tests: New file.
69011         * tests/unistr/test-u32-strnlen.c: New file.
69013         Tests for module 'unistr/u16-strnlen'.
69014         * modules/unistr/u16-strnlen-tests: New file.
69015         * tests/unistr/test-u16-strnlen.c: New file.
69017         Tests for module 'unistr/u8-strnlen'.
69018         * modules/unistr/u8-strnlen-tests: New file.
69019         * tests/unistr/test-u8-strnlen.c: New file.
69020         * tests/unistr/test-strnlen.h: New file.
69022         Tests for module 'unistr/u32-strlen'.
69023         * modules/unistr/u32-strlen-tests: New file.
69024         * tests/unistr/test-u32-strlen.c: New file.
69026         Tests for module 'unistr/u16-strlen'.
69027         * modules/unistr/u16-strlen-tests: New file.
69028         * tests/unistr/test-u16-strlen.c: New file.
69030         Tests for module 'unistr/u8-strlen'.
69031         * modules/unistr/u8-strlen-tests: New file.
69032         * tests/unistr/test-u8-strlen.c: New file.
69034         Tests for module 'unistr/u32-prev'.
69035         * modules/unistr/u32-prev-tests: New file.
69036         * tests/unistr/test-u32-prev.c: New file.
69038         Tests for module 'unistr/u16-prev'.
69039         * modules/unistr/u16-prev-tests: New file.
69040         * tests/unistr/test-u16-prev.c: New file.
69042         Tests for module 'unistr/u8-prev'.
69043         * modules/unistr/u8-prev-tests: New file.
69044         * tests/unistr/test-u8-prev.c: New file.
69046         Tests for module 'unistr/u32-next'.
69047         * modules/unistr/u32-next-tests: New file.
69048         * tests/unistr/test-u32-next.c: New file.
69050         Tests for module 'unistr/u16-next'.
69051         * modules/unistr/u16-next-tests: New file.
69052         * tests/unistr/test-u16-next.c: New file.
69054         Tests for module 'unistr/u8-next'.
69055         * modules/unistr/u8-next-tests: New file.
69056         * tests/unistr/test-u8-next.c: New file.
69058         Tests for module 'unistr/u32-strmbtouc'.
69059         * modules/unistr/u32-strmbtouc-tests: New file.
69060         * tests/unistr/test-u32-strmbtouc.c: New file.
69062         Tests for module 'unistr/u16-strmbtouc'.
69063         * modules/unistr/u16-strmbtouc-tests: New file.
69064         * tests/unistr/test-u16-strmbtouc.c: New file.
69066         Tests for module 'unistr/u8-strmbtouc'.
69067         * modules/unistr/u8-strmbtouc-tests: New file.
69068         * tests/unistr/test-u8-strmbtouc.c: New file.
69070         Tests for module 'unistr/u32-strmblen'.
69071         * modules/unistr/u32-strmblen-tests: New file.
69072         * tests/unistr/test-u32-strmblen.c: New file.
69074         Tests for module 'unistr/u16-strmblen'.
69075         * modules/unistr/u16-strmblen-tests: New file.
69076         * tests/unistr/test-u16-strmblen.c: New file.
69078         Tests for module 'unistr/u8-strmblen'.
69079         * modules/unistr/u8-strmblen-tests: New file.
69080         * tests/unistr/test-u8-strmblen.c: New file.
69082         Tests for module 'unistr/u32-cpy-alloc'.
69083         * modules/unistr/u32-cpy-alloc-tests: New file.
69084         * tests/unistr/test-u32-cpy-alloc.c: New file.
69086         Tests for module 'unistr/u16-cpy-alloc'.
69087         * modules/unistr/u16-cpy-alloc-tests: New file.
69088         * tests/unistr/test-u16-cpy-alloc.c: New file.
69090         Tests for module 'unistr/u8-cpy-alloc'.
69091         * modules/unistr/u8-cpy-alloc-tests: New file.
69092         * tests/unistr/test-u8-cpy-alloc.c: New file.
69093         * tests/unistr/test-cpy-alloc.h: New file.
69095         Tests for module 'unistr/u32-mbsnlen'.
69096         * modules/unistr/u32-mbsnlen-tests: New file.
69097         * tests/unistr/test-u32-mbsnlen.c: New file.
69099         Tests for module 'unistr/u16-mbsnlen'.
69100         * modules/unistr/u16-mbsnlen-tests: New file.
69101         * tests/unistr/test-u16-mbsnlen.c: New file.
69103         Tests for module 'unistr/u8-mbsnlen'.
69104         * modules/unistr/u8-mbsnlen-tests: New file.
69105         * tests/unistr/test-u8-mbsnlen.c: New file.
69107         Tests for module 'unistr/u32-chr'.
69108         * modules/unistr/u32-chr-tests: New file.
69109         * tests/unistr/test-u32-chr.c: New file.
69111         Tests for module 'unistr/u16-chr'.
69112         * modules/unistr/u16-chr-tests: New file.
69113         * tests/unistr/test-u16-chr.c: New file.
69115         Tests for module 'unistr/u8-chr'.
69116         * modules/unistr/u8-chr-tests: New file.
69117         * tests/unistr/test-u8-chr.c: New file.
69118         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69120         Tests for module 'unistr/u32-cmp2'.
69121         * modules/unistr/u32-cmp2-tests: New file.
69122         * tests/unistr/test-u32-cmp2.c: New file.
69124         Tests for module 'unistr/u16-cmp2'.
69125         * modules/unistr/u16-cmp2-tests: New file.
69126         * tests/unistr/test-u16-cmp2.c: New file.
69128         Tests for module 'unistr/u8-cmp2'.
69129         * modules/unistr/u8-cmp2-tests: New file.
69130         * tests/unistr/test-u8-cmp2.c: New file.
69131         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69133         Tests for module 'unistr/u32-cmp'.
69134         * modules/unistr/u32-cmp-tests: New file.
69135         * tests/unistr/test-u32-cmp.c: New file.
69137         Tests for module 'unistr/u16-cmp'.
69138         * modules/unistr/u16-cmp-tests: New file.
69139         * tests/unistr/test-u16-cmp.c: New file.
69141         Tests for module 'unistr/u8-cmp'.
69142         * modules/unistr/u8-cmp-tests: New file.
69143         * tests/unistr/test-u8-cmp.c: New file.
69144         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69146         Tests for module 'unistr/u32-set'.
69147         * modules/unistr/u32-set-tests: New file.
69148         * tests/unistr/test-u32-set.c: New file.
69150         Tests for module 'unistr/u16-set'.
69151         * modules/unistr/u16-set-tests: New file.
69152         * tests/unistr/test-u16-set.c: New file.
69154         Tests for module 'unistr/u8-set'.
69155         * modules/unistr/u8-set-tests: New file.
69156         * tests/unistr/test-u8-set.c: New file.
69157         * tests/unistr/test-set.h: New file.
69159         Tests for module 'unistr/u32-move'.
69160         * modules/unistr/u32-move-tests: New file.
69161         * tests/unistr/test-u32-move.c: New file.
69163         Tests for module 'unistr/u16-move'.
69164         * modules/unistr/u16-move-tests: New file.
69165         * tests/unistr/test-u16-move.c: New file.
69167         Tests for module 'unistr/u8-move'.
69168         * modules/unistr/u8-move-tests: New file.
69169         * tests/unistr/test-u8-move.c: New file.
69170         * tests/unistr/test-move.h: New file.
69172         Tests for module 'unistr/u32-cpy'.
69173         * modules/unistr/u32-cpy-tests: New file.
69174         * tests/unistr/test-u32-cpy.c: New file.
69176         Tests for module 'unistr/u16-cpy'.
69177         * modules/unistr/u16-cpy-tests: New file.
69178         * tests/unistr/test-u16-cpy.c: New file.
69180         Tests for module 'unistr/u8-cpy'.
69181         * modules/unistr/u8-cpy-tests: New file.
69182         * tests/unistr/test-u8-cpy.c: New file.
69183         * tests/unistr/test-cpy.h: New file.
69185 2010-01-09  Bruno Haible  <bruno@clisp.org>
69187         Tests for module 'unistr/u32-uctomb'.
69188         * modules/unistr/u32-uctomb-tests: New file.
69189         * tests/unistr/test-u32-uctomb.c: New file.
69191         Tests for module 'unistr/u16-uctomb'.
69192         * modules/unistr/u16-uctomb-tests: New file.
69193         * tests/unistr/test-u16-uctomb.c: New file.
69195         Tests for module 'unistr/u8-uctomb'.
69196         * modules/unistr/u8-uctomb-tests: New file.
69197         * tests/unistr/test-u8-uctomb.c: New file.
69199         Tests for module 'unistr/u32-mbtoucr'.
69200         * modules/unistr/u32-mbtoucr-tests: New file.
69201         * tests/unistr/test-u32-mbtoucr.c: New file.
69203         Tests for module 'unistr/u16-mbtoucr'.
69204         * modules/unistr/u16-mbtoucr-tests: New file.
69205         * tests/unistr/test-u16-mbtoucr.c: New file.
69207         Tests for module 'unistr/u8-mbtoucr'.
69208         * modules/unistr/u8-mbtoucr-tests: New file.
69209         * tests/unistr/test-u8-mbtoucr.c: New file.
69211         Tests for module 'unistr/u32-mbtouc'.
69212         * modules/unistr/u32-mbtouc-tests: New file.
69213         * tests/unistr/test-u32-mbtouc.c: New file.
69215         Tests for module 'unistr/u16-mbtouc'.
69216         * modules/unistr/u16-mbtouc-tests: New file.
69217         * tests/unistr/test-u16-mbtouc.c: New file.
69219         Tests for module 'unistr/u8-mbtouc'.
69220         * modules/unistr/u8-mbtouc-tests: New file.
69221         * tests/unistr/test-u8-mbtouc.c: New file.
69223         Tests for module 'unistr/u32-mbtouc-unsafe'.
69224         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69225         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69226         * tests/unistr/test-u32-mbtouc.h: New file.
69228         Tests for module 'unistr/u16-mbtouc-unsafe'.
69229         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69230         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69231         * tests/unistr/test-u16-mbtouc.h: New file.
69233         Tests for module 'unistr/u8-mbtouc-unsafe'.
69234         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69235         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69236         * tests/unistr/test-u8-mbtouc.h: New file.
69238         Tests for module 'unistr/u32-mblen'.
69239         * modules/unistr/u32-mblen-tests: New file.
69240         * tests/unistr/test-u32-mblen.c: New file.
69242         Tests for module 'unistr/u16-mblen'.
69243         * modules/unistr/u16-mblen-tests: New file.
69244         * tests/unistr/test-u16-mblen.c: New file.
69246         Tests for module 'unistr/u8-mblen'.
69247         * modules/unistr/u8-mblen-tests: New file.
69248         * tests/unistr/test-u8-mblen.c: New file.
69250         Tests for module 'unistr/u32-to-u16'.
69251         * modules/unistr/u32-to-u16-tests: New file.
69252         * tests/unistr/test-u32-to-u16.c: New file.
69254         Tests for module 'unistr/u32-to-u8'.
69255         * modules/unistr/u32-to-u8-tests: New file.
69256         * tests/unistr/test-u32-to-u8.c: New file.
69258         Tests for module 'unistr/u16-to-u32'.
69259         * modules/unistr/u16-to-u32-tests: New file.
69260         * tests/unistr/test-u16-to-u32.c: New file.
69262         Tests for module 'unistr/u16-to-u8'.
69263         * modules/unistr/u16-to-u8-tests: New file.
69264         * tests/unistr/test-u16-to-u8.c: New file.
69266         Tests for module 'unistr/u8-to-u32'.
69267         * modules/unistr/u8-to-u32-tests: New file.
69268         * tests/unistr/test-u8-to-u32.c: New file.
69270         Tests for module 'unistr/u8-to-u16'.
69271         * modules/unistr/u8-to-u16-tests: New file.
69272         * tests/unistr/test-u8-to-u16.c: New file.
69274         Tests for module 'unistr/u32-check'.
69275         * modules/unistr/u32-check-tests: New file.
69276         * tests/unistr/test-u32-check.c: New file.
69278         Tests for module 'unistr/u16-check'.
69279         * modules/unistr/u16-check-tests: New file.
69280         * tests/unistr/test-u16-check.c: New file.
69282         Tests for module 'unistr/u8-check'.
69283         * modules/unistr/u8-check-tests: New file.
69284         * tests/unistr/test-u8-check.c: New file.
69286         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69287         (category_equals): New function.
69288         (main): Add more tests.
69289         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69291         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69293 2010-01-10  Bruno Haible  <bruno@clisp.org>
69295         unistr/u*-strcoll: Try harder to distinguish different strings.
69296         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69297         compare s1 and s2 to see if they are different.
69299 2010-01-10  Bruno Haible  <bruno@clisp.org>
69301         unistr/u*-stpncpy: Fix the return value.
69302         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69303         description of the return value consistent with stpncpy in glibc.
69304         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69305         written non-NUL unit.
69307 2010-01-10  Bruno Haible  <bruno@clisp.org>
69309         unistr/u*-next: Add missing dependencies.
69310         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69311         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69312         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69314 2010-01-10  Bruno Haible  <bruno@clisp.org>
69316         unistr/u8-mbsnlen: Fix return value for incomplete character.
69317         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69318         u8_mblen.
69319         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69320         Remove unistr/u8-mblen.
69321         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69322         u16_mblen.
69323         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69324         Remove unistr/u16-mblen.
69326 2010-01-10  Bruno Haible  <bruno@clisp.org>
69328         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69329         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69330         Reported by Brian Gough <bjg@gnu.org> and
69331         Chris Clayton <chris2553@googlemail.com> via
69332         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69334 2010-01-09  Bruno Haible  <bruno@clisp.org>
69336         unistr/u16-to-u32: Reject invalid input.
69337         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69338         u16_mbtouc.
69339         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69340         Remove unistr/u16-mbtouc.
69342         unistr/u16-to-u8: Reject invalid input.
69343         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69344         u16_mbtouc.
69345         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69346         Remove unistr/u16-mbtouc.
69348         unistr/u8-to-u32: Reject invalid input.
69349         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69350         u8_mbtouc.
69351         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69352         Remove unistr/u8-mbtouc.
69354         unistr/u8-to-u16: Reject invalid input.
69355         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69356         u8_mbtouc.
69357         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69358         Remove unistr/u8-mbtouc.
69360 2010-01-09  Bruno Haible  <bruno@clisp.org>
69362         Tests for module 'getlogin'.
69363         * modules/getlogin-tests: New file.
69364         * tests/test-getlogin.c: New file.
69366         New module 'getlogin'.
69367         * lib/unistd.in.h (getlogin): New declaration.
69368         * lib/getlogin.c: New file.
69369         * m4/getlogin.m4: New file.
69370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69371         HAVE_GETLOGIN.
69372         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69373         HAVE_GETLOGIN.
69374         * modules/getlogin: New file.
69375         * doc/posix-functions/getlogin.texi: Mention the new module.
69376         Reported by John W. Eaton <jwe@gnu.org>.
69378 2010-01-09  Bruno Haible  <bruno@clisp.org>
69380         getlogin_r: Support for native Windows.
69381         * lib/getlogin_r.c: Include <windows.h>
69382         (getlogin_r): Implement for native Windows.
69383         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69384         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69385         via John W. Eaton <jwe@gnu.org>.
69387 2010-01-09  Bruno Haible  <bruno@clisp.org>
69389         getlogin_r: Small fixes.
69390         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69391         succeeds.
69392         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69393         before testing whether getlogin_r is declared. No need to set
69394         HAVE_DECL_GETLOGIN_R to 1.
69395         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69397 2010-01-09  Bruno Haible  <bruno@clisp.org>
69399         * lib/unistd.in.h (getlogin_r): Add comment.
69401 2010-01-09  Bruno Haible  <bruno@clisp.org>
69403         Tests for module 'getlogin_r'.
69404         * modules/getlogin_r-tests: New file.
69405         * tests/test-getlogin_r.c: New file.
69407 2010-01-09  Jim Meyering  <meyering@redhat.com>
69409         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69410         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69411         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69413 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69415         * lib/dup2.c (rpl_dup2): Improve comment.
69417 2010-01-08  Eric Blake  <ebb9@byu.net>
69419         maint.mk: allow packages to add makefile @@ exceptions
69420         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69421         (sc_makefile_check): Rename...
69422         (sc_makefile_at_at_check): ...to this, and use hook.
69424         dup2: work around mingw bug
69425         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69426         Reported by Simon Josefsson.
69428 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69430         glob: Fix C++ compilation.
69431         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69432         C++.
69434 2010-01-07  Bruno Haible  <bruno@clisp.org>
69436         Fix indentation of wctype.in.h, broken since 2007-01-06.
69437         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69439 2010-01-07  Bruno Haible  <bruno@clisp.org>
69441         mbslen: Avoid collision with system function.
69442         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69443         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69444         * m4/mbslen.m4: New file.
69445         * modules/mbslen (Files): Add it.
69446         (configure.ac): Invoke gl_MBSLEN.
69447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69448         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69449         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69450         via Ian Beckwith <ianb@erislabs.net>.
69452 2010-01-07  Bruno Haible  <bruno@clisp.org>
69454         dirent: Document the last fix.
69455         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69457 2010-01-07  Bruno Haible  <bruno@clisp.org>
69459         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69460         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69461         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69462         va_list are defined.
69463         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69464         Reported by Eric Blake.
69466 2010-01-07  Bruno Haible  <bruno@clisp.org>
69468         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69469         * modules/xlist (Depends-on): Add 'list',
69470         * modules/xoset (Depends-on): Add 'oset'.
69471         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69473 2010-01-07  Bruno Haible  <bruno@clisp.org>
69475         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69476         * doc/posix-functions/strncasecmp.texi: Likewise.
69478 2010-01-07  Bruno Haible  <bruno@clisp.org>
69480         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69482 2010-01-07  John W. Eaton  <jwe@octave.org>
69484         wctype: allow C++ use
69485         * lib/wctype.in.h: Add extern "C" block for C++.
69487 2010-01-06  Eric Blake  <ebb9@byu.net>
69489         maint.mk: detect incorrect GFDL usage
69490         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69492 2010-01-06  Jim Meyering  <meyering@redhat.com>
69493         and Eric Blake  <ebb9@byu.net>
69495         maint.mk: ignore multi-line copyright in NEWS
69496         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69498 2010-01-06  Eric Blake  <ebb9@byu.net>
69500         select: add missing dependency
69501         * modules/select-tests (Depends-on): Move sockets dependency...
69502         * modules/select (Depends-on): ...here.
69503         Reported by Ian Beckwith.
69505         doc: regenerate INSTALL
69506         * doc/INSTALL: Reflect recent autoconf update.
69507         * doc/INSTALL.ISO: Likewise.
69508         * doc/INSTALL.UTF-8: Likewise.
69510         pread: fix compilation on glibc
69511         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69512         Reported by Ralf Wildenhues.
69514         dirent: fix test failure
69515         * lib/dirent.in.h (includes): Guarantee ino_t.
69516         Reported by Ralf Wildenhues.
69518 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69520         linkat, renameat: avoid bad free
69521         * lib/at-func2.c (at_func2): Fix typo.
69522         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69524 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69526         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69527         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69528         to avoid failure of symlink test later.
69530 2010-01-06  Eric Blake  <ebb9@byu.net>
69532         stdio, unistd: guarantee ssize_t
69533         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69534         2008 are exposed when needed.
69535         * lib/stdio.in.h (includes): Likewise.
69536         Reported by Ralf Wildenhues.
69538 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69540         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69541         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69542         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69544 2010-01-06  Jim Meyering  <meyering@redhat.com>
69546         readtokens: this module *does* require xalloc.h
69547         It uses only functions that were omitted by the old syntax-check rule.
69548         * lib/readtokens.c: Include "xalloc.h" once again.
69549         * modules/readtokens (Depends-on): Add xalloc.
69550         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69552 2010-01-05  Eric Blake  <ebb9@byu.net>
69554         maint: support 'make announcement' from a VPATH build
69555         * top/maint.mk (announcement): Look for correct NEWS file.
69557 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69559         utimens (fdutimens): ignore a negative FD, per contract
69560         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69561         when we have a valid file descriptor.  Otherwise, using a brand
69562         new glibc (with just-patched futimens that now fails with EBADF)
69563         would cause this function to fail with ENOSYS.
69564         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69565         See also http://bugzilla.redhat.com/552320.
69567 2010-01-05  Eric Blake  <ebb9@byu.net>
69569         strcase: document what it provides
69570         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69571         gnulib module.
69572         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69573         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69575 2010-01-05  Jim Meyering  <meyering@redhat.com>
69577         maint: remove useless inclusions of "xalloc.h"
69578         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69579         * lib/readtokens.c: Likewise.
69580         * lib/same.c: Likewise.
69581         * modules/getloadavg (Depends-on): Remove xalloc.
69582         * modules/readtokens: Likewise.
69583         * modules/same: Likewise.
69585         maint.mk: include 4 more function names in alloca.h-checking regexp
69586         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
69587         regexp.  Before, we would give a false-positive (saying alloca.h
69588         is included unnecessarily) when the only uses involved omitted symbols.
69590         xalloc.h: use consistent formatting
69591         * lib/xalloc.h: Move declarations to start in the first column.
69593 2010-01-05  Eric Blake  <ebb9@byu.net>
69595         mkdir: avoid xalloc
69596         * lib/mkdir.c (includes): Drop unused header.
69597         Reported by John W. Eaton.
69599 2010-01-04  Jim Meyering  <meyering@redhat.com>
69601         nl_langinfo: avoid configure-time syntax error
69602         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
69603         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
69604         the empty string.  Don't let that provoke a shell syntax error.
69606         regcomp, regexec, fnmatch: avoid array bounds read error
69607         * lib/regcomp.c (build_equiv_class): From glibc:
69608         Use only the low 24 bits of a findidx return value as an index
69609         into the weights array.  Patch by Ulrich Drepper:
69610         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
69611         * lib/regexec.c (check_node_accept_bytes): Likewise.
69612         * lib/fnmatch_loop.c (FCT): Likewise.
69614         regcomp: skip collseq lookup when there are no rules
69615         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
69616         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
69618         regcomp: recognize ill-formed { } expressions
69619         * lib/regcomp.c (parse_dup_op): From glibc:
69620         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
69622         regcomp: fix typo in comment
69623         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
69624         s/satisfy/satisfies/.
69626         regcomp: sync from glibc: remove dead store
69627         * lib/regcomp.c (duplicate_node_closure): Remove useless
69628         search_duplicated_node call and dead store.
69630         regcomp: sync from glibc; always use nl_langinfo
69631         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
69632         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
69633         * modules/regex (Depends-on): Add nl_langinfo.
69635 2010-01-04  Eric Blake  <ebb9@byu.net>
69637         fdopendir: fix configure test
69638         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
69640 2010-01-01  Bruno Haible  <bruno@clisp.org>
69642         wchar: Remove unused configure check.
69643         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
69645 2010-01-01  Eric Blake  <ebb9@byu.net>
69647         headers: make check of system header explicit
69648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
69649         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
69650         ourselves.
69651         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69653         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69654         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
69655         internals.
69656         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
69657         missing.
69658         Suggested by Bruno Haible.
69660 2010-01-01  Jim Meyering  <meyering@redhat.com>
69662         ChangeLog: tweak to eliminate unnecessary copyright line
69663         * ChangeLog: Remove a copyright line that was mistakenly updated
69664         by today's update-copyright run.  Reported by Eric Blake.
69666         test-update-copyright: don't let envvar setting cause test failure
69667         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69669 2010-01-01  Bruno Haible  <bruno@clisp.org>
69671         localename: Avoid gcc warning.
69672         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
69673         function if it is not used.
69675 2010-01-01  Jim Meyering  <meyering@redhat.com>
69677         update nearly all FSF copyright year lists to include 2010
69678         Use the same procedure as for 2009, outlined in
69679         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
69681         version-etc: set COPYRIGHT_YEAR to 2010
69682         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
69684 2009-12-31  Eric Blake  <ebb9@byu.net>
69686         doc: correct availability of cygwin 1.5.x getopt
69687         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
69688         variables.
69689         * doc/posix-functions/opterr.texi (opterr): Likewise.
69690         * doc/posix-functions/optind.texi (optind): Likewise.
69691         * doc/posix-functions/optopt.texi (optopt): Likewise.
69692         * doc/posix-functions/tzname.texi (tzname): Likewise.
69694         openat: update maintainer
69695         * modules/openat (Maintainer): Add myself.
69697         utimens: avoid shadowing warning
69698         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
69699         buffers into one, to avoid shadowing, as well as avoiding a
69700         redundant stat.
69701         Reported by Jim Meyering.
69703         test-dup2: avoid compiler warning
69704         * tests/test-dup2.c (is_inheritable): Only define if used.
69706 2010-01-01  Bruno Haible  <bruno@clisp.org>
69708         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
69709         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
69710         defined, use wctomb instead of wcrtomb.
69712 2010-01-01  Bruno Haible  <bruno@clisp.org>
69714         iconv: Reject native Solaris iconv.
69715         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
69716         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
69718 2009-12-31  Bruno Haible  <bruno@clisp.org>
69720         * tests/test-signal.c (main): Remove test of 'SIG'.
69722 2009-12-31  Bruno Haible  <bruno@clisp.org>
69724         spawn: Fix incomplete fix.
69725         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69726         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69727         warnings for GNULIB_POSIXCHECK again.
69728         Reported by Eric Blake.
69730 2009-12-31  Bruno Haible  <bruno@clisp.org>
69732         Avoid namespace pollution on glibc systems.
69733         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
69734         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
69735         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
69736         glibc systems.
69738 2009-12-31  Bruno Haible  <bruno@clisp.org>
69740         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
69741         (gl_REPLACE_WCHAR_H): Turn into a no-op.
69742         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
69743         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
69744         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
69745         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
69746         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
69748 2009-12-31  Bruno Haible  <bruno@clisp.org>
69750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69751         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
69752         afterwards.
69754 2009-12-31  Bruno Haible  <bruno@clisp.org>
69756         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
69757         SYS_UTSNAME_H.
69759 2009-12-31  Bruno Haible  <bruno@clisp.org>
69761         spawn: Fix misapplied patch.
69762         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69763         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69764         warnings for GNULIB_POSIXCHECK.
69766 2009-12-31  Bruno Haible  <bruno@clisp.org>
69768         times: Update after sys_times changed.
69769         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
69770         * modules/times (Files): Add it.
69771         (configure.ac): Invoke gl_FUNC_TIMES.
69773 2009-12-31  Bruno Haible  <bruno@clisp.org>
69775         Use AC_C_INLINE where necessary.
69776         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
69777         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69779         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
69780         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69781         * m4/mbiter.m4 (gl_MBITER): Likewise.
69782         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69783         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69784         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
69785         * modules/u64 (configure.ac): Likewise.
69787 2009-12-31  Bruno Haible  <bruno@clisp.org>
69789         Use AC_C_INLINE instead of module 'inline' where possible.
69790         * modules/inline (Description): Clarify purpose.
69791         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
69792         * modules/count-one-bits (Depends-on): Remove inline.
69793         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
69794         * modules/openat (Depends-on): Remove inline.
69795         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
69796         instead of depending on module 'inline'.
69797         * modules/filevercmp (Depends-on, configure.ac): Likewise.
69798         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
69799         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
69800         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
69801         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
69802         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
69803         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
69804         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
69805         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
69806         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
69807         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
69808         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
69809         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
69810         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
69811         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
69812         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
69813         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
69814         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
69815         Likewise.
69816         * modules/unictype/property-ascii-hex-digit (Depends-on,
69817         configure.ac): Likewise.
69818         * modules/unictype/property-bidi-arabic-digit (Depends-on,
69819         configure.ac): Likewise.
69820         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
69821         configure.ac): Likewise.
69822         * modules/unictype/property-bidi-block-separator (Depends-on,
69823         configure.ac): Likewise.
69824         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
69825         configure.ac): Likewise.
69826         * modules/unictype/property-bidi-common-separator (Depends-on,
69827         configure.ac): Likewise.
69828         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
69829         Likewise.
69830         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
69831         configure.ac): Likewise.
69832         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
69833         configure.ac): Likewise.
69834         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
69835         configure.ac): Likewise.
69836         * modules/unictype/property-bidi-european-digit (Depends-on,
69837         configure.ac): Likewise.
69838         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
69839         configure.ac): Likewise.
69840         * modules/unictype/property-bidi-left-to-right (Depends-on,
69841         configure.ac): Likewise.
69842         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
69843         configure.ac): Likewise.
69844         * modules/unictype/property-bidi-other-neutral (Depends-on,
69845         configure.ac): Likewise.
69846         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
69847         Likewise.
69848         * modules/unictype/property-bidi-segment-separator (Depends-on,
69849         configure.ac): Likewise.
69850         * modules/unictype/property-bidi-whitespace (Depends-on,
69851         configure.ac): Likewise.
69852         * modules/unictype/property-combining (Depends-on, configure.ac):
69853         Likewise.
69854         * modules/unictype/property-composite (Depends-on, configure.ac):
69855         Likewise.
69856         * modules/unictype/property-currency-symbol (Depends-on,
69857         configure.ac): Likewise.
69858         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
69859         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
69860         Likewise.
69861         * modules/unictype/property-default-ignorable-code-point (Depends-on,
69862         configure.ac): Likewise.
69863         * modules/unictype/property-deprecated (Depends-on, configure.ac):
69864         Likewise.
69865         * modules/unictype/property-diacritic (Depends-on, configure.ac):
69866         Likewise.
69867         * modules/unictype/property-extender (Depends-on, configure.ac):
69868         Likewise.
69869         * modules/unictype/property-format-control (Depends-on, configure.ac):
69870         Likewise.
69871         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
69872         Likewise.
69873         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
69874         Likewise.
69875         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
69876         Likewise.
69877         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
69878         Likewise.
69879         * modules/unictype/property-hyphen (Depends-on, configure.ac):
69880         Likewise.
69881         * modules/unictype/property-id-continue (Depends-on, configure.ac):
69882         Likewise.
69883         * modules/unictype/property-id-start (Depends-on, configure.ac):
69884         Likewise.
69885         * modules/unictype/property-ideographic (Depends-on, configure.ac):
69886         Likewise.
69887         * modules/unictype/property-ids-binary-operator (Depends-on,
69888         configure.ac): Likewise.
69889         * modules/unictype/property-ids-trinary-operator (Depends-on,
69890         configure.ac): Likewise.
69891         * modules/unictype/property-ignorable-control (Depends-on,
69892         configure.ac): Likewise.
69893         * modules/unictype/property-iso-control (Depends-on, configure.ac):
69894         Likewise.
69895         * modules/unictype/property-join-control (Depends-on, configure.ac):
69896         Likewise.
69897         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
69898         Likewise.
69899         * modules/unictype/property-line-separator (Depends-on, configure.ac):
69900         Likewise.
69901         * modules/unictype/property-logical-order-exception (Depends-on,
69902         configure.ac): Likewise.
69903         * modules/unictype/property-lowercase (Depends-on, configure.ac):
69904         Likewise.
69905         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
69906         * modules/unictype/property-non-break (Depends-on, configure.ac):
69907         Likewise.
69908         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
69909         Likewise.
69910         * modules/unictype/property-numeric (Depends-on, configure.ac):
69911         Likewise.
69912         * modules/unictype/property-other-alphabetic (Depends-on,
69913         configure.ac): Likewise.
69914         * modules/unictype/property-other-default-ignorable-code-point
69915         (Depends-on, configure.ac): Likewise.
69916         * modules/unictype/property-other-grapheme-extend (Depends-on,
69917         configure.ac): Likewise.
69918         * modules/unictype/property-other-id-continue (Depends-on,
69919         configure.ac): Likewise.
69920         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
69921         Likewise.
69922         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
69923         Likewise.
69924         * modules/unictype/property-other-math (Depends-on, configure.ac):
69925         Likewise.
69926         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
69927         Likewise.
69928         * modules/unictype/property-paired-punctuation (Depends-on,
69929         configure.ac): Likewise.
69930         * modules/unictype/property-paragraph-separator (Depends-on,
69931         configure.ac): Likewise.
69932         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
69933         Likewise.
69934         * modules/unictype/property-pattern-white-space (Depends-on,
69935         configure.ac): Likewise.
69936         * modules/unictype/property-private-use (Depends-on, configure.ac):
69937         Likewise.
69938         * modules/unictype/property-punctuation (Depends-on, configure.ac):
69939         Likewise.
69940         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
69941         Likewise.
69942         * modules/unictype/property-radical (Depends-on, configure.ac):
69943         Likewise.
69944         * modules/unictype/property-sentence-terminal (Depends-on,
69945         configure.ac): Likewise.
69946         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
69947         Likewise.
69948         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
69949         * modules/unictype/property-terminal-punctuation (Depends-on,
69950         configure.ac): Likewise.
69951         * modules/unictype/property-titlecase (Depends-on, configure.ac):
69952         Likewise.
69953         * modules/unictype/property-unassigned-code-value (Depends-on,
69954         configure.ac): Likewise.
69955         * modules/unictype/property-unified-ideograph (Depends-on,
69956         configure.ac): Likewise.
69957         * modules/unictype/property-uppercase (Depends-on, configure.ac):
69958         Likewise.
69959         * modules/unictype/property-variation-selector (Depends-on,
69960         configure.ac): Likewise.
69961         * modules/unictype/property-white-space (Depends-on, configure.ac):
69962         Likewise.
69963         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
69964         Likewise.
69965         * modules/unictype/property-xid-start (Depends-on, configure.ac):
69966         Likewise.
69967         * modules/unictype/property-zero-width (Depends-on, configure.ac):
69968         Likewise.
69969         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
69970         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
69971         Likewise.
69973 2009-12-31  Bruno Haible  <bruno@clisp.org>
69975         Remove unnecessary AC_C_INLINE invocation.
69976         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
69977         since 2009-08-21.
69979 2009-12-31  Jim Meyering  <meyering@redhat.com>
69981         maint.mk: don't require explicit gpg_key_ID in cfg.mk
69982         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
69983         With this change, we can all remove the gpg_key_ID = ... definition
69984         from our respective cfg.mk files.
69986         maint.mk: create announcement template in ~/, not in /tmp
69987         * top/maint.mk (emit_upload_commands): Adjust.
69988         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
69989         Remove temporary file, .ci-msg.
69991 2009-12-31  Eric Blake  <ebb9@byu.net>
69993         link-warning: always build headers with link warnings
69994         * modules/arpa_inet (Makefile.am): Always build replacement
69995         header.
69996         * modules/ctype (Makefile.am): Likewise.
69997         * modules/dirent (Makefile.am): Likewise.
69998         * modules/inttypes (Makefile.am): Likewise.
69999         * modules/langinfo (Makefile.am): Likewise.
70000         * modules/locale (Makefile.am): Likewise.
70001         * modules/spawn (Makefile.am): Likewise.
70002         * modules/sys_file (Makefile.am): Likewise.
70003         * modules/sys_ioctl (Makefile.am): Likewise.
70004         * modules/sys_select (Makefile.am): Likewise.
70005         * modules/sys_socket (Makefile.am): Likewise.
70006         * modules/sys_times (Makefile.am): Likewise.
70007         * modules/sys_utsname (Makefile.am): Likewise.
70008         * modules/sys_wait (Makefile.am): Likewise.
70009         * modules/wchar (Makefile.am): Likewise.
70010         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70011         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70012         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70013         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70014         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70015         Likewise.
70016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70017         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70018         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70019         Likewise.
70020         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70021         Likewise.
70022         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70023         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70024         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70026         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70028         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70029         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70030         (gl_WCHAR_H_DEFAULTS): Likewise.
70032 2009-12-31  Eric Blake  <ebb9@byu.net>
70034         signal, spawn: use link warnings
70035         * lib/signal.in.h (sigset_t): Make unconditional.
70036         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70037         (sigpending, sigprocmask, sigaction): Add link warnings.
70038         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70039         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70040         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70041         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70042         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70043         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70044         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70045         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70046         (posix_spawn_file_actions_destroy)
70047         (posix_spawn_file_actions_addopen)
70048         (posix_spawn_file_actions_addclose)
70049         (posix_spawn_file_actions_adddup2): Likewise.
70050         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70051         * tests/test-signal.c (main): Enhance test.
70053         spawn: improve wrapper support
70054         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70055         (gl_SPAWN_H_DEFAULTS): New defaults.
70056         * modules/spawn (Makefile.am): Substitute them.
70057         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70058         Only declare if missing or broken.
70060         sys_times, sys_utsname: use include_next
70061         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70062         header.
70063         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70064         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70065         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70066         * modules/sys_times (Depends-on): Add include_next.
70067         (Makefile.am): Substitute additional values.
70068         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70069         * lib/sys_times.in.h (includes): Include native header, if
70070         available.
70071         * lib/sys_utsname.in.h (includes): Likewise.
70072         * tests/test-sys_times.c (main): Enhance test.
70074         fdutimensat: revert prior patch
70075         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70076         utimens.h.
70077         Reported by Bruno Haible.
70079 2009-12-30  Eric Blake  <ebb9@byu.net>
70081         sys_wait: drop link-warning dependency
70082         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70083         link-warning efforts.
70084         * lib/sys_wait.in.h: Likewise.
70086         fdutimensat: remove bogus dependency
70087         * modules/fdutimensat (Depends-on): Drop inline.
70089         unistd: fix typo
70090         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70092 2009-12-30  Bruno Haible  <bruno@clisp.org>
70094         Fix compilation error with Solaris cc.
70095         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70096         * lib/unicase/u16-is-invariant.c: Likewise.
70097         * lib/unicase/u32-is-invariant.c: Likewise.
70098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70100 2009-12-30  Bruno Haible  <bruno@clisp.org>
70102         Fix test crash.
70103         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70104         locales.
70105         Reported by Simon Josefsson <simon@josefsson.org>.
70107 2009-12-30  Bruno Haible  <bruno@clisp.org>
70109         Fix compilation error on most platforms.
70110         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70111         Reported by Simon Josefsson <simon@josefsson.org>
70112         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70114 2009-12-30  Eric Blake  <ebb9@byu.net>
70116         futimens, utimensat: work around ntfs-3g bug
70117         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70118         a ctime bug is present, and expand workaround to cover ntfs-3g.
70119         * lib/utimens.c (fdutimens, lutimens): Likewise.
70120         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70121         (validate_timespec): Adjust return value.
70122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70123         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70124         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70126 2009-12-29  Eric Blake  <ebb9@byu.net>
70128         link-warning: make usage consistent
70129         * modules/ctype (Depends-on): Add link-warning.
70130         (Makefile.am): Update rules accordingly.
70131         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70132         * modules/locale (Depends-on, Makefile.am): Likewise.
70133         * modules/sys_file (Makefile.am): Likewise.
70134         * modules/getopt-posix (Makefile.am): Delete unused link warning
70135         efforts.
70136         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70137         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70138         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70139         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70141         stdio: remove unused variables
70142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70144         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70146         tests: test more substitute headers
70147         * modules/ctype-tests: New file.
70148         * modules/dirent-tests: Likewise.
70149         * modules/spawn-tests: Likewise.
70150         * modules/sys_file-tests: Likewise.
70151         * modules/sys_ioctl-tests: Likewise.
70152         * modules/sys_wait-tests: Likewise.
70153         * tests/test-ctype.c: Likewise.
70154         * tests/test-dirent.c: Likewise.
70155         * tests/test-spawn.c: Likewise.
70156         * tests/test-sys_file.c: Likewise.
70157         * tests/test-sys_ioctl.c: Likewise.
70158         * tests/test-sys_wait.c: Likewise.
70159         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70160         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70161         whether or not flock is in use.
70163         tests: remove License section from module
70164         * modules/arpa_inet-tests: Remove unneeded section.
70165         * modules/byteswap-tests: Likewise.
70166         * modules/ceilf-tests: Likewise.
70167         * modules/ceill-tests: Likewise.
70168         * modules/crypto/des-tests: Likewise.
70169         * modules/crypto/gc-arcfour-tests: Likewise.
70170         * modules/crypto/gc-arctwo-tests: Likewise.
70171         * modules/crypto/gc-des-tests: Likewise.
70172         * modules/crypto/gc-hmac-md5-tests: Likewise.
70173         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70174         * modules/crypto/gc-md2-tests: Likewise.
70175         * modules/crypto/gc-md4-tests: Likewise.
70176         * modules/crypto/gc-md5-tests: Likewise.
70177         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70178         * modules/crypto/gc-rijndael-tests: Likewise.
70179         * modules/crypto/gc-sha1-tests: Likewise.
70180         * modules/crypto/gc-tests: Likewise.
70181         * modules/crypto/md2-tests: Likewise.
70182         * modules/crypto/md4-tests: Likewise.
70183         * modules/fcntl-h-tests: Likewise.
70184         * modules/floorf-tests: Likewise.
70185         * modules/floorl-tests: Likewise.
70186         * modules/frexp-nolibm-tests: Likewise.
70187         * modules/frexp-tests: Likewise.
70188         * modules/frexpl-nolibm-tests: Likewise.
70189         * modules/frexpl-tests: Likewise.
70190         * modules/getaddrinfo-tests: Likewise.
70191         * modules/inttypes-tests: Likewise.
70192         * modules/isfinite-tests: Likewise.
70193         * modules/isinf-tests: Likewise.
70194         * modules/ldexpl-tests: Likewise.
70195         * modules/locale-tests: Likewise.
70196         * modules/math-tests: Likewise.
70197         * modules/netdb-tests: Likewise.
70198         * modules/netinet_in-tests: Likewise.
70199         * modules/printf-frexp-tests: Likewise.
70200         * modules/printf-frexpl-tests: Likewise.
70201         * modules/priv-set-tests: Likewise.
70202         * modules/random_r-tests: Likewise.
70203         * modules/round-tests: Likewise.
70204         * modules/roundf-tests: Likewise.
70205         * modules/roundl-tests: Likewise.
70206         * modules/search-tests: Likewise.
70207         * modules/select-tests: Likewise.
70208         * modules/signal-tests: Likewise.
70209         * modules/stdbool-tests: Likewise.
70210         * modules/stddef-tests: Likewise.
70211         * modules/stdint-tests: Likewise.
70212         * modules/stdio-tests: Likewise.
70213         * modules/stdlib-tests: Likewise.
70214         * modules/string-tests: Likewise.
70215         * modules/strings-tests: Likewise.
70216         * modules/sys_select-tests: Likewise.
70217         * modules/sys_socket-tests: Likewise.
70218         * modules/sys_stat-tests: Likewise.
70219         * modules/sys_time-tests: Likewise.
70220         * modules/sys_utsname-tests: Likewise.
70221         * modules/sysexits-tests: Likewise.
70222         * modules/time-tests: Likewise.
70223         * modules/trunc-tests: Likewise.
70224         * modules/truncf-tests: Likewise.
70225         * modules/truncl-tests: Likewise.
70226         * modules/tsearch-tests: Likewise.
70227         * modules/unistd-tests: Likewise.
70228         * modules/wchar-tests: Likewise.
70229         * modules/wctype-tests: Likewise.
70231         tests: fix license on several tests
70232         * tests/test-des.c: Update to GPLv3+.
70233         * tests/test-flock.c: Likewise.
70234         * tests/test-fsync.c: Likewise.
70235         * tests/test-futimens.h: Likewise.
70236         * tests/test-gc-arcfour.c: Likewise.
70237         * tests/test-gc-arctwo.c: Likewise.
70238         * tests/test-gc-des.c: Likewise.
70239         * tests/test-gc-hmac-md5.c: Likewise.
70240         * tests/test-gc-hmac-sha1.c: Likewise.
70241         * tests/test-gc-md2.c: Likewise.
70242         * tests/test-gc-md4.c: Likewise.
70243         * tests/test-gc-md5.c: Likewise.
70244         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70245         * tests/test-gc-rijndael.c: Likewise.
70246         * tests/test-gc-sha1.c: Likewise.
70247         * tests/test-gc.c: Likewise.
70248         * tests/test-getcwd.c: Likewise.
70249         * tests/test-link.c: Likewise.
70250         * tests/test-link.h: Likewise.
70251         * tests/test-lutimens.h: Likewise.
70252         * tests/test-md2.c: Likewise.
70253         * tests/test-md4.c: Likewise.
70254         * tests/test-mkdir.h: Likewise.
70255         * tests/test-rename.c: Likewise.
70256         * tests/test-rename.h: Likewise.
70257         * tests/test-safe-alloc.c: Likewise.
70258         * tests/test-utimens-common.h: Likewise.
70259         * tests/test-utimens.h: Likewise.
70261         maint: sync license texts
70262         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70263         * doc/gpl-3.0.texi: Revert copyright year update.
70264         * doc/lgpl-3.0.texi: Likewise.
70266 2009-12-29  Jim Meyering  <meyering@redhat.com>
70268         update nearly all FSF copyright year lists to include 2009
70269         The files named by the following are exempted:
70270             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70271               test -f "$dst" && { echo "$dst"; continue; }
70272               test -d "$dst" || continue
70273               echo "$dst"/$(basename "$src")
70274             done > exempt
70275             git ls-files tests/unictype >> exempt
70276         In the remaining files, convert to all-interval notation if
70277         - there is already at least one year interval like 2000-2003
70278         - the file is maintained by me
70279         - the file is in lib/uni*/, where that style already prevails
70280         Otherwise, use update-copyright's default.
70282 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70283         and Eric Blake  <ebb9@byu.net>
70285         tests: don't require debug system() to pass
70286         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70287         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70288         * tests/test-unlink.h (test_unlink_func): Likewise.
70289         * tests/test-fstatat.c (main): ...into callers.
70290         * tests/test-lstat.c (main): Likewise.
70291         * tests/test-rmdir.c (main): Likewise.
70292         * tests/test-unlink.c (main): Likewise.
70293         * tests/test-unlinkat.c (main): Likewise.
70294         * tests/test-areadlink-with-size.c (main): Don't require a
70295         debug-only system call to pass, aiding cross-testing to mingw.
70296         * tests/test-areadlink.c (main): Likewise.
70297         * tests/test-areadlinkat-with-size.c (main): Likewise.
70298         * tests/test-areadlinkat.c (main): Likewise.
70299         * tests/test-canonicalize-lgpl.c (main): Likewise.
70300         * tests/test-canonicalize.c (main): Likewise.
70301         * tests/test-chown.c (main): Likewise.
70302         * tests/test-fchownat.c (main): Likewise.
70303         * tests/test-lchown.c (main): Likewise.
70304         * tests/test-fdutimensat.c (main): Likewise.
70305         * tests/test-futimens.c (main): Likewise.
70306         * tests/test-link.c (main): Likewise.
70307         * tests/test-linkat.c (main): Likewise.
70308         * tests/test-mkdir.c (main): Likewise.
70309         * tests/test-mkdirat.c (main): Likewise.
70310         * tests/test-mkfifo.c (main): Likewise.
70311         * tests/test-mkfifoat.c (main): Likewise.
70312         * tests/test-mknod.c (main): Likewise.
70313         * tests/test-readlink.c (main): Likewise.
70314         * tests/test-remove.c (main): Likewise.
70315         * tests/test-rename.c (main): Likewise.
70316         * tests/test-renameat.c (main): Likewise.
70317         * tests/test-symlink.c (main): Likewise.
70318         * tests/test-symlinkat.c (main): Likewise.
70319         * tests/test-utimens.c (main): Likewise.
70320         * tests/test-utimensat.c (main): Likewise.
70322 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70324         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70325         on $(UNUSED_PARAMETER_H) to avoid build failure.
70327 2009-12-28  Jim Meyering  <meyering@redhat.com>
70329         update-copyright: you may specify a max. line length other than 72
70330         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70332         maint: use consistent FSF copyright line syntax
70333         * lib/posixtm.c: Add missing comma in FSF copyright line.
70334         * lib/posixtm.h: Likewise.
70335         * lib/getugroups.c: Add missing ", Inc.".
70337         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70338         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70339         FSF copyright line.  Remove trailing blanks.
70341 2009-12-28  Eric Blake  <ebb9@byu.net>
70343         test-dup2: reduce dependencies
70344         * modules/cloexec (Configure.ac): Set witness.
70345         * modules/dup2-tests (Depends-on): Drop cloexec.
70346         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70347         not present.
70348         Suggested by Bruno Haible.
70350 2009-12-26  Bruno Haible  <bruno@clisp.org>
70352         Remove an unneeded dependency.
70353         * modules/fseterr (Depends-on): Remove dup2.
70355 2009-12-26  Eric Blake  <ebb9@byu.net>
70357         tests: use macros.h in more places
70358         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70359         (ASSERT_STREAM): Provide default of stderr.
70360         * tests/test-dirent-safer.c: Include macros.h, using alternate
70361         stream for assertions.
70362         * tests/test-dup-safer.c: Likewise.
70363         * tests/test-freopen-safer.c: Likewise.
70364         * tests/test-getopt.c: Likewise.
70365         * tests/test-openat-safer.c: Likewise.
70366         * tests/test-pipe.c: Likewise.
70367         * tests/test-popen-safer.c: Likewise.
70368         * modules/dirent-safer-tests (Files): Include macros.h.
70369         * modules/unistd-safer-tests (Files): Likewise.
70370         * modules/freopen-safer-tests (Files): Likewise.
70371         * modules/getopt-posix-tests (Files): Likewise.
70372         * modules/openat-safer-tests (Files): Likewise.
70373         * modules/pipe-tests (Files): Likewise.
70375 2009-12-26  Bruno Haible  <bruno@clisp.org>
70377         javacomp-script: Portability fix.
70378         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70379         that it also works on Solaris.
70381 2009-12-26  Bruno Haible  <bruno@clisp.org>
70383         localename: Fix storage allocation of gl_locale_name_thread's result.
70384         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70385         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70386         all platforms that have 'uselocale'.
70387         (gl_locale_name_thread_unsafe): New function, extracted from
70388         gl_locale_name_thread.
70389         (gl_locale_name_thread): Call struniq on all platforms that have
70390         'uselocale'.
70391         * tests/test-localename.c (test_locale_name_thread): Check that the
70392         resulting strings are permanently allocated.
70393         * modules/localename-tests (Depends-on): Add strdup.
70395 2009-12-26  Bruno Haible  <bruno@clisp.org>
70397         * tests/test-localename.c (categories): Fill in the strings.
70399 2009-12-26  Jim Meyering  <meyering@redhat.com>
70401         isdir: complete the removal of m4/isdir.m4
70402         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70404         isdir: clean up, since at least grep still uses it
70405         * lib/isdir.c: Include "isdir.h".
70406         (S_ISDIR): Remove now-unneeded definition.
70407         * modules/isdir (Files): Add lib/isdir.h.
70408         * lib/isdir.h: New file, with declaration.
70409         * m4/isdir.m4: Remove file -- unneeded.
70411 2009-12-25  Bruno Haible  <bruno@clisp.org>
70413         selinux-h: Make generated .h files standalone.
70414         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70415         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70416         * lib/se-selinux.in.h: Likewise.
70417         * modules/selinux-h (Depends-on): Add unused-parameter.
70418         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70419         selinux/selinux.h and selinux/context.h.
70420         Suggested by Eric Blake.
70422 2009-12-25  Bruno Haible  <bruno@clisp.org>
70424         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70425         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70426         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70427         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70428         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70430 2009-12-24  Bruno Haible  <bruno@clisp.org>
70432         openat: Fix warning.
70433         * lib/openat-proc.c: Include <unistd.h>.
70435 2009-12-24  Bruno Haible  <bruno@clisp.org>
70437         New module 'unused-parameter'.
70438         * build-aux/unused-parameter.h: New file, extracted from earlier
70439         gnulib-common.m4.
70440         * modules/unused-parameter: New file.
70441         * lib/unistr.h: Include unused-parameter.h.
70442         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70443         _GL_UNUSED.
70444         * modules/unistr/base (Depends-on): Add unused-parameter.
70446 2009-12-24  Bruno Haible  <bruno@clisp.org>
70448         Add missing dependencies to 'extensions' module.
70449         * m4/extensions.m4: Add comment.
70450         * modules/accept4 (Depends-on): Add extensions.
70451         * modules/dup3 (Depends-on): Likewise.
70452         * modules/fcntl (Depends-on): Likewise.
70453         * modules/futimens (Depends-on): Likewise.
70454         * modules/mknod (Depends-on): Likewise.
70455         * modules/pipe2 (Depends-on): Likewise.
70456         * modules/stat-time (Depends-on): Likewise.
70457         * modules/strcasestr-simple (Depends-on): Likewise.
70458         * modules/strsignal (Depends-on): Likewise.
70459         * modules/utimensat (Depends-on): Likewise.
70460         * modules/localcharset (Depends-on): Likewise. Needed because of
70461         gl_FCNTL_O_FLAGS.
70462         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70463         AC_TYPE_MBSTATE_T.
70464         * modules/wcsnrtombs (Depends-on): Likewise.
70465         * modules/wcsrtombs (Depends-on): Likewise.
70467 2009-12-24  Bruno Haible  <bruno@clisp.org>
70469         binary-io: Avoid gcc warning due to SET_BINARY.
70470         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70471         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70473 2009-12-24  Bruno Haible  <bruno@clisp.org>
70475         Avoid future namespace pollution on glibc systems.
70476         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70477         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70478         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70479         glibc systems.
70481 2009-12-24  Bruno Haible  <bruno@clisp.org>
70483         Refactor common macros used in tests.
70484         * tests/macros.h: New file.
70485         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70486         and/or <stdlib.h>, if appropriate.
70487         (ASSERT, SIZEOF): Remove macros.
70488         * tests/test-areadlink-with-size.c: Likewise.
70489         * tests/test-areadlinkat.c: Likewise.
70490         * tests/test-areadlinkat-with-size.c: Likewise.
70491         * tests/test-argmatch.c: Likewise.
70492         * tests/test-argv-iter.c: Likewise.
70493         * tests/test-array-mergesort.c: Likewise.
70494         * tests/test-array_list.c: Likewise.
70495         * tests/test-array_oset.c: Likewise.
70496         * tests/test-avltree_list.c: Likewise.
70497         * tests/test-avltree_oset.c: Likewise.
70498         * tests/test-avltreehash_list.c: Likewise.
70499         * tests/test-base64.c: Likewise.
70500         * tests/test-binary-io.c: Likewise.
70501         * tests/test-bitrotate.c: Likewise.
70502         * tests/test-btowc.c: Likewise.
70503         * tests/test-byteswap.c: Likewise.
70504         * tests/test-c-ctype.c: Likewise.
70505         * tests/test-c-stack.c: Likewise.
70506         * tests/test-c-strcasecmp.c: Likewise.
70507         * tests/test-c-strcasestr.c: Likewise.
70508         * tests/test-c-strncasecmp.c: Likewise.
70509         * tests/test-c-strstr.c: Likewise.
70510         * tests/test-canonicalize-lgpl.c: Likewise.
70511         * tests/test-canonicalize.c: Likewise.
70512         * tests/test-carray_list.c: Likewise.
70513         * tests/test-ceilf1.c: Likewise.
70514         * tests/test-ceilf2.c: Likewise.
70515         * tests/test-ceill.c: Likewise.
70516         * tests/test-chown.c: Likewise.
70517         * tests/test-cloexec.c: Likewise.
70518         * tests/test-copy-acl.c: Likewise.
70519         * tests/test-copy-file.c: Likewise.
70520         * tests/test-count-one-bits.c: Likewise.
70521         * tests/test-dprintf-posix.c: Likewise.
70522         * tests/test-dup2.c: Likewise.
70523         * tests/test-dup3.c: Likewise.
70524         * tests/test-duplocale.c: Likewise.
70525         * tests/test-fbufmode.c: Likewise.
70526         * tests/test-fchdir.c: Likewise.
70527         * tests/test-fchownat.c: Likewise.
70528         * tests/test-fcntl-safer.c: Likewise.
70529         * tests/test-fcntl.c: Likewise.
70530         * tests/test-fdopendir.c: Likewise.
70531         * tests/test-fdutimensat.c: Likewise.
70532         * tests/test-fflush2.c: Likewise.
70533         * tests/test-file-has-acl.c: Likewise.
70534         * tests/test-filevercmp.c: Likewise.
70535         * tests/test-flock.c: Likewise.
70536         * tests/test-floorf1.c: Likewise.
70537         * tests/test-floorf2.c: Likewise.
70538         * tests/test-floorl.c: Likewise.
70539         * tests/test-fnmatch.c: Likewise.
70540         * tests/test-fopen.h: Likewise.
70541         * tests/test-fpending.c: Likewise.
70542         * tests/test-fprintf-posix.c: Likewise.
70543         * tests/test-fpurge.c: Likewise.
70544         * tests/test-freadable.c: Likewise.
70545         * tests/test-freadahead.c: Likewise.
70546         * tests/test-freading.c: Likewise.
70547         * tests/test-freadptr.c: Likewise.
70548         * tests/test-freadptr2.c: Likewise.
70549         * tests/test-freadseek.c: Likewise.
70550         * tests/test-freopen.c: Likewise.
70551         * tests/test-frexp.c: Likewise.
70552         * tests/test-frexpl.c: Likewise.
70553         * tests/test-fseek.c: Likewise.
70554         * tests/test-fseeko.c: Likewise.
70555         * tests/test-fstatat.c: Likewise.
70556         * tests/test-fstrcmp.c: Likewise.
70557         * tests/test-fsync.c: Likewise.
70558         * tests/test-ftell.c: Likewise.
70559         * tests/test-ftello.c: Likewise.
70560         * tests/test-func.c: Likewise.
70561         * tests/test-futimens.c: Likewise.
70562         * tests/test-fwritable.c: Likewise.
70563         * tests/test-fwriting.c: Likewise.
70564         * tests/test-getcwd.c: Likewise.
70565         * tests/test-getdate.c: Likewise.
70566         * tests/test-getdelim.c: Likewise.
70567         * tests/test-getdtablesize.c: Likewise.
70568         * tests/test-getgroups.c: Likewise.
70569         * tests/test-getline.c: Likewise.
70570         * tests/test-getndelim2.c: Likewise.
70571         * tests/test-glob.c: Likewise.
70572         * tests/test-hash.c: Likewise.
70573         * tests/test-i-ring.c: Likewise.
70574         * tests/test-iconv-utf.c: Likewise.
70575         * tests/test-iconv.c: Likewise.
70576         * tests/test-idpriv-drop.c: Likewise.
70577         * tests/test-idpriv-droptemp.c: Likewise.
70578         * tests/test-inet_ntop.c: Likewise.
70579         * tests/test-inet_pton.c: Likewise.
70580         * tests/test-isblank.c: Likewise.
70581         * tests/test-isfinite.c: Likewise.
70582         * tests/test-isinf.c: Likewise.
70583         * tests/test-isnan.c: Likewise.
70584         * tests/test-isnand.h: Likewise.
70585         * tests/test-isnanf.h: Likewise.
70586         * tests/test-isnanl.h: Likewise.
70587         * tests/test-lchown.c: Likewise.
70588         * tests/test-ldexpl.c: Likewise.
70589         * tests/test-link.c: Likewise.
70590         * tests/test-linkat.c: Likewise.
70591         * tests/test-linked_list.c: Likewise.
70592         * tests/test-linkedhash_list.c: Likewise.
70593         * tests/test-localename.c: Likewise.
70594         * tests/test-lseek.c: Likewise.
70595         * tests/test-lstat.c: Likewise.
70596         * tests/test-mbmemcasecmp.c: Likewise.
70597         * tests/test-mbmemcasecoll.c: Likewise.
70598         * tests/test-mbrtowc.c: Likewise.
70599         * tests/test-mbscasecmp.c: Likewise.
70600         * tests/test-mbscasestr1.c: Likewise.
70601         * tests/test-mbscasestr2.c: Likewise.
70602         * tests/test-mbscasestr3.c: Likewise.
70603         * tests/test-mbscasestr4.c: Likewise.
70604         * tests/test-mbschr.c: Likewise.
70605         * tests/test-mbscspn.c: Likewise.
70606         * tests/test-mbsinit.c: Likewise.
70607         * tests/test-mbsncasecmp.c: Likewise.
70608         * tests/test-mbsnrtowcs.c: Likewise.
70609         * tests/test-mbspbrk.c: Likewise.
70610         * tests/test-mbspcasecmp.c: Likewise.
70611         * tests/test-mbsrchr.c: Likewise.
70612         * tests/test-mbsrtowcs.c: Likewise.
70613         * tests/test-mbsspn.c: Likewise.
70614         * tests/test-mbsstr1.c: Likewise.
70615         * tests/test-mbsstr2.c: Likewise.
70616         * tests/test-mbsstr3.c: Likewise.
70617         * tests/test-memchr.c: Likewise.
70618         * tests/test-memchr2.c: Likewise.
70619         * tests/test-memcmp.c: Likewise.
70620         * tests/test-memmem.c: Likewise.
70621         * tests/test-memrchr.c: Likewise.
70622         * tests/test-mkdir.c: Likewise.
70623         * tests/test-mkdirat.c: Likewise.
70624         * tests/test-mkfifo.c: Likewise.
70625         * tests/test-mkfifoat.c: Likewise.
70626         * tests/test-mknod.c: Likewise.
70627         * tests/test-nanosleep.c: Likewise.
70628         * tests/test-nl_langinfo.c: Likewise.
70629         * tests/test-obstack-printf.c: Likewise.
70630         * tests/test-open.c: Likewise.
70631         * tests/test-openat.c: Likewise.
70632         * tests/test-pipe-filter-gi1.c: Likewise.
70633         * tests/test-pipe-filter-gi2-main.c: Likewise.
70634         * tests/test-pipe-filter-ii1.c: Likewise.
70635         * tests/test-pipe-filter-ii2-main.c: Likewise.
70636         * tests/test-pipe2.c: Likewise.
70637         * tests/test-popen.h: Likewise.
70638         * tests/test-posixtm.c: Likewise.
70639         * tests/test-pread.c: Likewise.
70640         * tests/test-printf-frexp.c: Likewise.
70641         * tests/test-printf-frexpl.c: Likewise.
70642         * tests/test-printf-posix.c: Likewise.
70643         * tests/test-priv-set.c: Likewise.
70644         * tests/test-quotearg.c: Likewise.
70645         * tests/test-random_r.c: Likewise.
70646         * tests/test-rawmemchr.c: Likewise.
70647         * tests/test-rbtree_list.c: Likewise.
70648         * tests/test-rbtree_oset.c: Likewise.
70649         * tests/test-rbtreehash_list.c: Likewise.
70650         * tests/test-readlink.c: Likewise.
70651         * tests/test-remove.c: Likewise.
70652         * tests/test-rename.c: Likewise.
70653         * tests/test-renameat.c: Likewise.
70654         * tests/test-rmdir.c: Likewise.
70655         * tests/test-round1.c: Likewise.
70656         * tests/test-roundf1.c: Likewise.
70657         * tests/test-roundl.c: Likewise.
70658         * tests/test-safe-alloc.c: Likewise.
70659         * tests/test-sameacls.c: Likewise.
70660         * tests/test-set-mode-acl.c: Likewise.
70661         * tests/test-setenv.c: Likewise.
70662         * tests/test-sigaction.c: Likewise.
70663         * tests/test-signbit.c: Likewise.
70664         * tests/test-sleep.c: Likewise.
70665         * tests/test-snprintf-posix.c: Likewise.
70666         * tests/test-snprintf.c: Likewise.
70667         * tests/test-sprintf-posix.c: Likewise.
70668         * tests/test-stat-time.c: Likewise.
70669         * tests/test-stat.c: Likewise.
70670         * tests/test-strcasestr.c: Likewise.
70671         * tests/test-strchrnul.c: Likewise.
70672         * tests/test-strerror.c: Likewise.
70673         * tests/test-striconv.c: Likewise.
70674         * tests/test-striconveh.c: Likewise.
70675         * tests/test-striconveha.c: Likewise.
70676         * tests/test-strsignal.c: Likewise.
70677         * tests/test-strstr.c: Likewise.
70678         * tests/test-strtod.c: Likewise.
70679         * tests/test-strverscmp.c: Likewise.
70680         * tests/test-symlink.c: Likewise.
70681         * tests/test-symlinkat.c: Likewise.
70682         * tests/test-trunc1.c: Likewise.
70683         * tests/test-trunc2.c: Likewise.
70684         * tests/test-truncf1.c: Likewise.
70685         * tests/test-truncf2.c: Likewise.
70686         * tests/test-truncl.c: Likewise.
70687         * tests/test-uname.c: Likewise.
70688         * tests/test-unlink.c: Likewise.
70689         * tests/test-unlinkat.c: Likewise.
70690         * tests/test-unsetenv.c: Likewise.
70691         * tests/test-usleep.c: Likewise.
70692         * tests/test-utimens.c: Likewise.
70693         * tests/test-utimensat.c: Likewise.
70694         * tests/test-vasnprintf-posix.c: Likewise.
70695         * tests/test-vasnprintf-posix2.c: Likewise.
70696         * tests/test-vasnprintf.c: Likewise.
70697         * tests/test-vasprintf-posix.c: Likewise.
70698         * tests/test-vasprintf.c: Likewise.
70699         * tests/test-vdprintf-posix.c: Likewise.
70700         * tests/test-vfprintf-posix.c: Likewise.
70701         * tests/test-vprintf-posix.c: Likewise.
70702         * tests/test-vsnprintf-posix.c: Likewise.
70703         * tests/test-vsnprintf.c: Likewise.
70704         * tests/test-vsprintf-posix.c: Likewise.
70705         * tests/test-wcrtomb.c: Likewise.
70706         * tests/test-wcsnrtombs.c: Likewise.
70707         * tests/test-wcsrtombs.c: Likewise.
70708         * tests/test-wctype.c: Likewise.
70709         * tests/test-wcwidth.c: Likewise.
70710         * tests/test-xfprintf-posix.c: Likewise.
70711         * tests/test-xmemdup0.c: Likewise.
70712         * tests/test-xprintf-posix.c: Likewise.
70713         * tests/test-xvasprintf.c: Likewise.
70714         * tests/unicase/test-locale-language.c: Likewise.
70715         * tests/unicase/test-mapping-part1.h: Likewise.
70716         * tests/unicase/test-predicate-part1.h: Likewise.
70717         * tests/unicase/test-u8-casecmp.c: Likewise.
70718         * tests/unicase/test-u8-casecoll.c: Likewise.
70719         * tests/unicase/test-u8-casefold.c: Likewise.
70720         * tests/unicase/test-u8-is-cased.c: Likewise.
70721         * tests/unicase/test-u8-is-casefolded.c: Likewise.
70722         * tests/unicase/test-u8-is-lowercase.c: Likewise.
70723         * tests/unicase/test-u8-is-titlecase.c: Likewise.
70724         * tests/unicase/test-u8-is-uppercase.c: Likewise.
70725         * tests/unicase/test-u8-tolower.c: Likewise.
70726         * tests/unicase/test-u8-totitle.c: Likewise.
70727         * tests/unicase/test-u8-toupper.c: Likewise.
70728         * tests/unicase/test-u16-casecmp.c: Likewise.
70729         * tests/unicase/test-u16-casecoll.c: Likewise.
70730         * tests/unicase/test-u16-casefold.c: Likewise.
70731         * tests/unicase/test-u16-is-cased.c: Likewise.
70732         * tests/unicase/test-u16-is-casefolded.c: Likewise.
70733         * tests/unicase/test-u16-is-lowercase.c: Likewise.
70734         * tests/unicase/test-u16-is-titlecase.c: Likewise.
70735         * tests/unicase/test-u16-is-uppercase.c: Likewise.
70736         * tests/unicase/test-u16-tolower.c: Likewise.
70737         * tests/unicase/test-u16-totitle.c: Likewise.
70738         * tests/unicase/test-u16-toupper.c: Likewise.
70739         * tests/unicase/test-u32-casecmp.c: Likewise.
70740         * tests/unicase/test-u32-casecoll.c: Likewise.
70741         * tests/unicase/test-u32-casefold.c: Likewise.
70742         * tests/unicase/test-u32-is-cased.c: Likewise.
70743         * tests/unicase/test-u32-is-casefolded.c: Likewise.
70744         * tests/unicase/test-u32-is-lowercase.c: Likewise.
70745         * tests/unicase/test-u32-is-titlecase.c: Likewise.
70746         * tests/unicase/test-u32-is-uppercase.c: Likewise.
70747         * tests/unicase/test-u32-tolower.c: Likewise.
70748         * tests/unicase/test-u32-totitle.c: Likewise.
70749         * tests/unicase/test-u32-toupper.c: Likewise.
70750         * tests/unicase/test-ulc-casecmp.c: Likewise.
70751         * tests/unicase/test-ulc-casecoll.c: Likewise.
70752         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70753         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
70754         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70755         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70756         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
70757         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
70758         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70759         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70760         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70761         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
70762         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70763         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70764         * tests/unictype/test-bidi_byname.c: Likewise.
70765         * tests/unictype/test-bidi_name.c: Likewise.
70766         * tests/unictype/test-bidi_of.c: Likewise.
70767         * tests/unictype/test-bidi_test.c: Likewise.
70768         * tests/unictype/test-block_list.c: Likewise.
70769         * tests/unictype/test-block_of.c: Likewise.
70770         * tests/unictype/test-block_test.c: Likewise.
70771         * tests/unictype/test-categ_and.c: Likewise.
70772         * tests/unictype/test-categ_and_not.c: Likewise.
70773         * tests/unictype/test-categ_byname.c: Likewise.
70774         * tests/unictype/test-categ_name.c: Likewise.
70775         * tests/unictype/test-categ_none.c: Likewise.
70776         * tests/unictype/test-categ_of.c: Likewise.
70777         * tests/unictype/test-categ_or.c: Likewise.
70778         * tests/unictype/test-categ_test_withtable.c: Likewise.
70779         * tests/unictype/test-combining.c: Likewise.
70780         * tests/unictype/test-decdigit.c: Likewise.
70781         * tests/unictype/test-digit.c: Likewise.
70782         * tests/unictype/test-mirror.c: Likewise.
70783         * tests/unictype/test-numeric.c: Likewise.
70784         * tests/unictype/test-pr_byname.c: Likewise.
70785         * tests/unictype/test-pr_test.c: Likewise.
70786         * tests/unictype/test-predicate-part1.h: Likewise.
70787         * tests/unictype/test-scripts.c: Likewise.
70788         * tests/unictype/test-sy_c_ident.c: Likewise.
70789         * tests/unictype/test-sy_java_ident.c: Likewise.
70790         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
70791         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
70792         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
70793         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
70794         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
70795         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
70796         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
70797         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
70798         * tests/uninorm/test-canonical-decomposition.c: Likewise.
70799         * tests/uninorm/test-compat-decomposition.c: Likewise.
70800         * tests/uninorm/test-composition.c: Likewise.
70801         * tests/uninorm/test-decomposing-form.c: Likewise.
70802         * tests/uninorm/test-decomposition.c: Likewise.
70803         * tests/uninorm/test-u8-nfc.c: Likewise.
70804         * tests/uninorm/test-u8-nfd.c: Likewise.
70805         * tests/uninorm/test-u8-nfkc.c: Likewise.
70806         * tests/uninorm/test-u8-nfkd.c: Likewise.
70807         * tests/uninorm/test-u8-normcmp.c: Likewise.
70808         * tests/uninorm/test-u8-normcoll.c: Likewise.
70809         * tests/uninorm/test-u16-nfc.c: Likewise.
70810         * tests/uninorm/test-u16-nfd.c: Likewise.
70811         * tests/uninorm/test-u16-nfkc.c: Likewise.
70812         * tests/uninorm/test-u16-nfkd.c: Likewise.
70813         * tests/uninorm/test-u16-normcmp.c: Likewise.
70814         * tests/uninorm/test-u16-normcoll.c: Likewise.
70815         * tests/uninorm/test-u32-nfc.c: Likewise.
70816         * tests/uninorm/test-u32-nfd.c: Likewise.
70817         * tests/uninorm/test-u32-nfkc.c: Likewise.
70818         * tests/uninorm/test-u32-nfkd.c: Likewise.
70819         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70820         * tests/uninorm/test-u32-normcmp.c: Likewise.
70821         * tests/uninorm/test-u32-normcoll.c: Likewise.
70822         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
70823         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
70824         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
70825         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
70826         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
70827         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
70828         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
70829         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
70830         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
70831         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
70832         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
70833         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
70834         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
70835         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
70836         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
70837         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
70838         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
70839         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
70840         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
70841         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
70842         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
70843         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
70844         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
70845         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
70846         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
70847         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
70848         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
70849         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
70850         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
70851         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
70852         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
70853         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
70854         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
70855         * tests/uniwidth/test-u8-strwidth.c: Likewise.
70856         * tests/uniwidth/test-u8-width.c: Likewise.
70857         * tests/uniwidth/test-u16-strwidth.c: Likewise.
70858         * tests/uniwidth/test-u16-width.c: Likewise.
70859         * tests/uniwidth/test-u32-strwidth.c: Likewise.
70860         * tests/uniwidth/test-u32-width.c: Likewise.
70861         * tests/uniwidth/test-uc_width.c: Likewise.
70862         * tests/uniwidth/test-uc_width2.c: Likewise.
70863         * modules/acl-tests (Files): Add tests/macros.h.
70864         * modules/areadlink-tests (Files): Likewise.
70865         * modules/areadlink-with-size-tests (Files): Likewise.
70866         * modules/areadlinkat-tests (Files): Likewise.
70867         * modules/areadlinkat-with-size-tests (Files): Likewise.
70868         * modules/argmatch-tests (Files): Likewise.
70869         * modules/argv-iter-tests (Files): Likewise.
70870         * modules/array-list-tests (Files): Likewise.
70871         * modules/array-mergesort-tests (Files): Likewise.
70872         * modules/array-oset-tests (Files): Likewise.
70873         * modules/avltree-list-tests (Files): Likewise.
70874         * modules/avltree-oset-tests (Files): Likewise.
70875         * modules/avltreehash-list-tests (Files): Likewise.
70876         * modules/base64-tests (Files): Likewise.
70877         * modules/binary-io-tests (Files): Likewise.
70878         * modules/bitrotate-tests (Files): Likewise.
70879         * modules/btowc-tests (Files): Likewise.
70880         * modules/byteswap-tests (Files): Likewise.
70881         * modules/c-ctype-tests (Files): Likewise.
70882         * modules/c-stack-tests (Files): Likewise.
70883         * modules/c-strcase-tests (Files): Likewise.
70884         * modules/c-strcasestr-tests (Files): Likewise.
70885         * modules/c-strstr-tests (Files): Likewise.
70886         * modules/canonicalize-lgpl-tests (Files): Likewise.
70887         * modules/canonicalize-tests (Files): Likewise.
70888         * modules/carray-list-tests (Files): Likewise.
70889         * modules/ceilf-tests (Files): Likewise.
70890         * modules/ceill-tests (Files): Likewise.
70891         * modules/chown-tests (Files): Likewise.
70892         * modules/cloexec-tests (Files): Likewise.
70893         * modules/copy-file-tests (Files): Likewise.
70894         * modules/count-one-bits-tests (Files): Likewise.
70895         * modules/dprintf-posix-tests (Files): Likewise.
70896         * modules/dup2-tests (Files): Likewise.
70897         * modules/dup3-tests (Files): Likewise.
70898         * modules/duplocale-tests (Files): Likewise.
70899         * modules/fbufmode-tests (Files): Likewise.
70900         * modules/fchdir-tests (Files): Likewise.
70901         * modules/fcntl-safer-tests (Files): Likewise.
70902         * modules/fcntl-tests (Files): Likewise.
70903         * modules/fdopendir-tests (Files): Likewise.
70904         * modules/fdutimensat-tests (Files): Likewise.
70905         * modules/fflush-tests (Files): Likewise.
70906         * modules/filevercmp-tests (Files): Likewise.
70907         * modules/flock-tests (Files): Likewise.
70908         * modules/floorf-tests (Files): Likewise.
70909         * modules/floorl-tests (Files): Likewise.
70910         * modules/fnmatch-tests (Files): Likewise.
70911         * modules/fopen-safer-tests (Files): Likewise.
70912         * modules/fopen-tests (Files): Likewise.
70913         * modules/fpending-tests (Files): Likewise.
70914         * modules/fprintf-posix-tests (Files): Likewise.
70915         * modules/fpurge-tests (Files): Likewise.
70916         * modules/freadable-tests (Files): Likewise.
70917         * modules/freadahead-tests (Files): Likewise.
70918         * modules/freading-tests (Files): Likewise.
70919         * modules/freadptr-tests (Files): Likewise.
70920         * modules/freadseek-tests (Files): Likewise.
70921         * modules/freopen-tests (Files): Likewise.
70922         * modules/frexp-nolibm-tests (Files): Likewise.
70923         * modules/frexp-tests (Files): Likewise.
70924         * modules/frexpl-nolibm-tests (Files): Likewise.
70925         * modules/frexpl-tests (Files): Likewise.
70926         * modules/fseek-tests (Files): Likewise.
70927         * modules/fseeko-tests (Files): Likewise.
70928         * modules/fstrcmp-tests (Files): Likewise.
70929         * modules/fsync-tests (Files): Likewise.
70930         * modules/ftell-tests (Files): Likewise.
70931         * modules/ftello-tests (Files): Likewise.
70932         * modules/func-tests (Files): Likewise.
70933         * modules/futimens-tests (Files): Likewise.
70934         * modules/fwritable-tests (Files): Likewise.
70935         * modules/fwriting-tests (Files): Likewise.
70936         * modules/getcwd-tests (Files): Likewise.
70937         * modules/getdate-tests (Files): Likewise.
70938         * modules/getdelim-tests (Files): Likewise.
70939         * modules/getdtablesize-tests (Files): Likewise.
70940         * modules/getgroups-tests (Files): Likewise.
70941         * modules/getline-tests (Files): Likewise.
70942         * modules/getndelim2-tests (Files): Likewise.
70943         * modules/glob-tests (Files): Likewise.
70944         * modules/hash-tests (Files): Likewise.
70945         * modules/i-ring-tests (Files): Likewise.
70946         * modules/iconv-tests (Files): Likewise.
70947         * modules/iconv_open-utf-tests (Files): Likewise.
70948         * modules/idpriv-drop-tests (Files): Likewise.
70949         * modules/idpriv-droptemp-tests (Files): Likewise.
70950         * modules/inet_ntop-tests (Files): Likewise.
70951         * modules/inet_pton-tests (Files): Likewise.
70952         * modules/isblank-tests (Files): Likewise.
70953         * modules/isfinite-tests (Files): Likewise.
70954         * modules/isinf-tests (Files): Likewise.
70955         * modules/isnan-tests (Files): Likewise.
70956         * modules/isnand-nolibm-tests (Files): Likewise.
70957         * modules/isnand-tests (Files): Likewise.
70958         * modules/isnanf-nolibm-tests (Files): Likewise.
70959         * modules/isnanf-tests (Files): Likewise.
70960         * modules/isnanl-nolibm-tests (Files): Likewise.
70961         * modules/isnanl-tests (Files): Likewise.
70962         * modules/lchown-tests (Files): Likewise.
70963         * modules/ldexpl-tests (Files): Likewise.
70964         * modules/link-tests (Files): Likewise.
70965         * modules/linkat-tests (Files): Likewise.
70966         * modules/linked-list-tests (Files): Likewise.
70967         * modules/linkedhash-list-tests (Files): Likewise.
70968         * modules/localename-tests (Files): Likewise.
70969         * modules/lseek-tests (Files): Likewise.
70970         * modules/lstat-tests (Files): Likewise.
70971         * modules/mbmemcasecmp-tests (Files): Likewise.
70972         * modules/mbmemcasecoll-tests (Files): Likewise.
70973         * modules/mbrtowc-tests (Files): Likewise.
70974         * modules/mbscasecmp-tests (Files): Likewise.
70975         * modules/mbscasestr-tests (Files): Likewise.
70976         * modules/mbschr-tests (Files): Likewise.
70977         * modules/mbscspn-tests (Files): Likewise.
70978         * modules/mbsinit-tests (Files): Likewise.
70979         * modules/mbsncasecmp-tests (Files): Likewise.
70980         * modules/mbsnrtowcs-tests (Files): Likewise.
70981         * modules/mbspbrk-tests (Files): Likewise.
70982         * modules/mbspcasecmp-tests (Files): Likewise.
70983         * modules/mbsrchr-tests (Files): Likewise.
70984         * modules/mbsrtowcs-tests (Files): Likewise.
70985         * modules/mbsspn-tests (Files): Likewise.
70986         * modules/mbsstr-tests (Files): Likewise.
70987         * modules/memchr-tests (Files): Likewise.
70988         * modules/memchr2-tests (Files): Likewise.
70989         * modules/memcmp-tests (Files): Likewise.
70990         * modules/memmem-tests (Files): Likewise.
70991         * modules/memrchr-tests (Files): Likewise.
70992         * modules/mkdir-tests (Files): Likewise.
70993         * modules/mkfifo-tests (Files): Likewise.
70994         * modules/mkfifoat-tests (Files): Likewise.
70995         * modules/mknod-tests (Files): Likewise.
70996         * modules/nanosleep-tests (Files): Likewise.
70997         * modules/nl_langinfo-tests (Files): Likewise.
70998         * modules/obstack-printf-tests (Files): Likewise.
70999         * modules/open-tests (Files): Likewise.
71000         * modules/openat-tests (Files): Likewise.
71001         * modules/pipe-filter-gi-tests (Files): Likewise.
71002         * modules/pipe-filter-ii-tests (Files): Likewise.
71003         * modules/pipe2-tests (Files): Likewise.
71004         * modules/popen-safer-tests (Files): Likewise.
71005         * modules/popen-tests (Files): Likewise.
71006         * modules/posixtm-tests (Files): Likewise.
71007         * modules/pread-tests (Files): Likewise.
71008         * modules/printf-frexp-tests (Files): Likewise.
71009         * modules/printf-frexpl-tests (Files): Likewise.
71010         * modules/printf-posix-tests (Files): Likewise.
71011         * modules/priv-set-tests (Files): Likewise.
71012         * modules/quotearg-tests (Files): Likewise.
71013         * modules/random_r-tests (Files): Likewise.
71014         * modules/rawmemchr-tests (Files): Likewise.
71015         * modules/rbtree-list-tests (Files): Likewise.
71016         * modules/rbtree-oset-tests (Files): Likewise.
71017         * modules/rbtreehash-list-tests (Files): Likewise.
71018         * modules/readlink-tests (Files): Likewise.
71019         * modules/remove-tests (Files): Likewise.
71020         * modules/rename-tests (Files): Likewise.
71021         * modules/renameat-tests (Files): Likewise.
71022         * modules/rmdir-tests (Files): Likewise.
71023         * modules/round-tests (Files): Likewise.
71024         * modules/roundf-tests (Files): Likewise.
71025         * modules/roundl-tests (Files): Likewise.
71026         * modules/safe-alloc-tests (Files): Likewise.
71027         * modules/setenv-tests (Files): Likewise.
71028         * modules/sigaction-tests (Files): Likewise.
71029         * modules/signbit-tests (Files): Likewise.
71030         * modules/sleep-tests (Files): Likewise.
71031         * modules/snprintf-posix-tests (Files): Likewise.
71032         * modules/snprintf-tests (Files): Likewise.
71033         * modules/sprintf-posix-tests (Files): Likewise.
71034         * modules/stat-tests (Files): Likewise.
71035         * modules/stat-time-tests (Files): Likewise.
71036         * modules/strcasestr-tests (Files): Likewise.
71037         * modules/strchrnul-tests (Files): Likewise.
71038         * modules/strerror-tests (Files): Likewise.
71039         * modules/striconv-tests (Files): Likewise.
71040         * modules/striconveh-tests (Files): Likewise.
71041         * modules/striconveha-tests (Files): Likewise.
71042         * modules/strsignal-tests (Files): Likewise.
71043         * modules/strstr-tests (Files): Likewise.
71044         * modules/strtod-tests (Files): Likewise.
71045         * modules/strverscmp-tests (Files): Likewise.
71046         * modules/symlink-tests (Files): Likewise.
71047         * modules/symlinkat-tests (Files): Likewise.
71048         * modules/trunc-tests (Files): Likewise.
71049         * modules/truncf-tests (Files): Likewise.
71050         * modules/truncl-tests (Files): Likewise.
71051         * modules/uname-tests (Files): Likewise.
71052         * modules/unicase/cased-tests (Files): Likewise.
71053         * modules/unicase/ignorable-tests (Files): Likewise.
71054         * modules/unicase/locale-language-tests (Files): Likewise.
71055         * modules/unicase/tolower-tests (Files): Likewise.
71056         * modules/unicase/totitle-tests (Files): Likewise.
71057         * modules/unicase/toupper-tests (Files): Likewise.
71058         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71059         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71060         * modules/unicase/u8-casefold-tests (Files): Likewise.
71061         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71062         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71063         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71064         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71065         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71066         * modules/unicase/u8-tolower-tests (Files): Likewise.
71067         * modules/unicase/u8-totitle-tests (Files): Likewise.
71068         * modules/unicase/u8-toupper-tests (Files): Likewise.
71069         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71070         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71071         * modules/unicase/u16-casefold-tests (Files): Likewise.
71072         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71073         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71074         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71075         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71076         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71077         * modules/unicase/u16-tolower-tests (Files): Likewise.
71078         * modules/unicase/u16-totitle-tests (Files): Likewise.
71079         * modules/unicase/u16-toupper-tests (Files): Likewise.
71080         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71081         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71082         * modules/unicase/u32-casefold-tests (Files): Likewise.
71083         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71084         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71085         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71086         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71087         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71088         * modules/unicase/u32-tolower-tests (Files): Likewise.
71089         * modules/unicase/u32-totitle-tests (Files): Likewise.
71090         * modules/unicase/u32-toupper-tests (Files): Likewise.
71091         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71092         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71093         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71094         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71095         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71096         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71097         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71098         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71099         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71100         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71101         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71102         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71103         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71104         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71105         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71106         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71107         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71108         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71109         * modules/unictype/block-list-tests (Files): Likewise.
71110         * modules/unictype/block-of-tests (Files): Likewise.
71111         * modules/unictype/block-test-tests (Files): Likewise.
71112         * modules/unictype/category-C-tests (Files): Likewise.
71113         * modules/unictype/category-Cc-tests (Files): Likewise.
71114         * modules/unictype/category-Cf-tests (Files): Likewise.
71115         * modules/unictype/category-Cn-tests (Files): Likewise.
71116         * modules/unictype/category-Co-tests (Files): Likewise.
71117         * modules/unictype/category-Cs-tests (Files): Likewise.
71118         * modules/unictype/category-L-tests (Files): Likewise.
71119         * modules/unictype/category-Ll-tests (Files): Likewise.
71120         * modules/unictype/category-Lm-tests (Files): Likewise.
71121         * modules/unictype/category-Lo-tests (Files): Likewise.
71122         * modules/unictype/category-Lt-tests (Files): Likewise.
71123         * modules/unictype/category-Lu-tests (Files): Likewise.
71124         * modules/unictype/category-M-tests (Files): Likewise.
71125         * modules/unictype/category-Mc-tests (Files): Likewise.
71126         * modules/unictype/category-Me-tests (Files): Likewise.
71127         * modules/unictype/category-Mn-tests (Files): Likewise.
71128         * modules/unictype/category-N-tests (Files): Likewise.
71129         * modules/unictype/category-Nd-tests (Files): Likewise.
71130         * modules/unictype/category-Nl-tests (Files): Likewise.
71131         * modules/unictype/category-No-tests (Files): Likewise.
71132         * modules/unictype/category-P-tests (Files): Likewise.
71133         * modules/unictype/category-Pc-tests (Files): Likewise.
71134         * modules/unictype/category-Pd-tests (Files): Likewise.
71135         * modules/unictype/category-Pe-tests (Files): Likewise.
71136         * modules/unictype/category-Pf-tests (Files): Likewise.
71137         * modules/unictype/category-Pi-tests (Files): Likewise.
71138         * modules/unictype/category-Po-tests (Files): Likewise.
71139         * modules/unictype/category-Ps-tests (Files): Likewise.
71140         * modules/unictype/category-S-tests (Files): Likewise.
71141         * modules/unictype/category-Sc-tests (Files): Likewise.
71142         * modules/unictype/category-Sk-tests (Files): Likewise.
71143         * modules/unictype/category-Sm-tests (Files): Likewise.
71144         * modules/unictype/category-So-tests (Files): Likewise.
71145         * modules/unictype/category-Z-tests (Files): Likewise.
71146         * modules/unictype/category-Zl-tests (Files): Likewise.
71147         * modules/unictype/category-Zp-tests (Files): Likewise.
71148         * modules/unictype/category-Zs-tests (Files): Likewise.
71149         * modules/unictype/category-and-not-tests (Files): Likewise.
71150         * modules/unictype/category-and-tests (Files): Likewise.
71151         * modules/unictype/category-byname-tests (Files): Likewise.
71152         * modules/unictype/category-name-tests (Files): Likewise.
71153         * modules/unictype/category-none-tests (Files): Likewise.
71154         * modules/unictype/category-of-tests (Files): Likewise.
71155         * modules/unictype/category-or-tests (Files): Likewise.
71156         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71157         * modules/unictype/combining-class-tests (Files): Likewise.
71158         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71159         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71160         * modules/unictype/ctype-blank-tests (Files): Likewise.
71161         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71162         * modules/unictype/ctype-digit-tests (Files): Likewise.
71163         * modules/unictype/ctype-graph-tests (Files): Likewise.
71164         * modules/unictype/ctype-lower-tests (Files): Likewise.
71165         * modules/unictype/ctype-print-tests (Files): Likewise.
71166         * modules/unictype/ctype-punct-tests (Files): Likewise.
71167         * modules/unictype/ctype-space-tests (Files): Likewise.
71168         * modules/unictype/ctype-upper-tests (Files): Likewise.
71169         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71170         * modules/unictype/decimal-digit-tests (Files): Likewise.
71171         * modules/unictype/digit-tests (Files): Likewise.
71172         * modules/unictype/mirror-tests (Files): Likewise.
71173         * modules/unictype/numeric-tests (Files): Likewise.
71174         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71175         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71176         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71177         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71178         Likewise.
71179         * modules/unictype/property-bidi-block-separator-tests (Files):
71180         Likewise.
71181         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71182         Likewise.
71183         * modules/unictype/property-bidi-common-separator-tests (Files):
71184         Likewise.
71185         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71186         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71187         Likewise.
71188         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71189         Likewise.
71190         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71191         Likewise.
71192         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71193         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71194         Likewise.
71195         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71196         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71197         Likewise.
71198         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71199         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71200         * modules/unictype/property-bidi-segment-separator-tests (Files):
71201         Likewise.
71202         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71203         * modules/unictype/property-byname-tests (Files): Likewise.
71204         * modules/unictype/property-combining-tests (Files): Likewise.
71205         * modules/unictype/property-composite-tests (Files): Likewise.
71206         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71207         * modules/unictype/property-dash-tests (Files): Likewise.
71208         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71209         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71210         Likewise.
71211         * modules/unictype/property-deprecated-tests (Files): Likewise.
71212         * modules/unictype/property-diacritic-tests (Files): Likewise.
71213         * modules/unictype/property-extender-tests (Files): Likewise.
71214         * modules/unictype/property-format-control-tests (Files): Likewise.
71215         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71216         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71217         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71218         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71219         * modules/unictype/property-hyphen-tests (Files): Likewise.
71220         * modules/unictype/property-id-continue-tests (Files): Likewise.
71221         * modules/unictype/property-id-start-tests (Files): Likewise.
71222         * modules/unictype/property-ideographic-tests (Files): Likewise.
71223         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71224         * modules/unictype/property-ids-trinary-operator-tests (Files):
71225         Likewise.
71226         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71227         * modules/unictype/property-iso-control-tests (Files): Likewise.
71228         * modules/unictype/property-join-control-tests (Files): Likewise.
71229         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71230         * modules/unictype/property-line-separator-tests (Files): Likewise.
71231         * modules/unictype/property-logical-order-exception-tests (Files):
71232         Likewise.
71233         * modules/unictype/property-lowercase-tests (Files): Likewise.
71234         * modules/unictype/property-math-tests (Files): Likewise.
71235         * modules/unictype/property-non-break-tests (Files): Likewise.
71236         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71237         * modules/unictype/property-numeric-tests (Files): Likewise.
71238         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71239         * modules/unictype/property-other-default-ignorable-code-point-tests
71240         (Files): Likewise.
71241         * modules/unictype/property-other-grapheme-extend-tests (Files):
71242         Likewise.
71243         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71244         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71245         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71246         * modules/unictype/property-other-math-tests (Files): Likewise.
71247         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71248         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71249         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71250         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71251         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71252         * modules/unictype/property-private-use-tests (Files): Likewise.
71253         * modules/unictype/property-punctuation-tests (Files): Likewise.
71254         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71255         * modules/unictype/property-radical-tests (Files): Likewise.
71256         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71257         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71258         * modules/unictype/property-space-tests (Files): Likewise.
71259         * modules/unictype/property-terminal-punctuation-tests (Files):
71260         Likewise.
71261         * modules/unictype/property-test-tests (Files): Likewise.
71262         * modules/unictype/property-titlecase-tests (Files): Likewise.
71263         * modules/unictype/property-unassigned-code-value-tests (Files):
71264         Likewise.
71265         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71266         * modules/unictype/property-uppercase-tests (Files): Likewise.
71267         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71268         * modules/unictype/property-white-space-tests (Files): Likewise.
71269         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71270         * modules/unictype/property-xid-start-tests (Files): Likewise.
71271         * modules/unictype/property-zero-width-tests (Files): Likewise.
71272         * modules/unictype/scripts-tests (Files): Likewise.
71273         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71274         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71275         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71276         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71277         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71278         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71279         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71280         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71281         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71282         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71283         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71284         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71285         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71286         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71287         * modules/uninorm/composition-tests (Files): Likewise.
71288         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71289         * modules/uninorm/decomposition-tests (Files): Likewise.
71290         * modules/uninorm/filter-tests (Files): Likewise.
71291         * modules/uninorm/nfc-tests (Files): Likewise.
71292         * modules/uninorm/nfd-tests (Files): Likewise.
71293         * modules/uninorm/nfkc-tests (Files): Likewise.
71294         * modules/uninorm/nfkd-tests (Files): Likewise.
71295         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71296         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71297         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71298         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71299         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71300         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71301         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71302         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71303         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71304         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71305         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71306         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71307         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71308         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71309         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71310         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71311         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71312         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71313         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71314         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71315         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71316         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71317         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71318         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71319         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71320         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71321         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71322         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71323         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71324         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71325         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71326         * modules/uniwidth/u8-width-tests (Files): Likewise.
71327         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71328         * modules/uniwidth/u16-width-tests (Files): Likewise.
71329         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71330         * modules/uniwidth/u32-width-tests (Files): Likewise.
71331         * modules/uniwidth/width-tests (Files): Likewise.
71332         * modules/unlink-tests (Files): Likewise.
71333         * modules/unsetenv-tests (Files): Likewise.
71334         * modules/usleep-tests (Files): Likewise.
71335         * modules/utimens-tests (Files): Likewise.
71336         * modules/utimensat-tests (Files): Likewise.
71337         * modules/vasnprintf-posix-tests (Files): Likewise.
71338         * modules/vasnprintf-tests (Files): Likewise.
71339         * modules/vasprintf-posix-tests (Files): Likewise.
71340         * modules/vasprintf-tests (Files): Likewise.
71341         * modules/vdprintf-posix-tests (Files): Likewise.
71342         * modules/vfprintf-posix-tests (Files): Likewise.
71343         * modules/vprintf-posix-tests (Files): Likewise.
71344         * modules/vsnprintf-posix-tests (Files): Likewise.
71345         * modules/vsnprintf-tests (Files): Likewise.
71346         * modules/vsprintf-posix-tests (Files): Likewise.
71347         * modules/wcrtomb-tests (Files): Likewise.
71348         * modules/wcsnrtombs-tests (Files): Likewise.
71349         * modules/wcsrtombs-tests (Files): Likewise.
71350         * modules/wctype-tests (Files): Likewise.
71351         * modules/wcwidth-tests (Files): Likewise.
71352         * modules/xmemdup0-tests (Files): Likewise.
71353         * modules/xprintf-posix-tests (Files): Likewise.
71354         * modules/xvasprintf-tests (Files): Likewise.
71356 2009-12-24  Eric Blake  <ebb9@byu.net>
71358         test-nanosleep: fix typo
71359         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71360         patch.
71361         Reported by Bruno Haible.
71363 2009-12-24  Bruno Haible  <bruno@clisp.org>
71365         Reduce namespace pollution on glibc systems.
71366         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71367         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71368         systems.
71369         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71370         <getopt.h> on glibc systems.
71371         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71372         systems.
71373         * lib/fcntl.c: Include <unistd.h> here instead.
71375 2009-12-24  Bruno Haible  <bruno@clisp.org>
71377         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71379 2009-12-24  Eric Blake  <ebb9@byu.net>
71381         tests: add signature checks
71382         * tests/signature.h (SIGNATURE_CHECK): New file.
71383         * modules/atexit-tests (Files): Use it.
71384         * modules/btowc-tests (Files): Likewise.
71385         * modules/canonicalize-lgpl-tests (Files): Likewise.
71386         * modules/ceilf-tests (Files): Likewise.
71387         * modules/ceill-tests (Files): Likewise.
71388         * modules/chown-tests (Files): Likewise.
71389         * modules/dprintf-posix-tests (Files): Likewise.
71390         * modules/dup2-tests (Files): Likewise.
71391         * modules/dup3-tests (Files): Likewise.
71392         * modules/duplocale-tests (Files): Likewise.
71393         * modules/fchdir-tests (Files): Likewise.
71394         * modules/fcntl-tests (Files): Likewise.
71395         * modules/fdopendir-tests (Files): Likewise.
71396         * modules/fflush-tests (Files): Likewise.
71397         * modules/flock-tests (Files): Likewise.
71398         * modules/floorf-tests (Files): Likewise.
71399         * modules/floorl-tests (Files): Likewise.
71400         * modules/fnmatch-tests (Files): Likewise.
71401         * modules/fopen-tests (Files): Likewise.
71402         * modules/fprintf-posix-tests (Files): Likewise.
71403         * modules/freopen-tests (Files): Likewise.
71404         * modules/frexp-nolibm-tests (Files): Likewise.
71405         * modules/frexp-tests (Files): Likewise.
71406         * modules/frexpl-nolibm-tests (Files): Likewise.
71407         * modules/frexpl-tests (Files): Likewise.
71408         * modules/fseek-tests (Files): Likewise.
71409         * modules/fseeko-tests (Files): Likewise.
71410         * modules/fsync-tests (Files): Likewise.
71411         * modules/ftell-tests (Files): Likewise.
71412         * modules/ftello-tests (Files): Likewise.
71413         * modules/futimens-tests (Files): Likewise.
71414         * modules/getaddrinfo-tests (Files): Likewise.
71415         * modules/getcwd-tests (Files): Likewise.
71416         * modules/getdelim-tests (Files): Likewise.
71417         * modules/getdtablesize-tests (Files): Likewise.
71418         * modules/getgroups-tests (Files): Likewise.
71419         * modules/gethostname-tests (Files): Likewise.
71420         * modules/getline-tests (Files): Likewise.
71421         * modules/getopt-posix-tests (Files): Likewise.
71422         * modules/gettimeofday-tests (Files): Likewise.
71423         * modules/glob-tests (Files): Likewise.
71424         * modules/iconv-tests (Files): Likewise.
71425         * modules/inet_ntop-tests (Files): Likewise.
71426         * modules/inet_pton-tests (Files): Likewise.
71427         * modules/isblank-tests (Files): Likewise.
71428         * modules/lchown-tests (Files): Likewise.
71429         * modules/ldexpl-tests (Files): Likewise.
71430         * modules/link-tests (Files): Likewise.
71431         * modules/linkat-tests (Files): Likewise.
71432         * modules/lseek-tests (Files): Likewise.
71433         * modules/lstat-tests (Files): Likewise.
71434         * modules/mbrtowc-tests (Files): Likewise.
71435         * modules/mbsinit-tests (Files): Likewise.
71436         * modules/mbsnrtowcs-tests (Files): Likewise.
71437         * modules/mbsrtowcs-tests (Files): Likewise.
71438         * modules/memchr-tests (Files): Likewise.
71439         * modules/memcmp-tests (Files): Likewise.
71440         * modules/memmem-tests (Files): Likewise.
71441         * modules/memrchr-tests (Files): Likewise.
71442         * modules/mkdir-tests (Files): Likewise.
71443         * modules/mkfifo-tests (Files): Likewise.
71444         * modules/mkfifoat-tests (Files): Likewise.
71445         * modules/mknod-tests (Files): Likewise.
71446         * modules/nanosleep-tests (Files): Likewise.
71447         * modules/nl_langinfo-tests (Files): Likewise.
71448         * modules/obstack-printf-tests (Files): Likewise.
71449         * modules/open-tests (Files): Likewise.
71450         * modules/openat-tests (Files): Likewise.
71451         * modules/perror-tests (Files): Likewise.
71452         * modules/pipe2-tests (Files): Likewise.
71453         * modules/poll-tests (Files): Likewise.
71454         * modules/popen-tests (Files): Likewise.
71455         * modules/posix_spawn-tests (Files): Likewise.
71456         * modules/posix_spawnp-tests (Files): Likewise.
71457         * modules/pread-tests (Files): Likewise.
71458         * modules/printf-posix-tests (Files): Likewise.
71459         * modules/pty-tests (Files): Likewise.
71460         * modules/random_r-tests (Files): Likewise.
71461         * modules/rawmemchr-tests (Files): Likewise.
71462         * modules/readlink-tests (Files): Likewise.
71463         * modules/remove-tests (Files): Likewise.
71464         * modules/rename-tests (Files): Likewise.
71465         * modules/renameat-tests (Files): Likewise.
71466         * modules/rmdir-tests (Files): Likewise.
71467         * modules/round-tests (Files): Likewise.
71468         * modules/roundf-tests (Files): Likewise.
71469         * modules/roundl-tests (Files): Likewise.
71470         * modules/select-tests (Files): Likewise.
71471         * modules/setenv-tests (Files): Likewise.
71472         * modules/sigaction-tests (Files): Likewise.
71473         * modules/sleep-tests (Files): Likewise.
71474         * modules/snprintf-posix-tests (Files): Likewise.
71475         * modules/snprintf-tests (Files): Likewise.
71476         * modules/sprintf-posix-tests (Files): Likewise.
71477         * modules/stat-tests (Files): Likewise.
71478         * modules/strcasestr-tests (Files): Likewise.
71479         * modules/strchrnul-tests (Files): Likewise.
71480         * modules/strerror-tests (Files): Likewise.
71481         * modules/strsignal-tests (Files): Likewise.
71482         * modules/strstr-tests (Files): Likewise.
71483         * modules/strtod-tests (Files): Likewise.
71484         * modules/strverscmp-tests (Files): Likewise.
71485         * modules/symlink-tests (Files): Likewise.
71486         * modules/symlinkat-tests (Files): Likewise.
71487         * modules/times-tests (Files): Likewise.
71488         * modules/trunc-tests (Files): Likewise.
71489         * modules/truncf-tests (Files): Likewise.
71490         * modules/truncl-tests (Files): Likewise.
71491         * modules/tsearch-tests (Files): Likewise.
71492         * modules/uname-tests (Files): Likewise.
71493         * modules/unlink-tests (Files): Likewise.
71494         * modules/unsetenv-tests (Files): Likewise.
71495         * modules/usleep-tests (Files): Likewise.
71496         * modules/utimensat-tests (Files): Likewise.
71497         * modules/vasprintf-tests (Files): Likewise.
71498         * modules/vdprintf-posix-tests (Files): Likewise.
71499         * modules/vfprintf-posix-tests (Files): Likewise.
71500         * modules/vprintf-posix-tests (Files): Likewise.
71501         * modules/vsnprintf-posix-tests (Files): Likewise.
71502         * modules/vsnprintf-tests (Files): Likewise.
71503         * modules/vsprintf-posix-tests (Files): Likewise.
71504         * modules/wcrtomb-tests (Files): Likewise.
71505         * modules/wcsnrtombs-tests (Files): Likewise.
71506         * modules/wcsrtombs-tests (Files): Likewise.
71507         * modules/wcwidth-tests (Files): Likewise.
71508         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71509         * tests/test-isinf.c (isinf): Likewise.
71510         * tests/test-isnan.c (isnan): Likewise.
71511         * tests/test-signbit.c (signbit): Likewise.
71512         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71513         declaration, either as macro or with correct signature.
71514         (select): Ensure function under test is declared with correct
71515         signature in correct header.
71516         * tests/test-atexit.c (atexit): Likewise.
71517         * tests/test-btowc.c (btowc): Likewise.
71518         * tests/test-canonicalize-lgpl.c (realpath)
71519         (canonicalize_file_name): Likewise.
71520         * tests/test-ceilf1.c (ceilf): Likewise.
71521         * tests/test-ceill.c (ceill): Likewise.
71522         * tests/test-chown.c (chown): Likewise.
71523         * tests/test-dprintf-posix.c (dprintf): Likewise.
71524         * tests/test-dup2.c (dup2): Likewise.
71525         * tests/test-dup3.c (dup3): Likewise.
71526         * tests/test-duplocale.c (duplocale): Likewise.
71527         * tests/test-fchdir.c (fchdir): Likewise.
71528         * tests/test-fchownat.c (fchownat): Likewise.
71529         * tests/test-fcntl.c (fcntl): Likewise.
71530         * tests/test-fdopendir.c (fdopendir): Likewise.
71531         * tests/test-fflush.c (fflush): Likewise.
71532         * tests/test-flock.c (flock): Likewise.
71533         * tests/test-floorf1.c (floorf): Likewise.
71534         * tests/test-floorl.c (floorl): Likewise.
71535         * tests/test-fnmatch.c (fnmatch): Likewise.
71536         * tests/test-fopen.c (fopen): Likewise.
71537         * tests/test-fprintf-posix.c (fprintf): Likewise.
71538         * tests/test-freopen.c (freopen): Likewise.
71539         * tests/test-frexp.c (frexp): Likewise.
71540         * tests/test-frexpl.c (frexpl): Likewise.
71541         * tests/test-fseek.c (fseek): Likewise.
71542         * tests/test-fseeko.c (fseeko): Likewise.
71543         * tests/test-fstatat.c (fstatat): Likewise.
71544         * tests/test-fsync.c (fsync): Likewise.
71545         * tests/test-ftell.c (ftell): Likewise.
71546         * tests/test-ftello.c (ftello): Likewise.
71547         * tests/test-futimens.c (futimens): Likewise.
71548         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71549         (gai_strerror): Likewise.
71550         * tests/test-getcwd.c (getcwd): Likewise.
71551         * tests/test-getdelim.c (getdelim): Likewise.
71552         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71553         * tests/test-getgroups.c (getgroups): Likewise.
71554         * tests/test-gethostname.c (gethostname): Likewise.
71555         * tests/test-getline.c (getline): Likewise.
71556         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71557         Likewise.
71558         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71559         * tests/test-glob.c (glob, globfree): Likewise.
71560         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71561         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71562         * tests/test-inet_pton.c (inet_pton): Likewise.
71563         * tests/test-isblank.c (isblank): Likewise.
71564         * tests/test-lchown.c (lchown): Likewise.
71565         * tests/test-ldexpl.c (ldexpl): Likewise.
71566         * tests/test-link.c (link): Likewise.
71567         * tests/test-linkat.c (linkat): Likewise.
71568         * tests/test-lseek.c (lseek): Likewise.
71569         * tests/test-lstat.c (lstat): Likewise.
71570         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71571         * tests/test-mbsinit.c (mbsinit): Likewise.
71572         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71573         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71574         * tests/test-memchr.c (memchr): Likewise.
71575         * tests/test-memcmp.c (memcmp): Likewise.
71576         * tests/test-memmem.c (memmem): Likewise.
71577         * tests/test-memrchr.c (memrchr): Likewise.
71578         * tests/test-mkdir.c (mkdir): Likewise.
71579         * tests/test-mkdirat.c (mkdirat): Likewise.
71580         * tests/test-mkfifo.c (mkfifo): Likewise.
71581         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71582         * tests/test-mknod.c (mknod): Likewise.
71583         * tests/test-nanosleep.c (nanosleep): Likewise.
71584         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71585         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71586         Likewise.
71587         * tests/test-open.c (open): Likewise.
71588         * tests/test-openat.c (openat): Likewise.
71589         * tests/test-perror.c (perror): Likewise.
71590         * tests/test-pipe2.c (pipe2): Likewise.
71591         * tests/test-poll.c (poll): Likewise.
71592         * tests/test-popen.c (popen, pclose): Likewise.
71593         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
71594         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
71595         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
71596         (posix_spawn_file_actions_destroy)
71597         (posix_spawn_file_actions_addclose)
71598         (posix_spawn_file_actions_addopen)
71599         (posix_spawn_file_actions_adddup2): Likewise.
71600         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
71601         * tests/test-pread.c (pread): Likewise.
71602         * tests/test-printf-posix.c (printf): Likewise.
71603         * tests/test-pty.c (openpty, forkpty): Likewise.
71604         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
71605         (random_r): Likewise.
71606         * tests/test-rawmemchr.c (rawmemchr): Likewise.
71607         * tests/test-readlink.c (readlink): Likewise.
71608         * tests/test-remove.c (remove): Likewise.
71609         * tests/test-rename.c (rename): Likewise.
71610         * tests/test-renameat.c (renameat): Likewise.
71611         * tests/test-rmdir.c (rmdir): Likewise.
71612         * tests/test-round1.c (round): Likewise.
71613         * tests/test-roundf1.c (roundf): Likewise.
71614         * tests/test-roundl.c (roundl): Likewise.
71615         * tests/test-setenv.c (setenv): Likewise.
71616         * tests/test-sigaction.c (sigaction): Likewise.
71617         * tests/test-sleep.c (sleep): Likewise.
71618         * tests/test-snprintf.c (snprintf): Likewise.
71619         * tests/test-sprintf-posix.c (sprintf): Likewise.
71620         * tests/test-stat.c (stat): Likewise.
71621         * tests/test-stpncpy.c (stpncpy): Likewise.
71622         * tests/test-strcasestr.c (strcasestr): Likewise.
71623         * tests/test-strchrnul.c (strchrnul): Likewise.
71624         * tests/test-strerror.c (strerror): Likewise.
71625         * tests/test-strsignal.c (strsignal): Likewise.
71626         * tests/test-strstr.c (strstr): Likewise.
71627         * tests/test-strtod.c (strtod): Likewise.
71628         * tests/test-strverscmp.c (strverscmp): Likewise.
71629         * tests/test-symlink.c (symlink): Likewise.
71630         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
71631         * tests/test-times.c (times): Likewise.
71632         * tests/test-trunc1.c (trunc): Likewise.
71633         * tests/test-truncf1.c (truncf): Likewise.
71634         * tests/test-truncl.c (truncl): Likewise.
71635         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
71636         Likewise.
71637         * tests/test-uname.c (uname): Likewise.
71638         * tests/test-unlink.c (unlink): Likewise.
71639         * tests/test-unlinkat.c (unlinkat): Likewise.
71640         * tests/test-unsetenv.c (unsetenv): Likewise.
71641         * tests/test-usleep.c (usleep): Likewise.
71642         * tests/test-utimensat.c (utimensat): Likewise.
71643         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
71644         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
71645         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
71646         * tests/test-vprintf-posix.c (vprintf): Likewise.
71647         * tests/test-vsnprintf.c (vsnprintf): Likewise.
71648         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
71649         * tests/test-wcrtomb.c (wcrtomb): Likewise.
71650         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
71651         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
71652         * tests/test-wcwidth.c (wcwidth): Likewise.
71654         build: pull in conditional headers during GNULIB_POSIXCHECK
71655         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
71656         definitions from any conditionally-included headers.
71657         * lib/stdlib.in.h (includes): Likewise.
71658         * lib/unistd.in.h (includes): Likewise.
71660 2009-12-24  Bruno Haible  <bruno@clisp.org>
71662         * tests/test-argv-iter.c: Include header file being tested immediately
71663         after config.h.
71664         * tests/test-base64.c: Likewise.
71665         * tests/test-flock.c: Likewise.
71666         * tests/test-fsync.c: Likewise.
71667         * tests/test-getdate.c: Likewise.
71668         * tests/test-getndelim2.c: Likewise.
71669         * tests/test-isfinite.c: Likewise.
71670         * tests/test-isinf.c: Likewise.
71671         * tests/test-strerror.c: Likewise.
71672         * tests/test-strsignal.c: Likewise.
71674 2009-12-23  Eric Blake  <ebb9@byu.net>
71676         unistd: work around cygwin bug
71677         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
71678         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
71679         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71681 2009-12-23  Bruno Haible  <bruno@clisp.org>
71683         localename: More tests.
71684         * tests/test-localename.c (SIZEOF): New macro.
71685         (categories): New variable.
71686         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
71687         test_locale_name_default): Add test w.r.t. thread locale.
71688         (test_locale_name_thread): New function.
71689         (main): Invoke it.
71691         localename: Make aware of thread locale.
71692         * lib/localename.h (gl_locale_name_thread): New declaration.
71693         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
71694         behaviour with respect to thread locale.
71695         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
71696         <langinfo.h>, glthread/lock.h.
71697         (SIZE_BITS): New macro.
71698         (string_hash): New function.
71699         (struct hash_node): New type.
71700         (HASH_TABLE_SIZE): New macro.
71701         (struniq_hash_table, struniq_lock): New variables.
71702         (struniq): New function.
71703         (gl_locale_name_thread): New function.
71704         (gl_locale_name): Invoke it.
71705         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
71706         * modules/localename (Depends-on): Add lock.
71707         Reported by Mike Gran <spk121@yahoo.com>.
71709 2009-12-23  Eric Blake  <ebb9@byu.net>
71711         va-args: new module
71712         * modules/va-args: New file.
71713         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
71714         * MODULES.html.sh (Core language properties): Mention it.
71716         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
71717         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
71718         named alias for __attribute__((__unused__)).
71719         * lib/chown.c: Update client.
71720         * lib/fchmodat.c: Likewise.
71721         * lib/fts.c: Likewise.
71722         * lib/getdate.y: Likewise.
71723         * lib/getgroups.c: Likewise.
71724         * lib/getopt.c: Likewise.
71725         * lib/getugroups.c: Likewise.
71726         * lib/mkdir.c: Likewise.
71727         * lib/mkfifo.c: Likewise.
71728         * lib/mkfifoat.c: Likewise.
71729         * lib/mknod.c: Likewise.
71730         * lib/mknodat.c: Likewise.
71731         * lib/readlink.c: Likewise.
71732         * lib/se-context.in.h: Likewise.
71733         * lib/se-selinux.in.h: Likewise.
71734         * lib/sockets.c: Likewise.
71735         * lib/symlink.c: Likewise.
71736         * lib/symlinkat.c: Likewise.
71737         * lib/unicodeio.c: Likewise.
71738         * lib/unistr.h: Likewise.
71739         * tests/test-areadlink.c: Likewise.
71740         * tests/test-areadlinkat.c: Likewise.
71741         * tests/test-filenamecat.c: Likewise.
71742         * tests/test-fseeko.c: Likewise.
71743         * tests/test-ftello.c: Likewise.
71744         * tests/test-getdate.c: Likewise.
71745         * tests/test-getgroups.c: Likewise.
71746         * tests/test-gethostname.c: Likewise.
71747         * tests/test-quotearg.c: Likewise.
71748         * tests/test-version-etc.c: Likewise.
71749         * tests/test-xalloc-die.c: Likewise.
71750         * tests/test-xfprintf-posix.c: Likewise.
71751         * tests/test-xprintf-posix.c: Likewise.
71752         * tests/test-xvasprintf.c: Likewise.
71754         tests: avoid compiler warnings
71755         * tests/test-fcntl.c (main): Delete unused parameters.
71756         * tests/test-freopen-safer.c (main): Likewise.
71757         * tests/test-xalloc-die.c (main): Mark unused parameters.
71758         * tests/test-fseeko.c (main): Likewise.
71759         * tests/test-ftello.c (main): Likewise.
71760         * tests/test-nanosleep.c (main): Avoid declaration warning.
71761         * tests/test-sleep.c (main): Likewise.
71762         * tests/test-unsetenv.c (main): Silence warning about string
71763         literal.
71764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
71766 2009-12-23  Bruno Haible  <bruno@clisp.org>
71768         * tests/test-localename.c (test_locale_name): New function, extracted
71769         from main. Also test mixed situations.
71770         (test_locale_name_posix, test_locale_name_environ,
71771         test_locale_name_default): New functions.
71772         (main): Invoke them all.
71773         * modules/localename-tests (configure.ac): Test for newlocale.
71775 2009-12-23  Bruno Haible  <bruno@clisp.org>
71777         unistd: Ensure getcwd gets declared before being overridden.
71778         * lib/unistd.in.h: Conditionally include <io.h>.
71780 2009-12-22  Bruno Haible  <bruno@clisp.org>
71782         wchar: Diagnose broken combination of glibc and gcc versions and flags.
71783         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
71784         (gl_WCHAR_H): Invoke it.
71785         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
71786         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
71787         Reported by Karl Berry <karl@freefriends.org>.
71789 2009-12-22  Eric Blake  <ebb9@byu.net>
71791         math, unistd: avoid redundant includes
71792         * lib/math.in.h (isnan): No need to re-include <math.h>.
71793         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
71795         getsubopt: work around cygwin bug
71796         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
71797         avoid conflicting with system getsubopt.
71798         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
71799         bug.
71801         getopt: synchronize from glibc
71802         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
71803         parameter order.  Adjust all callers.
71804         (_getopt_internal_r, main): Adjust quoting in error messages.
71805         Drop considerations for outdated POSIX 1003.2 error message.
71806         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
71807         callers.
71808         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
71810         test-getopt: test stderr behavior
71811         * modules/getopt-posix-tests (Depends-on): Add dup2.
71812         * tests/test-getopt.c (ASSERT): Avoid stderr.
71813         (main): Move stderr to a temporary file.
71814         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
71815         Instead, add parameter to inform caller if output occurred.
71816         (test_getopt): Adjust all existing tests to expect silence, and
71817         add new tests of leading ":".
71818         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71819         glibc shortcomings with leading "-:" or "+:" in optstring.
71820         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71821         Likewise.
71822         * doc/posix-functions/getopt.texi (getopt): Likewise.
71824         test-getopt: enhance test
71825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
71826         supports optind=0.
71827         * tests/test-getopt.c (OPTIND_MIN): Move...
71828         * tests/test-getopt.h (OPTIND_MIN): ...here.
71829         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
71830         Require that optind=0 works, since modern BSD supports it in
71831         addition to optreset, and since coreutils expects it.
71832         (test_getopt_long_only): New test.
71833         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71834         glibc shortcomings with 'W;', and enforcement of optind=0.
71835         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71836         Likewise.
71838 2009-12-21  Bruno Haible  <bruno@clisp.org>
71840         localename: Improvements for MacOS X and Cygwin.
71841         * lib/localename.h (gl_locale_name_environ): New declaration.
71842         * lib/localename.c (gl_locale_name_environ): New function, extracted from
71843         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
71844         (gl_locale_name_posix): Invoke it.
71845         (gl_locale_name_default): Add comments. Use Windows native API also on
71846         Cygwin.
71848 2009-12-21  Bruno Haible  <bruno@clisp.org>
71850         Update list of Win32 locale ids.
71851         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
71852         (LANG_SAMI): Renamed from LANG_SAAMI.
71853         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
71854         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
71855         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
71856         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
71857         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
71858         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
71859         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
71860         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
71861         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
71862         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
71863         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
71864         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
71865         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
71866         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
71867         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
71868         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
71869         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
71870         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
71871         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
71872         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
71873         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
71874         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
71875         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
71876         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
71877         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
71878         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
71879         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
71880         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
71881         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
71882         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
71883         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
71884         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
71885         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
71886         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
71887         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
71888         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
71889         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
71890         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
71891         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
71892         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
71893         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
71894         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
71895         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
71896         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
71897         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
71898         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
71899         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
71900         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
71901         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
71902         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
71903         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
71904         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
71905         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
71906         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
71907         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
71908         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
71909         Add more languages and countries for Sami, Sorbian. Add more countries
71910         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
71911         for Pashto. Change country for Syriac, Tswana.
71913 2009-12-21  Eric Blake  <ebb9@byu.net>
71915         test-utimens: avoid spurious failure
71916         * tests/test-chown.h (nap): Factor...
71917         * tests/nap.h: ...into new file.
71918         * tests/test-lchown.h (nap): Avoid duplication.
71919         * tests/test-utimens-common.h (nap): Use shared implementation,
71920         necessary on file systems with 1-second resolution.
71921         * modules/chown-tests (Files): Include new file.
71922         * modules/fdutimensat-tests (Files): Likewise.
71923         * modules/futimens-tests (Files): Likewise.
71924         * modules/lchown-tests (Files): Likewise.
71925         * modules/openat-tests (Files): Likewise.
71926         * modules/utimens-tests (Files): Likewise.
71927         * modules/utimensat-tests (Files): Likewise.
71929 2009-12-19  Eric Blake  <ebb9@byu.net>
71931         futimens, utimensat: work around Linux bug
71932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
71933         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71934         * lib/utimensat.c (rpl_utimensat): Work around it.
71935         * lib/futimens.c (rpl_futimens): Adjust comment.
71937         utimens: work around Linux ctime bug
71938         * lib/utimens.c (detect_ctime_bug): New helper function.
71939         (update_timespec): Differentiate between workaround needed for
71940         this bug vs. what is needed for systems that lack utimensat.
71941         (fdutimens, lutimens): Work around bug.
71943         utimens: check for ctime update
71944         * tests/test-utimens-common.h (check_ctime): Define.
71945         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
71946         * tests/test-futimens.h (test_futimens): Likewise.
71947         * tests/test-lutimens.h (test_lutimens): Likewise.
71948         * doc/posix-functions/futimens.texi (futimens): Document the bug.
71949         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
71951 2009-12-19  Bruno Haible  <bruno@clisp.org>
71953         dprintf-posix: Check against memory leak fixed on 2009-12-15.
71954         * tests/test-dprintf-posix2.sh: New file.
71955         * tests/test-dprintf-posix2.c: New file.
71956         * modules/dprintf-posix-tests (Files): Add them.
71957         (configure.ac): Check for getrlimit and setrlimit.
71958         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
71960 2009-12-19  Bruno Haible  <bruno@clisp.org>
71962         fprintf-posix: Check against memory leak fixed on 2009-12-15.
71963         * tests/test-fprintf-posix3.sh: New file.
71964         * tests/test-fprintf-posix3.c: New file.
71965         * modules/fprintf-posix-tests (Files): Add them.
71966         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
71968 2009-12-19  Eric Blake  <ebb9@byu.net>
71970         dirfd: fix prototype
71971         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
71972         * lib/dirfd.c (dirfd): Likewise.
71974         canonicalize: reduce memory usage
71975         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
71976         allocation to size.
71977         Reported by Solar Designer <solar@openwall.com>.
71979 2009-12-19  Bruno Haible  <bruno@clisp.org>
71981         New module attribute 'Applicability'.
71982         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
71983         * gnulib-tool: New option --extract-applicability.
71984         (func_usage): Document it.
71985         (sed_extract_prog): Recognize it.
71986         (func_get_applicability): New function.
71987         (func_import): Generalize handling of 'link-warning' module.
71988         * modules/link-warning (Applicability): New section.
71989         * modules/arg-nonnull (Applicability): New section.
71990         Repoted by Simon Josefsson <simon@josefsson.org>.
71992 2009-12-19  Bruno Haible  <bruno@clisp.org>
71994         fflush: tweak
71995         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
71996         * lib/fseeko.c (rpl_fseeko): Likewise.
71998 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72000         * lib/gl_list.h: Fix typo in comment.
72002 2009-12-16  Eric Blake  <ebb9@byu.net>
72004         fcntl: use to simplify other modules
72005         * modules/cloexec (Depends-on): Add fcntl.
72006         * modules/fchdir (Depends-on): Likewise.
72007         * modules/fd-safer-flag (Depends-on): Likewise.
72008         * modules/unistd-safer (Depends-on): Likewise.
72009         * modules/dup3 (configure.ac): Set module indicator.
72010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72011         missing.
72012         * lib/fchdir.c (_gl_register_dup): Fix comment.
72013         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72014         * lib/dup-safer.c (dup_safer): Likewise.
72015         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72016         * lib/dup3.c (dup3): Likewise.
72017         * tests/test-fchdir.c (main): Enhance test.
72018         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72020         fcntl: port portions of fcntl to mingw
72021         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72022         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72023         replacement for mingw.
72024         * modules/fcntl (Description): Update.
72025         (Depends-on): Add dup2.
72026         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72027         * modules/fcntl-h (Makefile.am): Substitute it.
72028         * lib/fcntl.in.h (fcntl): Update declaration.
72029         (F_DUPFD, F_GETFD): New macros, when needed.
72030         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72031         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72032         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72033         we now guarantee.
72035         fcntl: work around cygwin bug in F_DUPFD
72036         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72037         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72038         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72039         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72040         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72042         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72043         * modules/fcntl (Files): List new files.
72044         (configure.ac): Run a test.
72045         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72046         * lib/fcntl.c (rpl_fcntl): Likewise.
72047         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72048         (gl_FCNTL_H): Always replace fcntl.h.
72049         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72050         * lib/fcntl.in.h (fcntl): Declare replacement.
72051         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72052         needed, plus a witness.
72053         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72054         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72055         * tests/test-fcntl.c: New file.
72056         * modules/fcntl-tests: Likewise.
72058         binary-io: avoid potential compilation warning
72059         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72060         directives.
72062         fflush: avoid compilation error on NetBSD
72063         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72064         between off_t and fpos_t, since the latter is sometimes a struct.
72065         * lib/fseeko.c (rpl_fseeko): Likewise.
72066         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72068 2009-12-15  Eric Blake  <ebb9@byu.net>
72070         fcntl-h, stdio, sys_ioctl: fix declarations
72071         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72072         function must not take arguments.
72073         * lib/sys_ioctl.in.h (ioctl): Likewise.
72074         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72075         (open): Add a link warning.
72077 2009-12-15  Jim Meyering  <meyering@redhat.com>
72079         areadlink, areadlink-with-size: relax license to LGPLv2+
72080         * modules/areadlink (License): Relax to LGPLv2+.
72081         * modules/areadlink-with-size (License): Likewise.
72083 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72084             Bruno Haible  <bruno@clisp.org>
72086         *printf: Fix memory leak.
72087         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72088         * lib/vfprintf.c (vfprintf): Likewise.
72089         * lib/dprintf.c (dprintf): Likewise.
72090         * lib/vdprintf.c (vdprintf): Likewise.
72092 2009-12-14  Eric Blake  <ebb9@byu.net>
72094         accept4: adjust module dependencies
72095         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72097         utimens: one more try at avoiding compiler warning
72098         * lib/utimens.c (lutimens): Lower scope of result.
72100 2009-12-13  Bruno Haible  <bruno@clisp.org>
72102         Move the malloc checking from module 'list' to new module 'xlist'.
72103         * modules/xlist: New file.
72104         * lib/gl_xlist.h: New file.
72105         * lib/gl_xlist.c: New file.
72106         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72107         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72108         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72109         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72110         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72111         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72112         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72113         gl_sortedlist_nx_add): New declarations.
72114         (struct gl_list_implementation): Rename and change methods accordingly.
72115         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72116         (gl_list_nx_create): Renamed from gl_list_create.
72117         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72118         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72119         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72120         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72121         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72122         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72123         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72124         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72125         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72126         gl_list_create_empty.
72127         (gl_list_nx_create): Renamed from gl_list_create.
72128         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72129         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72130         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72131         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72132         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72133         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72134         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72135         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72136         * lib/gl_array_list.c: Don't include xalloc.h.
72137         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72138         NULL upon out-of-memory.
72139         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72140         out-of-memory.
72141         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72142         Change return type to 'int'.
72143         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72144         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72145         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72146         upon out-of-memory.
72147         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72148         upon out-of-memory.
72149         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72150         upon out-of-memory.
72151         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72152         upon out-of-memory.
72153         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72154         out-of-memory.
72155         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72156         Update.
72157         (gl_array_list_implementation): Update.
72158         * lib/gl_carray_list.c: Don't include xalloc.h.
72159         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72160         Return NULL upon out-of-memory.
72161         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72162         out-of-memory.
72163         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72164         Change return type to 'int'.
72165         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72166         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72167         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72168         upon out-of-memory.
72169         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72170         upon out-of-memory.
72171         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72172         out-of-memory.
72173         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72174         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72175         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72176         Update.
72177         (gl_carray_list_implementation): Update.
72178         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72179         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72180         gl_linked_create_empty. Return NULL upon out-of-memory.
72181         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72182         out-of-memory.
72183         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72184         Change return type to 'int'. Return -1 upon out-of-memory.
72185         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72186         out-of-memory.
72187         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72188         upon out-of-memory.
72189         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72190         upon out-of-memory.
72191         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72192         NULL upon out-of-memory.
72193         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72194         upon out-of-memory.
72195         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72196         out-of-memory.
72197         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72198         Update.
72199         * lib/gl_linked_list.c: Don't include xalloc.h.
72200         (gl_linked_list_implementation): Update.
72201         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72202         (add_to_bucket): Change return type to 'int'.
72203         (gl_linkedhash_list_implementation): Update.
72204         * lib/gl_anytree_list1.h (free_subtree): New function.
72205         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72206         gl_tree_create_empty. Return NULL upon out-of-memory.
72207         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72208         Change return type to 'int'. Return -1 upon out-of-memory.
72209         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72210         out-of-memory.
72211         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72212         (gl_tree_remove_node): New function, moved here from
72213         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72214         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72215         Update.
72216         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72217         malloc, not xmalloc. Return NULL upon out-of-memory.
72218         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72219         out-of-memory.
72220         (gl_tree_remove_node_from_tree): New function, extracted from
72221         gl_tree_remove_node.
72222         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72223         upon out-of-memory.
72224         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72225         out-of-memory.
72226         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72227         upon out-of-memory.
72228         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72229         upon out-of-memory.
72230         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72231         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72232         not xmalloc. Return NULL upon out-of-memory.
72233         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72234         out-of-memory.
72235         (gl_tree_remove_node_from_tree): New function, extracted from
72236         gl_tree_remove_node.
72237         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72238         upon out-of-memory.
72239         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72240         out-of-memory.
72241         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72242         upon out-of-memory.
72243         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72244         upon out-of-memory.
72245         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72246         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72247         gl_anytree_list1.h before gl_anyavltree_list2.h.
72248         (gl_avltree_list_implementation): Update.
72249         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72250         gl_anytree_list1.h before gl_anyavltree_list2.h.
72251         (gl_rbtree_list_implementation): Update.
72252         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72253         Change return type to 'int'. Return -1 upon out-of-memory. Use
72254         __builtin_expect.
72255         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72256         (gl_avltreehash_list_implementation): Update.
72257         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72258         (gl_rbtreehash_list_implementation): Update.
72259         * modules/array-list (Depends-on): Remove xalloc.
72260         * modules/carray-list (Depends-on): Likewise.
72261         * modules/linked-list (Depends-on): Likewise.
72262         * modules/linkedhash-list (Depends-on): Likewise.
72263         * modules/avltree-list (Depends-on): Likewise.
72264         * modules/rbtree-list (Depends-on): Likewise.
72265         * modules/avltreehash-list (Depends-on): Likewise.
72266         * modules/rbtreehash-list (Depends-on): Likewise.
72268         * modules/xsublist: New file.
72269         * lib/gl_xsublist.h: New file.
72270         * lib/gl_xsublist.c: New file.
72271         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72272         (gl_sublist_nx_create): New declaration.
72273         * lib/gl_sublist.c: Don't include xalloc.h.
72274         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72275         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72276         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72277         Change return type to 'int'. Return -1 upon out-of-memory.
72278         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72279         upon out-of-memory.
72280         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72281         NULL upon out-of-memory.
72282         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72283         upon out-of-memory.
72284         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72285         NULL upon out-of-memory.
72286         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72287         NULL upon out-of-memory.
72288         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72289         upon out-of-memory.
72290         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72291         (gl_sublist_list_implementation): Update.
72292         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72293         upon out-of-memory.
72294         * modules/sublist (Depends-on): Remove xalloc.
72296         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72297         * tests/test-carray_list.c: Likewise.
72298         * tests/test-linked_list.c: Likewise.
72299         * tests/test-linkedhash_list.c: Likewise.
72300         * tests/test-avltree_list.c: Likewise.
72301         * tests/test-rbtree_list.c: Likewise.
72302         * tests/test-avltreehash_list.c: Likewise.
72303         * tests/test-rbtreehash_list.c: Likewise.
72304         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72305         * modules/carray-list-tests (Makefile.am): Likewise.
72306         * modules/linked-list-tests (Makefile.am): Likewise.
72307         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72308         * modules/avltree-list-tests (Makefile.am): Likewise.
72309         * modules/rbtree-list-tests (Makefile.am): Likewise.
72310         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72311         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72313         * NEWS: Mention the changes.
72315         * lib/clean-temp.c: Include gl_xlist.h.
72316         * modules/clean-temp (Depends-on): Add xlist.
72318         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72319         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72321         * tests/test-array_oset.c: Include gl_xlist.h.
72322         * modules/array-oset-tests (Depends-on): Add xlist.
72324         Reported by José E. Marchesi <jemarch@gnu.org>.
72326 2009-12-13  Bruno Haible  <bruno@clisp.org>
72328         Move the malloc checking from module 'oset' to new module 'xoset'.
72329         * modules/xoset: New file.
72330         * lib/gl_xoset.h: New file.
72331         * lib/gl_xoset.c: New file.
72332         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72333         declarations.
72334         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72335         (struct gl_oset_implementation): Rename and change methods accordingly.
72336         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72337         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72338         'int'. Mark as __warn_unused_result__.
72339         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72340         gl_oset_create_empty.
72341         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72342         'int'.
72343         * lib/gl_array_oset.c: Don't include xalloc.h.
72344         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72345         malloc, not xmalloc.
72346         (grow): Change return type to 'int'. Don't call xalloc_die.
72347         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72348         to 'int'.
72349         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72350         'int'.
72351         (gl_array_oset_implementation): Update.
72352         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72353         gl_tree_create_empty.
72354         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72355         'int'.
72356         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72357         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72358         xmalloc.
72359         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72360         not xmalloc.
72361         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72362         xmalloc.
72363         (gl_avltree_oset_implementation): Update.
72364         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72365         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72366         xmalloc.
72367         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72368         not xmalloc.
72369         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72370         xmalloc.
72371         (gl_rbtree_oset_implementation): Update.
72372         * modules/array-oset (Depends-on): Remove xalloc.
72373         * modules/avltree-oset (Depends-on): Likewise.
72374         * modules/rbtree-oset (Depends-on): Likewise.
72375         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72376         * tests/test-avltree_oset.c: Likewise.
72377         * tests/test-rbtree_oset.c: Likewise.
72378         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72379         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72380         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72381         * NEWS: Mention the change.
72383 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72385         maint.mk: allow a project to override release-prep commands
72386         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72387         commands into a new rule.
72388         (release-prep): New rule.
72389         (release-prep-hook): New overridable variable.
72391 2009-12-13  Bruno Haible  <bruno@clisp.org>
72393         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72395 2009-12-13  Jim Meyering  <meyering@redhat.com>
72397         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72398         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72400 2009-12-12  Bruno Haible  <bruno@clisp.org>
72402         duplocale: Tweak.
72403         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72405 2009-12-12  Karl Berry  <karl@gnu.org>
72407         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72409 2009-12-12  Bruno Haible  <bruno@clisp.org>
72411         * m4/po.m4: Undo incorrect untabification.
72413 2009-12-12  Bruno Haible  <bruno@clisp.org>
72415         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72416         * modules/c-strtod (Depends-on): Add locale.
72417         * modules/c-strtold (Depends-on): Likewise.
72419 2009-12-12  Bruno Haible  <bruno@clisp.org>
72421         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72423 2009-12-11  Eric Blake  <ebb9@byu.net>
72425         setenv: relax requirement in light of POSIX ruling
72426         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72427         not NULL.
72428         * tests/test-setenv.c (main): Relax test.
72429         * tests/test-unsetenv.c (main): Likewise.
72430         * doc/posix-functions/setenv.texi (setenv): Document this.
72431         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72433 2009-12-11  Bruno Haible  <bruno@clisp.org>
72435         New module 'fd-safer-flag'.
72436         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72437         * lib/dup-safer.c (dup_safer_flag): Remove function.
72438         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72439         * lib/fd-safer.c (fd_safer_flag): Remove function.
72440         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72441         * modules/cloexec (configure.ac): Drop indicator macro.
72442         * modules/fd-safer-flag: New file.
72443         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72444         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72445         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72447 2009-12-11  Bruno Haible  <bruno@clisp.org>
72449         Tests for module 'nl_langinfo'.
72450         * modules/nl_langinfo-tests: New file.
72451         * tests/test-nl_langinfo.sh: New file.
72452         * tests/test-nl_langinfo.c: New file.
72454         New module 'nl_langinfo'.
72455         * lib/nl_langinfo.c: New file.
72456         * m4/nl_langinfo.m4: New file.
72457         * modules/nl_langinfo: New file.
72458         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72460 2009-12-11  Bruno Haible  <bruno@clisp.org>
72462         Tests for module 'langinfo'.
72463         * modules/langinfo-tests: New file.
72464         * tests/test-langinfo.c: New file.
72466         New module 'langinfo'.
72467         * lib/langinfo.in.h: New file.
72468         * m4/langinfo_h.m4: New file.
72469         * modules/langinfo: New file.
72470         * doc/posix-headers/langinfo.texi: Mention the new module.
72472 2009-12-11  Bruno Haible  <bruno@clisp.org>
72474         * lib/config.charset: Untabify.
72476 2009-12-11  Bruno Haible  <bruno@clisp.org>
72478         * modules/unistd-safer (configure.ac): Drop indicator macro.
72480 2009-12-11  Bruno Haible  <bruno@clisp.org>
72482         Move pipe2-safer code to its own file.
72483         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72484         * lib/pipe-safer.c (pipe2_safer): Remove function.
72485         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72486         (Makefile.am): Add it to lib_SOURCES.
72488 2009-12-10  Bruno Haible  <bruno@clisp.org>
72490         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72492 2009-12-10  Bruno Haible  <bruno@clisp.org>
72494         Declare which arguments expect non-NULL values, for GCC and clang.
72495         * build-aux/arg-nonnull.h: New file.
72496         * modules/arg-nonnull: New file.
72497         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72498         (inet_ntop, inet_pton): Use it.
72499         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72500         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72501         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72502         (open, openat): Use it.
72503         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72504         (fnmatch): Use it.
72505         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72506         (getopt, getopt_long, getopt_long_only): Use it.
72507         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72508         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72509         Use it.
72510         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72511         (iconv_open): Use it.
72512         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72513         (strtoimax, strtoumax): Use it.
72514         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72515         (duplocale): Use it.
72516         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72517         (frexp, frexpl): Use it.
72518         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72519         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72520         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72521         (tsearch, tfind, tdelete, twalk): Use it.
72522         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72523         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72524         sigpending): Use it.
72525         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72526         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72527         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72528         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72529         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72530         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72531         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72532         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72533         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72534         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72535         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72536         Use it.
72537         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72538         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72539         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72540         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72541         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72542         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72543         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72544         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72545         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72546         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72547         strtoull, unsetenv): Use it.
72548         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72549         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72550         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72551         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72552         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72553         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72554         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72555         (strcasecmp, strncasecmp): Use it.
72556         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72557         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72558         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72559         rpl_setsockopt): Use it.
72560         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72561         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72562         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72563         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72564         (gettimeofday): Use it.
72565         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72566         (times): Use it.
72567         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72568         (uname): Use it.
72569         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72570         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72571         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72572         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72573         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72574         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72575         unlinkat, write): Use it.
72576         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72577         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72578         * lib/argv-iter.h: Include arg-nonnull.h.
72579         (_ATTRIBUTE_NONNULL_): Remove macro.
72580         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72581         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72582         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72583         optimization.
72584         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72585         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72586         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
72587         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
72588         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
72589         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
72590         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
72591         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
72592         * modules/arpa_inet (Depends-on): Add arg-nonnull.
72593         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
72594         * modules/dirent (Depends-on): Add arg-nonnull.
72595         (Makefile.am): Insert arg-nonnull.h into dirent.h.
72596         * modules/fcntl-h (Depends-on): Add arg-nonnull.
72597         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
72598         * modules/fnmatch (Depends-on): Add arg-nonnull.
72599         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
72600         * modules/getopt-posix (Depends-on): Add arg-nonnull.
72601         (Makefile.am): Insert arg-nonnull.h into getopt.h.
72602         * modules/glob (Depends-on): Add arg-nonnull.
72603         (Makefile.am): Insert arg-nonnull.h into glob.h.
72604         * modules/iconv_open (Depends-on): Add arg-nonnull.
72605         (Makefile.am): Insert arg-nonnull.h into iconv.h.
72606         * modules/inttypes (Depends-on): Add arg-nonnull.
72607         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
72608         * modules/locale (Depends-on): Add arg-nonnull.
72609         (Makefile.am): Insert arg-nonnull.h into locale.h.
72610         * modules/math (Depends-on): Add arg-nonnull.
72611         (Makefile.am): Insert arg-nonnull.h into math.h.
72612         * modules/netdb (Depends-on): Add arg-nonnull.
72613         (Makefile.am): Insert arg-nonnull.h into netdb.h.
72614         * modules/search (Depends-on): Add arg-nonnull.
72615         (Makefile.am): Insert arg-nonnull.h into search.h.
72616         * modules/signal (Depends-on): Add arg-nonnull.
72617         (Makefile.am): Insert arg-nonnull.h into signal.h.
72618         * modules/spawn (Depends-on): Add arg-nonnull.
72619         (Makefile.am): Insert arg-nonnull.h into spawn.h.
72620         * modules/stdio (Depends-on): Add arg-nonnull.
72621         (Makefile.am): Insert arg-nonnull.h into stdio.h.
72622         * modules/stdlib (Depends-on): Add arg-nonnull.
72623         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
72624         * modules/string (Depends-on): Add arg-nonnull.
72625         (Makefile.am): Insert arg-nonnull.h into string.h.
72626         * modules/strings (Depends-on): Add arg-nonnull.
72627         (Makefile.am): Insert arg-nonnull.h into strings.h.
72628         * modules/sys_socket (Depends-on): Add arg-nonnull.
72629         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
72630         * modules/sys_stat (Depends-on): Add arg-nonnull.
72631         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
72632         * modules/sys_time (Depends-on): Add arg-nonnull.
72633         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
72634         * modules/sys_times (Depends-on): Add arg-nonnull.
72635         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
72636         * modules/sys_utsname (Depends-on): Add arg-nonnull.
72637         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
72638         * modules/time (Depends-on): Add arg-nonnull.
72639         (Makefile.am): Insert arg-nonnull.h into time.h.
72640         * modules/unistd (Depends-on): Add arg-nonnull.
72641         (Makefile.am): Insert arg-nonnull.h into unistd.h.
72642         * modules/wchar (Depends-on): Add arg-nonnull.
72643         (Makefile.am): Insert arg-nonnull.h into wchar.h.
72644         * modules/argv-iter (Depends-on): Add arg-nonnull.
72645         * tests/test-canonicalize.c (null_ptr): New function.
72646         (main): Use it.
72647         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
72648         (main): Use it.
72649         * tests/test-memmem.c (null_ptr): New function.
72650         (main): Use it.
72651         Reported by Jim Meyering.
72653 2009-12-10  Bruno Haible  <bruno@clisp.org>
72655         Use spaces for indentation, not tabs.
72656         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
72657         * m4/*.m4: Untabify.
72658         * build-aux/*.h: Untabify.
72659         * tests/**/*.[hc]: Untabify.
72660         * README: New section "Indent with spaces, not TABs", based on
72661         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
72662         * NEWS: Mention the change.
72664 2009-12-10  Bruno Haible  <bruno@clisp.org>
72666         pty test: Fix link error.
72667         * modules/pty-tests (Makefile.am): Add the default LDADD value to
72668         test_pty_LDADD.
72670 2009-12-07  Simon Josefsson  <simon@josefsson.org>
72672         * modules/pty: New file.
72673         * modules/pty-tests: New file.
72674         * m4/pty.m4: New file.
72675         * tests/test-pty.c: New file.
72676         * doc/glibc-headers/pty.texi: Modified.
72677         * doc/glibc-functions/forkpty.texi: Modified.
72678         * doc/glibc-functions/openpty.texi: Modified.
72680 2009-12-10  Bruno Haible  <bruno@clisp.org>
72682         Avoid syntax error in C++ mode.
72683         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
72685 2009-12-10  Bruno Haible  <bruno@clisp.org>
72687         Use sed with option -e.
72688         * gnulib-tool (func_version, func_emit_copyright_notice,
72689         func_emit_initmacro_end, func_import, func_create_testdir): Pass
72690         option -e to sed.
72691         * modules/link-warning (Makefile.am): Likewise.
72693 2009-12-10  Jim Meyering  <meyering@redhat.com>
72695         mgetgroups: do not write bytes beyond end of malloc'd buffer
72696         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
72697         username, we call getgroups with a one-element-shorter buffer,
72698         but still told it the length was original, max_n_groups.
72700 2009-12-09  Eric Blake  <ebb9@byu.net>
72702         cloexec: relax license
72703         * modules/cloexec (Maintainer): Add myself.
72704         (License): Use LGPL, not GPL.
72706         link-warning: optimize generation
72707         * modules/link-warning (Makefile.am): Reduce process usage.
72709 2009-12-09  Bruno Haible  <bruno@clisp.org>
72711         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
72712         workaround was added on 2009-11-17.
72714 2009-12-09  Jim Meyering  <meyering@redhat.com>
72715             Bruno Haible  <bruno@clisp.org>
72717         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
72718         * modules/link-warning (Makefile.am): Make the comment-removing sed
72719         command more robust in the face of bootstrap-prepended comment lines.
72721 2009-12-09  Bruno Haible  <bruno@clisp.org>
72723         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
72724         most one group.
72726 2009-12-09  Simon Josefsson  <simon@josefsson.org>
72727             Bruno Haible  <bruno@clisp.org>
72729         * build-aux/link-warning.h: Add copyright notice.
72730         * modules/link-warning (Makefile.am): Generate link-warning.h from
72731         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
72732         * NEWS: Mention change in link-warning module.
72733         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
72734         * modules/dirent (Makefile.am): Add dependency to dirent.h.
72735         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
72736         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
72737         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
72738         * modules/math (Makefile.am): Add dependency to math.h.
72739         * modules/search (Makefile.am): Add dependency to search.h.
72740         * modules/signal (Makefile.am): Add dependency to signal.h.
72741         * modules/spawn (Makefile.am): Add dependency to spawn.h.
72742         * modules/stdio (Makefile.am): Add dependency to stdio.h.
72743         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
72744         * modules/string (Makefile.am): Add dependency to string.h.
72745         * modules/strings (Makefile.am): Add dependency to strings.h.
72746         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
72747         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
72748         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
72749         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
72750         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
72751         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
72752         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
72753         * modules/unistd (Makefile.am): Add dependency to unistd.h.
72754         * modules/wchar (Makefile.am): Add dependency to wchar.h.
72756 2009-12-09  Bruno Haible  <bruno@clisp.org>
72758         fchdir: Optimize away rpl_fstat when possible.
72759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
72760         REPLACE_OPEN_DIRECTORY.
72761         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
72763 2009-12-09  Bruno Haible  <bruno@clisp.org>
72765         * lib/fchdir.c: Update comment.
72767 2009-12-09  Bruno Haible  <bruno@clisp.org>
72769         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
72771 2009-12-08  Eric Blake  <ebb9@byu.net>
72773         fchdir: avoid memory leak on re-registration.
72774         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
72776 2009-12-08  Jim Meyering  <meyering@redhat.com>
72778         init.sh: avoid Solaris 10 /bin/sh portability problem
72779         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
72780         sourced script:
72781           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
72782           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
72783           bar
72784         tests/init.sh relied on that, accepting a --set-path=DIR argument,
72785         and two tests used that idiom.
72786         * tests/init.sh: Update suggested usage comments.
72787         (path_prepend_): New function, to be used in place
72788         of the --src-path=DIR option.
72789         (setup_): Move PATH-prepending code into path_prepend_.
72790         * tests/test-pread.sh: Adapt to new usage.
72791         * tests/test-xalloc-die.sh: Likewise.
72793 2009-12-08  Simon Josefsson  <simon@josefsson.org>
72795         * doc/gnulib.texi (Glibc pty.h): Add.
72796         * doc/glibc-functions/forkpty.texi: Add.
72797         * doc/glibc-functions/openpty.texi: Add.
72798         Suggested by Bruno Haible.
72800 2009-12-08  Eric Blake  <ebb9@byu.net>
72802         fchdir: fix logic bugs
72803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
72804         * tests/test-fchdir.c (main): Enhance test.
72805         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
72806         is in use.
72808         dup2: fix logic bugs
72809         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
72810         REPLACE_DUP2 to decide when rpl_dup2 is needed.
72811         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
72812         exists.
72813         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
72815 2009-12-07  Eric Blake  <ebb9@byu.net>
72817         unlink: fix m4 detection
72818         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
72820         unistd-safer: add unit test
72821         * modules/unistd-safer-tests: New file.
72822         * tests/test-dup-safer.c: Likewise.
72823         * tests/test-cloexec.c (setmode): Avoid compiler warning.
72824         * tests/test-dup2.c (setmode): Likewise.
72825         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
72827         cloexec: preserve text vs. binary across dup_cloexec
72828         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
72829         mode.
72830         * modules/dup2-tests (Depends-on): Add binary-io.
72831         * modules/cloexec-tests (Depends-on): Likewise.
72832         * tests/test-dup2.c (setmode, is_mode): New helpers.
72833         (main): Add tests that translation mode is preserved.
72834         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
72835         Reported by Bruno Haible.
72837         mgetgroups: reduce duplicate listings
72838         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
72839         resulting array.
72840         * tests/test-chown.h (test_chown): Simplify client.
72841         * tests/test-lchown.h (test_lchown): Likewise.
72843 2009-12-06  Bruno Haible  <bruno@clisp.org>
72845         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
72846         value.
72848 2009-12-06  Bruno Haible  <bruno@clisp.org>
72850         * lib/progname.c: Include stdio.h, stdlib.h.
72851         (set_program_name): Reject a NULL argument.
72853 2009-12-05  Eric Blake  <ebb9@byu.net>
72855         pipe2-safer: new module
72856         * modules/pipe2-safer: New file.
72857         * lib/unistd-safer.h (pipe2_safer): New prototype.
72858         * lib/unistd--.h (pipe2): New wrapper.
72859         * lib/pipe-safer.c (pipe2_safer): New function.
72860         * modules/pipe (Depends-on): Add pipe2-safer.
72861         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
72863         stdlib-safer: preserve cloexec flag for mkostemp[s]
72864         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
72865         fd_safer_flag.
72867         unistd-safer: allow preservation of cloexec status via flag
72868         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
72869         prototypes.
72870         * lib/dup-safer.c (dup_safer_flag): New function.
72871         * lib/fd-safer.c (fd_safer_flag): Likewise.
72872         * modules/cloexec (configure.ac): Set witness.
72874         test-dup2: enhance test
72875         * modules/dup2-tests (Depends-on): Add cloexec.
72876         * tests/test-dup2.c (main): Enhance test.
72878         cloexec: add dup_cloexec
72879         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
72880         header and comments.
72881         * lib/cloexec.c (set_cloexec_flag): Add comments.
72882         (dup_cloexec): New function, with mingw implementation borrowed
72883         from...
72884         * lib/w32spawn.h (dup_noinherit): ...here.
72885         * modules/execute (Depends-on): Add cloexec.
72886         * modules/pipe (Depends-on): Likewise.
72887         * modules/cloexec (Depends-on): Add dup2.
72888         * modules/cloexec-tests (Files): New file.
72889         * tests/test-cloexec.c: Likewise.
72891         test-xalloc-die: fix test for mingw
72892         * modules/xalloc-die-tests (Files): Add tests/init.sh.
72893         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
72894         directory and .exe suffix off argv[0] output.
72896         test-fseeko: fix test for mingw
72897         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
72898         than undefining fseek, so test will pass on mingw.
72900 2009-12-05  Bruno Haible  <bruno@clisp.org>
72902         * lib/progname.h (set_program_name): Clarify specification.
72903         * lib/progname.c (set_program_name): Likewise.
72904         Reported by Jim Meyering.
72906 2009-12-05  Jim Meyering  <meyering@redhat.com>
72908         maint.mk: backslash-escape parens in default regexp
72909         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
72910         backslash-escape the literal parentheses.
72912         maint.mk: news-date-check: use grep -E
72913         * top/maint.mk (today): Define a Make variable, not a...
72914         (news-date-check): ...shell variable.
72915         (news-date-regexp): Use the Make variable.
72916         Use grep's -E option.  Change the failing diagnostic to mention
72917         the variable, $(news-date-regexp).
72919 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
72921         maintainer-makefile: allow customization of NEWS entry format
72922         * top/maint.mk (news-date-regexp): New overridable variable.
72923         (news-date-check): Use it.
72925 2009-12-04  Eric Blake  <ebb9@byu.net>
72927         mgetgroups: add xgetgroups, and avoid ENOSYS failures
72928         * lib/mgetgroups.h (xgetgroups): New prototype.
72929         * lib/mgetgroups.c (xgetgroups): New wrapper.
72930         (mgetgroups): Handle ENOSYS.
72931         * modules/mgetgroups (Depends-on): Add realloc.
72932         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
72934         mgetgroups: avoid argument promotion issues with -1
72935         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
72936         for invalid gid_t.
72937         * tests/test-chown.h (getegid, test_chown): Likewise.
72938         * tests/test-lchown.h (getegid, test_lchown): Likewise.
72940 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
72942         exclude: Fix header file problems.
72943         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
72945 2009-12-01  Jim Meyering  <meyering@redhat.com>
72947         fts: fts_open: do not let an empty string cause immediate failure
72948         This is required in support of GNU rm, for which the command
72949         "rm A '' B" must process and remove both A and B, in spite of
72950         the empty string argument.
72951         * lib/fts.c (fts_open): Do not let the presence of an empty string
72952         cause fts_open to fail immediately.  Most fts-using tools must be
72953         able to process all arguments, in order, and can be expected to
72954         diagnose such arguments themselves.
72956 2009-11-30  Eric Blake  <ebb9@byu.net>
72958         utimens: fix compilation error
72959         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
72960         Declare variable at right scope.
72962 2009-11-29  Jim Meyering  <meyering@redhat.com>
72964         bootstrap: handle perl-5.11's changed --version output
72965         * build-aux/bootstrap (get_version): Handle perl separately,
72966         since perl-5.11's --version output is different.
72968 2009-11-28  Jim Meyering  <meyering@redhat.com>
72970         userspec: depend on the inttostr module, too
72971         * modules/userspec (Depends-on): Add inttostr.
72973         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
72974         * lib/userspec.c (parse_with_separator): Do not accept a user ID
72975         number of MAXUID when it evaluates to (uid_t) -1.
72976         Likewise for group ID.  Reported by Matt McCutchen in
72977         <http://savannah.gnu.org/bugs/?28113>
72979         userspec: reformat to use spaces, not TABs
72980         * lib/userspec.c: Expand TABs to spaces.
72981         Add Emacs' "indent-tabs-mode: nil" hint.
72983 2009-11-27  Eric Blake  <ebb9@byu.net>
72985         getopt-gnu: flush out another BSD bug
72986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
72987         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
72988         flush out BSD bug.
72989         * tests/test-getopt.h (test_getopt): End lists with NULL.
72990         * tests/test-getopt_long.h (test_getopt_long): Likewise.
72991         (test_getopt_long_posix): Enhance test.
72992         * modules/getopt-posix-tests (Depends-on): Add stdbool.
72993         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
72994         getopt-gnu.
72995         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72996         Likewise.
72998 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73000         * modules/idpriv-droptemp-tests (Notice): Fix text.
73002 2009-11-27  Jim Meyering  <meyering@redhat.com>
73004         test-xalloc-die: avoid spurious failure due to libtool argv difference
73005         In a libtool-enabled project, this test would fail due to a difference
73006         in the emitted program name, e.g.,
73007         -test-xalloc-die: memory exhausted
73008         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73009         Use program to avoid that.
73010         * modules/xalloc-die-tests (Depends-on): Add progname.
73011         * tests/test-xalloc-die.c: Include progname.h".
73012         (program_name): Remove decl.
73013         (main): Call set_program_name.
73014         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73016 2009-11-26  Richard Jones  <rjones@redhat.com>
73018         w32sock: leave win32 error in place.
73019         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73021 2009-11-26  Eric Blake  <ebb9@byu.net>
73023         init.sh: suggest to use skip_ and fail_ functions in comments
73024         * tests/init.sh: Add a sentence.
73026 2009-11-25  Bruno Haible  <bruno@clisp.org>
73028         init.sh: add documentation in comments
73029         * tests/init.sh: Add some developer and user documentation.
73031 2009-11-26  Jim Meyering  <meyering@redhat.com>
73033         init.sh: accommodate even those who specify bogus srcdir manually
73034         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73035         configure-time tests to be sanitized, so that there is no need to
73036         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73037         (with no double quotes) suffices.  However, since tests may be
73038         invoked manually, and since you may explicitly set srcdir to the
73039         name of a directory containing spaces, do quote its uses here.
73040         * tests/test-pread.sh: Likewise.
73041         Suggested by Bruno Haible.
73043         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73044         * tests/test-pread.sh: Write no data into the pipe, because
73045         test-pread actually reads none.  This avoids a diagnostic,
73046         "bash: echo: write error: Broken pipe", that arises in the unusual
73047         event something is ignoring SIGPIPE, and might be interpreted
73048         as some sort of failure.  Reported by Bruno Haible.
73050 2009-11-25  Jim Meyering  <meyering@redhat.com>
73052         test-pread: cover failure with ESPIPE and EINVAL
73053         * tests/test-pread.c (main): Test for failure, too.
73054         * tests/test-pread.sh: Invoke with stdin on a pipe.
73055         Suggested by Eric Blake.
73057         pread: improvement and fix
73058         * modules/pread (Depends-on): Depend on lseek, for portability to
73059         e.g., mingw.  Suggested by Eric Blake.
73060         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73062         unistd.in.h: correct declaration of pread
73063         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73064         Reported by Richard W.M. Jones.
73066         test-pread.sh: distribute the test script
73067         * modules/pread-tests (Files): Include test-pread.sh.
73069         test-pread.sh: clean up
73070         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73071         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73072         That is unnecessary, since it's always ".".
73073         Suggestion from Eric Blake.
73075         test-pread.sh: make executable
73076         * tests/test-pread.sh: Set executable bit.
73077         Reported by Eric Blake.
73079         correct typo in test-pread.sh
73080         * tests/test-pread.sh: Add #! line.
73082         test pread
73083         * tests/test-pread.c: New file.
73084         * tests/test-pread.sh: Likewise.
73085         * modules/pread-tests: Likewise.
73087         pread: new module
73088         * modules/pread: New file.
73089         * lib/unistd.in.h (pread): Define/declare.
73090         * lib/pread.c (pread): New file.
73091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73092         * modules/unistd (Makefile.am): Substitute witnesses.
73093         * doc/posix-functions/pread.texi (pread): Update.
73094         * MODULES.html.sh: Add pread.
73096 2009-11-25  Jim Meyering  <meyering@redhat.com>
73098         tests/init.sh: new file to be used via most *.sh tests
73099         * tests/init.sh: New file.
73101 2009-11-25  Eric Blake  <ebb9@byu.net>
73103         utimens: work around older Linux failure with symlinks
73104         * lib/utimens.c (lutimensat_works_really): New variable.
73105         (fdutimens, lutimens): Use it to manage kernels that support
73106         nanosecond times on files, but not on symlinks.
73107         Reported by Ondřej Vašík.
73109         utimes: fix configure grammar
73110         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73112 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73114         regex: Fix fastmap for multibyte character ranges.
73115         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73116         characters when a multibyte character range is included.
73118 2009-11-22  Andy Wingo  <wingo@pobox.com>
73120         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73121         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73123 2009-11-24  Bruno Haible  <bruno@clisp.org>
73125         doc: Most *_l functions exist in MacOS X 10.5.
73126         * doc/posix-functions/duplocale.texi: Update platforms list.
73127         * doc/posix-functions/freelocale.texi: Likewise.
73128         * doc/posix-functions/newlocale.texi: Likewise.
73129         * doc/posix-functions/uselocale.texi: Likewise.
73130         * doc/posix-functions/isalnum_l.texi: Likewise.
73131         * doc/posix-functions/isalpha_l.texi: Likewise.
73132         * doc/posix-functions/isblank_l.texi: Likewise.
73133         * doc/posix-functions/iscntrl_l.texi: Likewise.
73134         * doc/posix-functions/isdigit_l.texi: Likewise.
73135         * doc/posix-functions/isgraph_l.texi: Likewise.
73136         * doc/posix-functions/islower_l.texi: Likewise.
73137         * doc/posix-functions/isprint_l.texi: Likewise.
73138         * doc/posix-functions/ispunct_l.texi: Likewise.
73139         * doc/posix-functions/isspace_l.texi: Likewise.
73140         * doc/posix-functions/isupper_l.texi: Likewise.
73141         * doc/posix-functions/iswalnum_l.texi: Likewise.
73142         * doc/posix-functions/iswalpha_l.texi: Likewise.
73143         * doc/posix-functions/iswblank_l.texi: Likewise.
73144         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73145         * doc/posix-functions/iswctype_l.texi: Likewise.
73146         * doc/posix-functions/iswdigit_l.texi: Likewise.
73147         * doc/posix-functions/iswgraph_l.texi: Likewise.
73148         * doc/posix-functions/iswlower_l.texi: Likewise.
73149         * doc/posix-functions/iswprint_l.texi: Likewise.
73150         * doc/posix-functions/iswpunct_l.texi: Likewise.
73151         * doc/posix-functions/iswspace_l.texi: Likewise.
73152         * doc/posix-functions/iswupper_l.texi: Likewise.
73153         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73154         * doc/posix-functions/isxdigit_l.texi: Likewise.
73155         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73156         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73157         * doc/posix-functions/strcoll_l.texi: Likewise.
73158         * doc/posix-functions/strfmon_l.texi: Likewise.
73159         * doc/posix-functions/strftime_l.texi: Likewise.
73160         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73161         * doc/posix-functions/strxfrm_l.texi: Likewise.
73162         * doc/posix-functions/tolower_l.texi: Likewise.
73163         * doc/posix-functions/toupper_l.texi: Likewise.
73164         * doc/posix-functions/towctrans_l.texi: Likewise.
73165         * doc/posix-functions/towlower_l.texi: Likewise.
73166         * doc/posix-functions/towupper_l.texi: Likewise.
73167         * doc/posix-functions/wcscoll_l.texi: Likewise.
73168         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73169         * doc/posix-functions/wctrans_l.texi: Likewise.
73170         * doc/posix-functions/wctype_l.texi: Likewise.
73171         * doc/glibc-functions/strptime_l.texi: Likewise.
73172         * doc/glibc-functions/strtod_l.texi: Likewise.
73173         * doc/glibc-functions/strtof_l.texi: Likewise.
73174         * doc/glibc-functions/strtol_l.texi: Likewise.
73175         * doc/glibc-functions/strtold_l.texi: Likewise.
73176         * doc/glibc-functions/strtoll_l.texi: Likewise.
73177         * doc/glibc-functions/strtoul_l.texi: Likewise.
73178         * doc/glibc-functions/strtoull_l.texi: Likewise.
73179         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73180         * doc/glibc-functions/wcstod_l.texi: Likewise.
73181         * doc/glibc-functions/wcstof_l.texi: Likewise.
73182         * doc/glibc-functions/wcstol_l.texi: Likewise.
73183         * doc/glibc-functions/wcstold_l.texi: Likewise.
73184         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73185         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73186         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73188 2009-11-24  Bruno Haible  <bruno@clisp.org>
73190         duplocale: Fix logic bug.
73191         * lib/duplocale.c: Don't include <langinfo.h>.
73192         (_NL_LOCALE_NAME): Remove macro.
73193         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73194         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73196 2009-11-23  Jim Meyering  <meyering@redhat.com>
73198         test-update-copyright: don't hard-code /usr/bin/perl
73199         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73200         perl to print the current year.  Gilles Espinasse reported that
73201         the replaced use of perl was hard-coded as /usr/bin/perl.
73203 2009-11-23  Bruno Haible  <bruno@clisp.org>
73205         duplocale: Add support for glibc 2.3.x.
73206         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73208 2009-11-22  Bruno Haible  <bruno@clisp.org>
73210         vasnprintf: Tiny optimization.
73211         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73212         MacOS X.
73214 2009-11-22  Bruno Haible  <bruno@clisp.org>
73216         Tests for module 'duplocale'.
73217         * modules/duplocale-tests: New file.
73218         * tests/test-duplocale.c: New file.
73220         New module 'duplocale'.
73221         * m4/duplocale.m4: New file.
73222         * lib/locale.in.h (duplocale): New declaration.
73223         * lib/duplocale.c: New file.
73224         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73225         gl_LOCALE_H_DEFAULTS): New macros.
73226         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73227         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73228         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73229         REPLACE_DUPLOCALE.
73230         * modules/duplocale: New file.
73231         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73233 2009-11-22  Bruno Haible  <bruno@clisp.org>
73235         * modules/locale-tests (configure.ac): Test for newlocale function.
73236         * tests/test-locale.c: When the system has extended locale functions,
73237         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73239         locale: Make locale_t available when possible.
73240         * lib/locale.in.h: Include <xlocale.h> when it exists.
73241         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73242         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73243         * modules/locale (Depends-on): Add extensions.
73244         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73245         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73247 2009-11-22  Bruno Haible  <bruno@clisp.org>
73249         Add comments.
73250         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73251         invocation.
73252         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73253         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73254         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73256 2009-11-22  Bruno Haible  <bruno@clisp.org>
73258         error: account for the possibility of freopen (stdout).
73259         * lib/error.c: Include <unistd.h>.
73260         (flush_stdout): New function, extracted from error and error_at_line.
73261         Determine stdout's fd dynamically.
73262         (error, error_at_line): Invoke flush_stdout.
73263         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73264         * modules/error (Depends-on): Add unistd.
73266 2009-11-22  Bruno Haible  <bruno@clisp.org>
73268         diffseq: Add comment.
73269         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73271 2009-11-22  Jim Meyering  <meyering@redhat.com>
73273         c-stack: avoid defining an unused static function
73274         * lib/c-stack.c (find_stack_direction): Do not define this function
73275         when it will not be used.
73277         diffseq: avoid spurious gcc warnings
73278         * lib/diffseq.h (IF_LINT2): Define.
73279         (compareseq): Use it to initialize two members of "part".
73280         This avoids two used-uninitialized warnings.
73282 2009-11-21  Jim Meyering  <meyering@redhat.com>
73284         c-stack: avoid "ignoring return value of `write'" warning
73285         * lib/c-stack.c: Include "ignore-value.h".
73286         (die): Explicitly ignore each write return value.
73287         * modules/c-stack (Depends-on): Add ignore-value.
73289 2009-11-21  Bruno Haible  <bruno@clisp.org>
73291         diffseq: reduce scope of variable 'best'.
73292         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73293         variable, earlier used for two different purposes.
73295 2009-11-21  Jim Meyering  <meyering@redhat.com>
73297         diffseq: remove useless assignment to "best"
73298         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73299         assignment.  At that point "best" is already guaranteed to be zero.
73301 2009-11-20  Eric Blake  <ebb9@byu.net>
73303         build: mention ftp redirector in release announcements
73304         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73305         values that used to come from cfg.mk; mention FTP redirect URL.
73306         * build-aux/announce-gen: Mention the mirror list.
73307         Suggested by Karl Berry.
73309         nanosleep: improve port to mingw
73310         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73312         LIB_NANOSLEEP, but only when needed.
73313         * modules/select (Link): Document LIBSOCKET.
73314         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73315         enough.
73317         nanosleep: work around cygwin bug
73318         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73319         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73320         bug.
73321         (getnow): Delete, not needed.
73322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73323         LIB_CLOCK_GETTIME.
73324         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73325         clock-time, gettime.
73326         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73327         bug.
73328         * modules/nanosleep-tests: New test.
73329         * tests/test-nanosleep.c: New file.
73331         sleep: work around cygwin bug
73332         * lib/sleep.c (rpl_sleep): Work around the bug.
73333         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73334         (gl_PREREQ_SLEEP): Delete unused macro.
73335         * modules/sleep (Depends-on): Add verify.
73336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73337         * modules/unistd (Makefile.am): Substitute witness.
73338         * lib/unistd.in.h (sleep): Update prototype.
73339         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73340         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73341         * modules/sleep-tests (Depends-on): Check for alarm.
73343 2009-11-20  Jim Meyering  <meyering@redhat.com>
73345         maint.mk: improve sc_prohibit_magic_number_exit
73346         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73347         so it does not match uses like System.exit(1).
73348         Add comments showing how to correct all offenders.
73350 2009-11-19  Eric Blake  <ebb9@byu.net>
73352         xalloc-die-tests: add missing library
73353         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73355         test-xvasprintf: silence compiler warnings
73356         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73357         empty string from gcc.
73359 2009-11-19  Jim Meyering  <meyering@redhat.com>
73361         xfreopen: new module, from coreutils
73362         * modules/xfreopen: New module.
73363         * lib/xfreopen.c: New file.
73364         * lib/xfreopen.h: New file.
73365         * MODULES.html.sh (File stream based Input/Output"): Add it.
73367 2009-11-19  Eric Blake  <ebb9@byu.net>
73369         manywarnings: depend on warnings
73370         * modules/manywarnings (Depends-on): Add warnings.
73372         build: avoid compiler warnings
73373         * lib/select.c (rpl_select): Delete unused variable.
73374         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73376 2009-11-18  Eric Blake  <ebb9@byu.net>
73378         tests: avoid false negative with --with-packager
73379         * tests/test-version-etc.sh: Discard packager information.
73380         * tests/test-argp-version-etc-1.sh: Likewise.
73381         Reported by Mike Frysinger.
73383         utimens: fix regression on Solaris
73384         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73385         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73386         can only change fd timestamps via futimesat.  Instead, use an
73387         additional witness macro to avoid BSD bug.
73388         Reported by Jim Meyering.
73390 2009-11-17  Eric Blake  <ebb9@byu.net>
73392         usleep: use it to simplify tests
73393         * modules/stat-time-tests (Depends-on): Add usleep.
73394         (configure.ac): Drop usleep check.
73395         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73396         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73397         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73398         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73399         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73400         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73401         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73402         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73403         Likewise.
73404         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73405         * tests/test-lchown.h (nap): Likewise.
73406         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73407         * tests/test-stat-time.c (nap): Likewise.
73408         * tests/test-utimens-common.h (nap): Update comments.
73410         usleep: new module
73411         * modules/usleep: New file.
73412         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73413         * lib/usleep.c (usleep): Likewise.
73414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73415         * modules/unistd (Makefile.am): Substitute witnesses.
73416         * lib/unistd.in.h (usleep): Add declaration.
73417         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73418         * MODULES.html.sh (Date and time): Likewise.
73419         * modules/usleep-tests (Depends-on): New test.
73420         * tests/test-usleep.c: New file.
73422         chown: work around OpenBSD bug
73423         * lib/chown.c (rpl_chown): Work around the bug.
73424         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73425         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73427         * modules/chown (Depends-on): Add stdbool.
73428         * modules/lchown (Depends-on): Likewise.
73429         * doc/posix-functions/chown.texi (chown): Document the bug.
73430         * doc/posix-functions/lchown.texi (lchown): Likewise.
73431         * tests/test-lchown.h (test_chown): Relax test.
73433         mkstemp: avoid conflict with C++ keyword template
73434         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73435         * lib/mkostemp.c (mkostemp): Likewise.
73436         * lib/mkostemps.c (mkostemps): Likewise.
73437         * lib/mkstemp.c (mkstemp): Likewise.
73438         * lib/mkstemps.c (mkstemps): Likewise.
73440         xalloc-die-tests: optimize
73441         * tests/test-xalloc-die.sh: Reduce number of processes.
73443 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73445         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73446         patch from ludo@gnu.org (Ludovic Courtès).
73448 2009-11-17  Jim Meyering  <meyering@redhat.com>
73450         version-etc: use proper license string
73451         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73452         * modules/version-etc-fsf: Likewise.
73454 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73456         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73457         printed to stdout.  Deal with EOL differences.
73459 2009-11-17  Eric Blake  <ebb9@byu.net>
73461         unsetenv: work around Solaris bug
73462         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73463         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73464         Reported by Jim Meyering.
73466         vasnprintf: avoid compiler warnings
73467         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73468         variables.
73469         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73471 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73473         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73474         settings since xalloc-die is no longer the self test,
73475         xalloc-die.sh is.
73477 2009-11-17  Jim Meyering  <meyering@redhat.com>
73479         test-xalloc-die.sh: make the code agree with the commit log
73480         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73481         at the end, just in case you happen to have a test-xalloc-die
73482         program in some other PATH directory.
73484         test-xalloc-die.sh: fix a portability bug
73485         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73486         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73487         Otherwise, argv[0] (as often seen in diagnostics) would be too
73488         system-dependent, sometimes with, and sometimes without the leading "./".
73490         version-etc-fsf: relax license to LGPLv3+
73491         * modules/version-etc-fsf (License): Relax license.
73493 2009-11-16  Eric Blake  <ebb9@byu.net>
73495         xalloc-die-tests: avoid printing null pointer
73496         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73497         shell script.
73498         * tests/test-xalloc-die.c (program_name): Declare.
73499         * tests/test-xalloc-die.sh (tmpfiles): New file.
73501         setenv, unsetenv: work around various bugs
73502         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73503         (setenv) [HAVE_SETENV]: Work around bugs.
73504         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73505         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73506         for bugs.
73507         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73508         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73510         * modules/stdlib (Makefile.am): Update substitutions.
73511         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73512         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73513         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73514         * modules/setenv-tests: New test.
73515         * modules/unsetenv-tests: Likewise.
73516         * tests/test-setenv.c: New file.
73517         * tests/test-unsetenv.c: Likewise.
73519 2009-11-16  Jim Meyering  <meyering@redhat.com>
73521         version-etc: relax license to LGPLv3+
73522         * modules/version-etc (License): Relax license.
73524         better AC_REQUIRE expanded-before-required-warning avoidance
73525         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73526         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73527         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73528         which is no longer needed.
73530 2009-11-16  Eric Blake  <ebb9@byu.net>
73532         test-freading: clean up temporary file
73533         * tests/test-freading.c (main): Remove file on success, and use
73534         ASSERT more liberally.
73535         Reported by Jim Meyering.
73537 2009-11-16  Jim Meyering  <meyering@redhat.com>
73539         avoid new AC_REQUIRE expanded-before-required warnings
73540         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73541         merely using it.
73542         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73543         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73545 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73547         * tests/test-xalloc-die.c: New file.
73548         * modules/xalloc-die-tests: New file.
73549         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73550         XFAIL_TESTS so it can be appended by modules.
73552 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73554         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73555         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73557 2009-11-14  Eric Blake  <ebb9@byu.net>
73559         fnmatch: avoid compiler warning
73560         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73561         to silence compiler warning about mismatch signedness in ?:.
73562         Reported by Robert Millan.
73564         intprops: add double-inclusion guard
73565         * lib/intprops.h: Allow idempotent includes.
73566         Suggested by Bruce Korb.
73568         openat: detect Solaris fchownat bug
73569         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73570         penalizing glibc chownat when only lchownat is broken.
73571         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73572         trailing slash bugs.
73573         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73574         * modules/openat-tests (Files): Include more files.
73575         (Depends-on): Add mgetgroups, sleep, stat-time.
73576         (configure.ac): Add additional checks.
73577         (Makefile.am): Build new test.
73578         * tests/test-fchownat.c: New file.
73580         lchown: detect Solaris and FreeBSD bug
73581         * lib/lchown.c (rpl_lchown): Work around bug.
73582         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73584         * modules/unistd (Makefile.am): Populate it.
73585         * lib/unistd.in.h (lchown): Update declaration.
73586         * doc/posix-functions/lchown.texi (lchown): Document the bug.
73587         * modules/lchown-tests: New file.
73588         * tests/test-lchown.h (test_lchown): Likewise.
73589         * tests/test-lchown.c (main): Likewise.
73591         chown: detect Solaris and FreeBSD bug
73592         * lib/chown.c (rpl_chown): Work around bug.
73593         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
73594         (gl_PREREQ_CHOWN): Delete.
73595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73596         * modules/unistd (Makefile.am): Populate it.
73597         * lib/unistd.in.h (chown): Update declaration.
73598         * lib/lchown.c (chown): Update client.
73599         * modules/lchown (Depends-on): Add lstat.
73600         * doc/posix-functions/chown.texi (chown): Document the bug.
73601         * doc/posix-functions/getgroups.texi (getgroups): Document
73602         getgroups pitfall.
73603         * modules/chown-tests: New file.
73604         * tests/test-chown.h (test_chown): Likewise.
73605         * tests/test-chown.c (main): Likewise.
73607 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
73609         gnulib-tool: correctly detect absence of m4 directories
73610         * gnulib-tool: Avoid extra newline on data passed to wc -l.
73612 2009-11-14  Jim Meyering  <meyering@redhat.com>
73614         maint.mk: Prohibit inclusion of "xalloc.h" without use.
73615         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73617 2009-11-14  John W. Eaton  <jwe@gnu.org>
73619         strftime.h: wrap function declaration in extern "C" block
73620         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
73622 2009-11-13  Eric Blake  <ebb9@byu.net>
73624         getgroups: avoid compiler warning
73625         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
73627         getgroups: work around FreeBSD bug
73628         * lib/getgroups.c (rpl_getgroups): Work around the bug.
73629         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
73630         * doc/posix-functions/getgroups.texi (getgroups): Document it.
73631         * tests/test-getgroups.c (main): Fix buffer overrun.
73633         getgroups: avoid compilation failure
73634         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
73635         * modules/getgroups (Depends-on): Add stdint.
73637 2009-11-13  Jim Meyering  <meyering@redhat.com>
73639         test-getgroups: avoid compilation failure
73640         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
73642 2009-11-13  Eric Blake  <ebb9@byu.net>
73644         mgetgroups: new module, taken from coreutils
73645         * modules/mgetgroups: New file.
73646         * lib/mgetgroups.h: Likewise.
73647         * lib/mgetgroups.c (mgetgroups): Likewise.
73648         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
73649         * MODULES.html.sh (Users and groups): Mention it.
73651         getgroups: don't expose GETGROUPS_T to user
73652         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
73653         an element at a time if GETGROUPS_T is wrong size.
73654         * lib/getugroups.h (getugroups): Change signature.
73655         * lib/unistd.in.h (getgroups): Likewise.
73656         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
73657         signature needs fixing.
73658         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
73659         AC_TYPE_GETGROUPS.
73660         * modules/group-member (Depends-on): Add getgroups.
73661         * lib/group-member.c (group_info, get_group_info): Use gid_t.
73662         (group_member): Rely on getgroups replacement.
73663         * lib/getugroups.c (getugroups): Use gid_t.
73664         * tests/test-getgroups.c (main): Likewise.
73665         * NEWS: Mention the signature change.
73666         * doc/posix-functions/getgroups.texi (getgroups): Mention the
73667         problem with signature.
73668         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
73669         GETGROUPS_T is still useful for setgroups.
73671         getgroups, getugroups: provide stubs for mingw
73672         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
73673         * lib/getugroups.c (getugroups): Likewise.
73674         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
73675         function.  Modernize replacement scheme.
73676         (gl_PREREQ_GETGROUPS): Delete.
73677         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
73678         * modules/getgroups (configure.ac): Declare witness.
73679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73680         * modules/unistd (Depends-on): Substitute witness.
73681         * lib/unistd.in.h (getgroups): Declare replacement.
73683         getgroups: avoid calling exit
73684         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
73685         drop xalloc.
73686         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
73687         dependencies.
73688         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
73689         exiting, in the rare case of malloc failure.
73691         getgroups: fix logic error
73692         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
73693         has more than 20 groups.
73694         * modules/getgroups-tests: New test.
73695         * tests/test-getgroups.c: New file.
73697 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73699         * tests/test-base64.c: Improve.
73701 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73703         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
73704         Blake <ebb9@byu.net>.
73706 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73708         * tests/test-xvasprintf.c: Add %s%s related checks.
73710 2009-11-12  Eric Blake  <ebb9@byu.net>
73712         version-etc: match standards.texi style
73713         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
73714         and use <> only for URLs.
73716 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
73718         fts: do not fail on a submount during traversal
73719         * lib/fts.c (fts_build): Read the stat info again after opening
73720         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
73721         Original report at http://bugzilla.redhat.com/501848.
73723 2009-11-12  Jim Meyering  <meyering@redhat.com>
73725         bootstrap: sync from coreutils
73726         * build-aux/bootstrap (bootstrap_epilogue): New function.
73727         Use git_modules_config in one more place.  This make bootstrap's
73728         --gnulib-srcdir option more useful for testing.
73730         bootstrap: generalize autoheader check
73731         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
73732         AC_CONFIG_HEADERS.
73734 2009-11-11  Eric Blake  <ebb9@byu.net>
73736         mkfifoat: use new modules for Solaris and BSD bugs
73737         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
73738         * lib/mkfifoat.c (mknodat): Split...
73739         * lib/mknodat.c (mknodat): ...into new file.
73740         * modules/mkfifoat (Files): Ship new file.
73741         (Depends-on): Add mkfifo, mknod.
73742         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
73743         (Depends-on): Add symlink.
73744         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
73745         redundant with test_mkfifo.h.
73746         (do_mkfifoat, do_mknodat): New helpers.
73748         mknod: new module
73749         * modules/mknod: New file.
73750         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
73751         * lib/mknod.c (mknod): Likewise.
73752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73753         defaults.
73754         * modules/sys_stat (Makefile.am): Substitute them.
73755         * lib/sys_stat.in.h (mknod): Declare replacement.
73756         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73757         Document it.
73758         * doc/posix-functions/mknod.texi (mknod): Likewise.
73759         * modules/mknod-tests: New test.
73760         * tests/test-mknod.c: Likewise.
73762         mkfifo: new module
73763         * modules/mkfifo: New file.
73764         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
73765         * lib/mkfifo.c (mkfifo): Likewise.
73766         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73767         defaults.
73768         * modules/sys_stat (Makefile.am): Substitute them.
73769         * lib/sys_stat.in.h (mkfifo): Declare replacement.
73770         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73771         Document it.
73772         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
73773         * modules/mkfifo-tests: New test.
73774         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
73775         from test-mkfifoat.c.
73776         * tests/test-mkfifo.c: New file.
73778         readlink: detect FreeBSD bug
73779         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
73780         slash on symlink.
73781         * doc/posix-functions/readlink.texi (readlink): Document the bug.
73782         * tests/test-readlink.h (test_readlink): Enhance test.
73784         symlink: detect FreeBSD bug
73785         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
73786         slash on symlink.
73787         * doc/posix-functions/symlink.texi (symlink): Document the bug.
73788         * tests/test-symlink.h (test_symlink): Enhance test.
73790 2009-11-10  Eric Blake  <ebb9@byu.net>
73792         link: detect FreeBSD bug
73793         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
73794         symlink.
73795         * doc/posix-functions/link.texi (link): Document the bug.
73796         * tests/test-link.h (test_link): Enhance test.
73797         * tests/test-linkat.c (main): Update caller.
73799         unlink, remove: detect FreeBSD bug
73800         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
73801         slash on symlink.
73802         * doc/posix-functions/unlink.texi (unlink): Document the bug.
73803         * doc/posix-functions/remove.texi (remove): Likewise.
73804         * tests/test-unlink.h (test_unlink): Enhance test.
73805         * tests/test-remove.c (main): Likewise.
73807 2009-11-09  Eric Blake  <ebb9@byu.net>
73809         rename: detect FreeBSD bug
73810         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
73811         slash on symlink.
73812         * modules/renameat-tests (Depends-on): Add filenamecat.
73813         * tests/test-rename.h (test_rename): Allow one more errno.
73814         * tests/test-renameat.c (main): Likewise.
73815         * doc/posix-functions/rename.texi (rename): Document the bug.
73817         open: detect FreeBSD bug
73818         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
73819         symlink.
73820         * doc/posix-functions/open.texi (open): Document the bug.
73821         * doc/posix-functions/utimes.texi (utimes): Likewise.
73822         * tests/test-open.h (test_open): Add parameters, and test symlink
73823         handling.
73824         * tests/test-open.c (main): Adjust caller.
73825         * tests/test-fcntl-safer.c (main): Likewise.
73826         * modules/open-tests (Depends-on): Add stdbool, symlink.
73827         * modules/fcntl-safer-tests (Depends-on): Likewise.
73828         * tests/test-openat.c (main): Add test-open tests.
73830         stat: detect FreeBSD bug
73831         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
73832         symlink.
73833         * doc/posix-functions/stat.texi (stat): Document the bug.
73834         * tests/test-stat.h (test_stat_func): Add argument.
73835         * tests/test-stat.c (main): Adjust caller.
73836         * tests/test-fstatat.c (main): Likewise.
73837         * modules/stat-tests (Depends-on): Add stdbool, symlink.
73838         Reported by Jim Meyering.
73840 2009-11-09  James Youngman  <jay@gnu.org>
73842         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
73843         * lib/strftime.c: Correct placement of #include "ignore-value.h".
73845 2009-11-08  Jim Meyering  <meyering@redhat.com>
73847         utimens: remove invalid futimesat call
73848         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
73849         It used the file descriptor of the target file as the DIR_FD
73850         parameter and NULL as the file name.  That caused failure with
73851         errno == EFAULT on FreeBSD-8.0-rc2
73853 2009-11-07  Eric Blake  <ebb9@byu.net>
73855         fflush, freadseek: use fseeko, not fseek
73856         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
73857         (clear_ungetc_buffer): Avoid potential problems on large files.
73858         * lib/freadseek.c (freadseek): Likewise.
73859         * modules/freadseek (Depends-on): Add fseeko.
73860         * modules/fseek (configure.ac): Set a witness.
73861         * tests/test-fflush.c (main): Use fseeko.
73862         * tests/test-fpurge.c (fseek): Disable link warning.
73863         * tests/test-freadable.c (fseek): Likewise.
73864         * tests/test-freading.c (fseek): Likewise.
73865         * tests/test-fseeko.c (fseek): Likewise.
73866         * tests/test-ftell.c (fseek): Likewise.
73867         * tests/test-ftello.c (fseek): Likewise.
73868         * tests/test-fwritable.c (fseek): Likewise.
73869         * tests/test-fwriting.c (fseek): Likewise.
73871 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73873         * modules/memchr (Depends-on): Drop getpagesize dependency.
73875 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73877         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
73878         Reported by Ludovic Courtès.
73879         * build-aux/pmccabe2html: Improve example usage.
73880         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
73882 2009-11-06  Jim Meyering  <meyering@redhat.com>
73884         do-release-commit-and-tag: New module.
73885         Automate the release-commit and tag process.
73886         * build-aux/do-release-commit-and-tag: New script, from coreutils.
73887         * modules/do-release-commit-and-tag: New file.
73888         * MODULES.html.sh (Support for maintaining and releasing): Add it.
73890 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73892         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
73893         because test-select.c uses inet_pton.
73895 2009-11-06  Simon Josefsson  <simon@josefsson.org>
73897         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
73898         GETADDRINFO_LIB.  Bump serial number.
73899         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
73900         Suggested by Eric Blake <ebb9@byu.net>.
73902 2009-11-05  Eric Blake  <ebb9@byu.net>
73904         strtod: detect darwin bug
73905         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
73906         Reported by Leo Davis.
73908         freopen-safer: new module
73909         * modules/freopen-safer: New module.
73910         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
73911         * lib/freopen-safer.c (freopen_safer): New file.
73912         * lib/stdio-safer.h (freopen_safer): New declaration.
73913         * lib/stdio--.h (freopen): New override.
73914         * MODULES.html.sh (File stream based Input/Output): Mention it.
73915         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
73916         freopen-safer module.
73917         * doc/posix-functions/stderr.texi (stderr): Likewise.
73918         * doc/posix-functions/stdin.texi (stdin): Likewise.
73919         * doc/posix-functions/stdout.texi (stdout): Likewise.
73920         * modules/freopen-safer-tests: New test.
73921         * tests/test-reopen-safer.c: New file.
73923 2009-11-05  Jim Meyering  <meyering@redhat.com>
73925         maint.mk: Prohibit inclusion of "close-stream.h" without use.
73926         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73928 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73930         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
73932 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73934         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
73936 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73938         Fix link error.
73939         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
73940         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73942 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73944         * tests/test-func.c: Also test value of __func__.
73946 2009-11-05  Simon Josefsson  <simon@josefsson.org>
73948         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
73949         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
73951 2009-11-05  Bruno Haible  <bruno@clisp.org>
73953         Fix link error.
73954         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
73955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73956         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
73958 2009-11-05  Bruno Haible  <bruno@clisp.org>
73960         Tests for module 'inet_pton'.
73961         * modules/inet_pton-tests: New file.
73962         * tests/test-inet_pton.c: New file.
73964 2009-11-05  Bruno Haible  <bruno@clisp.org>
73966         Tests for module 'inet_ntop'.
73967         * modules/inet_ntop-tests: New file.
73968         * tests/test-inet_ntop.c: New file.
73970 2009-11-04  Eric Blake  <ebb9@byu.net>
73972         stdlib-safer: wrap all mkstemp variants
73973         * modules/mkostemp (configure.ac): Set witness.
73974         * modules/mkostemps (configure.ac): Likewise.
73975         * modules/mkstemps (configure.ac): Likewise.
73976         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
73977         (mkstemps_safer): Wrap more functions.
73978         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
73979         wrapping.
73980         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
73981         (mkstemps_safer): Implement the wrappers.
73983         mkstemps, mkostemps: new modules
73984         * modules/mkostemps: New module.
73985         * modules/mkstemps: Likewise.
73986         * lib/mkostemps.c (mkostemps): New file.
73987         * lib/mkstemps.c (mkstemps): Likewise.
73988         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
73989         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
73990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
73991         * modules/stdlib (Makefile.am): Substitute them.
73992         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
73993         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
73994         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
73995         * doc/gnulib.texi (Glibc stdlib.h): Include them.
73996         * MODULES.html.sh (File system functions): Mention them.
73998         tempname: resync from glibc
73999         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74000         same values for __GT_FILE as glibc.  Abort even when assertions
74001         are disabled.
74002         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74003         match its value otherwise.  Allow idempotent inclusion.
74004         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74005         * lib/mkostemp.c (mkostemp): Likewise.
74006         * lib/mkstemp.c (mkstemp): Likewise.
74007         * lib/tmpfile.c (tmpfile): Likewise.
74008         * NEWS: Document this.
74010         utimens: fix use of futimens on older Linux
74011         * lib/utimens.c (fdutimens): Use updated, rather than original,
74012         timespec to avoid bug in older Linux kernel.
74013         Reported by Simon Josefsson.
74015 2009-11-04  Bruno Haible  <bruno@clisp.org>
74017         Make num_processors more flexible and consistent.
74018         * lib/nproc.h (enum nproc_query): New type.
74019         (num_processors): Add a 'query' argument.
74020         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74021         (num_processors): Add a 'query' argument. Test the value of the
74022         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74023         mingw, count the number of CPUs available for the current process.
74024         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74025         Check for sched_getaffinity and sched_getaffinity_np.
74026         * modules/nproc (Depends-on): Add c-ctype, extensions.
74027         * NEWS: Mention the change.
74029 2009-11-03  Bruno Haible  <bruno@clisp.org>
74031         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74033 2009-11-03  Jim Meyering  <meyering@redhat.com>
74035         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74036         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74037         if it is defined.
74039 2009-11-02  Eric Blake  <ebb9@byu.net>
74041         mktime, timegm: share common declaration
74042         * lib/mktime-internal.h: New file.
74043         * lib/mktime.c: Use it rather than open-coding a declaration.
74044         * lib/timegm.c: Likewise.
74045         * modules/mktime (Files): Ship it.
74046         * modules/timegm (Files): Likewise.
74047         Suggested by Bruno Haible.
74049         test-update-copyright: update test to match script changes
74050         * tests/test-update-copyright.sh: Avoid hard-coding perl
74051         location.  Don't update *.bak created by earlier runs.
74053 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74054             Simon Josefsson  <simon@josefsson.org>
74055             Bruno Haible  <bruno@clisp.org>
74057         Fix link error on Solaris 8.
74058         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74059         also in libnsl. Define also INET_PTON_LIB.
74060         * modules/inet_pton (Link): New section.
74062 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74063             Bruno Haible  <bruno@clisp.org>
74065         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74066         * modules/inet_ntop (Link): New section.
74067         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74069 2009-11-02  Eric Blake  <ebb9@byu.net>
74071         maint: avoid compiler warnings in m4 macros
74072         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74073         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74075 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74077         * m4/pmccabe2html.m4: Remove file.
74078         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74079         function.  Change maintainer.
74080         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74081         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74082         Courtès).
74084 2009-10-31  Eric Blake  <ebb9@byu.net>
74086         fseeko: fix m4 regression
74087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74088         regression from 2009-10-27.
74089         Reported by Ralf Wildenhues.
74091 2009-10-31  Jim Meyering  <meyering@redhat.com>
74093         inttostr: aesthetics and improved (compile-time) safety
74094         Define inttype_is_signed rather than inttype_is_unsigned,
74095         since the sole use is via "#if inttype_is_signed".
74096         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74097         inttype_is_unsigned.
74098         * lib/offtostr.c (inttype_is_signed): Likewise.
74099         * lib/uinttostr.c (inttype_is_signed): Likewise.
74100         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74101         * lib/inttostr.c (inttostr): Use verify to cross-check the
74102         inttype_is_signed value and the signedness of the actual type.
74103         * modules/inttostr (Depends-on): Add verify.
74105 2009-10-30  Eric Blake  <ebb9@byu.net>
74107         build: avoid compiler warnings
74108         * lib/fchmodat.c (lchmod): Mark unused variables.
74109         * lib/getopt.c (_getopt_initialize): Likewise.
74110         * lib/mktime.c (__mktime_internal): Provide prototype.
74111         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74112         older gcc that do not understand #pragma GCC diagnostic.
74113         * lib/uinttostr.c (inttype_is_unsigned): Define.
74114         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74116 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74118         stat: fix compilation on AIX
74119         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74120         only see struct stat64.
74122 2009-10-30  Eric Blake  <ebb9@byu.net>
74124         exclude: make more robust
74125         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74126         rather than masking a coding bug.
74127         Suggested by Bruno Haible.
74129 2009-10-30  Jim Meyering  <meyering@redhat.com>
74131         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74132         Rather than putting #!/usr/bin/perl on the first line,
74133         start with a variant of what's recommended by "man perlrun" that
74134         invokes the first "perl" program from your shell's search path.
74135         * build-aux/gitlog-to-changelog: Replace #!... as above.
74136         Add a "Local Variables" perl mode setting.
74137         Prompted by a patch from Ludovic Courtès.
74138         Improved by Eric Blake.
74139         * build-aux/useless-if-before-free: Likewise.
74140         * build-aux/announce-gen: Likewise.
74141         * build-aux/update-copyright: Likewise.
74143 2009-10-29  Eric Blake  <ebb9@byu.net>
74145         filenamecat-lgpl: adjust clients
74146         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74147         filenamecat.
74148         * modules/renameat (Depends-on): Likewise.
74150         filenamecat: split into filenamecat-lgpl
74151         * modules/filenamecat-lgpl: New module.
74152         * modules/filenamecat (Files): Move library-safe files into
74153         filenamecat-lgpl.
74154         (Depends-on): Add filenamecat-lgpl.
74155         (configure.ac): Declare witness.
74156         * lib/filenamecat.h (file_name_concat): Only declare when using
74157         GPL module.
74158         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74159         Move...
74160         * lib/filenamecat-lgpl.c: ...into new file.
74161         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74162         (gl_FILE_NAME_CONCAT): Use it.
74163         * MODULES.html.sh (File system functions): Mention new module.
74165         argp: avoid memory leak
74166         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74167         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74168         base_name, since the latter malloc()s and can call exit().
74169         Leak introduced 2006-07-03.
74171         dirname-lgpl: adjust clients that don't need full dirname
74172         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74173         * modules/filenamecat (Depends-on): Likewise.
74174         * modules/linkat (Depends-on): Likewise.
74175         * modules/mkancesdirs (Depends-on): Likewise.
74176         * modules/mkdir (Depends-on): Likewise.
74177         * modules/openat (Depends-on): Likewise.
74178         * modules/savewd (Depends-on): Likewise.
74179         * modules/rename (Depends-on): Likewise.
74180         (License): Relax license.
74181         * modules/mkdir-tests (Depends-on): Drop progname.
74182         (Makefile.am): Delete unneeded LDADD.
74183         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74185         dirname: split into dirname-lgpl
74186         * modules/dirname-lgpl: New module.
74187         * modules/dirname (Files): Move library-safe files into
74188         dirname-lgpl.
74189         (Depends-on): Add dirname-lgpl.
74190         (configure.ac): Declare witness.
74191         * modules/double-slash-root (License): Relax license.
74192         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74193         module.
74194         * lib/dirname.c (dir_len, mdir_name): Move...
74195         * lib/dirname-lgpl.c: ...into new file.
74196         * lib/basename.c (last_component, base_len): Move...
74197         * lib/basename-lgpl.c: ...into new file.
74198         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74199         (gl_DIRNAME): Use it.
74200         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74201         Mention new module.
74202         * modules/dirname-tests (Depends-on): Add progname.
74203         * tests/test-dirname.c (program_name): Delete.
74205         mkdir: make safe for libraries
74206         * modules/mkdir (Depends-on): Drop xalloc.
74207         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74208         exit.
74210         tests: avoid some compiler warnings
74211         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74212         literals.
74213         * tests/test-memchr.c (main): Avoid type mismatch.
74214         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74215         * tests/test-base64.c (main): Likewise.
74216         * tests/test-getdelim.c (main): Likewise.
74217         * tests/test-gethostname.c (main): Likewise.
74218         * tests/test-getline.c (main): Likewise.
74219         * tests/test-netinet_in.c (main): Likewise.
74220         * tests/test-select.c (open_server_socket, main): Likewise.
74221         * tests/test-select-stdin.c (main): Likewise.
74222         * tests/test-sockets.c (main): Likewise.
74223         * tests/test-strsignal.c (main): Likewise.
74224         * tests/test-sys_select.c (main): Likewise.
74225         * tests/test-sys_socket.c (main): Likewise.
74226         * tests/test-u64.c (main): Likewise.
74227         * tests/test-xfprintf-posix.c (main): Likewise.
74228         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74230         sockets: avoid compiler warning
74231         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74233         maint: detect usage(1) and other suspicious exits
74234         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74236 2009-10-29  Jim Meyering  <meyering@redhat.com>
74238         timespec: long-to-int truncation could make timespec_cmp malfunction
74239         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74240         a multiple of 2^32 nanoseconds as no difference.
74242 2009-10-28  Jim Meyering  <meyering@redhat.com>
74244         fprintftime: wrap macro code argument in "do {...} while(0)"
74245         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74246         cpy macro must be a statement that can be followed by a semicolon.
74247         Now that the else clause contains a comment and is hence longer
74248         than one line, I require curly braces.  That in turn requires
74249         that we wrap this code block in the standard do...while(0).
74251         fprintftime: remove stray semicolon from previous change
74252         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74254         fprintftime: avoid a warning about ignored fwrite return value
74255         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74256         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74257         that is unsafe.
74258         * modules/fprintftime (Depends-on): Add ignore-value.
74260         exclude: avoid an unwarranted warning
74261         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74263 2009-10-27  Eric Blake  <ebb9@byu.net>
74265         fseek: avoid compilation failure when fflush is replaced
74266         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74267         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74268         module is in use.
74269         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74270         module is not in use; since REPLACE_FSEEK worked otherwise.
74271         (GNULIB_FTELLO): Likewise for ftell.
74272         Reported by Ian Beckwith and others.
74274 2009-10-27  Bruno Haible  <bruno@clisp.org>
74276         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74277         Reported by Jim Meyering.
74279 2009-10-27  Jim Meyering  <jim@meyering.net>
74280             Bruno Haible  <bruno@clisp.org>
74282         Avoid warning despite dropping the return value of fwrite.
74283         * lib/unicodeio.c: Include ignore-value.h.
74284         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74285         * modules/unicodeio (Depends-on): Add ignore-value.
74287 2009-10-26  Eric Blake  <ebb9@byu.net>
74289         areadlinkat: fix fallback path
74290         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74291         pointer and zero.
74293 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74295         Use a better IO block size for modern systems
74296         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74297         * lib/md2.c: Likewise.
74298         * lib/md4.c: Likewise.
74299         * lib/md5.c: Likewise.
74300         * lib/sha1.c: Likewise.
74301         * lib/sha256.c: Likewise.
74302         * lib/sha512.c: Likewise.
74304 2009-10-22  Eric Blake  <ebb9@byu.net>
74306         tests: avoid several compiler warnings
74307         * tests/test-getcwd.c (main): Avoid buffer underflow.
74308         * tests/test-getdate.c (main): String literals are not safe with
74309         putenv, so use setenv.  Declare unused argument.
74310         * modules/getdate-tests (Depends-on): Add setenv.
74311         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74312         problems with string literals in char *.
74313         * tests/test-hash.c (main): Avoid shadowing declaration.
74314         (insert_new): Treat string literals as char const *.
74315         * tests/test-getopt.h (test_getopt): Likewise.
74316         (getopt_loop): Alter types to minimize casting elsewhere.
74317         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74318         (test_getopt_long_posix): Likewise.
74319         (do_getopt_long): Add wrapper to minimize casting.
74320         * tests/test-atexit.c (clear_temp_file): Use void.
74321         * tests/test-areadlink-with-size.c (main): Declare unused
74322         arguments.
74323         * tests/test-areadlink.c (main): Likewise.
74324         * tests/test-areadlinkat-with-size.c (main): Likewise.
74325         * tests/test-areadlinkat.c (main): Likewise.
74326         * tests/test-canonicalize-lgpl.c (main): Likewise.
74327         * tests/test-canonicalize.c (main): Likewise.
74328         * tests/test-dirent-safer.c (main): Likewise.
74329         * tests/test-dirname.c (main): Likewise.
74330         * tests/test-dup2.c (main): Likewise.
74331         * tests/test-fchdir.c (main): Likewise.
74332         * tests/test-fcntl-h.c (main): Likewise.
74333         * tests/test-fcntl-safer.c (main): Likewise.
74334         * tests/test-fdopendir.c (main): Likewise.
74335         * tests/test-fdutimensat.c (main): Likewise.
74336         * tests/test-fflush.c (main): Likewise.
74337         * tests/test-filenamecat.c (main): Likewise.
74338         * tests/test-filevercmp.c (main): Likewise.
74339         * tests/test-fopen-safer.c (main): Likewise.
74340         * tests/test-fopen.c (main): Likewise.
74341         * tests/test-fpending.c (main): Likewise.
74342         * tests/test-fpurge.c (main): Likewise.
74343         * tests/test-freading.c (main): Likewise.
74344         * tests/test-fstatat.c (main): Likewise.
74345         * tests/test-fsync.c (main): Likewise.
74346         * tests/test-futimens.c (main): Likewise.
74347         * tests/test-getndelim2.c (main): Likewise.
74348         * tests/test-gettimeofday.c (main): Likewise.
74349         * tests/test-getopt.c (main): Likewise.
74350         * tests/test-i-ring.c (main): Likewise.
74351         * tests/test-inttypes.c (main): Likewise.
74352         * tests/test-link.c (main): Likewise.
74353         * tests/test-lstat.c (main): Likewise.
74354         * tests/test-math.c (main): Likewise.
74355         * tests/test-md5.c (main): Likewise.
74356         * tests/test-memchr2.c (main): Likewise.
74357         * tests/test-memrchr.c (main): Likewise.
74358         * tests/test-mkdir.c (main): Likewise.
74359         * tests/test-mkdirat.c (main): Likewise.
74360         * tests/test-mkfifoat.c (main): Likewise.
74361         * tests/test-open.c (main): Likewise.
74362         * tests/test-openat-safer.c (main): Likewise.
74363         * tests/test-openat.c (main): Likewise.
74364         * tests/test-quotearg.c (main): Likewise.
74365         * tests/test-rawmemchr.c (main): Likewise.
74366         * tests/test-readlink.c (main): Likewise.
74367         * tests/test-remove.c (main): Likewise.
74368         * tests/test-rename.c (main): Likewise.
74369         * tests/test-renameat.c (main): Likewise.
74370         * tests/test-rmdir.c (main): Likewise.
74371         * tests/test-sha1.c (main): Likewise.
74372         * tests/test-signal.c (main): Likewise.
74373         * tests/test-sigaction.c (main): Likewise.
74374         * tests/test-stat.c (main): Likewise.
74375         * tests/test-stat-time.c (main): Likewise.
74376         * tests/test-stddef.c (main): Likewise.
74377         * tests/test-stdint.c (main): Likewise.
74378         * tests/test-stdio.c (main): Likewise.
74379         * tests/test-stdlib.c (main): Likewise.
74380         * tests/test-strchrnul.c (main): Likewise.
74381         * tests/test-strerror.c (main): Likewise.
74382         * tests/test-string.c (main): Likewise.
74383         * tests/test-strtod.c (main): Likewise.
74384         * tests/test-strverscmp.c (main): Likewise.
74385         * tests/test-symlink.c (main): Likewise.
74386         * tests/test-symlinkat.c (main): Likewise.
74387         * tests/test-sys_stat.c (main): Likewise.
74388         * tests/test-sys_time.c (main): Likewise.
74389         * tests/test-time.c (main): Likewise.
74390         * tests/test-unistd.c (main): Likewise.
74391         * tests/test-unlink.c (main): Likewise.
74392         * tests/test-unlinkat.c (main): Likewise.
74393         * tests/test-utimens.c (main): Likewise.
74394         * tests/test-utimensat.c (main): Likewise.
74395         * tests/test-version-etc.c (main): Likewise.
74396         * tests/test-wchar.c (main): Likewise.
74397         * tests/test-wctype.c (main): Likewise.
74398         * tests/test-xprintf-posix.c (main): Likewise.
74399         * tests/test-posixtm.c (main): Likewise.
74400         (STREQ): Delete unused macro.
74401         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74402         shadowed variables.
74403         * tests/test-memchr.c (main): Likewise.
74405 2009-10-21  Eric Blake  <ebb9@byu.net>
74407         areadlinkat: avoid failure on older glibc
74408         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74409         rather than mis-comparing 0 against FUNC_RESULT of char*.
74411 2009-10-21  Bruno Haible  <bruno@clisp.org>
74413         * modules/stpncpy (License): Relicense under LGPLv2+.
74414         Reported by David Lutterkort <lutter@redhat.com>.
74416 2009-10-20  Eric Blake  <ebb9@byu.net>
74418         utimensat: work around Solaris 9 bug
74419         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74420         has trailing slash bugs.
74421         * tests/test-lutimens.h (test_lutimens): Enhance test.
74422         * tests/test-utimens.h (test_utimens): Likewise.
74423         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74424         * doc/posix-functions/utimes.texi (utimes): Likewise.
74425         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74426         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74427         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74428         * doc/posix-functions/futimens.texi (futimens): Likewise.
74430         fdutimensat: new module
74431         * modules/fdutimensat: New file.
74432         * lib/fdutimensat.c (fdutimensat): Likewise.
74433         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74434         * MODULES.html.sh (File system functions): Mention module.
74435         * modules/fdutimensat-tests: New test.
74436         * tests/test-fdutimensat.c: Likewise.
74438         doc: regenerate INSTALL
74439         * doc/INSTALL: Reflect recent autoconf update.
74440         * doc/INSTALL.ISO: Likewise.
74441         * doc/INSTALL.UTF-8: Likewise.
74443 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74445         acl: warn if ACL support is not detected
74446         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74448 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74450         * lib/nproc.h: Add extern "C" block for C++.
74452 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74453             Bruno Haible  <bruno@clisp.org>
74455         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74456         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74457         * doc/posix-functions/isalpha.texi: Likewise.
74458         * doc/posix-functions/isblank.texi: Likewise.
74459         * doc/posix-functions/iscntrl.texi: Likewise.
74460         * doc/posix-functions/isdigit.texi: Likewise.
74461         * doc/posix-functions/isgraph.texi: Likewise.
74462         * doc/posix-functions/islower.texi: Likewise.
74463         * doc/posix-functions/isprint.texi: Likewise.
74464         * doc/posix-functions/ispunct.texi: Likewise.
74465         * doc/posix-functions/isspace.texi: Likewise.
74466         * doc/posix-functions/isupper.texi: Likewise.
74467         * doc/posix-functions/isxdigit.texi: Likewise.
74469 2009-10-18  Bruno Haible  <bruno@clisp.org>
74471         Tests for module 'isblank'.
74472         * modules/isblank-tests: New file.
74473         * tests/test-isblank.c: New file.
74475         New module 'isblank'.
74476         * lib/isblank.c: New file.
74477         * m4/isblank.m4: New file.
74478         * modules/isblank: New file.
74479         * doc/posix-functions/isblank.texi: Mention the new module.
74481 2009-10-18  Bruno Haible  <bruno@clisp.org>
74483         New module 'ctype'.
74484         * lib/ctype.in.h: New file.
74485         * m4/ctype.m4: New file.
74486         * modules/ctype: New file.
74487         * doc/posix-headers/ctype.texi: Mention the new module.
74489 2009-10-18  Jim Meyering  <meyering@redhat.com>
74491         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74492         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74493         right after its initialization, rather than farther down.
74494         Keeping these in close proximity makes it easier to ensure
74495         that each such variable is initialized.  E.g.,
74497             LIB_CLOCK_GETTIME=
74498             AC_SUBST([LIB_CLOCK_GETTIME])
74500         This change also increments these serial numbers.
74501         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74502         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74505 2009-10-18  Bruno Haible  <bruno@clisp.org>
74507         Don't let environment variables perturb build.
74508         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74509         (gl_PREREQ_GETHRXTIME): ... not here.
74511 2009-10-18  Bruno Haible  <bruno@clisp.org>
74513         Avoid symlink attack in localcharset module.
74514         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74515         (O_NOFOLLOW): Define fallback.
74516         (get_charset_aliases): Don't open the file if it is a symbolic link.
74517         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74518         gl_FCNTL_H.
74519         (gl_FCNTL_H): Require it.
74520         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74521         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74522         Reported by Fergal Glynn <fglynn@veracode.com>.
74524 2009-10-18  Bruno Haible  <bruno@clisp.org>
74526         Implement nproc for mingw.
74527         * lib/nproc.c: Include <windows.h>
74528         (num_processors): On native Windows platforms, try GetSystemInfo.
74530 2009-10-18  Bruno Haible  <bruno@clisp.org>
74532         Implement nproc for IRIX.
74533         * lib/nproc.c: Include <sys/sysmp.h>.
74534         (num_processors): On IRIX systems, try sysmp.
74535         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74537 2009-10-18  Bruno Haible  <bruno@clisp.org>
74539         Implement nproc for HP-UX.
74540         * lib/nproc.c: Include <sys/pstat.h>
74541         (num_processors): On HP-UX systems, try pstat_getdynamic.
74542         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74543         pstat_getdynamic.
74545 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74546             Bruno Haible  <bruno@clisp.org>
74548         Implement nproc for NetBSD, OpenBSD.
74549         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74550         (ARRAY_SIZE): New macro.
74551         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74552         * m4/nproc.m4: New file.
74553         * modules/nproc (Files): Add m4/nproc.m4.
74554         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74555         (Makefile.am): Instead, augment lib_SOURCES.
74557 2009-10-18  Bruno Haible  <bruno@clisp.org>
74559         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74560         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74561         sys/param.h.
74563 2009-10-16  Eric Blake  <ebb9@byu.net>
74565         utimensat: new module
74566         * modules/utimensat: New file.
74567         * lib/utimensat.c (utimensat): Likewise.
74568         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74569         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74570         so we can work around Linux bugs.
74571         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74572         * modules/sys_stat (Makefile.am): Substitute them.
74573         * lib/sys_stat.in.h (utimensat): Declare it.
74574         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74575         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74576         * modules/utimensat-tests: New test.
74577         * tests/test-utimensat.c: Likewise.
74579         utimens: let lutimens work on non-symlinks
74580         * lib/utimens.c (lutimens): Fall back to utimens rather than
74581         failing with ENOSYS, when file is not a symlink.
74582         (utimens): Reduce redirection.
74583         * tests/test-lutimens.h (test_lutimens): Update test to cover
74584         non-symlinks.
74585         * tests/test-utimens.h (test_utimens): Update test to cover
74586         symlinks.
74587         * tests/test-utimens.c (main): Update caller.
74589         utimens: cache whether utimensat syscall works
74590         * lib/utimens.c (utimensat_works_really): New cache variable.
74591         (fdutimens, lutimens): Use it to avoid failing syscall.
74593         test-stat-time, test-utimens: improve portability
74594         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
74595         ext4 on alpha, and for cygwin.
74596         * tests/test-utimens-common.h: New file.
74597         (nap): Factor delays into single function.
74598         * tests/test-lutimens.h (test_lutimens): Use new header.
74599         * tests/test-futimens.h (test_futimens): Likewise.
74600         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
74601         timestamps to occur from same machine, as was done previously for
74602         test_utimens.
74603         * modules/utimens-tests (Files): Ship new file.
74604         * modules/futimens-tests (Files): Likewise.
74605         Reported in part by Jim Meyering.
74607         sys_stat: sort replacement declarations
74608         * lib/sys_stat.in.h: Sort declarations.
74609         * lib/futimens.c (futimens): Fix typo.
74611 2009-10-15  Jim Meyering  <meyering@redhat.com>
74613         don't let environment settings perturb build
74614         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
74615         could cause a configure-time and/or build-time malfunction.
74616         Typically, a configure-time function-in-library test is performed
74617         via code like this:
74619           LIB_VAR=
74620           AC_SUBST([LIB_VAR])
74621           prefix_saved_LIBS=$LIBS
74622             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
74623                        [test "$ac_cv_search_FUNC" = "none required" ||
74624                         LIB_VAR=$ac_cv_search_FUNC])
74625           LIBS=$prefix_saved_LIBS
74627         However, in each of the files affected by this change, the LIB_VAR=
74628         initialization was omitted.  Thus, when set in the environment, its
74629         value would propagate into generated Makefiles when FUNC is not found
74630         in LIB_NAME.
74631         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
74632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74635 2009-10-14  Eric Blake  <ebb9@byu.net>
74637         fchdir: avoid infinite recursion in mingw
74638         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
74639         recursing.
74641         test-stat-time: port to mingw
74642         * tests/test-stat-time.c (force_unlink): Return a value.
74643         (test_ctime) [W32]: Fix compilation error.
74644         (nap): Don't call usleep with too large an argument.  Use
74645         force_unlink.
74646         * doc/pastposix-functions/usleep.texi (usleep): Document the
74647         portability issue.
74649 2009-10-13  Jim Meyering  <meyering@redhat.com>
74651         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
74652         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
74653         * modules/pipe-filter-ii: Likewise.
74654         * modules/sys_socket-tests: Likewise.
74655         * modules/tsearch-tests: Likewise.
74656         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
74657         (check): Depend on it.
74659 2009-10-12  Eric Blake  <ebb9@byu.net>
74661         utimens-tests: port to NFS file systems
74662         * tests/test-utimens.h (test_utimens): Refactor utimecmp
74663         comparisons to avoid spurious failures from timestamp drift
74664         between NFS machines.
74666 2009-10-12  Eric Blake  <ebb9@byu.net>
74668         stat-time-tests: minor cleanups
74669         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
74670         * tests/test-stat-time.c (nap): Separate assignment from call.
74671         Suggested by Paolo Bonzini and Bruno Haible.
74673         sys_stat: guarantee struct timespec
74674         * lib/sys_stat.in.h (includes): Always include <time.h>
74675         * modules/sys_stat (Depends-on): Add time.
74676         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
74677         mode_t permission values.
74678         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
74679         get at subsecond timestamps.
74681 2009-10-10  Eric Blake  <ebb9@byu.net>
74683         futimens: new module
74684         * modules/futimens: New file.
74685         * lib/futimens.c (futimens): Likewise.
74686         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
74687         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
74688         we can work around Linux bugs.
74689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74690         * modules/sys_stat (Makefile.am): Substitute them.
74691         * lib/sys_stat.in.h (futimens): Declare it.
74692         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74693         * doc/posix-functions/futimens.texi (futimens): Likewise.
74694         * modules/futimens-tests: New test.
74695         * tests/test-futimens.c: Likewise.
74697         utimens: introduce fdutimens
74698         * lib/utimens.h (fdutimens): New prototype.
74699         * lib/utimens.c (gl_futimens): Move guts...
74700         (fdutimens): ...to new interface.
74701         * tests/test-utimens.c (do_fdutimens): Use it.
74703         utimens: add UTIME_NOW and UTIME_OMIT support
74704         * lib/utimens.c (validate_timespec, update_timespec): New helper
74705         functions.
74706         (gl_futimens, lutimens): Use them.
74707         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
74708         stdbool, sys_stat.
74709         (Link): Mention resulting library dependency.
74710         * modules/utimecmp (Link): Likewise.
74711         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
74712         (Makefile.am): Pick up library dependency.
74713         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
74714         definition.
74715         * tests/test-sys_stat.c: Test the definitions.
74716         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
74717         * NEWS: Document library dependency.
74719         utimecmp: support symlink timestamps
74720         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
74721         hashing when possible.  Use pathconf when available.
74722         (SYSCALL_RESOLUTION): Recognize tighter resolution.
74723         * modules/utimecmp (Depends-on): Add lstat.
74725         utimens: add lutimens interface
74726         * lib/utimens.c (lutimens): New function.
74727         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
74728         * lib/utimens.h (lutimens): Declare new interface.
74729         * tests/test-utimens.c (main): Enhance test.
74730         * tests/test-lutimens.h (test_lutimens): New file.
74731         * modules/utimens-tests (Files): Distribute it.
74732         (Depends-on): Add symlink.
74733         (configure.ac): Check for usleep.
74735         utimens: validate futimens usage
74736         * lib/utimens.c (gl_futimens): Require valid fd up front, using
74737         fewer syscalls on failure later on.  Avoid compiler warning on
74738         mingw.
74739         * modules/utimens (Depends-on): Add dup2.
74741         utimens: add test
74742         * modules/utimens-tests: New test.
74743         * tests/test-utimens.h: New file.
74744         * tests/test-futimens.h: Likewise.
74745         * tests/test-utimens.c: Likewise.
74747         doc: mention timestamp portability issues
74748         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
74749         instead.
74750         * doc/posix-functions/utime.texi (utime): Likewise.
74751         * doc/posix-functions/utimes.texi (utimes): Likewise.
74752         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
74753         instead.
74754         * doc/posix-functions/futimens.texi (futimens): Mention utimens
74755         module.
74756         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74757         Mention weakness with symlink timestamps.
74758         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
74759         to utimensat/futimens instead.
74760         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
74762         test-dup2: enhance test
74763         * tests/test-dup2.c (main): Also check AT_FDCWD.
74765         test-stat-time: avoid more spurious failures
74766         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
74767         xfs; and avoid race if the two timestamps cross quantization edge.
74769         relocatable: prefer 'file system' over 'filesystem'
74770         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
74771         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
74772         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
74773         * doc/relocatable.texi (Enabling Relocatability): Likewise.
74774         * lib/relocatable.c (compute_curr_prefix): Likewise.
74776 2009-10-10  Jim Meyering  <meyering@redhat.com>
74778         stat-time-tests: check for the usleep function
74779         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
74781 2009-10-10  Bruno Haible  <bruno@clisp.org>
74783         * modules/xnanosleep: Put the Link section after the Include section.
74785 2009-10-09  Eric Blake  <ebb9@byu.net>
74787         dup2: work around FreeBSD 6.1 bug
74788         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
74789         * doc/posix-functions/dup2.texi (dup2): Document it.
74790         Reported by Nelson H. F. Beebe and Jim Meyering.
74792         test-stat-time: port to buggy NFS clients
74793         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
74794         (test_ctime): Also skip test if mtime and ctime are skewed.
74796         maint: prefer 'file system' over 'filesystem'
74797         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
74798         * doc/posix-functions/lstat.texi (lstat): Likewise.
74799         * lib/file-has-acl.c (file_has_acl): Likewise.
74800         * lib/fwriteerror.c [TEST]: Likewise.
74801         * tests/test-areadlink.h (test_areadlink): Likewise.
74802         * tests/test-areadlinkat-with-size.c (main): Likewise.
74803         * tests/test-areadlinkat.c (main): Likewise.
74804         * tests/test-canonicalize-lgpl.c (main): Likewise.
74805         * tests/test-canonicalize.c (main): Likewise.
74806         * tests/test-fstatat.c (main): Likewise.
74807         * tests/test-linkat.c (main): Likewise.
74808         * tests/test-lstat.h (test_lstat_func): Likewise.
74809         * tests/test-mkdir.h (test_mkdir): Likewise.
74810         * tests/test-readlink.h (test_readlink): Likewise.
74811         * tests/test-remove.c (main): Likewise.
74812         * tests/test-rename.h (test_rename): Likewise.
74813         * tests/test-renameat.c (main): Likewise.
74814         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74815         * tests/test-symlink.h (test_symlink): Likewise.
74816         * tests/test-symlinkat.c (main): Likewise.
74817         * tests/test-unlink.h (test_unlink_func): Likewise.
74818         * tests/test-unlinkat.c (main): Likewise.
74820         maint: make realtime library usage explicit
74821         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
74822         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
74823         * modules/settime (Link): Likewise.
74824         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
74826         test-stat-time: speed up execution
74827         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
74828         warning on mingw.
74829         (nap): New helper function.
74830         (prepare_test): Use it to reduce sleep time.
74831         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
74832         execution.
74833         * modules/stat-time-tests (configure.ac): Check for usleep.
74835 2009-10-09  Jim Meyering  <meyering@redhat.com>
74837         selinux-h: always use getfilecon wrappers
74838         * lib/getfilecon.c: New file.
74839         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
74840         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
74841         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
74842         (fgetfilecon): Provide a stub.
74843         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
74844         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
74845         file unconditionally.
74846         When <selinux/selinux.h> is found, arrange to use wrappers.
74847         * modules/selinux-h (Files): Add getfilecon.c.
74848         (Makefile.am): Substitute include-next-related bits
74849         into the now-always-generated selinux/selinux.h file.
74850         * doc/glibc-functions/lgetfilecon.texi: New file.
74851         * doc/glibc-functions/fgetfilecon.texi: New file.
74852         * doc/glibc-functions/getfilecon.texi: New file.
74853         * doc/glibc-functions/getfilecon-desc.texi: New file.
74854         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
74855         which to pull in the new files.
74856         * MODULES.html.sh (Misc): Add selinux-h.
74858 2009-10-08  Jim Meyering  <meyering@redhat.com>
74860         unistd: fix comment typo
74861         * lib/unistd.in.h (euidaccess): Fix a comment typo.
74863 2009-10-08  Eric Blake  <ebb9@byu.net>
74865         areadlink: use SIZE_MAX consistently
74866         * modules/areadlink (Depends-on): Add stdint.
74867         * modules/areadlink-with-size (Depends-on): Likewise.
74868         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
74869         gives NULL; drop sys/types, since unistd gives size_t; and add
74870         stdint for SIZE_MAX.
74871         (SIZE_MAX): Rely on headers.
74872         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
74873         and add stdint.
74874         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
74875         (SIZE_MAX): Likewise.
74876         (INITIAL_BUF_SIZE): Turn into enum.
74877         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
74879 2009-10-08  Jim Meyering  <meyering@redhat.com>
74881         areadlinkat: avoid compilation failure
74882         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
74883         Fix typo in comment.
74885 2009-10-07  Eric Blake  <ebb9@byu.net>
74887         areadlinkat-with-size: new module
74888         * modules/areadlinkat-with-size: New module.
74889         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
74890         * lib/areadlink.h (areadlinkat): Declare it.
74891         * MODULES.html.sh (File system functions): Mention it.
74892         * modules/areadlinkat-with-size-tests: New test.
74893         * tests/test-areadlinkat-with-size.c: New file.
74895         xreadlinkat: new module
74896         * modules/xreadlinkat: New module.
74897         * lib/xreadlinkat.c (xreadlinkat): New file.
74898         * lib/xreadlink.h (xreadlinkat): Declare it.
74899         * MODULES.html.sh (File system functions): Mention it.
74901         areadlinkat: new module
74902         * lib/at-func.c (FUNC_FAIL): New define.
74903         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
74904         * modules/areadlinkat: New module.
74905         * lib/linkat.c (areadlinkat): Move...
74906         * lib/areadlinkat.c (areadlinkat): ...to new file.
74907         * lib/areadlink.h (areadlinkat): Declare it.
74908         * modules/linkat (Depends-on): Add areadlinkat.
74909         * MODULES.html.sh (File system functions): Mention it.
74910         * modules/areadlinkat-tests: New test.
74911         * tests/test-areadlinkat.c: New file.
74913         areadlink, areadlink-with-size: add tests
74914         * modules/areadlink-tests: New test.
74915         * modules/areadlink-with-size-tests: Likewise.
74916         * tests/test-areadlink.h: New file.
74917         * tests/test-areadlink.c: Likewise.
74918         * tests/test-areadlink-with-size.c: Likewise.
74920         maint: minor cleanups
74921         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
74922         _UNUSED_PARAMETER_ instead.
74923         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
74924         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
74925         * modules/linkat-tests (Files): Distribute test-link.h.
74927         openat, utimens: whitespace cleanup
74928         * lib/openat.c: Prefer space throughout, rather than mix of 8
74929         spaces vs. tabs.
74930         * lib/at-func.c: Likewise.
74931         * lib/utimens.c: Likewise.
74933         openat: avoid using wrong fd
74934         * lib/openat.c (openat_permissive): Reject user's fd if saving the
74935         working directory chooses same fd.
74936         * lib/at-func.c (AT_FUNC_NAME): Likewise.
74938         mkdir, mkdirat: fix cygwin 1.5.x bug
74939         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
74940         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
74941         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
74942         bug.
74943         (gl_PREREQ_MKDIR): Delete unused macro.
74944         * modules/mkdir (Files): Track file rename.
74945         (configure.ac): Update macro name.
74946         * modules/openat (Depends-on): Add mkdir.
74947         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
74949         mkdir, mkdirat: add tests
74950         * modules/mkdir-tests: New test.
74951         * tests/test-mkdir.h: New file.
74952         * tests/test-mkdir.c: Likewise.
74953         * tests/test-mkdirat.c: Likewise.
74954         * modules/openat-tests (Files): Add new files.
74955         (Makefile.am): Run new test.
74957 2009-10-06  Eric Blake  <ebb9@byu.net>
74959         doc: tweak *at function documentation
74960         * doc/posix-functions/faccessat.texi (faccessat): Mention
74961         known issue with replacement.
74962         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
74963         * doc/posix-functions/linkat.texi (linkat): Likewise.
74964         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
74965         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
74966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
74967         * doc/posix-functions/renameat.texi (renameat): Likewise.
74968         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74970         openat: fix GNU/Hurd bug in unlinkat
74971         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
74972         broken.
74973         * doc/posix-functions/unlink.texi (unlink): Document this.
74974         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
74976         fdopendir: fix GNU/Hurd bug
74977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
74978         allowing non-directory fds.
74979         * lib/fdopendir.c (rpl_fdopendir): Work around it.
74980         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
74981         * modules/dirent (Makefile.am): Substitute it.
74982         * lib/dirent.in.h (fdopendir): Declare replacement.
74983         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
74984         * tests/test-fdopendir.c (main): Test something other than
74985         /dev/null, since on Hurd that behaves like a directory.
74987         test-symlink: port to GNU/Hurd
74988         * tests/test-symlink.h (test_symlink): Relax expected errno.
74990         doc: tweak more cygwin information
74991         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
74992         now compatible with glibc.
74993         * doc/posix-functions/getopt.texi (getopt): Likewise.
74995         getopt-gnu: add another test
74996         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
74997         guarantee behavior relied on by m4.
74998         * tests/test-getopt.c (main): Use it.
74999         * modules/getopt-posix-tests (Depends-on): Add setenv.
75000         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75002         getopt: fix compilation on darwin
75003         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75004         include.
75005         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75006         Reported by Ludovic Courtès.
75008 2009-10-06  Bruno Haible  <bruno@clisp.org>
75010         * modules/size_max (Description): Discourage its use.
75011         Reported by Simon Josefsson.
75013 2009-10-06  Jim Meyering  <meyering@redhat.com>
75015         linkat: avoid compilation failure
75016         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75018 2009-10-05  Eric Blake  <ebb9@byu.net>
75020         linkat: support Linux 2.6.17
75021         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75022         linkat on Linux, but allow cache variable override.
75023         * lib/linkat.c (rpl_linkat): Define override.
75024         * modules/linkat (Depends-on): Add symlinkat.
75025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75026         * modules/unistd (Makefile.am): Substitute it.
75027         * lib/unistd.in.h (linkat): Declare replacement.
75028         Reported by Pádraig Brady.
75030         quotearg: port test to systems with C.UTF-8 locale
75031         * tests/test-quotearg.c (struct result_strings): Add another
75032         member, differentiating between C.ASCII and C.UTF-8 handling.
75033         (compare_strings): Add parameter.
75034         (main): Adjust all callers.
75036         getopt: avoid clash with FreeBSD _getopt_internal
75037         * lib/getopt.in.h (_getopt_internal): Override the name.
75038         * lib/getopt_int.h (includes): Pick up any overrides.
75039         Reported by Reuben Thomas.
75041         hash: allow C89 compilation
75042         * lib/hash.c (check_tuning): Move declaration before statement.
75043         Reported by Reuben Thomas.
75045 2009-10-05  Karl Berry  <karl@gnu.org>
75047         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75049 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75050             Bruno Haible  <bruno@clisp.org>
75052         * lib/uname.c (uname): Use a table-driven algorithm to compute
75053         Windows NT versions.
75055 2009-10-04  Bruno Haible  <bruno@clisp.org>
75057         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75058         program_invocation_short_name.
75059         * modules/progname (configure.ac): Test for presence of
75060         program_invocation_short_name.
75061         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75063 2009-10-04  Bruno Haible  <bruno@clisp.org>
75065         * lib/progname.c (set_program_name): Fix comment.
75066         Reported by Jim Meyering.
75068 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75069             Bruno Haible  <bruno@clisp.org>
75071         * lib/uname.c: Include <string.h>.
75072         (uname): Do only one call to GetVersionEx in the common case.
75074 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75075             Bruno Haible  <bruno@clisp.org>
75077         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75078         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75079         (uname): Add support for Windows CE and various non-x86 CPU types.
75081 2009-10-03  Bruno Haible  <bruno@clisp.org>
75083         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75084         invocation to tests/configure.ac.
75085         Reported by Ian Beckwith <ianb@erislabs.net>.
75087 2009-10-02  Eric Blake  <ebb9@byu.net>
75089         fchdir: avoid compiler warning
75090         * lib/fchdir.c (canonicalize_file_name)
75091         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75093         test-open: support mingw errno values
75094         * tests/test-open.h (test_open): Relax test.
75095         * tests/test-fopen.h (test_fopen): Likewise.
75096         * tests/test-openat-safer.c (main): Likewise.
75098         open: fix opening directory on mingw
75099         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75101         test-open: on GNU/Hurd, /dev/null is a directory
75102         * tests/test-fopen.h (main): Rename...
75103         (test_fopen): ...to this.  Use a guaranteed non-directory when
75104         confirming open behavior on trailing slash.
75105         * tests/test-openat-safer.c (main): Likewise.
75106         * tests/test-open.h (main): Likewise....
75107         (test_open): ...to this.
75108         * tests/test-fopen.c (main): Adjust caller.
75109         * tests/test-fopen-safer.c (main): Likewise.
75110         * tests/test-open.c (main): Likewise.
75111         * tests/test-fcntl-safer.c (main): Likewise.
75112         Reported by Samuel Thibault.
75114         rename, fchdir: don't ignore chdir failure
75115         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75116         * lib/rename.c (rpl_rename) [W32]: Likewise.
75117         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75118         an empty destination directory if source cannot be renamed,
75119         although there is still possibility for failure.
75120         * doc/posix-functions/rename.texi (rename): Document the race.
75121         Reported by Jim Meyering.
75123         maint: cleanup whitespace in recent commits
75124         * lib/rename.c (rpl_rename): Remove tabs.
75125         * tests/test-link.h (test_link): Likewise.
75126         * lib/fchdir.c (get_name): Likewise.
75127         Reported by Jim Meyering.
75129 2009-10-02  Ben Pfaff  <blp@gnu.org>
75131         relocatable-prog-wrapper: Add missing dependency on
75132         double-slash-root.
75133         * modules/relocatable-prog-wrapper: Add dependency.
75134         Reported by Ian Beckwith <ianb@erislabs.net>.
75136 2009-10-02  Eric Blake  <ebb9@byu.net>
75138         renameat: fix Solaris bugs
75139         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75140         needed fixing.
75141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75142         * modules/stdio (Makefile.am): Substitute it.
75143         * lib/stdio.in.h (renameat): Declare replacement.
75144         * lib/renameat.c (rpl_renameat): Implement fix.
75146         renameat: new module
75147         * modules/renameat: New file.
75148         * lib/renameat.c (renameat): Likewise.
75149         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75151         * modules/stdio (Makefile.am): Substitute them.
75152         * lib/stdio.in.h (renameat): Declare it.
75153         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75154         * doc/posix-functions/renameat.texi (renameat): Likewise.
75155         * modules/renameat-tests: New test.
75156         * tests/test-renameat.c: Likewise.
75158         rename: fix mingw bugs
75159         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75160         directory overwrite bugs.
75162         rename: fix another cygwin 1.5 bug
75163         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75164         checks.
75165         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75166         unnecessary cygwin workarounds.  Also work around bug with moving
75167         full directory onto an empty one.
75168         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75170         rename-dest-slash: merge into rename module
75171         * modules/rename-dest-slash (Status): Mark obsolete.
75172         (Depends-on): Add rename.
75173         (Files): Let rename do it all.
75174         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75175         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75176         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75177         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75178         * lib/rename.c (rpl_rename): Update comments.
75180         rename: fix cygwin 1.5.x bugs
75181         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75182         * lib/rename.c (rpl_rename): Work around them.
75183         * modules/rename (Depends-on): Add same-inode.
75185         rename: fix Solaris 10 bug
75186         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75187         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75188         was the only bug.
75190         rename: fix Solaris 9 bug
75191         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75192         on non-directory.  Avoid calling exit.
75193         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75194         strdup.
75195         * modules/rename-tests (Depends-on): Drop lstat.
75196         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75197         (gl_PREREQ_RENAME): Delete unused macro.
75199         rename-dest-slash: fix NetBSD bug
75200         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75201         links.
75202         * modules/rename-dest-slash (Depends-on): Add same-inode.
75204         rename-tests: new test, exposes several platform bugs
75205         * modules/rename-tests: New file.
75206         * tests/test-rename.h: Likewise.
75207         * tests/test-rename.c: Likewise.
75208         * doc/posix-functions/rename.texi (rename): Improve documentation,
75209         including bugs that will eventually be fixed in gnulib.
75211 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75213         * lib/uname.c: Include <stdlib.h>
75214         (uname): Assume version info is available.
75216 2009-10-02  Jim Meyering  <meyering@redhat.com>
75218         gnu-web-doc-update: correct --help output
75219         * build-aux/gnu-web-doc-update: Make --help output relevant.
75221         gnu-web-doc-update: add standard options
75222         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75224         gnu-web-doc-update: New module.
75225         Use this script to automatically update the on-line web documentation
75226         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75227         * modules/gnu-web-doc-update: New file, from coreutils.
75228         * build-aux/gnu-web-doc-update: New script.
75230 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75232         link: LoadLibrary is not needed.
75233         * lib/link.c: Use GetModuleHandle.
75235 2009-10-01  Eric Blake  <ebb9@byu.net>
75237         getopt: bump serial number
75238         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75239         change.
75241         tests: tighten link, rmdir, and remove tests
75242         * tests/test-link.h (includes): No need to use <config.h> here.
75243         Clean up if directory hard link was created, otherwise test for
75244         trailing '.'.
75245         * tests/test-linkat.c (main): Simplify.
75246         * tests/test-remove.c (main): Enhance test for trailing '.'.
75247         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75249 2009-10-01  Jim Meyering  <meyering@redhat.com>
75251         maint.mk: requiring "make major" was annoying, for a "minor" release.
75252         What is intended is "stable", to contrast with alpha and beta,
75253         so require "make stable", not "make major".
75254         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75255         (get_tool_versions): Likewise.
75256         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75258 2009-09-30  Ben Pfaff  <blp@gnu.org>
75260         Fix broken build of replacement for Windows tmpfile().
75261         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75262         flags argument added along with the 'mkostemp' module.
75264 2009-09-28  Bruno Haible  <bruno@clisp.org>
75266         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75267         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75268         to 'remove_elt'.
75269         (gl_list_remove): Update.
75270         * lib/gl_list.c (gl_list_remove): Update.
75271         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75272         to 'remove_elt'.
75273         (gl_oset_remove): Update.
75274         * lib/gl_list.c (gl_oset_remove): Update.
75275         Reported by Eric Blake.
75277 2009-09-28  Eric Blake  <ebb9@byu.net>
75279         doc: mention yet more cygwin 1.7 status
75280         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75281         cygwin.
75282         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75283         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75285         argp: fix test failure
75286         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75287         that are not upper-case.  Pass correct range to tolower.
75289 2009-09-27  Jim Meyering  <meyering@redhat.com>
75291         test-yesno: work around sparc-dash here-document infelicity
75292         Without this change, the literal \177 byte in a here document
75293         would make dash 0.5.5.1-3 access uninitialized memory.
75294         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75295         Instead, use a marker, "@", and filter through tr to create the desired
75296         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75298 2009-09-27  Bruno Haible  <bruno@clisp.org>
75300         Disable untested support for new flavours of ACLs on AIX.
75301         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75302         progress.
75303         * lib/set-mode-acl.c (qset_acl): Likewise.
75305 2008-12-07  Bruno Haible  <bruno@clisp.org>
75307         Add support for new flavours of ACLs on AIX. (Untested.)
75308         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75309         (file_has_acl): Add support for newer AIX.
75310         * lib/set-mode-acl.c (qset_acl): Likewise.
75311         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75312         Rainer Tammer <tammer@tammer.net>.
75314 2009-09-26  Eric Blake  <ebb9@byu.net>
75316         argp: fix compilation of getopt
75317         * lib/getopt.in.h (includes): Use different guard than glibc.
75318         Reported by Sergey Poznyakoff.
75320         doc: mention more cygwin 1.7 status
75321         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75322         bug.
75323         * doc/posix-functions/execl.texi (execl): Likewise.
75324         * doc/posix-functions/execle.texi (execle): Likewise.
75325         * doc/posix-functions/execlp.texi (execlp): Likewise.
75326         * doc/posix-functions/execv.texi (execv): Likewise.
75327         * doc/posix-functions/execve.texi (execve): Likewise.
75328         * doc/posix-functions/execvp.texi (execvp): Likewise.
75329         * doc/glibc-functions/canonicalize_file_name.texi
75330         (canonicalize_file_name): Cygwin 1.7 now provides this.
75331         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75332         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75333         on AT_SYMLINK_NOFOLLOW.
75335 2009-09-24  Eric Blake  <ebb9@byu.net>
75337         test-linkat: make test more robust
75338         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75340         getopt: fix inclusion guards for cygwin
75341         * modules/getopt-posix (Depends-on): Add include-next.
75342         (Makefile.am): Substitute more items in replacement header.
75343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75344         <getopt.h>.
75345         * lib/getopt.in.h (includes): Use split inclusion guard, and
75346         prefer <getopt.h> over include <unistd.h> when one is present.
75347         (option): Also override name of 'struct option'.
75349         same-inode: revert prior change; it is not yet ready
75350         * NEWS: Undo mention of this change.
75351         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75352         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75353         * lib/cycle-check.c (cycle_check): Likewise.
75354         * lib/same.c (same_name): Likewise.
75355         * lib/at-func2.c (at_func2): Likewise.
75357 2009-09-23  Eric Blake  <ebb9@byu.net>
75359         linkat: new module
75360         * modules/linkat: New file.
75361         * lib/at-func2.c (at_func2): Likewise.
75362         * lib/linkat.c (linkat): Likewise.
75363         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75364         * lib/openat-priv.h (at_func2): Add declaration.
75365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75366         * modules/unistd (Makefile.am): Substitute them.
75367         * lib/unistd.in.h (linkat): Declare it.
75368         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75369         * doc/posix-functions/linkat.texi (linkat): Likewise.
75370         * doc/posix-functions/link.texi (link): Tweak wording.
75371         * tests/test-link.c (main): Move guts...
75372         * tests/test-link.h (test_link): ...into new file.
75373         * modules/linkat-tests: New test.
75374         * tests/test-linkat.c: Likewise.
75375         * modules/link-tests (Files): Ship new file.
75376         (Depends-on): Add stdbool.
75378         dirname: add library-safe mdir_name
75379         * lib/dirname.h (mdir_name): New prototype.
75380         * lib/dirname.c (dir_name): Move guts...
75381         (mdir_name): ...to new function that avoids xalloc_die.
75383         fchdir: another mingw fix
75384         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75385         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75386         on mingw (where it has not yet been ported), and make it optional
75387         elsewhere.
75388         (_gl_register_fd): Use it.
75390         same-inode: make SAME_INODE tri-state, to port to mingw
75391         * NEWS: Mention this change.
75392         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75393         st_ino always being 0.
75394         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75395         * lib/cycle-check.c (cycle_check): Likewise.
75396         * lib/same.c (same_name): Likewise.
75398         lstat: avoid mingw compilation error
75399         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75400         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75401         lstat ourselves.
75402         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75403         was adequate.
75404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75405         the checks for lstat.
75406         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75408         link: fix test failure on Solaris 9
75409         * lib/link.c (rpl_link): Don't assume link will catch bogus
75410         trailing slash on source.
75412         test-symlinkat: enhance test
75413         * tests/test-readlink.c (main): Move guts...
75414         * tests/test-readlink.h (test_readlink): ...into new file.
75415         * tests/test-symlink.c (main): Move guts...
75416         * tests/test-symlink.h (test_symlink): ...into new file.
75417         * tests/test-symlinkat.c (main): Use new files for further
75418         coverage.
75419         (do_symlink, do_readlink): New helper functions.
75420         * modules/symlink-tests (Files): Ship new file.
75421         (Depends-on): Add stdbool.
75422         * modules/readlink-tests (Files): Ship new file.
75423         (Depends-on): Add stdbool.
75424         * modules/symlinkat-tests (Files): Use new files.
75426 2009-09-23  Eric Blake  <ebb9@byu.net>
75428         readlink: document portability issue with symlink length
75429         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75430         systems have bogus st_size on symlinks, and mention the
75431         areadlink-with-size module.
75432         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75433         * doc/posix-functions/readlink.texi (readlink): Mention the
75434         areadlink module, and ERANGE failure.
75435         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75436         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75438         readlink: fix Solaris 9 bug with trailing slash
75439         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75440         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75441         * doc/posix-functions/readlink.texi (readlink): Document this.
75442         * modules/readlink-tests: New test.
75443         * tests/test-readlink.c: Likewise.
75445         readlink: fix cygwin 1.5.x bug with return type
75446         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75447         * lib/unistd.in.h (readlink): Use ssize_t.
75448         * lib/readlink.c (readlink): Likewise.
75449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75450         * modules/unistd (Makefile.am): Substitute it.
75451         * lib/unistd.in.h (readlink): Declare replacement.
75452         * doc/posix-functions/readlink.texi (readlink): Document this.
75454         symlink: use throughout gnulib
75455         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75456         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75457         symlink is not used.
75458         * modules/symlinkat (Depends-on): Add symlink.
75459         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75460         * modules/canonicalize-tests (Depends-on): Likewise.
75461         * modules/lstat-tests (Depends-on): Likewise.
75462         * modules/openat-tests (Depends-on): Likewise.
75463         * modules/remove-tests (Depends-on): Likewise.
75464         * modules/rmdir-tests (Depends-on): Likewise.
75465         * modules/unlink-tests (Depends-on): Likewise.
75466         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75467         * tests/test-canonicalize.c (symlink): Likewise.
75468         * tests/test-fstatat.c (symlink): Likewise.
75469         * tests/test-lstat.c (symlink): Likewise.
75470         * tests/test-remove.c (symlink): Likewise.
75471         * tests/test-rmdir.c (symlink): Likewise.
75472         * tests/test-unlink.c (symlink): Likewise.
75473         * tests/test-unlinkat.c (symlink): Likewise.
75475         symlink: new module, for Solaris 9 bug
75476         * modules/symlink: New file.
75477         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75478         * lib/symlink.c: Likewise.
75479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75480         * modules/unistd (Makefile.am): Substitute them.
75481         * lib/unistd.in.h (symlink): Declare replacement.
75482         * MODULES.html.sh (File system functions): Mention it.
75483         * doc/posix-functions/symlink.texi (symlink): Likewise.
75484         * modules/symlink-tests: New test.
75485         * tests/test-symlink.c: Likewise.
75487 2009-09-23  Bruno Haible  <bruno@clisp.org>
75489         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75490         when needed.
75491         Test case: gnulib-tool --import --with-tests atexit inttypes.
75492         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75494 2009-09-23  Bruno Haible  <bruno@clisp.org>
75496         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75497         subcommand, not in a subshell.
75499 2009-09-22  Eric Blake  <ebb9@byu.net>
75501         unistd: sort replacement declarations
75502         * lib/unistd.in.h: Sort declarations.
75504         open, openat: minor optimization
75505         * lib/open.c (open): If open succeeded, len is non-zero.
75506         * lib/openat.c (rpl_openat): Likewise.
75508         link-follow: ensure correct result
75509         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75510         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75511         distinguish between possible failures.
75513 2009-09-21  Eric Blake  <ebb9@byu.net>
75515         fts: avoid compiler warning
75516         * lib/fts.c (dirent_inode_sort_may_be_useful)
75517         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75519 2009-09-19  Bruno Haible  <bruno@clisp.org>
75521         * lib/progreloc.c (canonicalize_file_name): New declaration.
75523 2009-09-19  Eric Blake  <ebb9@byu.net>
75525         link: fix quoting
75526         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75528         openat: fix openat bugs on Solaris 9
75529         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75530         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75531         * modules/openat (Depends-on): Add open.
75532         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75533         * modules/fcntl-h (Makefile.am): Substitute it.
75534         * lib/fcntl.in.h (openat): Declare replacement.
75535         * doc/posix-functions/openat.texi (openat): Document this.
75537         openat: move fstatat and unlinkat into correct files
75538         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75539         compiled.
75540         * lib/openat.c (fstatat, unlinkat): Move...
75541         * lib/fstatat.c (fstatat): ...into correct files.
75542         * lib/unlinkat.c (unlinkat): Likewise.
75544         openat: fix unlinkat bugs on Solaris 9
75545         * lib/unlinkat.c (unlinkat): New file.
75546         * modules/openat (Depends-on): Add unlink.
75547         (Files): Distribute it.
75548         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75549         trailing slash behavior is broken.
75550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75551         * modules/unistd (Makefile.am): Substitute it.
75552         * lib/unistd.in.h (unlinkat): Declare replacement.
75553         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75555         openat: fix fstatat bugs on Solaris 9
75556         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75557         stat.
75558         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75560         test-unlinkat: enhance test, to expose Solaris 9 bug
75561         * tests/test-unlink.c (main): Factor guts...
75562         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75563         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75564         * tests/test-rmdir.c (main): Adjust caller.
75565         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75566         (unlinker): New helper function.
75567         (rmdirat): Enhance check.
75568         * modules/rmdir-tests (Depends-on): Add stdbool.
75569         * modules/unlink-tests (Depends-on): Likewise.
75570         (Files): Add test-unlink.h.
75571         * modules/openat-tests (Files): Likewise.
75572         (Depends-on): Add unlinkdir.
75574         test-fstatat: new test, to expose Solaris 9 bugs
75575         * tests/test-stat.c (main): Factor guts...
75576         * tests/test-stat.h (test_stat_func): ...into new file.
75577         * tests/test-lstat.c (main): Factor guts...
75578         * tests/test-lstat.h (test_lstat_func): ...into new file.
75579         * tests/test-fstatat.c: New file.
75580         * modules/stat-tests (Files): Add test-stat.h.
75581         * modules/lstat-tests (Files): Add test-lstat.h.
75582         (Depends-on): Add stdbool.
75583         * modules/openat-tests (Depends-on): Add pathmax.
75584         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75585         (Makefile.am): Run new test.
75587         remove: new module, for mingw and Solaris 9 bugs
75588         * modules/remove: New file.
75589         * lib/remove.c: Likewise.
75590         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
75591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75592         * modules/stdio (Makefile.am): Use them.
75593         * lib/stdio.in.h (remove): Declare replacement.
75594         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75595         * doc/posix-functions/remove.texi (remove): Likewise.
75596         * modules/remove-tests: New test.
75597         * tests/test-remove.c: Likewise.
75599         unlink: new module, for Solaris 9 bug
75600         * modules/unlink: New file.
75601         * lib/unlink.c: Likewise.
75602         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
75603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75604         * modules/unistd (Makefile.am): Use them.
75605         * lib/unistd.in.h (stat): Declare replacement.
75606         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75607         * doc/posix-functions/unlink.texi (unlink): Likewise.
75608         * modules/unlink-tests: New test.
75609         * tests/test-unlink.c: Likewise.
75611         lstat: fix Solaris 9 bug
75612         * lib/lstat.c (lstat): Also check for trailing slash on
75613         non-symlink, non-directories.  Use stat module to simplify logic.
75614         * doc/posix-functions/lstat.texi (lstat): Document it.
75615         * modules/lstat-tests (Depends-on): Add errno, same-inode.
75616         (configure.ac): Check for symlink.
75617         * tests/test-lstat.c (main): Add more tests.
75619         stat: add as dependency to other modules
75620         * modules/chown (Depends-on): Add stat.
75621         * modules/euidaccess (Depends-on): Likewise.
75622         * modules/fchdir (Depends-on): Likewise.
75623         * modules/isdir (Depends-on): Likewise.
75624         * modules/link (Depends-on): Likewise.
75625         * modules/lstat (Depends-on): Likewise.
75626         * modules/mkdir-p (Depends-on): Likewise.
75627         * modules/modechange (Depends-on): Likewise.
75628         * modules/open (Depends-on): Likewise.
75629         * modules/readlink (Depends-on): Likewise.
75630         * modules/same (Depends-on): Likewise.
75632         stat: fix Solaris 9 bug
75633         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
75634         slash.
75635         * lib/stat.c (rpl_stat): Work around it.
75636         * doc/posix-functions/stat.texi (stat): Update documentation.
75638         stat: new module, for mingw bug
75639         * modules/stat: New file.
75640         * lib/stat.c: Likewise.
75641         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75643         * modules/sys_stat (Makefile.am): Use them.
75644         * lib/sys_stat.in.h (stat): Declare replacement.
75645         * lib/openat.c (fstatat): Deal with lstat and stat being function
75646         macros.
75647         * modules/openat (Depends-on): Add inline.
75648         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75649         * doc/posix-functions/stat.texi (stat): Likewise.
75650         * modules/stat-tests: New test.
75651         * tests/test-stat.c: Likewise.
75653 2009-09-19  Jim Meyering  <meyering@redhat.com>
75655         syntax-check: detect unnecessary inclusion of canonicalize.h
75656         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
75658 2009-09-19  Eric Blake  <ebb9@byu.net>
75660         canonicalize-lgpl: adjust clients to use correct header
75661         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75662         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
75663         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
75664         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
75665         * lib/progreloc.c (includes): Likewise.
75667 2009-09-19  Jim Meyering  <meyering@redhat.com>
75669         test-posixtm.c: correct a comment
75670         * tests/test-posixtm.c: Correct first-line comment.
75671         Spotted by Eric Blake.
75673 2009-09-16  Jim Meyering  <meyering@redhat.com>
75675         posixtm-tests: make T const-correct; add a test case
75676         * tests/test-posixtm.c (T): Declare const.
75677         Add a test for -(2^31+1).
75678         Remove useless can-succeed-only-in-2002 test.
75680         posixtm-tests: adjust the sole failing test
75681         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
75682         expected output matches what mktime now produces.  Cross-checked via
75683         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
75685         posixtm: move #ifdef'd tests into a new module
75686         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
75687         * tests/test-posixtm.c: ... this new file.
75688         * modules/posixtm-tests: New module.
75690 2009-09-19  Eric Blake  <ebb9@byu.net>
75692         openat: simplify use of at-func.c
75693         * lib/at-func.c (includes): Include prerequisites here, to
75694         simplify requirements on client files.
75695         * lib/openat-priv.h: Add double-inclusion guard.
75696         * lib/faccessat.c (includes): Simplify.
75697         * lib/fchmodat.c (includes): Likewise.
75698         * lib/fchownat.c (includes): Likewise.
75699         * lib/mkdirat.c (includes): Likewise.
75700         * lib/mkfifoat.c (includes): Likewise.
75701         * lib/symlinkat.c (includes): Likewise.
75703         openat: allow return of fd 0
75704         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
75705         * modules/save-cwd (Depends-on): Replace fcntl-safer with
75706         unistd-safer.
75707         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
75708         <fcntl.h>; this module does not leak fds.
75709         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
75710         must be allowed to return 0, leaving openat_safer to add the
75711         safety.
75712         (openat_permissive): Avoid writing to just-opened fd 2 if
75713         restoring the current directory fails.
75714         * lib/openat-die.c (openat_restore_fail): Add comment.
75715         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
75716         (save_cwd): Guarantee safe fd, but without use of open_safer.
75717         * tests/test-openat.c: New test.
75718         * modules/openat-tests (Files, Makefile.am): Distribute and build
75719         new file.
75721         relocatable-prog-wrapper: fix build
75722         * modules/relocatable-prog-wrapper (Files): Update name of
75723         canonicalize m4 file, broken on 2009-09-17.
75724         Reported by emad hajjar <aleppos@hotmail.com>.
75726 2009-09-19  Bruno Haible  <bruno@clisp.org>
75728         * lib/safe-alloc.h: Use the standard header with GPL copyright.
75729         * lib/safe-alloc.c: Likewise.
75730         Reported by Ian Beckwith <ianb@erislabs.net>.
75732 2009-09-18  Bruno Haible  <bruno@clisp.org>
75734         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
75735         Reported by <erobles@sensacd.com.mx>.
75737 2009-09-17  Eric Blake  <ebb9@byu.net>
75739         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
75740         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
75741         slashes when checking if last component is missing.
75742         * tests/test-canonicalize.c (main): Test this.
75744         canonicalize, canonicalize-lgpl: honor // if distinct from /
75745         * modules/canonicalize (Files): Add double-slash-root.m4.
75746         * modules/canonicalize-lgpl (Files): Likewise.
75747         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75748         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
75749         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
75750         fallback definition.
75751         (canonicalize_filename_mode): Use it to protect //.
75752         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
75753         (__realpath): Likewise.
75754         * tests/test-canonicalize.c (main): Test this.
75755         * tests/test-canonicalize-lgpl.c (main): Likewise.
75756         * modules/canonicalize-tests (Depends-on): Add same-inode.
75757         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75759         canonicalize-lgpl: fix glibc bug with trailing slash
75760         * m4/canonicalize-lgpl.m4: Move contents...
75761         * m4/canonicalize.m4: ...here.
75762         (gl_CANONICALIZE_LGPL): Factor realpath check...
75763         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
75764         glibc 2.3.5 bug, fixed 2005-04-27.
75765         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
75766         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
75767         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
75768         * modules/canonicalize-lgpl (Files): Manage file rename.
75769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75770         * modules/stdlib (Makefile.am): Substitute witness.
75771         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
75772         is needed.
75773         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
75774         replacement is required.
75775         * lib/canonicalize.c (canonicalize_file_name): Likewise.
75776         * doc/glibc-functions/canonicalize_file_name.texi
75777         (canonicalize_file_name): Document this.
75778         * doc/posix-functions/realpath.texi (realpath): Likewise.
75780         canonicalize-lgpl: reject non-directory with trailing slash
75781         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
75782         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
75783         catches failures in glibc 2.3.5.
75784         * tests/test-canonicalize.c (main): Likewise.
75786         canonicalize-lgpl: use native realpath if it works
75787         * lib/canonicalize-lgpl.c (realpath): Guard with
75788         FUNC_REALPATH_WORKS.
75789         * lib/stdlib.in.h (realpath): Make declaration optional based on
75790         HAVE_REALPATH.
75791         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
75792         native realpath works.
75793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75794         * modules/stdlib (Makefile.am): Substitute witness.
75796         canonicalize, canonicalize-lgpl: use <stdlib.h>
75797         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
75798         (Include): Mention <stdlib.h>.
75799         (configure.ac): Mention functions we provide.
75800         * modules/canonicalize (configure.ac): Likewise.
75801         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
75802         realpath if canonicalize_file_name is missing.
75803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
75804         * modules/stdlib (Makefile.am): Substitute witnesses.
75805         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
75806         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
75807         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
75808         * NEWS: Document this.
75809         * doc/glibc-functions/canonicalize_file_name.texi
75810         (canonicalize_file_name): Likewise.
75811         * doc/posix-functions/realpath.texi (realpath): Likewise.
75812         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
75814         test-canonicalize: consolidate into single C program
75815         * tests/test-canonicalize.sh: Delete; move setup into...
75816         * tests/test-canonicalize.c (main): ...the program, making it
75817         easier to run in debugger.  Add some tests.
75818         * modules/canonicalize-tests (Files): Remove unused file.
75819         (Depends-on): Add progname.
75820         (configure.ac, Makefile.am): Simplify.
75822         test-canonicalize-lgpl: consolidate into single C program
75823         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
75824         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
75825         easier to run in debugger.  Add some tests.
75826         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
75827         (configure.ac, Makefile.am): Simplify.
75829         canonicalize: avoid resolvepath
75830         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
75831         unnecessary checks.
75832         * lib/canonicalize.c (includes): Simplify.
75833         (canonicalize_file_name): Drop resolvepath implementation.
75834         * modules/canonicalize (Depends-on): Drop filenamecat.
75836         canonicalize: don't lose errno
75837         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
75838         over calls to free.
75840         canonicalize: simplify errno handling
75841         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
75842         assignment.
75844         canonicalize, canonicalize-lgpl: update module dependencies
75845         * modules/canonicalize (Depends-on): Add extensions, lstat,
75846         pathmax, stdlib.
75847         (Files): Drop pathmax.h.
75848         (configure.ac): Adjust macro name.
75849         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
75850         lstat, stdlib, sys_stat.
75851         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
75852         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
75853         extensions.
75854         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
75855         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
75856         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
75857         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
75858         declaration, if available.
75859         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
75860         we can rely on the readlink module.
75861         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
75862         (includes): Use <unistd.h> unconditionally.
75864 2009-09-17  Eric Blake  <ebb9@byu.net>
75866         maint: make Include sections of modules consistent
75867         * modules/alloca: Use only header name; no need to list #include.
75868         * modules/alloca-opt: Likewise.
75869         * modules/arpa_inet: Likewise.
75870         * modules/canon-host: Likewise.
75871         * modules/configmake: Likewise.
75872         * modules/dirent: Likewise.
75873         * modules/eealloc: Likewise.
75874         * modules/environ: Likewise.
75875         * modules/fchdir: Likewise.
75876         * modules/fcntl: Likewise.
75877         * modules/fcntl-h: Likewise.
75878         * modules/gethrxtime: Likewise.
75879         * modules/gettime: Likewise.
75880         * modules/ignore-value: Likewise.
75881         * modules/inet_ntop: Likewise.
75882         * modules/inet_pton: Likewise.
75883         * modules/inttypes: Likewise.
75884         * modules/isnand-nolibm: Likewise.
75885         * modules/isnanf-nolibm: Likewise.
75886         * modules/mbchar: Likewise.
75887         * modules/mbfile: Likewise.
75888         * modules/mbiter: Likewise.
75889         * modules/mbuiter: Likewise.
75890         * modules/netdb: Likewise.
75891         * modules/netinet_in: Likewise.
75892         * modules/nproc: Likewise.
75893         * modules/pagealign_alloc: Likewise.
75894         * modules/poll: Likewise.
75895         * modules/printf-frexp: Likewise.
75896         * modules/pthread: Likewise.
75897         * modules/putenv: Likewise.
75898         * modules/random_r: Likewise.
75899         * modules/relocatable-prog: Likewise.
75900         * modules/search: Likewise.
75901         * modules/select: Likewise.
75902         * modules/selinux-h: Likewise.
75903         * modules/settime: Likewise.
75904         * modules/signal: Likewise.
75905         * modules/size_max: Likewise.
75906         * modules/socklen: Likewise.
75907         * modules/ssize_t: Likewise.
75908         * modules/stdarg: Likewise.
75909         * modules/stdbool: Likewise.
75910         * modules/stddef: Likewise.
75911         * modules/stdint: Likewise.
75912         * modules/stdio: Likewise.
75913         * modules/stdlib: Likewise.
75914         * modules/string: Likewise.
75915         * modules/strings: Likewise.
75916         * modules/sys_file: Likewise.
75917         * modules/sys_ioctl: Likewise.
75918         * modules/sys_select: Likewise.
75919         * modules/sys_socket: Likewise.
75920         * modules/sys_stat: Likewise.
75921         * modules/sys_time: Likewise.
75922         * modules/sys_times: Likewise.
75923         * modules/sys_utsname: Likewise.
75924         * modules/sys_wait: Likewise.
75925         * modules/sysexits: Likewise.
75926         * modules/time: Likewise.
75927         * modules/times: Likewise.
75928         * modules/tmpfile: Likewise.
75929         * modules/trim: Likewise.
75930         * modules/unistd: Likewise.
75931         * modules/wchar: Likewise.
75932         * modules/wctype: Likewise.
75934 2009-09-17  Bruno Haible  <bruno@clisp.org>
75936         Make getdate.y compile on QNX and NetBSD 5 / i386.
75937         * m4/getdate.m4 (gl_GETDATE): Conditionally define
75938         TIME_T_FITS_IN_LONG_INT.
75939         * lib/getdate.y (long_time_t): New type.
75940         (relative_time): Change type of 'seconds' field to long_time_t.
75941         (get_date): Update types of local variables. Check against overflow
75942         during conversion from long_time_t to time_t.
75943         Reported by Matt Kraai <kraai@ftbfs.org>
75944         and Hasso Tepper <hasso@netbsd.org>.
75946 2009-09-17  Bruno Haible  <bruno@clisp.org>
75948         * modules/COPYING: Update copyright years.
75949         * modules/README: Likeiwse.
75950         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
75951         Reported by Ian Beckwith <ianb@erislabs.net>.
75953 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
75955         * users.txt: Update references for gnuit package.
75957 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
75959         * m4/getdelim.m4: Fix typo in copyright line.
75961 2009-09-17  Bruno Haible  <bruno@clisp.org>
75963         * lib/atoll.c: Use the standard header with GPL copyright.
75964         * lib/argz.in.h: Likewise.
75965         * lib/glob.c: Likewise.
75966         * lib/glob-libc.h: Likewise.
75967         * lib/random_r.c: Likewise.
75968         * lib/siglist.h: Likewise.
75969         * lib/strsignal.c: Likewise.
75970         Reported by Ian Beckwith <ianb@erislabs.net>.
75972 2009-09-17  Eric Blake  <ebb9@byu.net>
75974         rmdir: ensure correct dependency order
75975         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
75977 2009-09-17  Bruno Haible  <bruno@clisp.org>
75979         Disable assertion that fails on NetBSD 5 / i386.
75980         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
75981         Reported by Sam Steingold <sds@gnu.org>
75982         and Hasso Tepper <hasso@netbsd.org>.
75984 2009-09-16  Eric Blake  <ebb9@byu.net>
75986         unlinkdir: port to mingw
75987         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
75988         on which no one can unlink a directory.
75990         stdlib: sort witness names
75991         * modules/stdlib (Makefile.am): Sort replacements.
75992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
75993         * lib/stdlib.in.h: Likewise.
75995         parse-duration-tests: avoid link failure
75996         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
75997         LIBINTL.
75998         Reported by Tom G. Christensen.
76000         openat-tests: ensure unlinkat behaves like rmdir
76001         * tests/test-rmdir.c (main): Factor guts...
76002         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76003         * modules/rmdir-tests (Files): Ship new file.
76004         * modules/openat-tests: New test.
76005         * tests/test-unlinkat.c: Likewise.
76007         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76008         * modules/rmdir-errno (Status, Notice): Now obsolete.
76010         rmdir: work around cygwin 1.5.x and mingw bugs
76011         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76012         * lib/rmdir.c (rmdir): Work around it.
76013         * modules/rmdir (Status, Notice): No longer obsolete.
76014         (Files): Add dos.m4.
76015         (Depends-on): Add unistd.
76016         (configure.ac): Set witnesses.
76017         (License): Relax to LGPLv2+.
76018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76019         * modules/unistd (Makefile.am): Substitute witnesses.
76020         * lib/unistd.in.h (rmdir): Declare replacement.
76021         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76022         * modules/rmdir-tests: New tests.
76023         * tests/test-rmdir.c: Likewise.
76025 2009-09-15  Eric Blake  <ebb9@byu.net>
76027         fchdir: improve use of replacement functions
76028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76031         REPLACE_CLOSEDIR.
76032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76033         * modules/sys_stat (Makefile.am): Substitute correct witness.
76034         * modules/dirent (Makefile.am): Likewise.
76035         * modules/unistd (Makefile.am): Likewise.
76036         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76037         * lib/unistd.in.h (dup): Likewise.
76038         * lib/sys_stat.in.h (fstat): Likewise.
76040         maint: ignore gnulib-tool temp files
76041         * .gitignore: Ignore files created during gnulib-tool --test.
76043 2009-09-13  Jim Meyering  <meyering@redhat.com>
76045         posixtm: don't reject a time that specify "60" as the number of seconds
76046         * lib/posixtm.c (posixtime): The code to reject invalid dates
76047         would also reject a time specified with the .60 suffix.
76048         But POSIX allows that, in order to accommodate leap seconds.
76049         So don't reject it.
76050         (main): Adjust tests accordingly.
76051         * modules/posixtm (Depends-on): Add stpcpy.
76053 2009-09-11  Jim Meyering  <meyering@redhat.com>
76055         announce-gen: include [$release_type] in emitted Subject:
76056         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76057         e.g., [stable] in the emitted Subject: line.
76059 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76061         Remove obsolete macros from several modules.
76062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76063         obsolete Autoconf macros with their modern counterparts.
76064         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76065         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76067         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76069         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76072         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76073         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76074         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76075         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76076         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76077         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76078         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76079         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76080         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76081         * m4/time_r.m4 (gl_TIME_R): Likewise.
76082         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76083         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76084         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76086         Fix copyright header in build-aux scripts.
76087         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76088         recommendation.
76089         * build-aux/ncftpput-ftp: Likewise.
76090         * build-aux/update-copyright: Likewise.
76092 2009-09-09  Eric Blake  <ebb9@byu.net>
76094         test-link: allow Linux choice of errno
76095         * tests/test-link.c (main): Relax test for alternate error.
76097         strndup: fix improper m4 caching
76098         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76099         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76100         (gl_PREREQ_STRNDUP): Delete.
76101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76102         * modules/string (Makefile.am): Substitute it.
76103         * lib/string.in.h (strndup): Modernize prototype.
76105         getcwd: port to mingw
76106         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76107         different from the POSIX assumptions made throughout the getcwd
76108         module; fortunately, the mingw getcwd does not need replacement.
76109         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76110         * modules/getcwd-tests: New test.
76111         * tests/test-getcwd.c: Likewise.
76113         link: fix platform bugs
76114         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76115         * lib/link.c (link): Work around them.  Fix related mingw bug.
76116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76117         * modules/unistd (Makefile.am): Substitute it.
76118         * lib/unistd.in.h (link): Declare replacement.
76119         * doc/posix-functions/link.texi (link): Document this.
76120         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76122         test-link: consolidate into single C program, test more cases
76123         * tests/test-link.sh: Delete.
76124         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76125         at least Cygwin and Solaris.
76126         * modules/link-tests (Files): Remove unused file.
76127         (Depends-on): Add errno, sys_stat.
76128         (Makefile.am): Simplify.
76130 2009-09-08  Bruno Haible  <bruno@clisp.org>
76132         Work around towlower, towupper bug on mingw.
76133         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76134         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76135         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76136         * doc/posix-functions/towupper.texi: Likewise.
76137         Reported by Eric Blake.
76139 2009-09-08  Jim Meyering  <meyering@redhat.com>
76141         build: don't try to run autoheader if we don't use it
76142         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76143         is not used in configure.ac.
76145 2009-09-08  Eric Blake  <ebb9@byu.net>
76147         euidaccess: fix compilation error
76148         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76150         rawmemchr: relax license
76151         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76152         okay.
76153         Reported by Jim Meyering.
76155         mkfifoat: new module
76156         * modules/mkfifoat: New file.
76157         * lib/mkfifoat.c: Likewise.
76158         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76160         * modules/sys_stat (Makefile.am): Use them.
76161         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76162         * MODULES.html.sh (File system functions): Mention module.
76163         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76164         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76165         * modules/mkfifoat-tests: New test.
76166         * tests/test-mkfifoat.c: Likewise.
76168         strchrnul: relax license
76169         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76170         okay.
76171         Reported by Jim Meyering.
76173 2009-09-08  Eric Blake  <ebb9@byu.net>
76175         fstatat: fix compilation on Solaris
76176         * lib/fstatat.c (includes): Add fcntl.h.
76177         Reported by Pádraig Brady.
76179 2009-09-07  Eric Blake  <ebb9@byu.net>
76181         rename: modernize replacement
76182         * modules/rename (Depends-on): Add stdio.
76183         (configure.ac): Declare witness.
76184         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76185         stdio take care of replacement.
76186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76187         * modules/stdio (Makefile.am): Substitute them.
76188         * lib/stdio.in.h (rename): Declare replacement.
76189         * lib/rename.c (includes): Allow cross-compilation to non-windows
76190         machines.
76191         * doc/posix-functions/rename.texi (rename): Improve
76192         documentation.
76194         stdio: sort witness names
76195         * modules/stdio (Makefile.am): Sort replacements.
76196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76197         * lib/stdio.in.h: Likewise.
76199         getcwd: minor cleanups
76200         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76201         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76203         openat: provide more convenience names
76204         * modules/faccessat (configure.ac): Add C witness.
76205         * lib/unistd.in.h (readlinkat): Fix typo.
76206         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76207         convenience wrappers.
76208         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76209         wrappers in syntax checks.
76211 2009-09-06  Eric Blake  <ebb9@byu.net>
76213         doc: fix comments in recent patches
76214         * lib/faccessat.c: Mention correct function.
76215         * lib/fchmodat.c: Likewise.
76216         * lib/fchownat.c: Likewise.
76217         * lib/symlinkat.c: Likewise.
76218         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76219         constants.
76221         faccessat, symlinkat: continue cleanup of previous patch
76222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76223         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76224         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76226         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76227         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76228         set.
76230 2009-09-06  Bruno Haible  <bruno@clisp.org>
76232         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76233         (fstatat): Declare if GNULIB_FSTATAT is set.
76234         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76235         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76236         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76237         * modules/fcntl-h (Files): Remove m4/openat.m4.
76238         * modules/sys_stat (Files): Remove m4/openat.m4.
76239         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76240         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76241         * modules/unistd (Files): Remove m4/openat.m4.
76242         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76243         GNULIB_OPENAT.
76244         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76245         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76246         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76247         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76248         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76249         gl_OPENAT_DEFAULTS.
76250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76251         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76252         Don't require gl_OPENAT_DEFAULTS.
76253         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76254         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76255         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76256         (gl_OPENAT_DEFAULTS): Remove macro.
76258 2009-09-06  Bruno Haible  <bruno@clisp.org>
76260         * modules/openat (configure.ac): Remove unneeded witness.
76262 2009-09-06  Bruno Haible  <bruno@clisp.org>
76264         Set errno to ENOSYS when a function is entirely unsupported.
76265         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76266         EOPNOTSUPP.
76267         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76268         * modules/chown (Depends-on): Remove errno.
76270 2009-09-06  Bruno Haible  <bruno@clisp.org>
76272         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76274 2009-09-06  Bruno Haible  <bruno@clisp.org>
76276         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76278 2009-09-06  Ben Pfaff  <blp@gnu.org>
76279             Bruno Haible  <bruno@clisp.org>
76281         Work around a glibc bug in strtok_r.
76282         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76283         Undefine if UNDEFINE_STRTOK_R is set.
76284         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76286         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76288         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76289         UNDEFINE_STRTOK_R.
76290         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76292 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76294         exclude: minor fix
76295         * lib/exclude.c: Include wctype.h
76297 2009-09-06  Akim Demaille  <demaille@gostai.com>
76299         bootstrap: improve error message
76300         * build-aux/bootstrap (find_tool): Upon failure, report the list
76301         of candidates.
76302         Honor the initial value of the envvar.
76304 2009-09-05  Eric Blake  <ebb9@byu.net>
76306         symlinkat: new module
76307         * modules/symlinkat: New file.
76308         * lib/symlinkat.c: Likewise.
76309         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76311         * modules/unistd (Makefile.am): Use them.
76312         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76313         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76314         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76315         * MODULES.html.sh (File system functions): Mention module.
76316         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76317         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76318         * modules/symlinkat-tests: New test.
76319         * tests/test-symlinkat.c: Likewise.
76321         test-openat-safer: add more checks
76322         * tests/test-openat-safer.c (main): Check more code paths.
76324 2009-09-05  Jim Meyering  <meyering@redhat.com>
76326         syntax-check: detect unnecessary inclusion of openat.h
76327         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76329 2009-09-05  Bruno Haible  <bruno@clisp.org>
76331         Support towlower, towupper.
76332         * doc/posix-functions/towlower.texi: Mention module wctype.
76333         * doc/posix-functions/towupper.texi: Likewise.
76334         * lib/wctype.in.h (towlower, towupper): New functions.
76335         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76336         (ASSERT): New macro.
76337         (e): New variable.
76338         (main): Test also towlower, towupper. Test WEOF argument.
76339         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76341 2009-09-05  Bruno Haible  <bruno@clisp.org>
76343         Fix conversion behaviour when the input is invalid.
76344         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76345         mark occurring in first pass of indirect conversion.
76346         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76347         input.
76348         Found by clang's static analyzer.
76350 2009-09-05  Bruno Haible  <bruno@clisp.org>
76352         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76353         where direct conversion is possible.
76355 2009-09-04  Eric Blake  <ebb9@byu.net>
76357         openat: fail with ENOENT on empty name
76358         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76359         buffer.
76361         link-follow: fix logic bug in prior patch
76362         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76363         reversed sense of yes and no in prior patch.  Avoid confusing
76364         compilation failure with desired semantics.
76366         link-follow: accommodate mingw and cross-compilation
76367         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76368         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76369         cross-compilation results to -1, to make linkat easier to
76370         implement when cross-compiling.  Trivially support mingw.
76371         * modules/link-follow (configure.ac): Call new name.
76372         * NEWS: Mention this.
76374 2009-09-03  Eric Blake  <ebb9@byu.net>
76376         faccessat: compile replacement
76377         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76378         needed.
76380         fts: fix compilation error
76381         * lib/fts.c (includes): Re-add "openat.h", for
76382         openat_needs_fchdir.
76384         faccessat: new module
76385         * modules/faccessat: New file.
76386         * lib/faccessat.c: Likewise.
76387         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76389         * modules/unistd (Makefile.am): Use it.
76390         * lib/unistd.in.h (faccessat): Declare it.
76391         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76392         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76393         * MODULES.html.sh (File system functions): Mention it.
76394         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76395         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76397         euidaccess: prefer POSIX over non-standard implementation
76398         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76399         * lib/euidaccess.c (euidaccess): Use it if available.
76401         openat: make template easier to use
76402         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76403         AT_FUNC_F2 to be undefined.
76404         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76405         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76406         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76407         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76408         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76409         Likewise.
76410         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76411         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76412         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76413         Likewise.
76415         openat: declare in POSIX headers
76416         * NEWS: Mention this.
76417         * modules/openat (configure.ac): Declare witnesses.
76418         (Depends-on): Add fcntl-h, sys_stat, unistd.
76419         (Include): Mention correct headers.
76420         * modules/fcntl-h (Depends-on): Add link-warning.
76421         (Files): Add openat.m4.
76422         (Makefile.am): Substitute witnesses.
76423         * modules/sys_stat (Files, Makefile.am): Likewise.
76424         * modules/unistd (Files, Makefile.am): Likewise.
76425         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76426         (gl_OPENAT_DEFAULTS): New macro.
76427         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76430         (SYS_STAT_H): Remove unused variable.
76431         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76432         * lib/fcntl--.h (includes): Remove unneeded header.
76433         * lib/openat-safer.c (includes): Likewise.
76434         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76435         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76436         appropriate headers.
76437         (__OPENAT_PREFIX): Delete.
76438         * lib/fcntl.in.h (openat): Provide declaration.
76439         (AT_FDCWD): Fix Solaris bug.
76440         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76441         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76442         * lib/fchmodat.c (includes):  Adjust to find declaration.
76443         * lib/fchownat.c (includes): Likewise.
76444         * lib/mkdirat.c (includes): Likewise.
76445         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76446         still visible.
76448 2009-09-02  Eric Blake  <ebb9@byu.net>
76450         errno: use consistently
76451         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76452         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76453         * lib/canonicalize.c (ELOOP): Likewise.
76454         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76455         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76456         * lib/lchown.c (EOPNOTSUPP): Likewise.
76457         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76458         * lib/savewd.c (ESTALE): Likewise.
76459         * lib/settime.c (ENOSYS): Likewise.
76460         * lib/utimens.c (ENOSYS): Likewise.
76461         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76462         * lib/chdir-safer.c (ELOOP): Likewise.
76463         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76464         * modules/c-stack (Depends-on): Add errno.
76465         * modules/canonicalize (Depends-on): Likewise.
76466         * modules/chdir-safer (Depends-on): Likewise.
76467         * modules/fdopendir (Depends-on): Likewise.
76468         * modules/inet_ntop (Depends-on): Likewise.
76469         * modules/inet_pton (Depends-on): Likewise.
76470         * modules/lchown (Depends-on): Likewise.
76471         * modules/openat (Depends-on): Likewise.
76472         * modules/savewd (Depends-on): Likewise.
76473         * modules/settime (Depends-on): Likewise.
76474         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76476         fts: avoid leaking fds
76477         * modules/fts (Depends-on): Add cloexec.
76478         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76479         flag.
76481         fts: make directory fds more robust
76482         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76483         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76485         backupfile, chdir-long, fts, savedir: make safer
76486         * lib/backupfile.c (includes): Use "dirent--.h", since
76487         numbered_backup can write to stderr during readdir.
76488         * lib/savedir.c (includes): Likewise.
76489         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76490         emulation can write to stderr on failure.
76491         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76492         * lib/getcwd.c: Document why opendir_safer is unused.
76493         * lib/glob.c: Likewise.
76494         * lib/scandir.c: Likewise.
76495         * lib/openat-proc.c: Likewise, for open_safer.
76496         * modules/backupfile (Depends-on): Add dirent-safer.
76497         * modules/savedir (Depends-on): Likewise.
76498         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76499         * modules/chdir-long (Depends-on): Add openat-safer.
76501         openat-safer: new module
76502         * modules/openat-safer: New file.
76503         * lib/openat-safer.c: Likewise.
76504         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76505         * lib/fcntl-safer.h (openat_safer): Declare.
76506         * lib/fcntl--.h (openat): Override.
76507         * MODULES.html.sh (File descriptor based I/O): Mention it.
76508         * lib/openat.h: Add double-inclusion guards.
76509         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76510         "fcntl--.h", so we can implement openat.
76511         * modules/openat-safer-tests: New test.
76512         * tests/test-openat-safer.c: New file.
76514         dirent-safer: new module
76515         * modules/dirent-safer: New file.
76516         * lib/dirent--.h: Likewise.
76517         * lib/dirent-safer.h: Likewise.
76518         * lib/opendir-safer.c: Likewise.
76519         * m4/dirent-safer.m4: Likewise.
76520         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76521         * modules/dirent-safer-tests: New test.
76522         * tests/test-dirent-safer.c: New file.
76523         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76525         fdopendir: optimize on mingw
76526         * lib/unistd.in.h (_gl_directory_name): New prototype.
76527         * lib/fchdir.c (_gl_directory_name): Implement it.
76528         (fchdir): Use it to simplify implementation.
76529         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76530         fchdir, when available, to avoid calling [f]chdir().
76532         fdopendir: split into its own module
76533         * lib/openat.c (fdopendir): Move...
76534         * lib/fdopendir.c: ...into new file.
76535         * modules/fdopendir: New module.
76536         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76537         * modules/openat (Depends-on): Add fdopendir.
76538         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76539         fdopendir here.
76540         * modules/savedir (Depends-on): Only need fdopendir, not full
76541         openat.
76542         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76543         * lib/openat.h (fdopendir): Drop prototype.
76544         * lib/dirent.in.h (fdopendir): Provide prototype.
76545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76546         * modules/dirent (Makefile.am): Substitute them.
76547         * MODULES.html.sh (File system functions): Mention it.
76548         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76549         * modules/fdopendir-tests: New file.
76550         * tests/test-fdopendir.c: Likewise.
76552         fchdir: use more consistent macro convention
76553         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76554         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76555         REPLACE_FCHDIR, rather than relying on config.h macros.
76556         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76557         inside a single make-time REPLACE_FCHDIR block, rather than using
76558         the config.h FCHDIR_REPLACEMENT.
76559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76560         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76561         Manage fstat replacement.
76562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76563         REPLACE_FCHDIR.
76564         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76565         (Makefile.am): Substitute REPLACE_FCHDIR.
76566         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76567         FCHDIR_REPLACEMENT.
76568         * lib/dup-safer.c (dup_safer): Likewise.
76569         * lib/dup2.c (rpl_dup2): Likewise.
76570         * lib/dup3.c (rpl_dup3): Likewise.
76571         * lib/open.c (rpl_open): Likewise.
76573         fchdir: simplify error handling, and support dup3
76574         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76575         stdbool, malloc-posix, realloc-posix.
76576         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76577         (ensure_dirs_slot): Return false on allocation failure.
76578         (rpl_dup2): Delete.
76579         (_gl_register_dup): New function.
76580         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76581         (_gl_register_fd): Close fd on allocation failure.
76582         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76583         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76584         prototype.
76585         (rpl_dup2_fchdir): Delete prototype.
76586         * lib/open.c (open): Update caller.
76587         * lib/dup2.c (dup2): Track fchdir metadata.
76588         * lib/dup3.c (dup3): Likewise.
76589         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
76590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
76592 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76594         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
76595         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
76596         don't pass arguments to AC_OUTPUT.
76598 2009-09-02  Bruno Haible  <bruno@clisp.org>
76600         * modules/mkdtemp (License): Relicense under LGPLv2+.
76601         Reported by Paolo Bonzini.
76603 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76605         Replace uses of obsolete autoconf macros in Jim's modules.
76606         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
76607         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
76608         can evoke a warning from autoconf when run with -Wobsolete
76609         enabled.  They were declared obsolete for good reasons (see
76610         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
76611         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
76612         should not continue using the deprecated macros.
76613         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
76614         obsolete Autoconf macros with modern counterparts.
76615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76616         * m4/dos.m4 (gl_AC_DOS): Likewise.
76617         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
76618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
76619         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
76620         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
76621         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
76622         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
76623         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
76624         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
76625         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76626         Likewise.
76627         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
76628         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76629         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
76630         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
76631         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
76632         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76634 2009-09-01  Eric Blake  <ebb9@byu.net>
76636         fchdir: fix off-by-one bug in previous patch
76637         * lib/fchdir.c (rpl_fstat): Use correct bounds.
76638         (_gl_unregister_fd): Delete useless if.
76640 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
76642         maint.mk: sort the list of syntax-check rules
76643         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
76644         easier to get a sense of progress when the rules are run sequentially
76645         and take a long time.
76647 2009-09-01  Simon Josefsson  <simon@josefsson.org>
76649         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
76650         * modules/netinet_in: Likewise.
76651         * modules/sys_file: Likewise.
76652         * modules/sys_ioctl: Likewise.
76653         * modules/sys_select: Likewise.
76654         * modules/sys_socket: Likewise.
76655         * modules/sys_stat: Likewise.
76656         * modules/sys_time: Likewise.
76657         * modules/sys_times: Likewise.
76658         * modules/sys_utsname: Likewise.
76659         * modules/sys_wait: Likewise.
76661 2009-09-01  Jim Meyering  <meyering@redhat.com>
76663         fts: help ensure that return values are not ignored
76664         * lib/fts_.h (__GNUC_PREREQ): Define.
76665         (__attribute_warn_unused_result__): Define.
76666         (fts_children, fts_close, fts_open, fts_read): Declare with
76667         __attribute_warn_unused_result__.
76669         fts: fts_close now fails also when closing a dir file descriptor fails
76670         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
76671         and propagate to caller, along with errno.
76673         announce-gen: correct formatting in --help output
76674         * build-aux/announce-gen (usage): Move the one-line description in
76675         --help output "up", to where it belongs, just after Usage:.
76677 2009-08-31  Eric Blake  <ebb9@byu.net>
76679         fchdir: port to mingw
76680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
76681         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
76682         opened, then use a substitute.
76683         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
76684         replacement.
76685         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
76686         (_gl_register_fd): No need to check stat if open already filters
76687         all directories.
76688         (fchdir): Fix error condition to match POSIX.
76689         * modules/fchdir (Depends-on): Add sys_stat.
76690         * doc/posix-functions/open.texi (open): Document the limitation.
76691         * modules/fchdir-tests: New file.
76692         * tests/test-fchdir.c: Likewise.
76694         canonicalize: allow cross-testing from cygwin to mingw
76695         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
76696         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
76697         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
76698         Likewise.
76699         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
76700         target does not support symlinks.
76701         * tests/test-canonicalize-lgpl.sh: Likewise.
76703         chown: avoid compilation warning on mingw
76704         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
76705         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
76706         mingw.
76707         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76708         * modules/chown (Depends-on): Add errno.
76710 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
76712         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
76713         command.
76715 2009-08-31  Jim Meyering  <meyering@redhat.com>
76717         canonicalize: remove useless initialization
76718         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
76719         initialization of local, "end".
76721 2009-08-30  Bruno Haible  <bruno@clisp.org>
76723         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
76724         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
76725         ENOSYS.
76727 2009-08-30  Bruno Haible  <bruno@clisp.org>
76729         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
76730         /usr/xpg4/bin/tr when it exists.
76731         * tests/test-pipe-filter-gi1.sh: Likewise.
76733 2009-08-30  Bruno Haible  <bruno@clisp.org>
76735         Work around deficient /usr/bin/id program on Solaris.
76736         * tests/test-file-has-acl.sh (ID): New variable.
76737         * tests/test-set-mode-acl.sh (ID): Likewise.
76738         * tests/test-copy-acl.sh (ID): Likewise.
76739         * tests/test-copy-file.sh (ID): Likewise.
76741 2009-08-30  Bruno Haible  <bruno@clisp.org>
76743         New module 'xstriconveh'.
76744         * lib/xstriconveh.h: New file.
76745         * lib/xstriconveh.c: New file.
76746         * modules/xstriconveh: New file.
76748 2009-08-30  Bruno Haible  <bruno@clisp.org>
76750         Make it easier to use mem_cd_iconveh.
76751         * lib/striconveh.h (iconveh_t): New type.
76752         (iconveh_open, iconveh_close): New declarations.
76753         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76754         with a single 'const iconveh_t *' argument.
76755         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
76756         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76757         with a single 'const iconveh_t *' argument.
76758         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
76759         * tests/test-striconveh.c (main): Update.
76760         * NEWS: Mention the change.
76762 2009-08-30  Bruno Haible  <bruno@clisp.org>
76764         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
76765         problem.
76767 2009-08-30  Bruno Haible  <bruno@clisp.org>
76769         Work around iconv_open problem on Solaris.
76770         * lib/iconv_open-solaris.gperf: New file.
76771         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
76772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
76773         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
76774         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
76775         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
76776         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
76778 2009-08-29  Jim Meyering  <meyering@redhat.com>
76780         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
76781         * top/maint.mk (cvs-check): Remove target; it was just an alias
76782         to the better-named vc-diff-check.
76783         (maintainer-distcheck): Remove rule.  It was used only from
76784         the (alpha/beta/major) target, and all of its commands but one
76785         were coreutils-specific.
76786         (vc-dist): Remove rule.
76787         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
76788         Run vc-diff-check, not vc-dist.
76789         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
76791 2009-08-27  Bruno Haible  <bruno@clisp.org>
76793         * tests/test-bitrotate.c (main): Remove test that uses a shift count
76794         of 0.
76796 2009-08-27  Bruno Haible  <bruno@clisp.org>
76798         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
76799         compilers.
76800         * doc/func.texi: Document the SunPRO C bug.
76802 2009-08-27  Bruno Haible  <bruno@clisp.org>
76804         Fix link error on Solaris.
76805         * tests/test-parse-duration.c (xstrdup): Remove function.
76807 2009-08-26  Pádraig Brady  <P@draigbrady.com>
76809         ignore-value: handle pointer types, too
76810         * lib/ignore-value.h (__attribute__): Remove definition.
76811         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
76812         of a more concise and more-often effective "(void) i" statement.
76813         (ignore_ptr): New function to suppress warnings from functions that
76814         return pointers, and to make it explicit that one function doesn't
76815         handle all cases.
76817 2009-08-25  Bruno Haible  <bruno@clisp.org>
76819         dup2: work around a Linux bug.
76820         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
76821         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
76822         * doc/posix-functions/dup2.texi: Mention the Linux bug.
76823         Reported by Simon Josefsson.
76825 2009-08-25  Jim Meyering  <meyering@redhat.com>
76827         libguestfs uses gnulib
76828         * users.txt: Add libguestfs.
76830 2009-08-24  Eric Blake  <ebb9@byu.net>
76832         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
76833         * lib/pipe2.c (includes): Add binary-io.h.
76834         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
76836 2009-08-24  Bruno Haible  <bruno@clisp.org>
76838         Tolerate declared but missing accept4 syscall.
76839         * lib/accept4.c (accept4): Invoke original accept4 function first, if
76840         available.
76841         * lib/sys_socket.in.h (accept4): If the function is already present,
76842         override it.
76843         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
76844         * modules/accept4 (Makefile.am): Compile accept4.c always.
76845         Reported by Paolo Bonzini and Eric Blake.
76847 2009-08-23  Bruno Haible  <bruno@clisp.org>
76849         New module 'accept4'.
76850         * lib/sys_socket.in.h (accept4): New declaration.
76851         * lib/accept4.c: New file.
76852         * m4/accept4.m4: New file.
76853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
76854         GNULIB_ACCEPT4, HAVE_ACCEPT4.
76855         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
76856         HAVE_ACCEPT4.
76857         * modules/accept4: New file.
76858         * doc/glibc-functions/accept4.texi: Mention the new module.
76860 2009-08-24  Jim Meyering  <meyering@redhat.com>
76862         progname: also set global program_invocation_name, when possible
76863         Before this change, a libtool-enabled program that calls glibc's
76864         error function would report the program name as
76865         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
76866         * modules/progname (configure.ac): Check for a declaration of
76867         program_invocation_name.
76868         * lib/progname.c:  Include <errno.h>.
76869         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
76870         Set program_invocation_name.
76872 2009-08-23  Bruno Haible  <bruno@clisp.org>
76874         * lib/dup3.c: Include <string.h>.
76876 2009-08-23  Bruno Haible  <bruno@clisp.org>
76878         * lib/dup3.c (dup3): Test only once whether the system actually exists.
76879         * lib/pipe2.c (pipe2): Likewise.
76880         Suggested by Eric Blake.
76882 2009-08-23  Bruno Haible  <bruno@clisp.org>
76884         Tolerate declared but missing dup3 syscall.
76885         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
76886         * lib/unistd.in.h (dup3): If the function is already present,
76887         override it.
76888         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
76889         * modules/dup3 (Makefile.am): Compile dup3.c always.
76890         Reported by Paolo Bonzini.
76892 2009-08-23  Bruno Haible  <bruno@clisp.org>
76894         Tolerate declared but missing pipe2 syscall.
76895         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
76896         available.
76897         * lib/unistd.in.h (pipe2): If the function is already present,
76898         override it.
76899         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
76900         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
76901         Reported by Paolo Bonzini.
76903 2009-08-23  Bruno Haible  <bruno@clisp.org>
76905         * lib/pipe2.c (pipe2): Move #ifs inside function.
76907 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76909         quotearg: document limitations of quote_these_too
76910         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
76911         those limitations are created.
76912         * lib/quotearg.h (set_char_quoting): Document that digits and
76913         letters that are special after backslash are not permitted.
76914         (quotearg_char): Cross-reference set_char_quoting documentation.
76916 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
76918         quotearg: implement custom_quoting_style
76919         * lib/quotearg.c: (struct quoting_options): Add left_quote and
76920         right_quote fields.
76921         (set_custom_quoting): New public function.
76922         (quotearg_buffer_restyled): Add left_quote and right_quote
76923         arguments, handle them very much like locale quoting, and update
76924         all uses.
76925         (quotearg_n_custom): New public function.
76926         (quotearg_n_custom_mem): New public function.
76927         (quotearg_custom): New public function.
76928         (quotearg_custom_mem): New public function.
76929         * lib/quotearg.h: Prototype and document new public functions.
76930         (enum quoting_style): For escape_quoting_style and
76931         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
76932         ignored even though they're otherwise like c_quoting_style.
76933         Add custom_quoting_style member and document with comparison to
76934         clocale_quoting_style.
76935         * tests/test-quotearg.c (custom_quotes): New array.
76936         (custom_results): New array.
76937         (main): Extend to test custom quoting.
76939 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76941         quotearg: fix right quote escaping when it's in quote_these_too
76942         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
76943         quote, be sure to prepend only one backslash.
76944         * tests/test-quotearg.c (use_quote_double_quotes): New function.
76945         (main): Test it.
76947 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
76949         quotearg-tests: test escaping of embedded locale quotes
76950         * tests/test-quotearg.c (struct result_strings): Add member for
76951         new input.
76952         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
76953         (inputs): Add new input.
76954         (results_g): Add expected results.
76955         (flag_results): Likewise.
76956         (locale_results): Likewise.
76957         (compare_strings): Check those.
76959 2009-08-23  Bruno Haible  <bruno@clisp.org>
76961         Tests for module 'dup3'.
76962         * modules/dup3-tests: New file.
76963         * tests/test-dup3.c: New file.
76965         New module 'dup3'.
76966         * lib/unistd.in.h (dup3): New declaration.
76967         * lib/dup3.c: New file.
76968         * m4/dup3.m4: New file.
76969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
76970         HAVE_DUP3.
76971         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
76972         * modules/dup3: New file.
76973         * doc/glibc-functions/dup3.texi: Mention the new module.
76975 2009-08-23  Bruno Haible  <bruno@clisp.org>
76977         Tweak the dup2 test.
76978         * tests/test-dup2.c (main): Create the test file empty. Verify that an
76979         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
76980         the test file is still empty. Fix argument order of lseek.
76982 2009-08-23  Bruno Haible  <bruno@clisp.org>
76984         Avoid test link errors when the modules getopt-gnu, gettext are used.
76985         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
76986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76988 2009-08-23  Bruno Haible  <bruno@clisp.org>
76990         Fix getdtablesize() on mingw.
76991         * lib/getdtablesize.c (getdtablesize): Implement differently.
76992         * lib/unistd.in.h (getdtablesize): Improve comment.
76994 2009-08-23  Bruno Haible  <bruno@clisp.org>
76996         New module 'mkostemp'.
76997         Based on Ulrich Drepper's 2007-08-10 change in glibc.
76998         * lib/stdlib.in.h (mksotemp): New declaration.
76999         * lib/mkostemp.c: New file, from glibc with modifications.
77000         * lib/tempname.h (GT_FILE): Remove outdated comment.
77001         (gen_tempname): Add flags argument.
77002         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77003         (__GT_FILE): Map to 1.
77004         (small_open, large_open): Remove macros.
77005         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77006         * lib/mkstemp.c (mkstemp): Update.
77007         * lib/mkdtemp.c (mkdtemp): Likewise.
77008         * m4/mkostemp.m4: New file.
77009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77010         HAVE_MKOSTEMP.
77011         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77012         HAVE_MKOSTEMP.
77013         * modules/mkostemp: New file, based on modules/mkstemp.
77014         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77015         * NEWS: Mention the change.
77017 2009-08-23  Bruno Haible  <bruno@clisp.org>
77019         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77020         Reported by Eric Blake.
77022 2009-08-23  Bruno Haible  <bruno@clisp.org>
77024         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77025         Reported by Eric Blake.
77027 2009-08-23  Bruno Haible  <bruno@clisp.org>
77029         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77030         * modules/pipe2 (Depends-on): Likewise.
77032 2009-08-23  Eric Blake  <ebb9@byu.net>
77034         fcntl-h: add O_TTY_INIT support
77035         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77036         * tests/test-fcntl-h.c (o): Test it.
77037         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77039         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77040         * modules/fcntl: Move <fcntl.h> header replacement...
77041         * modules/fcntl-h: ...to new name, so as not to collide with
77042         like-named function.
77043         * tests/test-fcntl.c: Rename...
77044         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77045         * modules/fcntl-tests: Rename...
77046         * modules/fcntl-h-tests: ...to this.  Update test file name.
77047         * modules/chdir-long (Depends-on): Update clients.
77048         * modules/chdir-safer (Depends-on): Likewise.
77049         * modules/fcntl-safer (Depends-on): Likewise.
77050         * modules/fts (Depends-on): Likewise.
77051         * modules/mkancesdirs (Depends-on): Likewise.
77052         * modules/mkdir-p (Depends-on): Likewise.
77053         * modules/open (Depends-on): Likewise.
77054         * modules/savewd (Depends-on): Likewise.
77055         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77056         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77058 2009-08-22  Bruno Haible  <bruno@clisp.org>
77060         * modules/binary-io (License): Relicense under LGPL.
77061         * modules/pipe2 (License): Likewise.
77063 2009-08-22  Bruno Haible  <bruno@clisp.org>
77065         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77066         return value.
77067         * lib/pipe-filter-gi.c (filter_init): Likewise.
77068         Reported by Eric Blake.
77070 2009-08-22  Bruno Haible  <bruno@clisp.org>
77072         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77073         * modules/pipe (Depends-on): Add pipe2.
77075 2009-08-22  Bruno Haible  <bruno@clisp.org>
77077         Tests for module 'pipe2'.
77078         * modules/pipe2-tests: New file.
77079         * tests/test-pipe2.c: New file.
77081         New module 'pipe2'.
77082         * lib/unistd.in.h (pipe2): New declaration.
77083         * lib/pipe2.c: New file.
77084         * m4/pipe2.m4: New file.
77085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77086         HAVE_PIPE2.
77087         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77088         * modules/pipe2: New file.
77089         * doc/glibc-functions/pipe2.texi: Mention the new module.
77091 2009-08-22  Bruno Haible  <bruno@clisp.org>
77093         Reference some new glibc functions.
77094         * doc/glibc-functions/accept4.texi: New file.
77095         * doc/glibc-functions/dup3.texi: New file.
77096         * doc/glibc-functions/mkostemp.texi: New file.
77097         * doc/glibc-functions/pipe2.texi: New file.
77098         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77099         (Glibc sys/socket.h): Refer to accept4.
77100         (Glibc unistd.h): Refer to dup3, pipe2.
77101         Reported by Eric Blake.
77103 2009-08-22  Jim Meyering  <meyering@redhat.com>
77104             Bruno Haible  <bruno@clisp.org>
77106         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77107         This makes it so packages using automake-1.11's silent-rules option
77108         can print e.g., a single "GEN    configmake.h" line, rather than
77109         the 30+ statements that perform the job.  If you want to see the
77110         actual commands, you can still run "make V=1".
77111         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77112         so that make output is abbreviated when those variables are defined
77113         appropriately.
77114         * modules/argz: Likewise.
77115         * modules/arpa_inet: Likewise.
77116         * modules/byteswap: Likewise.
77117         * modules/configmake: Likewise.
77118         * modules/dirent: Likewise.
77119         * modules/errno: Likewise.
77120         * modules/fcntl: Likewise.
77121         * modules/float: Likewise.
77122         * modules/fnmatch: Likewise.
77123         * modules/getopt-posix: Likewise.
77124         * modules/glob: Likewise.
77125         * modules/iconv_open: Likewise.
77126         * modules/inttypes: Likewise.
77127         * modules/localcharset: Likewise.
77128         * modules/locale: Likewise.
77129         * modules/math: Likewise.
77130         * modules/netdb: Likewise.
77131         * modules/netinet_in: Likewise.
77132         * modules/poll: Likewise.
77133         * modules/posix_spawnp-tests: Likewise.
77134         * modules/sched: Likewise.
77135         * modules/search: Likewise.
77136         * modules/selinux-h: Likewise.
77137         * modules/signal: Likewise.
77138         * modules/spawn: Likewise.
77139         * modules/stdarg: Likewise.
77140         * modules/stdbool: Likewise.
77141         * modules/stddef: Likewise.
77142         * modules/stdint: Likewise.
77143         * modules/stdio: Likewise.
77144         * modules/stdlib: Likewise.
77145         * modules/string: Likewise.
77146         * modules/strings: Likewise.
77147         * modules/sys_file: Likewise.
77148         * modules/sys_ioctl: Likewise.
77149         * modules/sys_select: Likewise.
77150         * modules/sys_socket: Likewise.
77151         * modules/sys_stat: Likewise.
77152         * modules/sys_time: Likewise.
77153         * modules/sys_times: Likewise.
77154         * modules/sys_utsname: Likewise.
77155         * modules/sys_wait: Likewise.
77156         * modules/sysexits: Likewise.
77157         * modules/time: Likewise.
77158         * modules/unistd: Likewise.
77159         * modules/wchar: Likewise.
77160         * modules/wctype: Likewise.
77162 2009-08-22  Jim Meyering  <meyering@redhat.com>
77164         announce-gen: detect write failure
77165         * build-aux/announce-gen: Add Coda at end.
77166         Remove equivalent-but-more-verbose block at top.
77168 2009-08-19  Akim Demaille  <demaille@gostai.com>
77170         bootstrap: --help to stdout.
77171         * bootstrap (usage): Don't send --help to stderr.
77172         Use a here doc instead of a long string.
77174 2009-08-21  Eric Blake  <ebb9@byu.net>
77176         test-popen-safer: split from test-popen
77177         * tests/test-popen.c (main): Move...
77178         * tests/test-popen.h: ...into new file.
77179         * tests/test-popen-safer2.c: New file.
77180         * modules/popen-tests (Files): Add test-popen.h.
77181         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77182         Suggested by Bruno Haible.
77184         test-fcntl-safer: split from test-open
77185         * tests/test-open.c (main): Move...
77186         * tests/test-open.h: ...into new file.
77187         * tests/test-fcntl-safer.c: New file.
77188         * modules/open-tests (Files): Add test-open.h.
77189         * modules/fcntl-safer-tests: New file.
77190         Suggested by Bruno Haible.
77192         test-fopen-safer: split from test-fopen
77193         * tests/test-fopen.c (main): Move...
77194         * tests/test-fopen.h: ...into new file.
77195         * tests/test-fopen-safer.c: New file.
77196         * modules/fopen-tests (Files): Add test-fopen.h.
77197         * modules/fopen-safer-tests: New file.
77198         Suggested by Bruno Haible.
77200 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77202         popen-safer: test O_CLOEXEC at run-time.
77203         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77205 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77207         fcntl: move more flags to the header
77208         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77209         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77210         * lib/fcntl.in.h: Do both things here.
77212 2009-08-21  Jim Meyering  <meyering@redhat.com>
77214         consistently remove $@-t before redirecting to it
77215         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77216         * modules/alloca-opt: Likewise.
77217         * modules/byteswap: Likewise.
77218         * modules/fnmatch: Likewise.
77219         * modules/getopt-posix: Likewise.
77220         * modules/glob: Likewise.
77221         * modules/poll: Likewise.
77222         * modules/posix_spawnp-tests: Likewise.
77223         * modules/sys_socket: Likewise.
77224         * modules/sysexits: Likewise.
77226 2009-08-21  Eric Blake  <ebb9@byu.net>
77228         popen: simplify access to original popen
77229         * lib/popen.c (rpl_popen): No need to worry about popen being a
77230         macro.
77231         Reported by Bruno Haible.
77233 2009-08-20  Eric Blake  <ebb9@byu.net>
77235         build: avoid some compiler warnings
77236         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77237         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77238         type.
77239         (new_exclude_segment, excluded_file_pattern_p)
77240         (excluded_file_name_p): Reduce scope.
77241         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77242         old-style declaration.
77244 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77246         * tests/test-exclude1.sh: Handle Windows EOL.
77247         * tests/test-exclude2.sh: Likewise.
77248         * tests/test-exclude3.sh: Likewise.
77249         * tests/test-exclude4.sh: Likewise.
77250         * tests/test-exclude5.sh: Likewise.
77251         * tests/test-exclude6.sh: Likewise.
77252         * tests/test-exclude7.sh: Likewise.
77254 2009-08-19  Akim Demaille  <demaille@gostai.com>
77256         bootstrap: find sha1sum when named gsha1sum.
77257         * bootstrap (find_tool): New.
77258         ($SHA1SUM): New.
77259         Use it.
77261 2009-08-20  Jim Meyering  <meyering@redhat.com>
77263         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77264         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77265         expression that converts "." in a file name to "\." in the resulting
77266         regexp.  Start with a dummy statement, so that prior shell variable
77267         definitions are expanded portably.  Reported by Simon Josefsson.
77269 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77271         Fix polling for writeability of a screen buffer.
77272         * lib/poll.c: Distinguish input and screen buffers for the
77273         Win32 implementation.
77274         * lib/select.c: Likewise.
77276 2009-08-19  Eric Blake  <ebb9@byu.net>
77278         popen-safer: prevent popen from clobbering std descriptors
77279         * modules/popen-safer: New file.
77280         * lib/popen-safer.c: Likewise.
77281         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77282         * lib/stdio--.h (popen): Provide override.
77283         * lib/stdio-safer.h (popen_safer): Provide declaration.
77284         * tests/test-popen.c (includes): Partially test this.
77285         * modules/popen-safer-tests: New file, for more tests.
77286         * tests/test-popen-safer.c: Likewise.
77287         * MODULES.html.sh (file stream based Input/Output): Mention it.
77289         tests: test some of the *-safer modules
77290         * modules/fopen-safer (Depends-on): Add fopen.
77291         * modules/fcntl-safer (Depends-on): Add fcntl.
77292         * modules/stdlib-safer (Depends-on): Add stdlib.
77293         (configure.ac): Set indicator.
77294         * modules/unistd-safer (configure.ac): Likewise.
77295         * modules/tmpfile-safer (configure.ac): Likewise.
77296         (Depends-on): Add tmpfile.
77297         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77298         active.
77299         * tests/test-fopen.c (includes): Test safer versions when they are
77300         in use.
77301         * tests/test-open.c (includes): Likewise.
77303         popen: fix cygwin 1.5 bug when stdin closed
77304         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77305         * modules/popen: New file.
77306         * modules/popen-tests: Likewise.
77307         * tests/test-popen.c: Likewise.
77308         * m4/popen.m4: Likewise.
77309         * lib/popen.c: Likewise.
77310         * lib/stdio.in.h (popen): New declaration.
77311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77312         * modules/stdio (Makefile.am): Likewise.
77313         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77315 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77317         maint.mk: give full control over update-copyright exclusions
77318         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77319         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77320         (update-copyright): Don't force inclusion of top-level
77321         ChangeLog.  Don't force exclusion of all COPYING files, but make
77322         them the default exclusion instead.
77324 2009-08-16  Bruno Haible  <bruno@clisp.org>
77326         Fix test failures on Solaris 10.
77327         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77328         tests when Solaris iconv() is used.
77329         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77330         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77331         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77332         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77333         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77335 2009-08-16  Bruno Haible  <bruno@clisp.org>
77337         Fix test failures on Solaris 10.
77338         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77339         'tr' program and pass it as first argument.
77340         * tests/test-pipe-filter-gi1.sh: Likewise.
77341         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77342         program as first argument.
77343         * tests/test-pipe-filter-gi1.c (main): Likewise.
77345 2009-08-16  Eric Blake  <ebb9@byu.net>
77347         fpurge: fix previous commits
77348         * modules/fpurge (Makefile.am): Make replacement conditional,
77349         partially reverting 2007-04-29 change; missed in previous
77350         attempt.
77351         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77352         is missing.
77354 2009-08-16  Bruno Haible  <bruno@clisp.org>
77356         Clarify fpurge's effect on the file position.
77357         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77358         * tests/test-fpurge.c (main): Make a second pass for checking the file
77359         position.
77361 2009-08-16  Bruno Haible  <bruno@clisp.org>
77363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77364         declaration of fpurge is missing.
77365         * tests/test-fpurge.c (main): Check that the file has not more contents
77366         than expected. Close the file before removing it.
77368 2009-08-15  Eric Blake  <ebb9@byu.net>
77370         fpurge: don't wrap working cygwin implementation
77371         * lib/fpurge.c (fpurge): Fix comment typo.
77372         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77373         1.7 to avoid replacement.
77374         * tests/test-fpurge.c (main): Enhance test.
77376 2009-08-15  Eric Blake  <ebb9@byu.net>
77377         and Jim Meyering  <meyering@redhat.com>
77379         test-update-copyright: skip if perl is insufficient
77380         * tests/test-update-copyright.sh: Failure to run maintainer tool
77381         should not cause testsuite failure on cygwin 1.5.
77383 2009-08-14  Eric Blake  <ebb9@byu.net>
77385         doc: mention more functions added in cygwin 1.7.0
77386         * doc/posix-headers/limits.texi (limits.h): Update for recent
77387         cygwin additions.
77388         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77389         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77390         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77391         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77392         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77394 2009-08-14  Eric Blake  <ebb9@byu.net>
77396         maint.mk: simplify update-copyright rule
77397         * top/maint.mk (update-copyright-local): Delete, and document how
77398         to do it in cfg.mk instead.
77399         (update-copyright-exclude-regexp): Delete, and document how to do
77400         it in .x-update-copyright instead.
77401         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77402         exclude ChangeLog.
77404 2009-08-14  Bruno Haible  <bruno@clisp.org>
77406         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77408 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77410         maint.mk: support update-copyright-env
77411         * top/maint.mk (update-copyright-env): Define place-holder.
77412         (update-copyright): Expand $(update-copyright-env) before
77413         invoking update-copyright.
77415 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77417         update-copyright: implement forced reformatting
77418         * build-aux/update-copyright: Implement and document
77419         UPDATE_COPYRIGHT_FORCE.
77420         * tests/test-update-copyright.sh: Test it.
77422 2009-08-14  Eric Blake  <ebb9@byu.net>
77423         and Bruno Haible  <bruno@clisp.org>
77425         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77426         * tests/test-locale.c: Revert previous patch related to NULL.
77427         * tests/test-stdio.c: Likewise.
77428         * tests/test-stdlib.c: Likewise.
77429         * tests/test-string.c: Likewise.
77430         * tests/test-unistd.c: Likewise.
77431         * modules/time-tests (Depends-on): Add verify.
77432         * modules/wchar-tests (Depends-on): Likewise.
77433         * tests/test-time.c: Test for NULL compliance.
77434         * tests/test-wchar.c: Likewise.
77435         * modules/locale (Depends-on): Add stddef.
77436         * modules/stdio (Depends-on): Likewise.
77437         * modules/stdlib (Depends-on): Likewise.
77438         * modules/string (Depends-on): Likewise.
77439         * modules/time (Depends-on): Likewise.
77440         * modules/unistd (Depends-on): Likewise.
77441         * modules/wchar (Depends-on): Likewise.
77442         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77443         * lib/stdlib.in.h (includes): Likewise.
77444         * lib/string.in.h (includes): Likewise.
77445         * lib/time.in.h (includes): Likewise.
77446         * lib/unistd.in.h (includes): Likewise.
77447         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77448         replaced.
77449         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77450         * m4/stddef_h.m4: New file.
77451         * modules/stddef: Likewise.
77452         * lib/stddef.in.h: Likewise.
77453         * modules/stddef-tests: Likewise.
77454         * tests/test-stddef.c: Likewise.
77455         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77456         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77457         * doc/posix-headers/locale.texi (locale.h): Likewise.
77458         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77459         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77460         * doc/posix-headers/string.texi (string.h): Likewise.
77461         * doc/posix-headers/time.texi (time.h): Likewise.
77462         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77463         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77465 2009-08-14  Eric Blake  <ebb9@byu.net>
77467         doc: improve git diff of texinfo files
77468         * .gitattributes: Add rule for *.texi files, with hint on how to
77469         use it.
77470         Copied from m4, and based on a report by Bruno Haible.
77472 2009-08-14  Bruno Haible  <bruno@clisp.org>
77474         Disable multithread support by default on Cygwin 1.5.x for real.
77475         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77477 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77479         update-copyright: much ado about intervals
77480         * build-aux/update-copyright: Implement and document
77481         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77482         of copyright year intervals.
77483         Also, document UPDATE_COPYRIGHT_YEAR.
77484         * tests/test-update-copyright.sh: Test it.
77486         update-copyright: convert 2-digit to 4-digit years
77487         * build-aux/update-copyright: Implement and document.
77488         * tests/test-update-copyright.sh: Update.
77490 2009-08-14  Jim Meyering  <meyering@redhat.com>
77492         test-exclude: avoid coreutils "make check" failure
77493         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77494         just as in test-argmatch.c.
77496 2009-08-13  Eric Blake  <ebb9@byu.net>
77498         test-dup2: fix bad assumption
77499         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77500         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77502         test-version-etc: fix CRLF portability issue
77503         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77504         recognize \r.
77505         * tests/test-argp-version-etc-1.sh: Likewise.
77507         getopt: update client modules
77508         * modules/argp (Depends-on): Use getopt-gnu.
77509         * modules/git-merge-changelog (Depends-on): Likewise.
77510         * modules/long-options (Depends-on): Likewise.
77511         * modules/xstrtol (Depends-on): Likewise.
77513 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77515         * tests/test-version-etc.sh: Don't fail on different
77516         project/version.  Don't fail on CRLF differences.  Rewrite to use
77517         multiple -e instead of multiple sed forks, suggested by Eric Blake
77518         <ebb9@byu.net>.
77519         * tests/test-argp-version-etc-1.sh: Likewise.
77521 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77523         * tests/test-version-etc.sh: Don't fail on different
77524         project/version.
77526 2009-08-12  Bruno Haible  <bruno@clisp.org>
77528         Tests for modules 'getopt-posix', 'getopt-gnu'.
77529         * modules/getopt-posix-tests: New file.
77530         * tests/test-getopt.c: New file.
77531         * tests/test-getopt.h: New file.
77532         * tests/test-getopt_long.h: New file.
77534         New modules 'getopt-posix', 'getopt-gnu'.
77535         * modules/getopt-gnu: New file, renamed from modules/getopt.
77536         * modules/getopt-posix: New file.
77537         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77538         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77539         (gl_GETOPT): Remove macro.
77540         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77541         Disable the test against BSD systems that declare optreset. Test
77542         against mingw bug. Test against lack of support of optional arguments
77543         on many platforms.
77544         * doc/glibc-headers/getopt.texi: Update module name and list of
77545         relevant platforms.
77546         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77547         'getopt-gnu' and more portability problems.
77548         * NEWS: Mention the changes.
77550 2009-08-12  Bruno Haible  <bruno@clisp.org>
77552         Ensure that optarg etc. get declared by <unistd.h>.
77553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77554         AC_USE_SYSTEM_EXTENSIONS.
77555         * modules/getopt (Depends-on): Add 'extensions'.
77557 2009-08-12  Bruno Haible  <bruno@clisp.org>
77559         Avoid test link errors.
77560         * modules/pipe-filter-ii-tests (Makefile.am): Define
77561         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77562         * modules/pipe-filter-gi-tests (Makefile.am): Define
77563         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77566 2009-08-12  Bruno Haible  <bruno@clisp.org>
77568         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77569         gl_GETOPT_SUBSTITUTE before.
77570         (gl_GETOPT): Use it.
77571         * m4/argp.m4 (gl_ARGP): Update.
77572         Reported by Sergey Poznyakoff.
77574         * m4/getopt.m4: Reorder macros.
77575         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77576         (gl_GETOPT_SUBSTITUTE): Remove macro.
77578 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77580         Minor improvement in gitlog-to-changelog
77582         * build-aux/gitlog-to-changelog: New option `--format' makes
77583         output format string configurable.
77585 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77587         Optimize exclude: use hash tables for non-wildcard patterns.
77589         * lib/exclude.c: Include hash.h and mbuiter.h
77590         (struct exclude_pattern, exclude_segment): New data types.
77591         (struct exclude): Rewrite.
77592         (fnmatch_pattern_has_wildcards): New function.
77593         (new_exclude_segment, free_exclude_segment): New functions.
77594         (excluded_file_pattern_p, excluded_file_name_p): New functions.
77595         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
77596         * lib/exclude.h (is_fnmatch_pattern): New prototype.
77597         * modules/exclude: Depend on hash and mbuiter.
77599         * modules/exclude-tests: New file.
77600         * tests/test-exclude.c: New file.
77601         * tests/test-exclude1.sh: New file.
77602         * tests/test-exclude2.sh: New file.
77603         * tests/test-exclude3.sh: New file.
77604         * tests/test-exclude4.sh: New file.
77605         * tests/test-exclude5.sh: New file.
77606         * tests/test-exclude6.sh: New file.
77607         * tests/test-exclude7.sh: New file.
77609 2009-08-12  Bruno Haible  <bruno@clisp.org>
77611         Ensure that getopt() gets declared by <unistd.h>.
77612         * lib/unistd.in.h: Conditionally include getopt.h.
77613         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
77614         Set GNULIB_UNISTD_H_GETOPT.
77615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77616         GNULIB_UNISTD_H_GETOPT.
77617         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
77619 2009-08-12  Bruno Haible  <bruno@clisp.org>
77621         Clarify logic.
77622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
77623         gl_replace_getopt instead of GETOPT_H.
77625 2009-08-12  Bruno Haible  <bruno@clisp.org>
77627         * m4/getopt.m4: Add comments.
77629 2009-08-12  Bruno Haible  <bruno@clisp.org>
77631         Disable multithread support by default on Cygwin 1.5.x.
77632         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
77633         set gl_use_threads=no if not specified otherwise.
77635 2009-08-11  Bruno Haible  <bruno@clisp.org>
77637         Avoid compilation error on NetBSD 5.0.
77638         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
77639         * tests/test-stdio.c: Likewise.
77640         * tests/test-stdlib.c: Likewise.
77641         * tests/test-string.c: Likewise.
77642         * tests/test-unistd.c: Likewise.
77643         Reported by Greg Troxel <gdt@ir.bbn.com>
77644         at <https://savannah.gnu.org/support/?106973>.
77646 2009-08-11  Bruno Haible  <bruno@clisp.org>
77648         * modules/dup2-tests (Depends-on): Remove close.
77650         Undo 2009-07-19 commit.
77651         * modules/acl-tests (Depends-on): Remove close.
77652         * modules/binary-io-tests (Depends-on): Likewise.
77653         * modules/closein-tests (Depends-on): Likewise.
77654         * modules/flock-tests (Depends-on): Likewise.
77655         * modules/fsync-tests (Depends-on): Likewise.
77656         * modules/lseek-tests (Depends-on): Likewise.
77657         * modules/pipe-tests (Depends-on): Likewise.
77658         * modules/posix_spawn-tests (Depends-on): Likewise.
77659         * modules/posix_spawnp-tests (Depends-on): Likewise.
77660         * modules/stat-time-tests (Depends-on): Likewise.
77661         * modules/yesno-tests (Depends-on): Likewise.
77663 2009-08-10  Bruno Haible  <bruno@clisp.org>
77665         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
77667 2009-08-10  Bruno Haible  <bruno@clisp.org>
77669         Fix a gcc warning.
77670         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
77672 2009-08-10  Bruno Haible  <bruno@clisp.org>
77674         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
77675         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
77676         not only the first time.
77677         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
77678         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
77679         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
77680         is 1, not only the first time.
77682 2009-08-10  Bruno Haible  <bruno@clisp.org>
77684         Make it possible to use module 'gethostname' without module 'close'.
77685         * lib/unistd.in.h (close): Evoke a link error only if
77686         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77688         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77689         * modules/unistd (Makefile.am): Substitute
77690         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77691         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
77692         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77693         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
77694         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77695         * modules/sys_ioctl (Makefile.am): Substitute
77696         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77697         * modules/socket (configure.ac): On native Windows, set
77698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
77699         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77700         Reported by Sam Steingold <sds@gnu.org>.
77702 2009-08-10  Bruno Haible  <bruno@clisp.org>
77704         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
77705         * modules/ioctl (configure.ac): Likewise.
77707 2009-08-10  Bruno Haible  <bruno@clisp.org>
77709         Avoid collision between gnulib wrapper and libintl wrapper.
77710         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
77711         already defined in intl/printf.c.
77712         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
77713         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
77715 2009-08-09  Bruno Haible  <bruno@clisp.org>
77717         Make <sys/select.h> really self-contained, also on Solaris 10.
77718         * lib/sys_select.in.h: Include <string.h>.
77719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
77720         Solaris 10 problem.
77721         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
77722         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
77723         Reported by Jim Meyering.
77725 2009-08-09  Bruno Haible  <bruno@clisp.org>
77727         Avoid warnings from 'aclocal' that are due to a use of macro name
77728         AM_XGETTEXT_OPTION that is not defined in automake.
77729         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
77730         automake.
77731         * modules/error (configure.ac): Likewise.
77732         * modules/propername (configure.ac): Likewise.
77733         * modules/vasprintf (configure.ac): Likewise.
77734         * modules/verror (configure.ac): Likewise.
77735         * modules/xprintf (configure.ac): Likewise.
77736         * modules/xvasprintf (configure.ac): Likewise.
77738 2009-08-08  Bruno Haible  <bruno@clisp.org>
77740         Avoid compilation error in C++ mode.
77741         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
77742         Reported by Sam Steingold <sds@gnu.org>.
77744 2009-08-08  Bruno Haible  <bruno@clisp.org>
77746         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
77747         for the various Unix platforms.
77748         * doc/posix-headers/limits.texi: Update platforms list regarding
77749         HOST_NAME_MAX.
77750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77752 2009-08-07  Jim Meyering  <meyering@redhat.com>
77754         selinux-at: fix typo in a comment
77755         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
77756         Spotted by Paolo Bonzini.
77758         selinux-at: remove redundant m4 code, add documentation
77759         * modules/selinux-at (configure.ac): Remove redundant code.
77760         LIB_SELINUX is already set via the dependent module, selinux-h.
77761         (Include): Add quotes around selinux-at.h.
77762         * lib/selinux-at.h: Add documentation.
77763         Reported by Bruno Haible in
77764         http://marc.info/?l=gnulib-bug&m=124958988300749
77766 2009-08-07  Bruno Haible  <bruno@clisp.org>
77768         Avoid link error on MacOS X 10.3 and 10.4.
77769         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
77770         on non-ELF systems.
77771         * lib/argp-pv.c (argp_program_version): Likewise.
77772         Reported by Simon Josefsson.
77774 2009-08-07  Simon Josefsson  <simon@josefsson.org>
77776         * tests/test-version-etc.sh: Use $EXEEXT.
77778 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
77780         update-copyright: update documentation to point to maint.mk
77781         * build-aux/update-copyright: Here.
77783 2009-08-06  Jim Meyering  <meyering@redhat.com>
77785         maint.mk: support update-copyright-local
77786         * top/maint.mk (update-copyright-local): Define place-holder.
77787         (update-copyright): Depend on $(update-copyright-local).
77789 2009-08-06  Jim Meyering  <meyering@redhat.com>
77791         selinux-at: new module
77792         Initially written for coreutils, this module will soon be
77793         used by findutils, too.
77794         * MODULES.html.sh [Misc]: Add selinux-at.
77795         * lib/selinux-at.h: New file, from coreutils.
77796         * lib/selinux-at.c: Likewise.
77797         * modules/selinux-at: Likewise.
77798         (License): Change from LGPL to GPL, since it depends
77799         on the GPL'd openat module.
77801         doc: update README
77802         * README: Remove references to cogito.
77803         Remove cvs-repo-updating instructions from 2007.
77804         Don't imply that CVS is better if you have limited disk space.
77806 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77808         update-copyright: support C-style comments
77809         * build-aux/update-copyright: Implement and document.
77810         * tests/test-update-copyright.sh: Test.
77812 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77814         update-copyright: support omitted "(C)"
77815         * build-aux/update-copyright: Implement and document.  Also,
77816         allow variable whitespace before "(C)".
77817         * tests/test-update-copyright.sh: Test.
77819 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77821         update-copyright: don't trip on non-FSF copyright statements
77822         * build-aux/update-copyright: Fix so that the first correctly
77823         formatted FSF copyright statement is recognized no matter what
77824         appears before it.  Update documentation.
77825         * tests/test-update-copyright.sh: Test that.
77827 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77829         update-copyright: clean up code a little
77830         * build-aux/update-copyright: Append "_re" to the name of any
77831         variable holding a regular expression.
77832         Replace "old" and "new" with "stmt" in variable names.
77833         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
77834         handled correctly.
77835         Format code more consistently.
77837 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77839         update-copyright-tests: improve portability
77840         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
77841         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
77843 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
77845         update-copyright: support @copyright{} and &copy;
77846         * build-aux/update-copyright: Implement and document.
77847         * tests/test-update-copyright.sh: Test.
77849 2009-08-04  Jim Meyering  <meyering@redhat.com>
77851         update-copyright-tests: correctly test EOL=\r\n handling
77852         * tests/test-update-copyright.sh: Put \r at the end of some lines
77853         for the dos-eol tests.  Based on a patch by Joel E. Denny.
77855         maint.mk: make update-copyright exclusion list more configurable
77856         * top/maint.mk (update-copyright): Default to excluding COPYING,
77857         but allow an override, in case someone does want to update that file.
77859         maint.mk: don't update copyright date in COPYING
77860         * top/maint.mk (update-copyright): Exclude COPYING.
77862         maint.mk: add a copyright-updating rule
77863         * top/maint.mk (update-copyright): New rule.
77864         Derived from coreutils/Makefile.am.
77866         update-copyright: rename some variables
77867         * build-aux/update-copyright: Rename a few variables for clarity.
77868         Tweak syntax.  List Joel E. Denny as coauthor.
77870 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
77872         update-copyright: fix bug for 2-digit last year and add tests
77873         * build-aux/update-copyright: Fix bug.
77874         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
77875         specified.
77876         * modules/update-copyright-tests: New
77877         * tests/test-update-copyright.sh: New.
77879 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77881         update-copyright: handle leading tabs in line prefix
77882         * build-aux/update-copyright: Count leading tabs as 8 spaces
77883         when computing margin.  This helps with the formatting of
77884         ChangeLogs, for example.
77885         Fix documentation a little.
77887 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77889         update-copyright: support EOL=\r\n
77890         * build-aux/update-copyright: Implement that.
77892 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
77894         update-copyright: automatically format copyright statements
77895         * build-aux/update-copyright: Implement that.
77896         Also, be a little more predictable and safer by always failing
77897         when the full copyright format is not perfectly recognized as an
77898         unbroken whole.  Discussed at
77899         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
77900         Rewrite documentation.
77902 2009-08-03  Bruno Haible  <bruno@clisp.org>
77904         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
77906 2009-08-02  Bruno Haible  <bruno@clisp.org>
77908         Tests for module 'uname'.
77909         * modules/uname-tests: New file.
77910         * tests/test-uname.c: New file.
77912         New module 'uname'.
77913         * lib/uname.c: New file.
77914         * m4/uname.m4: New file.
77915         * modules/uname: New file.
77916         * doc/posix-functions/uname.texi: Mention the new module.
77918 2009-08-02  Bruno Haible  <bruno@clisp.org>
77920         Tests for module 'sys_utsname'.
77921         * modules/sys_utsname-tests: New file.
77922         * tests/test-sys_utsname.c: New file.
77924         New module 'sys_utsname'.
77925         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
77926         * m4/sys_utsname_h.m4: New file.
77927         * modules/sys_utsname: New file.
77928         * doc/posix-headers/sys_utsname.texi: Mention the new module.
77930 2009-08-02  Bruno Haible  <bruno@clisp.org>
77932         Implicitly initialize the sockets library.
77933         * lib/gethostname.c: Include sockets.h.
77934         (rpl_gethostname): Invoke gl_sockets_startup.
77935         * lib/socket.c: Include sockets.h.
77936         (rpl_socket): Invoke gl_sockets_startup.
77937         * modules/gethostname (Depends-on): Add sockets.
77938         * modules/socket (Depends-on): Likewise.
77939         * tests/test-poll.c: Don't include sockets.h.
77940         (main): Don't invoke gl_sockets_startup.
77941         * tests/test-select.c: Don't include sockets.h.
77942         (main): Don't invoke gl_sockets_startup.
77944 2009-08-02  Bruno Haible  <bruno@clisp.org>
77946         Allow multiple calls to gl_sockets_startup.
77947         * lib/sockets.c (initialized_sockets_version): New variable.
77948         (gl_sockets_startup): Do nothing if already called for this or a higher
77949         version.
77950         (gl_sockets_cleanup): Reset initialized_sockets_version.
77952 2009-08-03  Simon Josefsson  <simon@josefsson.org>
77954         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
77955         different project/version.
77957 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
77958             Bruno Haible  <bruno@clisp.org>
77960         Tests for module 'pipe-filter-gi'.
77961         * modules/pipe-filter-gi-tests: New file.
77962         * tests/test-pipe-filter-gi1.sh: New file.
77963         * tests/test-pipe-filter-gi1.c: New file.
77964         * tests/test-pipe-filter-gi2.sh: New file.
77965         * tests/test-pipe-filter-gi2-main.c: New file.
77966         * tests/test-pipe-filter-gi2-child.c: New file.
77968         New module 'pipe-filter-gi'.
77969         * lib/pipe-filter-gi.c: New file.
77970         * modules/pipe-filter-gi: New file.
77972 2009-08-02  Bruno Haible  <bruno@clisp.org>
77973             Paolo Bonzini  <bonzini@gnu.org>
77975         Tests for module 'pipe-filter-ii'.
77976         * modules/pipe-filter-ii-tests: New file.
77977         * tests/test-pipe-filter-ii1.sh: New file.
77978         * tests/test-pipe-filter-ii1.c: New file.
77979         * tests/test-pipe-filter-ii2.sh: New file.
77980         * tests/test-pipe-filter-ii2-main.c: New file.
77981         * tests/test-pipe-filter-ii2-child.c: New file.
77983         New module 'pipe-filter-ii'.
77984         * lib/pipe-filter.h: New file.
77985         * lib/pipe-filter-ii.c: New file.
77986         * lib/pipe-filter-aux.h: New file.
77987         * modules/pipe-filter-ii: New file.
77989 2009-08-02  Simon Josefsson  <simon@josefsson.org>
77991         * lib/gc-libgcrypt.c: Change copyright to FSF.
77992         * lib/gc-gnulib.c: Likewise.
77994 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
77996         * lib/gethostname.c: Include limits.h.
77998 2009-08-02  Simon Josefsson  <simon@josefsson.org>
77999             Bruno Haible  <bruno@clisp.org>
78001         Ensure HOST_NAME_MAX as part of the gethostname module.
78002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78003         define also HOST_NAME_MAX.
78004         * tests/test-gethostname.c: Include <limits.h>.
78005         (main): Check also HOST_NAME_MAX.
78006         * doc/posix-headers/limits.texi: Document the mingw problem.
78008 2009-08-02  Bruno Haible  <bruno@clisp.org>
78010         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78011         Add comments.
78013 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78015         * lib/gethostname.c: Add Windows wrapper.
78016         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78017         * modules/gethostname: Depend on sys_socket & errno, for also
78018         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78019         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78021 2009-07-31  Jim Meyering  <meyering@redhat.com>
78023         getloadavg: fix symbol name in comment
78024         * lib/getloadavg.c: Correct a typo I introduced when adding
78025         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78026         Matt Kraai spotted the problem.
78028 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78030         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78031         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78032         code also if ! defined N_NAME_POINTER.
78033         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78034         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78035         but the n_name member is a 12-byte array.
78037 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78039         update-copyright: generalize comment handling
78040         * build-aux/update-copyright: Handle copyright statements
78041         within more comment styles.
78042         Document usage.
78043         Report any file with an external copyright holder or parse failure.
78045 2009-07-29  Jim Meyering  <meyering@redhat.com>
78047         mktime: correct setting of REPLACE_MKTIME
78048         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78050         update-copyright: new module
78051         * modules/update-copyright: New file.
78052         * build-aux/update-copyright: New file.
78053         * MODULES.html.sh (maint+release support): Add update-copyright.
78055 2009-07-27  Bruno Haible  <bruno@clisp.org>
78057         Fix compilation error when <ctime> is used and mktime is replaced.
78058         * lib/time.in.h (mktime): New declaration.
78059         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78060         REPLACE_MKTIME instead of defining mktime in config.h.
78061         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78062         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78063         Reported by Ross McFarland <rwmcfa1@neces.com>.
78065 2009-07-27  Bruno Haible  <bruno@clisp.org>
78067         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78068         Reported by Matt Kraai <mkraai@beckman.com>.
78070 2009-07-25  Jim Meyering  <meyering@redhat.com>
78072         maint.mk: avoid warnings about missing files
78073         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78074         diagnostic when .prev-version does not exist.
78075         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78076         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78077         nonexistent cfg.mk.
78078         Suggestions from Simon Josefsson.
78080 2009-07-25  Bruno Haible  <bruno@clisp.org>
78082         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78083         defined as macros. Needed on QNX 6.4.1.
78084         Reported by Matt Kraai <mkraai@beckman.com>.
78086 2009-07-23  Jim Meyering  <meyering@redhat.com>
78088         maint.mk: invoke "make dist" with a working value of XZ_OPT
78089         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78091 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78093         Make fseeko.c compile on QNX.
78094         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78096 2009-07-22  Peter Simons  <simons@cryp.to>
78098         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78099         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78100         * lib/md4.h: Likewise.
78101         * lib/md5.h: Likewise.
78102         * lib/sha1.h: Likewise.
78103         * lib/sha256.h: Likewise.
78104         * lib/sha512.h: Likewise.
78106         tests-sha1: don't assign literal string to 'char *' variable
78107         * tests/test-sha1.c (main): Declare locals with "const" to match
78108         attributes of the right hand side.
78110 2009-07-21  Eric Blake  <ebb9@byu.net>
78112         dup2: fix more mingw problems
78113         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78114         fd to itself.
78115         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78116         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78117         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78118         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78119         care of mingw bugs.
78121 2009-07-21  Jim Meyering  <meyering@redhat.com>
78123         vc-list-files: avoid failure when /bin/sh is dash
78124         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78125         On some Debian based systems, /bin/sh is a symlink to dash, and running
78126         this command would omit the "/" following each 'tests' prefix:
78127           dash -x build-aux/vc-list-files -C . tests
78128         That is because bash and dash work differently:
78129           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78130           bash ok
78131           dash odd
78133 2009-07-21  Eric Blake  <ebb9@byu.net>
78135         dup2-tests: test previous patch
78136         * modules/dup2-tests: New file.
78137         * tests/test-dup2.c: Likewise.
78138         * tests/test-open.c (main): Avoid unspecified behavior.
78139         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78140         test.
78142         dup2: work around mingw and cygwin 1.5 bug
78143         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78145         * modules/unistd (Makefile.am): Substitute it.
78146         * lib/unistd.in.h (dup2): Declare the replacement.
78147         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78148         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78149         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78150         * modules/execute (Depends-on): Add dup2.
78151         * modules/fseterr (Depends-on): Likewise.
78152         * modules/pipe (Depends-on): Likewise.
78153         * modules/posix_spawn-internal (Depends-on): Likewise.
78155 2009-07-21  Bruno Haible  <bruno@clisp.org>
78157         * modules/.gitattributes: New file.
78159 2009-07-20  Bruno Haible  <bruno@clisp.org>
78161         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78162         (main): Use it.
78164 2009-07-20  Eric Blake  <ebb9@byu.net>
78166         test-pipe: make a bit more robust.
78167         * tests/test-pipe.c (myerr): Allow error messages regardless of
78168         what we do to stderr.
78169         (test_pipe): Rearrange to avoid deadlock.
78170         (child_main): Try a larger read, to ensure we avoided deadlock.
78171         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78172         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78173         if misused.
78175 2009-07-19  Jim Meyering  <meyering@redhat.com>
78177         fts: avoid false-positive cycle-detection
78178         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78179         for each new command line argument.
78181 2009-07-19  Bruno Haible  <bruno@clisp.org>
78183         Fix build error on mingw with the modules sys_select and unistd.
78184         * modules/acl-tests (Depends-on): Add close.
78185         * modules/binary-io-tests (Depends-on): Likewise.
78186         * modules/closein-tests (Depends-on): Likewise.
78187         * modules/flock-tests (Depends-on): Likewise.
78188         * modules/fsync-tests (Depends-on): Likewise.
78189         * modules/lseek-tests (Depends-on): Likewise.
78190         * modules/pipe-tests (Depends-on): Likewise.
78191         * modules/posix_spawn-tests (Depends-on): Likewise.
78192         * modules/posix_spawnp-tests (Depends-on): Likewise.
78193         * modules/stat-time-tests (Depends-on): Likewise.
78194         * modules/yesno-tests (Depends-on): Likewise.
78196 2009-07-19  Bruno Haible  <bruno@clisp.org>
78198         Unify conditionals.
78199         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78200         macros, not at the compiler macros.
78201         * lib/pipe.c: Likewise.
78202         * lib/execute.c: Likewise.
78203         * lib/spawni.c: Likewise.
78205 2009-07-19  Bruno Haible  <bruno@clisp.org>
78207         Fix handling of closed stdin/stdout/stderr on mingw.
78208         * lib/w32spawn.h: Include unistd.h.
78209         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78210         file descriptor with O_NOINHERIT flag.
78211         (fd_safer_noinherit): New function, based on fd-safer.c.
78212         (dup_safer_noinherit): New function, based on dup-safer.c.
78213         (undup_safer_noinherit): New function.
78214         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78215         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78216         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78217         instead of fd_safer.
78218         * tests/test-pipe.c: Include <windows.h>.
78219         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78220         result.
78222         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78223         from main.
78224         (test_pipe): Pass an extra argument for disambiguation.
78225         (main): Invoke parent_main or child_main.
78227         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78228         consistently.
78230 2009-07-18  Eric Blake  <ebb9@byu.net>
78232         test-pipe: fix mingw build
78233         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78235 2009-07-18  Bruno Haible  <bruno@clisp.org>
78237         * modules/pipe-tests (Makefile.am): Fix typo.
78239 2009-07-18  Eric Blake  <ebb9@byu.net>
78241         error: fix mingw build
78242         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78243         Reported by Bruno Haible.
78245         error: avoid undefined use of stdout
78246         * lib/error.c (error, error_at_line): Check that fd 1 is open
78247         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78248         is handling faults and the close_stdout module wants to report the
78249         detection of closed stdout as an error.
78251 2009-07-17  Eric Blake  <ebb9@byu.net>
78253         pipe: be robust in face of closed fds
78254         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78255         should cause child to misbehave.
78256         * modules/pipe-tests: New module.
78257         * tests/test-pipe.c: New file.
78258         * tests/test-pipe.sh: New file.
78259         Reported by Akim Demaille.
78261 2009-07-14  Bruno Haible  <bruno@clisp.org>
78263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78264         Reported by anonymous kc.
78266 2009-07-07  Jim Meyering  <meyering@redhat.com>
78268         maint.mk: don't look for translatable strings in *.m4 or *.mk
78269         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78270         when searching for translatable strings.
78272 2009-07-05  Jim Meyering  <meyering@redhat.com>
78274         remove superfluous parentheses in STREQ definition
78275         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78276         * lib/getugroups.c (STREQ): Likewise.
78277         * lib/fnmatch.c (STREQ): Likewise.
78278         Spotted by Bruno Haible.
78280 2009-07-04  Jim Meyering  <meyering@redhat.com>
78282         argv-iter: new module
78283         * MODULES.html.sh: Add argv-iter.
78284         * lib/argv-iter.c, lib/argv-iter.h: New files.
78285         * modules/argv-iter: New file.
78286         * modules/argv-iter-tests: New file.
78287         * tests/test-argv-iter.c: Test it.
78289 2009-07-04  Bruno Haible  <bruno@clisp.org>
78291         Fix assertion.
78292         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78293         contains more exact copies of a given entry than file2, leave the extra
78294         copies unpaired rather than aborting.
78295         Reported by Eric Blake.
78297 2009-07-02  Bruno Haible  <bruno@clisp.org>
78299         Speedup git-merge-changelog for git cherry-pick.
78300         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78301         (entries_mapping_get): New function, extracted from compute_mapping.
78302         (entries_mapping_reverse_get): New function.
78303         (compute_mapping): Add a 'full' argument. Return the result in a
78304         'struct entries_mapping'.
78305         (main): Update. Access the mappings through entries_mapping_get.
78306         Reported by Eric Blake.
78308 2009-07-02  Bruno Haible  <bruno@clisp.org>
78310         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78311         best_i.
78313 2009-07-02  Bruno Haible  <bruno@clisp.org>
78315         Speed up approximate search for matching ChangeLog entries.
78316         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78317         argument. Call fstrcmp_bounded instead of fstrcmp.
78318         (compute_mapping, try_split_merged_entry, main): Update callers.
78320 2009-07-02  Bruno Haible  <bruno@clisp.org>
78322         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78324 2009-06-30  Bruno Haible  <bruno@clisp.org>
78326         Reduce the number of uc_is_cased calls.
78327         * lib/unicase.h (casing_suffix_context_t): Add
78328         'first_char_except_ignorable' field.
78329         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78330         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78331         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78332         Update initializer.
78333         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78334         case-ignorable characters.
78335         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78336         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78337         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78338         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78339         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78341 2009-06-30  Bruno Haible  <bruno@clisp.org>
78343         Tests for module 'unicase/ignorable'.
78344         * modules/unicase/ignorable-tests: New file.
78345         * tests/unicase/test-ignorable.c: New file, generated by
78346         gen-uni-tables.
78348         Tests for module 'unicase/cased'.
78349         * modules/unicase/cased-tests: New file.
78350         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78351         * tests/unicase/test-predicate-part1.h: New file, derived from
78352         tests/unictype/test-predicate-part1.h.
78353         * tests/unicase/test-predicate-part2.h: New file, same as
78354         tests/unictype/test-predicate-part2.h.
78356         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78357         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78358         (output_casing_properties): New function.
78359         (main): Call it.
78360         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78361         * lib/unicase/cased.c: Include unictype/bitmap.h.
78362         (uc_is_cased): Define through a bitmap lookup.
78363         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78364         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78365         (uc_is_case_ignorable): Define through a bitmap lookup.
78366         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78367         lib/unictype/bitmap.h.
78368         (Depends-on): Add inline. Clean up.
78369         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78370         lib/unictype/bitmap.h.
78371         (Depends-on): Add inline. Clean up.
78372         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78373         recognition.
78374         * tests/unicase/test-u16-tolower.c (main): Likewise.
78375         * tests/unicase/test-u32-tolower.c (main): Likewise.
78377 2009-06-30  Bruno Haible  <bruno@clisp.org>
78379         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78380         * lib/unicase/u16-casemap.c: Likewise.
78381         * lib/unicase/u32-casemap.c: Likewise.
78383 2009-06-29  Bruno Haible  <bruno@clisp.org>
78385         Define u32_casefold as a wrapper around u32_ct_casefold.
78386         * lib/unicase/u32-casefold.c: Update.
78387         * modules/unicase/u32-casefold (Depends-on): Add
78388         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78389         unicase/empty-suffix-context. Clean up.
78391         Define u16_casefold as a wrapper around u16_ct_casefold.
78392         * lib/unicase/u16-casefold.c: Update.
78393         * modules/unicase/u16-casefold (Depends-on): Add
78394         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78395         unicase/empty-suffix-context. Clean up.
78397         Define u8_casefold as a wrapper around u8_ct_casefold.
78398         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78399         * lib/unicase/u8-casefold.c: Update.
78400         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78401         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78403         Define u32_totitle as a wrapper around u32_ct_totitle.
78404         * lib/unicase/u32-totitle.c: Update.
78405         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78406         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78408         Define u16_totitle as a wrapper around u16_ct_totitle.
78409         * lib/unicase/u16-totitle.c: Update.
78410         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78411         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78413         Define u8_totitle as a wrapper around u8_ct_totitle.
78414         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78415         functions.
78416         (FUNC): Delegate to U_CT_TOTITLE.
78417         * lib/unicase/u8-totitle.c: Update.
78418         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78419         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78421         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78422         invocation.
78423         * modules/unicase/u32-tolower (Depends-on): Add
78424         unicase/empty-prefix-context, unicase/empty-suffix-context.
78426         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78427         invocation.
78428         * modules/unicase/u16-tolower (Depends-on): Add
78429         unicase/empty-prefix-context, unicase/empty-suffix-context.
78431         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78432         * modules/unicase/u8-tolower (Depends-on): Add
78433         unicase/empty-prefix-context, unicase/empty-suffix-context.
78435         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78436         invocation.
78437         * modules/unicase/u32-toupper (Depends-on): Add
78438         unicase/empty-prefix-context, unicase/empty-suffix-context.
78440         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78441         invocation.
78442         * modules/unicase/u16-toupper (Depends-on): Add
78443         unicase/empty-prefix-context, unicase/empty-suffix-context.
78445         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78446         * modules/unicase/u8-toupper (Depends-on): Add
78447         unicase/empty-prefix-context, unicase/empty-suffix-context.
78449         New module 'unicase/u32-ct-casefold'.
78450         * lib/unicase/u32-ct-casefold.c: New file.
78451         * modules/unicase/u32-ct-casefold: New file.
78453         New module 'unicase/u16-ct-casefold'.
78454         * lib/unicase/u16-ct-casefold.c: New file.
78455         * modules/unicase/u16-ct-casefold: New file.
78457         New module 'unicase/u8-ct-casefold'.
78458         * lib/unicase/u8-ct-casefold.c: New file.
78459         * lib/unicase/u-ct-casefold.h: New file, derived from
78460         lib/unicase/u-casefold.h.
78461         * modules/unicase/u8-ct-casefold: New file.
78463         New module 'unicase/u32-ct-totitle'.
78464         * lib/unicase/u32-ct-totitle.c: New file.
78465         * modules/unicase/u32-ct-totitle: New file.
78467         New module 'unicase/u16-ct-totitle'.
78468         * lib/unicase/u16-ct-totitle.c: New file.
78469         * modules/unicase/u16-ct-totitle: New file.
78471         New module 'unicase/u8-ct-totitle'.
78472         * lib/unicase/u8-ct-totitle.c: New file.
78473         * lib/unicase/u-ct-totitle.h: New file, derived from
78474         lib/unicase/u-totitle.h.
78475         * modules/unicase/u8-ct-totitle: New file.
78477         New module 'unicase/u32-ct-tolower'.
78478         * lib/unicase/u32-ct-tolower.c: New file.
78479         * modules/unicase/u32-ct-tolower: New file.
78481         New module 'unicase/u16-ct-tolower'.
78482         * lib/unicase/u16-ct-tolower.c: New file.
78483         * modules/unicase/u16-ct-tolower: New file.
78485         New module 'unicase/u8-ct-tolower'.
78486         * lib/unicase/u8-ct-tolower.c: New file.
78487         * modules/unicase/u8-ct-tolower: New file.
78489         New module 'unicase/u32-ct-toupper'.
78490         * lib/unicase/u32-ct-toupper.c: New file.
78491         * modules/unicase/u32-ct-toupper: New file.
78493         New module 'unicase/u16-ct-toupper'.
78494         * lib/unicase/u16-ct-toupper.c: New file.
78495         * modules/unicase/u16-ct-toupper: New file.
78497         New module 'unicase/u8-ct-toupper'.
78498         * lib/unicase/u8-ct-toupper.c: New file.
78499         * modules/unicase/u8-ct-toupper: New file.
78501         Add context arguments to u*_casemap functions.
78502         * lib/unicase/unicasemap.h: Include unicase.h.
78503         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78504         suffix_context arguments.
78505         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78506         functions.
78507         (FUNC): Add prefix_context and suffix_context arguments. Use
78508         uc_is_cased and uc_is_case_ignorable.
78509         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78510         * lib/unicase/u16-casemap.c: Likewise.
78511         * lib/unicase/u32-casemap.c: Likewise.
78512         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78513         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78514         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78515         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78516         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78517         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78519         New module 'unicase/u32-suffix-context'.
78520         * lib/unicase/u32-suffix-context.c: New file.
78521         * modules/unicase/u32-suffix-context: New file.
78523         New module 'unicase/u16-suffix-context'.
78524         * lib/unicase/u16-suffix-context.c: New file.
78525         * modules/unicase/u16-suffix-context: New file.
78527         New module 'unicase/u8-suffix-context'.
78528         * lib/unicase/u8-suffix-context.c: New file.
78529         * lib/unicase/u-suffix-context.h: New file.
78530         * modules/unicase/u8-suffix-context: New file.
78532         New module 'unicase/empty-suffix-context'.
78533         * lib/unicase/empty-suffix-context.c: New file.
78534         * modules/unicase/empty-suffix-context: New file.
78536         New module 'unicase/u32-prefix-context'.
78537         * lib/unicase/u32-prefix-context.c: New file.
78538         * modules/unicase/u32-prefix-context: New file.
78540         New module 'unicase/u16-prefix-context'.
78541         * lib/unicase/u16-prefix-context.c: New file.
78542         * modules/unicase/u16-prefix-context: New file.
78544         New module 'unicase/u8-prefix-context'.
78545         * lib/unicase/u8-prefix-context.c: New file.
78546         * lib/unicase/u-prefix-context.h: New file.
78547         * lib/unicase/context.h: New file.
78548         * modules/unicase/u8-prefix-context: New file.
78550         New module 'unicase/empty-prefix-context'.
78551         * lib/unicase/empty-prefix-context.c: New file.
78552         * modules/unicase/empty-prefix-context: New file.
78554         New module 'unicase/ignorable'.
78555         * lib/unicase/ignorable.c: New file.
78556         * modules/unicase/ignorable: New file.
78558         New module 'unicase/cased'.
78559         * lib/unicase/caseprop.h: New file.
78560         * lib/unicase/cased.c: New file.
78561         * modules/unicase/cased: New file.
78563         New functions for case mapping of substrings.
78564         * lib/unicase.h (casing_prefix_context_t): New type.
78565         (unicase_empty_prefix_context): New variable.
78566         (u8_casing_prefix_context, u16_casing_prefix_context,
78567         u32_casing_prefix_context, u8_casing_prefixes_context,
78568         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78569         declarations.
78570         (casing_suffix_context_t): New type.
78571         (unicase_empty_suffix_context): New variable.
78572         (u8_casing_suffix_context, u16_casing_suffix_context,
78573         u32_casing_suffix_context, u8_casing_suffixes_context,
78574         u16_casing_suffixes_context, u32_casing_suffixes_context,
78575         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78576         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78577         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78578         declarations.
78580 2009-06-28  Jim Meyering  <meyering@redhat.com>
78582         boostrap: indent only with spaces
78583         * build-aux/bootstrap: Indent only with spaces, never TABs.
78585         bootstrap: split long lines
78586         * build-aux/bootstrap: Keep line length < 80.
78588         bootstrap: sync from coreutils
78589         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
78590         just as autoreconf does.  Verify a list of prerequisite
78591         package-name,version-number pairs if defined in bootstrap.conf.
78592         Refer to README-prereq, if prerequisites are not satisfied.
78594 2009-06-27  Eric Blake  <ebb9@byu.net>
78596         tests: add test for bogus NULL definition
78597         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
78598         * tests/test-stdlib.c: Likewise.
78599         * tests/test-string.c: Likewise.
78600         * tests/test-locale.c: Likewise.
78601         * tests/test-unistd.c: Likewise.
78602         * modules/stdio-tests (Depends-on): Add verify.
78603         * modules/stdlib-tests (Depends-on): Likewise.
78604         * modules/string-tests (Depends-on): Likewise.
78605         * modules/locale-tests (Depends-on): Likewise.
78606         * modules/unistd-tests (Depends-on): Likewise.
78608 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
78610         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
78611         self-explaining comment.
78612         * m4/selinux-selinux-h: Update serial.
78613         (gl_LIBSELINUX): New macro, adding a warning for missing development
78614         packages to code extracted from...
78615         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
78616         Add warning for missing development packages here, too.
78618 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
78620         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
78622 2009-06-25  Eric Blake  <ebb9@byu.net>
78624         version-etc: fix regression
78625         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
78626         gcc.
78627         (version_etc): Use it, to catch bugs with trailing NULL.
78628         * lib/version-etc.c (version_etc_arn): Delete unused argument.
78629         (version_etc_va): Fix logic bug.
78630         * modules/version-etc-tests: Add test.
78631         * tests/test-version-etc.c: New file.
78632         * tests/test-version-etc.sh: Likewise.
78634 2009-06-25  Sam Steingold  <sds@gnu.org>
78636         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
78637         mbtowc declaration.
78639 2009-06-25  Eric Blake  <ebb9@byu.net>
78641         fpurge: migrate into <stdio.h>
78642         * lib/fpurge.h: Delete...
78643         * lib/stdio.in.h (fpurge): ...and declare here, instead.
78644         * lib/fpurge.c (fpurge): Change declaring header.
78645         * modules/fpurge (Files): Drop deleted file.
78646         (Depends-on): Add stdio.
78647         (configure.ac): Set witness.
78648         * modules/stdio (Makefile.am): Support fpurge macros.
78649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78650         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
78651         * lib/fflush.c: Update client.
78652         * tests/test-fpurge.c: Likewise.
78653         * NEWS: Mention the change.
78655 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78657         * lib/argp-version-etc.c (program_authors): Add const
78658         qualifier.
78659         * lib/version-etc.c: Fix typos in the comments.
78660         * modules/argp-version-etc: Depends on version-etc.
78662 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78664         argp-version-etc: new module.
78666         * lib/argp-version-etc.c: New file.
78667         * lib/argp-version-etc.h: New file.
78668         * modules/argp-version-etc: New file.
78669         * modules/argp-version-etc-tests: New file.
78670         * tests/test-argp-version-etc.c: New test.
78671         * tests/test-argp-version-etc-1.sh: New test.
78673 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78675         Provide additional interfaces and documentation for version-etc
78676         module.
78678         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
78679         interfaces.
78680         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
78681         prototypes.
78683 2009-06-24  Bruno Haible  <bruno@clisp.org>
78685         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
78686         HAVE_LIB${NAME} macro.
78687         Reported by Sam Steingold <sds@gnu.org>.
78689 2009-06-23  Simon Josefsson  <simon@josefsson.org>
78691         * modules/hash-tests (test_hash_LDADD): Link to libintl when
78692         needed.
78694 2009-06-21  Bruno Haible  <bruno@clisp.org>
78696         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
78697         work.
78698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
78699         together with LIB${NAME}, LTLIB${NAME}.
78700         Reported by Sam Steingold <sds@gnu.org>.
78702 2009-06-20  Jim Meyering  <meyering@redhat.com>
78704         tests: make sc_require_test_exit_idiom more generic
78705         * top/maint.mk (Exit_witness_file): New overridable variable.
78706         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
78707         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
78709 2009-06-19  Jim Meyering  <meyering@redhat.com>
78711         hash: reverse order of src/dst parameters in an internal interface
78712         * lib/hash.c (transfer_entries): Reverse order of parameters to
78713         put DST before SRC.  Adjust callers.
78715         tests: test-hash: avoid wholesale duplication
78716         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
78717         Instead, use a loop and add a single conditional.
78719         tests: test-hash: allow seed selection via a command line argument
78720         * tests/test-hash.c (get_seed): New function.
78721         (main): Use it.
78723 2009-06-19  Eric Blake  <ebb9@byu.net>
78725         hash: avoid memory leak on allocation failure
78726         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
78727         failure.  Factor repeated algorithm...
78728         (transfer_entries): ...into new helper routine.
78729         (hash_delete): React to hash_rehash return value.
78731         hash: reduce memory pressure in hash_rehash no-op case
78732         * lib/hash.c (next_prime): Avoid overflow.
78733         (hash_initialize): Factor bucket size computation...
78734         (compute_bucket_size): ...into new helper function.
78735         (hash_rehash): Use new function and open coding to reduce memory
78736         pressure, and avoid a memory leak in USE_OBSTACK code.
78737         Reported by Jim Meyering.
78739 2009-06-18  Eric Blake  <ebb9@byu.net>
78741         hash: make rotation more obvious
78742         * modules/hash (Depends-on): Add bitrotate and stdint.
78743         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
78744         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
78745         (SIZE_MAX): Rely on headers for definition.
78746         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
78747         (raw_hasher): Use rotr_sz.
78748         Suggested by Jim Meyering.
78750         hash: fix memory leak in last patch
78751         * lib/hash.c (hash_rehash): Avoid memory leak.
78753         hash: avoid no-op rehashing
78754         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
78756         hash: provide default callback functions
78757         * lib/hash.c (raw_hasher, raw_comparator): New functions.
78758         (hash_initialize): Use them as defaults.
78759         * tests/test-hash.c (main): Test this.
78761         hash: minor optimization
78762         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
78763         when possible.
78764         (hash_initialize): Document this promise.
78765         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
78766         * tests/test-hash.c (hash_compare_strings): Test this.
78768 2009-06-18  Bruno Haible  <bruno@clisp.org>
78770         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
78771         going to be replaced anyway.
78773 2009-06-18  Bruno Haible  <bruno@clisp.org>
78775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
78776         in one place.
78777         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
78778         be replaced anyway.
78780 2009-06-18  Eric Blake  <ebb9@byu.net>
78782         hash: check for resize before insertion
78783         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
78784         threshold before insertion, so that a pathological hash_rehash
78785         that fills every bucket can still trigger another rehash.
78787 2009-06-18  Jim Meyering  <meyering@redhat.com>
78789         hash-tests: add a loop around the small tests
78790         * tests/test-hash.c (main): Repeat small tests with selected
78791         small initial table sizes.
78793 2009-06-17  Eric Blake  <ebb9@byu.net>
78795         hash: minor cleanups
78796         * lib/hash.h (hash_entry): Make opaque, by moving...
78797         * lib/hash.c (hash_entry): ...here.
78798         (hash_insert): Clarify restrictions on what can be inserted.
78799         (hash_get_next): Clarify when it is safe to remove an element
78800         during traversal.
78801         (check_tuning): Skip verification when tuning is known safe.
78802         (hash_initialize): Clarify restrictions on tuning.
78804 2009-06-17  Jim Meyering  <jim@meyering.net>
78805         and Eric Blake  <ebb9@byu.net>
78807         hash-tests: new module
78808         * modules/hash-tests: New file.
78809         * tests/test-hash.c: New file.
78811 2009-06-17  Eric Blake  <ebb9@byu.net>
78813         strstr-simple: document new module
78814         * MODULES.html.sh: Document new module.
78816         strstr, strcasestr: replace on platforms with broken memchr
78817         * modules/strstr: Split into...
78818         * modules/strstr-simple: ...new module that does not care about
78819         performance, but does care about glibc bug.
78820         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
78821         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
78822         if platform memchr is broken, per Debian bug 521737.
78823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
78824         memchr.
78825         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
78826         * doc/posix-functions/strstr.texi (strstr): Document the fix.
78827         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78828         * modules/mountlist (Depends-on): Add strstr-simple.
78829         * modules/gen-uni-tables (Depends-on): Likewise.
78830         * modules/argz (Depends-on): Add strstr.
78832 2009-06-17  Bruno Haible  <bruno@clisp.org>
78834         * modules/posix_spawn-internal (Depends-on): Add errno.
78836 2009-06-17  Bruno Haible  <bruno@clisp.org>
78838         Define missing ESTALE on Interix 3.5.
78839         * lib/errno.in.h (ESTALE): Assign a value if missing.
78840         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
78841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
78842         missing.
78843         * doc/posix-headers/errno.texi: Mention the Interix bug.
78844         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
78846 2009-06-15  Eric Blake  <ebb9@byu.net>
78848         memchr, memchr2: add valgrind exception
78849         * lib/memchr.valgrind: New file.
78850         * lib/memchr2.valgrind: New file.
78851         * modules/memchr (Files): Distribute valgrind file.
78852         * modules/memchr2 (Files): Likewise.
78854         docs: memchr is no longer obsolete
78855         * MODULES.html.sh: Move memchr from obsolete to string.h section.
78856         * lib/string.in.h (memchr): Simplify logic.
78858 2009-06-14  Jim Meyering  <meyering@redhat.com>
78860         link-follow: fix the "checking..." message to not mention trailing slash
78861         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
78862         never considered trailing slashes.
78864 2009-06-14  Bruno Haible  <bruno@clisp.org>
78866         * m4/memchr.m4: Mention also the bug on IA-64.
78867         * doc/posix-functions/memchr.texi: Likewise.
78869 2009-06-12  Eric Blake  <ebb9@byu.net>
78871         memchr: detect broken x86_64 and alpha implementations
78872         * modules/memchr-tests (Depends-on): Move mmap detection...
78873         * modules/memchr (Depends-on): ...here.
78874         (configure.ac): Set indicator.
78875         * lib/string.in.h (memchr): Declare replacement.
78876         * modules/string (Makefile.am): Trigger replacement.
78877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78878         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
78879         bugs.
78880         * doc/posix-functions/memchr.texi (memchr): Document the bug.
78881         * modules/getpagesize (License): Relax license.
78883 2009-06-11  Bruno Haible  <bruno@clisp.org>
78885         * lib/idpriv.h: Add more references.
78887 2009-06-08  Bruno Haible  <bruno@clisp.org>
78889         Tests for module 'idpriv-droptemp'.
78890         * modules/idpriv-droptemp-tests: New file.
78891         * tests/test-idpriv-droptemp.sh: New file.
78892         * tests/test-idpriv-droptemp.su.sh: New file.
78893         * tests/test-idpriv-droptemp.c: New file.
78895         New module 'idpriv-droptemp'.
78896         * lib/idpriv-droptemp.c: New file.
78897         * modules/idpriv-droptemp: New file.
78899 2009-06-08  Bruno Haible  <bruno@clisp.org>
78901         Tests for module 'idpriv-drop'.
78902         * modules/idpriv-drop-tests: New file.
78903         * tests/test-idpriv-drop.sh: New file.
78904         * tests/test-idpriv-drop.su.sh: New file.
78905         * tests/test-idpriv-drop.c: New file.
78907         New module 'idpriv-drop'.
78908         * lib/idpriv.h: New file.
78909         * lib-idpriv-drop.c: New file.
78910         * m4/idpriv.m4: New file.
78911         * modules/idpriv-drop: New file.
78913 2009-06-08  Bruno Haible  <bruno@clisp.org>
78915         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
78916         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78917         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78918         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78919         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78920         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78921         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78923 2009-06-08  Eric Blake  <ebb9@byu.net>
78925         test-strstr: use memory fence, when possible
78926         * tests/test-strstr.c (main): Use memory fence, in order to be
78927         more likely to trigger Debian bug 521737.
78928         * modules/strstr-tests (Files): Pull in additional files.
78930         memchr: no longer obsolete, for wider field testing
78931         * modules/memchr (Status, Notice): Delete, this module is no
78932         longer obsolete.
78933         * modules/vasnprintf (Depends-on): Add memchr.
78935 2009-06-07  Jim Meyering  <meyering@redhat.com>
78937         hash: declare some functions with the warn_unused_result attribute
78938         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
78940 2009-06-07  Bruno Haible  <bruno@clisp.org>
78942         * tests/test-alignof.c: Don't test int64_t if it does not exist.
78943         Reported by Eric Blake.
78945 2009-06-06  Eric Blake  <ebb9@byu.net>
78947         test-alignof: fix typo with long double
78948         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
78949         compiler error.
78951 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
78953         Escape non-texinfo { and }s.
78954         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
78955         markup error.
78957 2009-06-04  Jim Meyering  <meyering@redhat.com>
78959         gitlog-to-changelog: don't infloop on an empty commit log
78960         * build-aux/gitlog-to-changelog: Warn about an empty log message.
78961         Reported by Boris Petersen <transacid@centerim.org>.
78963 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
78965         version-etc: extend for packagers
78966         Add three new configure options, intended for packagers:
78967           --with-packager="packager name"
78968           --with-packager-version="packager-specific version"
78969           --with-packager-bug-reports="packager bug reporting"
78970         An example with coreutils:
78971           $ ./configure \
78972             --with-packager=Gentoo \
78973             --with-packager-bug-report=http://bugs.gentoo.org/ \
78974             --with-packager-version="patchset 1.6"
78975           $ ./src/ls --version | head -n2
78976           ls (GNU coreutils) 7.1-dirty
78977           Packaged by Gentoo (patchset 1.6)
78978         Note that the bug reporting info via --help doesn't show up because
78979         coreutils uses its own custom emit_bug_reporting_address() implementation
78980         in src/system.h.  If it didn't, it'd look like:
78981           $ ./src/ls --help | tail -n4
78982           Report bugs to <bug-coreutils@gnu.org>.
78983           Report Gentoo bugs to <http://bugs.gentoo.org/>.
78984           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
78985           General help using GNU software: <http://www.gnu.org/gethelp/>.
78986         * lib/version-etc.c: Print new information, if provided.
78987         * m4/version-etc.m4: New file.
78988         * modules/version-etc (Files): Add m4/version-etc.m4.
78989         (configure.ac): Add gl_VERSION_ETC.
78991 2009-05-31  Bruno Haible  <bruno@clisp.org>
78993         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
78994         and 'int64_t'.
78995         * modules/alignof-tests (Dependencies): Add stdint.
78996         Reported by Eric Blake.
78998 2009-05-31  Bruno Haible  <bruno@clisp.org>
79000         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79001         restriction due to compiler bugs.
79002         Reported by Eric Blake.
79004 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79005             Bruno Haible  <bruno@clisp.org>
79007         Fix test-alignof failure.
79008         * lib/alignof.h (alignof_slot): New macro.
79009         (alignof_type): New macro, with the same semantics as the previous
79010         'alignof'.
79011         (alignof): Alias to alignof_slot.
79012         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79013         check that the results are usable as constant expressions.
79015 2009-05-31  Bruno Haible  <bruno@clisp.org>
79017         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79018         * tests/test-memchr.c (main): Check that memchr does not read past the
79019         first occurrence of the byte.
79020         * tests/test-strstr.c (main): Update comment.
79021         Suggested by Eric Blake.
79023 2009-05-30  Bruno Haible  <bruno@clisp.org>
79025         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79026         detail how to use dumpbin.
79027         Reported by David Byron <dbyron@dbyron.com>.
79029 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79031         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79033 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79035         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79037 2009-05-28  Bruno Haible  <bruno@clisp.org>
79039         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79040         build-aux/ files.
79042 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79044         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79046 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79048         * gnulib-tool (sed_transform_main_lib_file)
79049         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79050         regexps.
79052 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79054         * tests/test-strstr.c: Add another self-test.
79055         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79056         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79058 2009-05-23  Bruno Haible  <bruno@clisp.org>
79060         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79061         change.
79063 2009-05-21  Bruno Haible  <bruno@clisp.org>
79065         Simplify use of mode_t varargs.
79066         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79067         uses 'mode_t' or 'int'.
79068         * lib/openat.c (openat): Likewise.
79069         * lib/open-safer.c (open_safer): Likewise.
79070         * m4/mode_t.m4: New file.
79071         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79072         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79073         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79074         * modules/open (Files): Add m4/mode_t.m4.
79075         * modules/openat (Files): Likewise.
79076         * modules/fcntl-safer (Files): Likewise.
79077         Suggested by Eric Blake.
79079 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79081         * doc/glibc-functions/fallocate.texi: New file.
79082         * doc/gnulib.texi: Include it.
79084 2009-05-21  Eric Blake  <ebb9@byu.net>
79085             Bruno Haible  <bruno@clisp.org>
79087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79088         invocations.
79089         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79091 2009-05-21  Eric Blake  <ebb9@byu.net>
79092             Bruno Haible  <bruno@clisp.org>
79094         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79095         include_next. Fix of 2008-11-20 commit.
79096         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79097         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79098         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79099         NEXT_MATH_H.
79100         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79101         instead of NEXT_MATH_H.
79103 2009-05-21  Bruno Haible  <bruno@clisp.org>
79105         Avoid redefinition warnings for SIZE_MAX.
79106         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79107         Reported by Simon Josefsson.
79109 2009-05-21  Bruno Haible  <bruno@clisp.org>
79111         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79112         AC_CACHE_VAL.
79114 2009-05-20  Bruno Haible  <bruno@clisp.org>
79116         Make zeroptr.h work on mingw.
79117         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79118         mprotect.
79119         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79120         * modules/memchr2-tests (configure.ac): Likewise.
79121         * modules/memcmp-tests (configure.ac): Likewise.
79122         * modules/memmem-tests (configure.ac): Likewise.
79123         * modules/memrchr-tests (configure.ac): Likewise.
79124         Reported by Simon Josefsson.
79126 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79128         * tests/test-glob.c: Include string.h for strcmp prototype.
79130 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79132         * modules/getdelim (Depends-on): Add explicit stdint, although it
79133         was implicitly already pulled in via realloc-posix.
79134         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79136 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79138         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79139         G. Christensen" <tgc@jupiterrise.com>.
79140         * m4/sys_socket_h.m4: Check for sa_family_t.
79141         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79142         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79143         * tests/test-sys_socket.c: Check that sa_family_t works.
79145 2009-05-18  Eric Blake  <ebb9@byu.net>
79147         maint.mk: allow gnulib_dir in VPATH build
79148         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79150 2009-05-15  Jim Meyering  <meyering@redhat.com>
79152         maint.mk: Give gnulib_dir a default definition.
79153         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79154         Thus, most packages no longer need to specify this variable in cfg.mk
79156 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79158         rename.m4: fix typos that would make non-mingw cross-configure fail
79159         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79161 2009-05-13  Eric Blake  <ebb9@byu.net>
79163         mmap-anon: avoid out-of-order autoconf expansion
79164         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79165         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79166         * modules/memchr-tests (Depends-on): Add extensions.
79167         * modules/memchr2-tests (Depends-on): Add extensions.
79168         * modules/memcmp-tests (Depends-on): Add extensions.
79169         * modules/memmem-tests (Depends-on): Add extensions.
79170         * modules/memrchr-tests (Depends-on): Add extensions.
79172 2009-05-13  Bruno Haible  <bruno@clisp.org>
79174         Make some tests ISO C 99 compliant.
79175         * tests/zerosize-ptr.h: New file.
79176         * tests/test-memchr.c: Include zerosize-ptr.h.
79177         (main): Use a zero-size object pointer instead of NULL.
79178         * tests/test-memchr2.c: Include zerosize-ptr.h.
79179         (main): Use a zero-size object pointer instead of NULL.
79180         * tests/test-memcmp.c: Include zerosize-ptr.h.
79181         (main): Use a zero-size object pointer instead of NULL.
79182         * tests/test-memmem.c: Include zerosize-ptr.h.
79183         (main): Use a zero-size object pointer instead of NULL.
79184         * tests/test-memrchr.c: Include zerosize-ptr.h.
79185         (main): Use a zero-size object pointer instead of NULL.
79186         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79187         m4/mmap-anon.m4.
79188         (Depends-on): Add getpagesize.
79189         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79190         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79191         m4/mmap-anon.m4.
79192         (Depends-on): Add getpagesize.
79193         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79194         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79195         m4/mmap-anon.m4.
79196         (Depends-on): Add getpagesize.
79197         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79198         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79199         m4/mmap-anon.m4.
79200         (Depends-on): Add getpagesize.
79201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79202         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79203         m4/mmap-anon.m4.
79204         (Depends-on): Add getpagesize.
79205         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79207 2009-05-12  Bruno Haible  <bruno@clisp.org>
79209         Tests for module 'alignof'.
79210         * modules/alignof-tests: New file.
79211         * tests/test-alignof.c: New file.
79213 2009-05-12  Bruno Haible  <bruno@clisp.org>
79215         Fix alignof macro.
79216         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79217         vendor compilers that are always correct.
79219 2009-05-12  Bruno Haible  <bruno@clisp.org>
79221         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79222         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79223         not whether its fully works.
79225 2009-05-12  Bruno Haible  <bruno@clisp.org>
79227         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79229 2009-05-12  Jim Meyering  <meyering@redhat.com>
79231         * top/maint.mk: Adjust backslash alignment.
79233 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79235         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79237 2009-05-11  Eric Blake  <ebb9@byu.net>
79239         argp: avoid undefined behavior
79240         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79241         macros.
79243 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79245         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79246         user.name to prevent git commit from complaining.
79248 2009-05-10  Bruno Haible  <bruno@clisp.org>
79250         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79251         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79252         it rewrites every file name only once.
79253         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79255 2009-05-08  Bruno Haible  <bruno@clisp.org>
79257         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79258         instead of 'max'.
79260 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79262         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79263         sockaddr_storage test.
79265 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79267         * modules/sys_socket (Makefile.am): Substitute
79268         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79269         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79270         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79271         * tests/test-sys_socket.c: Check sockaddr_storage.
79273 2009-05-08  Bruno Haible  <bruno@clisp.org>
79275         New module 'alignof'.
79276         * lib/alignof.h: New file.
79277         * modules/alignof: New file.
79279 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79280             Bruno Haible  <bruno@clisp.org>
79282         Fix test-file-has-acl on FreeBSD.
79283         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79284         mask is implicitly added.
79285         * tests/test-file-has-acl.c: Include <signal.h>.
79286         (main): Terminate the test after 5 seconds.
79287         * modules/acl-tests (configure.ac): Check for alarm function.
79289 2009-05-04  Bruno Haible  <bruno@clisp.org>
79291         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79292         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79293         * modules/errno (configure.ac): Drop AC_REQUIRE.
79294         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79295         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79297 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79299         * modules/glob-tests: New module.
79300         * tests/test-glob.c: Add.
79302 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79304         * modules/fnmatch-tests: New module.
79305         * tests/test-fnmatch.c: Add.
79307 2009-05-04  Eric Blake  <ebb9@byu.net>
79309         maint: make the new no-submodule-changes rule VPATH-safe
79310         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79312 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79313             Bruno Haible  <bruno@clisp.org>
79315         acl: Fix infinite loop on FreeBSD.
79316         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79317         of return value from acl_get_entry.
79318         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79319         Likewise.
79321 2009-05-03  Bruno Haible  <bruno@clisp.org>
79323         * lib/acl-internal.h (acl_entries): Clarify return value.
79324         * lib/acl_entries.c (acl_entries): Likewise.
79326 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79328         Bug fix in acl module.
79329         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79331 2009-05-03  Bruno Haible  <bruno@clisp.org>
79333         Create gperf-generated file in the source dir, not in the build dir.
79334         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79335         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79336         * modules/unicase/locale-language (unicase/locale-languages.h):
79337         Likewise.
79338         * modules/unicase/special-casing (unicase/special-casing-table.h):
79339         Likewise.
79340         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79341         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79342         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79343         Reported by Ralf Wildenhues.
79345 2009-05-03  Bruno Haible  <bruno@clisp.org>
79347         * modules/fnmatch (Description, configure.ac): Taken from
79348         fnmatch-posix.
79349         * modules/fnmatch-posix: Turn into a symbolic reference to the
79350         'fnmatch' module, and deprecate.
79351         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79353 2009-05-03  Bruno Haible  <bruno@clisp.org>
79355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79356         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79357         Reported by Ralf Wildenhues.
79359 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79361         * m4/fnmatch.m4: Fix fnmatch re-define.
79363 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79365         priv-set: new module and tests; adapt write-any-file
79366         * lib/priv-set.c: New file.
79367         * lib/priv-set.h: New file.
79368         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79369         * lib/write-any-file.c: Simplify by using priv-set module.
79370         * m4/priv-set.m4: New file.
79371         * modules/priv-set: New file.
79372         * modules/unlinkdir: Add dependency on priv-set module.
79373         * modules/write-any-file: Likewise.
79375         Tests for module 'priv-set'.
79376         * modules/priv-set-tests: New file.
79377         * tests/test-priv-set.c: New file.
79379 2009-05-03  Jim Meyering  <meyering@redhat.com>
79380             Bruno Haible  <bruno@clisp.org>
79382         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79383         use the converted UTF-8 variant of the name instead.
79385 2009-05-03  Jim Meyering  <meyering@redhat.com>
79387         tests: tighten some getdate tests
79388         * tests/test-getdate.c (main): Tighten tests: require equality,
79389         not just greater than.  Set TZ envvar to UTC0.
79391 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79393         getdate: correctly interpret "next monday" when run on a Monday
79394         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79395         that e.g., "next tues" (when run on a tuesday) results in a date
79396         that is one week in the future, and not today's date.
79397         I.e., add a week when the wday is the same as the current one.
79398         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79399         and earlier by Martin Bernreuther and Jan Minář.
79400         * tests/test-getdate.c (main): Check that "next DAY" is always in
79401         the future and that "last DAY" is always in the past.
79403 2009-05-02  Jim Meyering  <meyering@redhat.com>
79405         build: ensure that a release build fails when a submodule is unclean
79406         * top/maint.mk (no-submodule-changes): New rule.
79407         (alpha beta major): Depend on it.
79409 2009-05-02  Bruno Haible  <bruno@clisp.org>
79411         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79412         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79413         shell variable gl_fnmatch_required to detect which variant is
79414         requested.
79415         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79416         gl_FUNC_FNMATCH_POSIX.
79417         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79418         exclude fnmatch-posix.
79420 2009-05-02  Bruno Haible  <bruno@clisp.org>
79422         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79423         * modules/mbsrtowcs (License): Change to LGPLv2+.
79424         * modules/strnlen1 (License): Likewise.
79425         Reported by Simon Josefsson.
79427 2009-05-02  Bruno Haible  <bruno@clisp.org>
79429         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79430         "cross".
79431         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79432         gnulib-tool was called with option --source-base=lib.
79434 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79436         Use automake *-local hooks without commands, for extensibility.
79437         * modules/localcharset (Makefile.am): Rename install-exec-local
79438         rule to install-exec-localcharset, and make it a prerequisite of
79439         install-exec-local.  Likewise, rename the uninstall-local rule to
79440         uninstall-localcharset, and make it a prerequisite of the former.
79442 2009-05-01  Bruno Haible  <bruno@clisp.org>
79444         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79445         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79446         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79448         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79449         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79450         m4/locale-zh.m4, m4/codeset.m4.
79452         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79453         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79454         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79455         m4/locale-zh.m4.
79457         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79458         REPLACE_WCRTOMB if mbstate_t must be replaced.
79459         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79460         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79462 2009-05-01  Bruno Haible  <bruno@clisp.org>
79464         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79465         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79466         dngettext, dcngettext, textdomain, bindtextdomain,
79467         bind_textdomain_codeset): Undefine before redefining.
79469 2009-04-30  Bruno Haible  <bruno@clisp.org>
79471         Fix bug introduced on 2009-04-25.
79472         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79473         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79474         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79475         is defined.
79476         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79477         is defined.
79478         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79479         is defined.
79480         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79482 2009-04-28  Bruno Haible  <bruno@clisp.org>
79484         Comment tweaks.
79485         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79486         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79487         * lib/unicase.h (u*_casexfrm): Likewise.
79488         Reported by Paolo Bonzini.
79490 2009-04-28  Bruno Haible  <bruno@clisp.org>
79492         Fix a compilation error.
79493         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79494         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79495         Reported by Jim Meyering.
79497 2009-04-27  Bruno Haible  <bruno@clisp.org>
79499         New module 'libunistring'.
79500         * modules/libunistring: New file.
79501         * m4/libunistring.m4: New file.
79502         * MODULES.html.sh (Unicode string functions): Add it.
79504 2009-04-27  Eric Blake  <ebb9@byu.net>
79506         maint.mk: allow package-specific header to provide <config.h>
79507         * top/maint.mk (sc_require_config_h): New variable.
79508         (sc_require_config_h, sc_require_config_h_first): Use it.
79510 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79512         * top/maint.mk (sc_avoid_if_before_free): Except
79513         useless-if-before-free script.
79515 2009-04-27  Eric Blake  <ebb9@byu.net>
79517         maintainer-makefile: depend on all required helper scripts
79518         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79519         useless-if-before-free.
79520         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79521         version, rather than assuming gnulib checkout is available.
79522         Reported by Simen Josefsson.
79524 2009-04-26  Bruno Haible  <bruno@clisp.org>
79526         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79527         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79528         "../" or "..".
79530 2009-04-26  Bruno Haible  <bruno@clisp.org>
79532         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79533         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79534         AC_LIB_HAVE_LINKFLAGS.
79536 2009-04-26  Bruno Haible  <bruno@clisp.org>
79538         Simplify calling convention of u*_conv_from_encoding.
79539         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79540         u32_conv_from_encoding): Expect a resultbuf argument and return the
79541         result directly as a pointer.
79542         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79543         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79544         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79545         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79546         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79547         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79548         Update.
79549         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79550         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79551         * lib/vasnprintf.c (VASNPRINTF): Update.
79552         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79553         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79554         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79555         * NEWS: Mention the change.
79557 2009-04-26  Bruno Haible  <bruno@clisp.org>
79559         Simplify calling convention of u*_conv_to_encoding.
79560         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79561         u32_conv_to_encoding): Expect a resultbuf argument and return the
79562         result directly as a pointer.
79563         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79564         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79565         freeing scaled_offsets if mem_iconveha failed.
79566         * lib/unicase/u-casexfrm.h (FUNC): Update.
79567         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79568         * lib/vasnprintf.c (VASNPRINTF): Update.
79569         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79570         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79571         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79572         * NEWS: Mention the change.
79574 2009-04-26  Bruno Haible  <bruno@clisp.org>
79576         Avoid test failures on AIX and OSF/1.
79577         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79578         malloc(0).
79579         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79580         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79581         Likewise.
79582         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79583         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79584         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79585         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79586         * doc/posix-functions/malloc.texi: Document the portability problem
79587         related to malloc(0).
79589 2009-04-26  Bruno Haible  <bruno@clisp.org>
79591         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
79592         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
79593         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
79595 2009-04-25  Bruno Haible  <bruno@clisp.org>
79597         Avoid link error when creating a namespace clean library.
79598         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
79599         as macro with arguments if already defined as an alias.
79600         * lib/signbitf.c (gl_signbitf): Don't undefine.
79601         * lib/signbitd.c (gl_signbitd): Don't undefine.
79602         * lib/signbitl.c (gl_signbitl): Don't undefine.
79604 2009-04-25  Jim Meyering  <meyering@redhat.com>
79606         vc-list-files: fix another quoting bug
79607         * build-aux/vc-list-files: Avoid sed backslash expansion
79608         of pathological directory names.
79610 2009-04-25  Eric Blake  <ebb9@byu.net>
79612         vc-list-files: fix shell quoting error
79613         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
79614         timestamp.
79616 2009-04-25  Jim Meyering  <meyering@redhat.com>
79618         vc-list-files: restore lost functionality with subdir argument
79619         * build-aux/vc-list-files: When given a non-"." sub-directory
79620         argument, substitute the $dir/ prefix back onto each resulting name.
79621         Otherwise, coreutils' root_tests check would fail.
79623 2009-04-24  Eric Blake  <ebb9@byu.net>
79625         vc-list-files: ignore git symlinks
79626         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
79627         than ls-files, to ignore git symlinks.
79629         maint.mk: import improvements from m4
79630         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
79631         (move_if_change): Delete unused macro.
79632         (news-date-check, vc-diff-check): Support VPATH builds.
79633         (announcement): Likewise.  Split --bootstrap-tools list...
79634         (boostrap-tools): ...into separate list, which can be overridden
79635         in cfg.mk.
79636         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
79637         requiring dependency on useless-if-before-free module.
79638         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
79639         Support VPATH builds.
79641 2009-04-24  Jim Meyering  <meyering@redhat.com>
79643         maint.mk: remove coreutils-specific rules and variables
79644         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
79645         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
79646         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
79648         maint.mk: remove obsolete rule
79649         * top/maint.mk (rel-check): Remove rule.
79650         (WGET, WGETFLAGS): Remove now-unused variables.
79652 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79654         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
79655         consistency.
79657         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
79658         '$(PATH_SEPARATOR)' instead of ':'.
79660 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79662         * lib/getopt1.c (main): Use 'const' for static array.
79664 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79666         * top/maint.mk: Sync with coreutils.
79667         * NEWS: Explain incompatibilities.
79669 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79670             Bruno Haible  <bruno@clisp.org>
79672         Fix cross-compilation results.
79673         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
79674         statement, as third argument of AC_TRY_RUN.
79675         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
79676         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
79677         Likewise.
79678         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
79679         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
79680         Likewise.
79681         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
79682         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
79683         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
79685 2009-04-20  Bruno Haible  <bruno@clisp.org>
79687         Avoid test failure on mingw.
79688         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
79690 2009-04-20  Bruno Haible  <bruno@clisp.org>
79692         Avoid compilation error on mingw.
79693         * modules/localename-tests (Depends-on): Add locale.
79695 2009-04-19  Bruno Haible  <bruno@clisp.org>
79697         Support for building a shared library on Windows platforms.
79698         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
79699         (main): Test the presence of UNINORM_NFC here.
79700         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
79701         (main): Test the presence of UNINORM_NFD here.
79702         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
79703         (main): Test the presence of UNINORM_NFKC here.
79704         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
79705         (main): Test the presence of UNINORM_NFKD here.
79707 2009-04-19  Bruno Haible  <bruno@clisp.org>
79709         Avoid a compiler warning.
79710         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
79711         Change type of variable 'sequence'.
79713 2009-04-19  Bruno Haible  <bruno@clisp.org>
79715         * modules/configmake (Makefile.am): When the contents of configmake.h
79716         does not change, arrange to preserve its modification time.
79718 2009-04-17  Simon Josefsson  <simon@josefsson.org>
79720         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
79721         gettext domain.
79723 2009-04-16  Jim Meyering  <meyering@redhat.com>
79725         useless-if-before-free: improve conversion code
79726         * build-aux/useless-if-before-free: Adjust code-in-comment to match
79727         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
79729 2009-04-14  Bruno Haible  <bruno@clisp.org>
79731         * modules/fcntl (Depends-on): Add extensions.
79732         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
79734 2009-04-12  Ben Pfaff  <blp@gnu.org>
79736         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
79737         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
79739 2009-03-20  Ben Pfaff  <blp@gnu.org>
79741         Make rename replace existing destinations on Windows.
79742         * m4/rename.m4: Add test for Mingw.
79743         * lib/rename.c: Add rename replacement that uses MoveFileEx with
79744         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
79745         * doc/posix-functions/rename.texi: Document.
79747 2009-04-10  Bruno Haible  <bruno@clisp.org>
79749         New include file "iconveh.h".
79750         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
79751         * lib/striconveh.h: Include it.
79752         (enum iconv_ilseq_handler): Remove definition.
79753         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
79754         striconveh.h.
79755         * lib/striconveha.c: Include striconveh.h.
79756         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
79757         * modules/striconveh (Files): Add lib/iconveh.h.
79758         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
79759         lib/striconveh.h.
79761 2009-04-10  Bruno Haible  <bruno@clisp.org>
79763         * lib/uniconv.h: Update comment.
79765 2009-04-10  Bruno Haible  <bruno@clisp.org>
79767         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
79768         always.
79769         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79770         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79771         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79772         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
79773         "unistring-notinline.h", so that the function gets defined always.
79774         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79775         * lib/unistr/u8-uctomb.c: Likewise.
79776         * lib/unistr/u16-mbtouc.c: Likewise.
79777         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79778         * lib/unistr/u16-uctomb.c: Likewise.
79779         * lib/unistr/u32-mbtouc.c: Likewise.
79780         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79781         * lib/unistr/u32-uctomb.c: Likewise.
79783 2009-04-10  Bruno Haible  <bruno@clisp.org>
79785         Mark 'utime' obsolete.
79786         * modules/utime (Status, Notice): New sections.
79787         Suggested by Jim Meyering.
79789         Fix cross-compile guess for utime test.
79790         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
79791         autoconf.
79792         * doc/posix-functions/utime.texi: Give more precisions.
79793         Reported by Jan <ipif@ymail.com>.
79795 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
79797         filevercmp: correct today's change
79798         * lib/filevercmp.c: Also handle coreutils' test inputs.
79799         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
79801         Fix regression in 'filevercmp' module. Thanks Sven Joachim
79802         for reporting it.
79803         * lib/filevercmp.c: Special handle for "", "." and "..".
79804         * tests/test-filevercmp.c: Enlarge the set suite.
79806 2009-04-07  Jim Meyering  <meyering@redhat.com>
79808         useless-if-before-free: show how to remove braced useless free, too
79809         * build-aux/useless-if-before-free: still only in a comment, though.
79811 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
79813         maint.mk: import changes to syntax-check macros from coreutils
79814         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
79815         Use them in the relevant macros.
79817 2009-04-06  Bruno Haible  <bruno@clisp.org>
79819         Fix unportable use of bit-fields.
79820         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
79821         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
79822         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
79824 2009-04-06  Bruno Haible  <bruno@clisp.org>
79826         Avoid test failures on AIX and OSF/1.
79827         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
79828         that malloc(0) = NULL.
79829         * tests/unicase/test-u8-tolower.c (check): Likewise.
79830         * tests/unicase/test-u8-totitle.c (check): Likewise.
79831         * tests/unicase/test-u8-toupper.c (check): Likewise.
79832         * tests/unicase/test-u16-casefold.c (check): Likewise.
79833         * tests/unicase/test-u16-tolower.c (check): Likewise.
79834         * tests/unicase/test-u16-totitle.c (check): Likewise.
79835         * tests/unicase/test-u16-toupper.c (check): Likewise.
79836         * tests/unicase/test-u32-casefold.c (check): Likewise.
79837         * tests/unicase/test-u32-tolower.c (check): Likewise.
79838         * tests/unicase/test-u32-totitle.c (check): Likewise.
79839         * tests/unicase/test-u32-toupper.c (check): Likewise.
79840         * tests/uninorm/test-u8-nfc.c (check): Likewise.
79841         * tests/uninorm/test-u8-nfd.c (check): Likewise.
79842         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
79843         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
79844         * tests/uninorm/test-u16-nfc.c (check): Likewise.
79845         * tests/uninorm/test-u16-nfd.c (check): Likewise.
79846         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
79847         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
79848         * tests/uninorm/test-u32-nfc.c (check): Likewise.
79849         * tests/uninorm/test-u32-nfd.c (check): Likewise.
79850         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
79851         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
79853 2009-04-05  Bruno Haible  <bruno@clisp.org>
79855         Work around an autoconf limitation.
79856         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
79857         comment line if it would be longer than 3 KB.
79859 2009-04-05  Bruno Haible  <bruno@clisp.org>
79861         Avoid test failure with libiconv-1.13.
79862         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
79863         of the expected test results.
79865 2009-04-05  Bruno Haible  <bruno@clisp.org>
79867         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
79868         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
79869         that it should be installed.
79871 2009-04-05  Bruno Haible  <bruno@clisp.org>
79873         * gnulib-tool: New option --copy-file.
79874         (func_usage): Document it.
79875         (func_dest_tmpfilename): Moved out of func_import.
79876         (func_add_file, func_update_file): New functions, extracted from
79877         func_import.
79878         (func_import): Update.
79880 2009-04-05  Karl Berry  <karl@gnu.org>
79882         * README: prominently mention gnulib-tool.
79883         Rearrange sections so getting the code is near the top.
79885 2009-04-05  Bruno Haible  <bruno@clisp.org>
79887         * lib/unicase.h: Mention u*_cmp2.
79888         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
79889         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
79890         * lib/unicase/ulc-casecmp.c: Likewise.
79891         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
79892         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
79893         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
79894         unistr/u8-cmp.
79895         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
79896         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
79897         unistr/u16-cmp.
79898         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
79899         unistr/u32-cmp.
79901         * lib/uninorm.h: Mention u*_cmp2.
79902         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
79903         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
79904         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
79905         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
79906         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
79907         unistr/u8-cmp.
79908         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
79909         unistr/u16-cmp.
79910         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
79911         unistr/u32-cmp.
79913         New module 'unistr/u32-cmp2'.
79914         * lib/unistr/u32-cmp2.c: New file.
79915         * modules/unistr/u32-cmp2: New file.
79917         New module 'unistr/u16-cmp2'.
79918         * lib/unistr/u16-cmp2.c: New file.
79919         * modules/unistr/u16-cmp2: New file.
79921         New module 'unistr/u8-cmp2'.
79922         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
79923         * lib/unistr/u8-cmp2.c: New file.
79924         * lib/unistr/u-cmp2.h: New file.
79925         * modules/unistr/u8-cmp2: New file.
79927 2009-04-05  Bruno Haible  <bruno@clisp.org>
79929         * lib/unictype.h (uc_property_is_valid): New macro.
79930         * tests/unictype/test-pr_byname.c (main): Use it.
79932         * lib/unistr.h: Doc fixes.
79933         * lib/uniconv.h: Doc fixes.
79934         * lib/unictype.h: Doc fixes.
79936 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
79938         Port coreutils 7.2 to Solaris 8.
79940         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
79941         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
79942         for Solaris 8.  This is a bit of a hack, as it means it's the
79943         caller's responsibility to add -lnsl if needed, but most likely it
79944         won't be needed since only getaddrinfo uses this and getaddrinfo
79945         isn't needed on Solaris 8.
79947         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
79948         problem to Solaris 8 encountered with coreutils 7.2, which
79949         resulted in a message "fnmatch.c:292: warning: passing argument 4
79950         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
79951         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
79953 2009-04-03  Simon Josefsson  <simon@josefsson.org>
79955         * m4/ld-version-script.m4: Add FIXME comment.
79957 2009-04-02  Simon Josefsson  <simon@josefsson.org>
79959         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
79960         SOVERSION variable.
79962 2009-04-02  Bruno Haible  <bruno@clisp.org>
79964         * Makefile (info, html, dvi, pdf): Combine the rules.
79965         Suggested by Jim Meyering.
79967 2009-04-01  Bruno Haible  <bruno@clisp.org>
79969         * Makefile (info, html, dvi, pdf): New targets.
79970         Reported by Reuben Thomas <rrt@sc3d.org>.
79972 2009-04-01  Bruno Haible  <bruno@clisp.org>
79974         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
79975         can be put into PATH.
79976         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
79978 2009-04-01  Bruno Haible  <bruno@clisp.org>
79980         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
79982 2009-04-01  Bruno Haible  <bruno@clisp.org>
79984         Rename module 'visibility'.
79985         * modules/lib-symbol-visibility: Renamed from modules/visibility.
79986         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
79987         * doc/gnulib.texi: Update.
79988         * MODULES.html.sh (Misc): Update.
79989         * NEWS: Mention the change.
79991 2009-04-01  Simon Josefsson  <simon@josefsson.org>
79993         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
79994         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
79995         Eric Blake <ebb9@byu.net> for review.
79996         * MODULES.html.sh: Add lib-msvc-compat.
79997         * doc/gnulib.texi: Link to new section.
79998         * m4/ld-output-def.m4: New file.
79999         * doc/ld-output-def.texi: New file.
80001 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80003         Rename ld-version-script to lib-symbol-versions.  Suggested by
80004         Bruno Haible <bruno@clisp.org>.
80005         * modules/ld-version-script: Renamed to lib-symbol-versions.
80006         * doc/ld-version-script.texi: Fix module name.
80007         * MODULES.html.sh: Add lib-symbol-versions.
80009 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80011         * modules/u64-tests: New file.
80012         * tests/test-u64.c: New file.
80014 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80016         * MODULES.html.sh: Mention u64.
80017         * modules/u64: New module.
80018         * modules/crypto/sha512: Depend on u64 module instead of providing
80019         u64.h.
80021 2009-03-27  Eric Blake  <ebb9@byu.net>
80023         test-strerror: make debugging EAI_SYSTEM easier
80024         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80025         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80026         failure was EAI_SYSTEM.
80028 2009-03-25  Bruno Haible  <bruno@clisp.org>
80030         Fix a problem with --enable-relocatable on Solaris 7.
80031         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80032         since 2008-02-24.
80034 2009-03-25  Eric Blake  <ebb9@byu.net>
80036         test-sockets: avoid gcc warning
80037         * tests/test-sockets.c (main): Silence compiler warning.
80039 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80041         New modules nproc, pthread, contributed by Glen Lenker.
80043         * MODULES.html.sh: Add pthread, nproc.
80044         * lib/nproc.c: New file.
80045         * lib/nproc.h: New file.
80046         * lib/pthread.in.h: New file.
80047         * m4/pthread.m4: New file.
80048         * modules/nproc: New file.
80049         * modules/pthread: New file.
80051 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80053         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80054         New variable.
80056 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80058         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80059         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80060         * tests/test-filevercmp.c: Add tests for backup suffixes.
80062 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80064         * modules/stdlib (Depends-on): Add stdint, needed when defining
80065         struct random_data on, for example, HP-UX 10.20.  Reported by
80066         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80068 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80070         * lib/readline.c (readline): Call fflush on stdout after printing
80071         prompt.
80073 2009-03-20  Bruno Haible  <bruno@clisp.org>
80075         Remove dependency from 'close' module to -lws2_32 on native Windows.
80076         * lib/close-hook.h: New file.
80077         * lib/close-hook.c: New file.
80078         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80079         w32sock.h.
80080         (_gl_close_fd_maybe_socket): Remove function.
80081         (rpl_close): Invoke execute_all_close_hooks instead of
80082         _gl_close_fd_maybe_socket.
80083         * lib/sockets.c: Include close-hook.h, w32sock.h.
80084         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80085         (close_sockets_hook): New variable.
80086         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80087         (gl_sockets_cleanup): Unregister it.
80088         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80089         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80090         * modules/close-hook: New file.
80091         * modules/close (Files): Remove lib/w32sock.h.
80092         (Depends-on): Add close-hook.
80093         (Link): Remove section.
80094         * modules/sockets (Files): Add lib/w32sock.h.
80095         (Depends-on): Add close-hook.
80096         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80097         invocation.
80098         * NEWS: Mention that LIB_CLOSE is gone.
80100 2009-03-23  Eric Blake  <ebb9@byu.net>
80102         signal-tests: test previous patch
80103         * tests/test-signal.c: New file.
80104         * modules/signal-tests: Likewise.
80106         signal.h: always support 'volatile sig_atomic_t'
80107         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80108         (gl_SIGNAL_H_DEFAULTS): Add a default.
80109         * modules/signal (Makefile.am): Substitute if needed.
80110         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80111         users can blindly add volatile.
80112         * doc/posix-headers/signal.texi (signal.h): Document it.
80113         Reported by Matthew Woehlke.
80115 2009-03-23  Jim Meyering  <meyering@redhat.com>
80117         pathmax: PATH_MAX: use pathconf only when available
80118         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80119         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80120         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80121         This avoids a link failure in a PSP cross-compilation environment
80122         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80124         * lib/vasnprintf.c (divide): Fix typo in comment.
80126 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80128         * gnulib-tool (func_filter_filelist): Fix comment.
80130 2009-03-20  Bruno Haible  <bruno@clisp.org>
80132         Make sockets.h self-contained.
80133         * lib/sockets.c: Include sockets.h first.
80134         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80136 2009-03-19  Eric Blake  <ebb9@byu.net>
80138         doc: mention more functions added in cygwin 1.7.0
80139         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80140         addition.
80141         * doc/posix-functions/log2f.texi: Likewise.
80143 2009-03-19  Jim Meyering  <meyering@redhat.com>
80145         fsusage: avoid syntax error due to statement-before-declaration
80146         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80147         after all declarations.  Reported by Matthew Woehlke in
80148         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80150 2009-03-18  Eric Blake  <ebb9@byu.net>
80152         build-aux/compile: sync from automake
80153         * build-aux/compile: New file, from automake.
80154         * config/srclist.txt: Mention build-aux/compile.
80156 2009-03-17  Bruno Haible  <bruno@clisp.org>
80158         * lib/git-merge-changelog.c: Fix typo in comment.
80159         Reported by Reuben Thomas <rrt@sc3d.org>.
80161 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80163         * m4/regex.m4: update and improve help for
80164         --without-included-regex.
80166 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80168         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80169         failure on missing include files.
80171 2009-03-17  Eric Blake  <ebb9@byu.net>
80173         doc: mention more functions added in cygwin 1.7.0
80174         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80175         addition.
80176         * doc/posix-functions/fwscanf.texi: Likewise.
80177         * doc/posix-functions/swprintf.texi: Likewise.
80178         * doc/posix-functions/swscanf.texi: Likewise.
80179         * doc/posix-functions/vfwprintf.texi: Likewise.
80180         * doc/posix-functions/vfwscanf.texi: Likewise.
80181         * doc/posix-functions/vswprintf.texi: Likewise.
80182         * doc/posix-functions/vswscanf.texi: Likewise.
80183         * doc/posix-functions/vwprintf.texi: Likewise.
80184         * doc/posix-functions/vwscanf.texi: Likewise.
80185         * doc/posix-functions/wcscasecmp.texi: Likewise.
80186         * doc/posix-functions/wcsdup.texi: Likewise.
80187         * doc/posix-functions/wcsftime.texi: Likewise.
80188         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80189         * doc/posix-functions/wprintf.texi: Likewise.
80190         * doc/posix-functions/wscanf.texi: Likewise.
80191         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80193 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80195         maint.mk: really add $(AM_MAKEFLAGS)
80196         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80197         was inadvertently omitted in the last commit.
80198         Spotted by Bruno Haible.
80200         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80201         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80202         $(AM_MAKEFLAGS)' rather than plain `make'.
80204         gnulib-tool: execute $MAKE not make
80205         * gnulib-tool: Default $MAKE to 'make'.
80206         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80207         than make.  Initialize $MAKE in the do-autobuild script.
80209         gnulib-tool: use $MAKE not make in generated files
80210         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80211         make, in generated files.  Initialize $MAKE in the do-autobuild
80212         script.
80214         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80216         GNUmakefile: disable parallelism only for multiple, recursive targets
80217         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80218         additions in the Makefile.
80219         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80220         by Automake.
80221         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80222         are listed on the command line and at least one of them is
80223         listed in $(ALL_RECURSIVE_TARGETS).
80225 2009-03-14  Bruno Haible  <bruno@clisp.org>
80227         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80228         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80229         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80230         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80231         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80232         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80233         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80234         unistr/u8-uctomb.
80235         * modules/unistr/u8-strchr (Depends-on): Likewise.
80236         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80237         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80238         unistr/u16-uctomb.
80239         * modules/unistr/u16-strchr (Depends-on): Likewise.
80240         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80242 2009-03-12  Bruno Haible  <bruno@clisp.org>
80244         Work around select() bug on Interix 3.5.
80245         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80246         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80247         * m4/select.m4: New file.
80248         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80249         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80250         * modules/select (Files): Add m4/select.m4.
80251         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80252         * modules/nanosleep (Depends-on): Add select.
80253         * modules/poll (Depends-on): Likewise.
80254         * doc/posix-functions/select.texi: Mention the Interix bug.
80255         Reported by Markus Duft <mduft@gentoo.org>.
80257         * lib/select.c: Renamed from lib/winsock-select.c.
80258         * modules/select (Files): Add lib/select.c, remove
80259         lib/winsock-select.c.
80260         (configure.ac): Update.
80262 2009-03-12  Jim Meyering  <meyering@redhat.com>
80264         avoid gcc warnings about unused macro definitions
80265         * lib/readtokens.c (STREQ): Remove unused definition.
80266         * lib/xmalloc.c (SIZE_MAX): Likewise.
80267         * lib/openat-die.c (N_): Likewise.
80268         * lib/mountlist.c (SIZE_MAX): Remove definition.
80269         Instead, include <stdint.h>.
80270         * lib/readutmp.c: Likewise.
80271         * modules/readutmp (Depends-on): Add stdint.
80272         * modules/mountlist (Depends-on): Add stdint.
80273         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80275 2009-03-10  Bruno Haible  <bruno@clisp.org>
80277         Tests for module 'mbmemcasecoll'.
80278         * modules/mbmemcasecoll-tests: New file.
80279         * tests/test-mbmemcasecoll1.sh: New file.
80280         * tests/test-mbmemcasecoll2.sh: New file.
80281         * tests/test-mbmemcasecoll3.sh: New file.
80282         * tests/test-mbmemcasecoll.c: New file.
80284         New module 'mbmemcasecoll'.
80285         * lib/mbmemcasecoll.h: New file.
80286         * lib/mbmemcasecoll.c: New file.
80287         * modules/mbmemcasecoll: New file.
80289         * tests/test-mbmemcasecmp.h: New file, extracted from
80290         tests/test-mbmemcasecmp.c.
80291         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80292         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80293         (main): Update.
80294         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80296 2009-03-09  Bruno Haible  <bruno@clisp.org>
80298         Tests for module 'mbmemcasecmp'.
80299         * modules/mbmemcasecmp-tests: New file.
80300         * tests/test-mbmemcasecmp1.sh: New file.
80301         * tests/test-mbmemcasecmp2.sh: New file.
80302         * tests/test-mbmemcasecmp3.sh: New file.
80303         * tests/test-mbmemcasecmp.c: New file.
80305         New module 'mbmemcasecmp'.
80306         * lib/mbmemcasecmp.h: New file.
80307         * lib/mbmemcasecmp.c: New file.
80308         * modules/mbmemcasecmp: New file.
80310 2009-03-09  Bruno Haible  <bruno@clisp.org>
80312         Tests for module 'unicase/ulc-casecoll'.
80313         * modules/unicase/ulc-casecoll-tests: New file.
80314         * tests/unicase/test-ulc-casecoll1.sh: New file.
80315         * tests/unicase/test-ulc-casecoll2.sh: New file.
80316         * tests/unicase/test-ulc-casecoll.c: New file.
80318         New module 'unicase/ulc-casecoll'.
80319         * lib/unicase.h (ulc_casecoll): New declaration.
80320         * lib/unicase/ulc-casecoll.c: New file.
80321         * modules/unicase/ulc-casecoll: New file.
80323         New module 'unicase/ulc-casexfrm'.
80324         * lib/unicase.h (ulc_casexfrm): New declaration.
80325         * lib/unicase/ulc-casexfrm.c: New file.
80326         * modules/unicase/ulc-casexfrm: New file.
80328 2009-03-09  Bruno Haible  <bruno@clisp.org>
80330         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80331         invocations.
80333         * m4/mbscasecmp.m4: Remove file.
80334         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80335         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80337         * m4/mbscasestr.m4: Remove file.
80338         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80339         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80341         * m4/mbschr.m4: Remove file.
80342         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80343         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80345         * m4/mbscspn.m4: Remove file.
80346         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80347         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80349         * m4/mbslen.m4: Remove file.
80350         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80351         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80353         * m4/mbsncasecmp.m4: Remove file.
80354         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80355         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80357         * m4/mbsnlen.m4: Remove file.
80358         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80359         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80361         * m4/mbspbrk.m4: Remove file.
80362         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80363         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80365         * m4/mbspcasecmp.m4: Remove file.
80366         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80367         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80369         * m4/mbsrchr.m4: Remove file.
80370         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80371         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80373         * m4/mbssep.m4: Remove file.
80374         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80375         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80377         * m4/mbsspn.m4: Remove file.
80378         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80379         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80381         * m4/mbsstr.m4: Remove file.
80382         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80383         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80385         * m4/mbstok_r.m4: Remove file.
80386         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80387         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80389         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80391         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80392         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80394         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80396 2009-03-08  Bruno Haible  <bruno@clisp.org>
80398         Tests for module 'unicase/ulc-casecmp'.
80399         * modules/unicase/ulc-casecmp-tests: New file.
80400         * tests/unicase/test-ulc-casecmp1.sh: New file.
80401         * tests/unicase/test-ulc-casecmp2.sh: New file.
80402         * tests/unicase/test-ulc-casecmp.c: New file.
80404         New module 'unicase/ulc-casecmp'.
80405         * lib/unicase.h (ulc_casecmp): New declaration.
80406         * lib/unicase/ulc-casecmp.c: New file.
80407         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80408         'const SRC_UNIT *'.
80409         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80410         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80411         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80412         * modules/unicase/ulc-casecmp: New file.
80414         Tests for module 'unicase/u32-is-cased'.
80415         * modules/unicase/u32-is-cased-tests: New file.
80416         * tests/unicase/test-u32-is-cased.c: New file.
80418         Tests for module 'unicase/u16-is-cased'.
80419         * modules/unicase/u16-is-cased-tests: New file.
80420         * tests/unicase/test-u16-is-cased.c: New file.
80422         Tests for module 'unicase/u8-is-cased'.
80423         * modules/unicase/u8-is-cased-tests: New file.
80424         * tests/unicase/test-u8-is-cased.c: New file.
80425         * tests/unicase/test-is-cased.h: New file.
80427         New module 'unicase/u32-is-cased'.
80428         * lib/unicase/u32-is-cased.c: New file.
80429         * modules/unicase/u32-is-cased: New file.
80431         New module 'unicase/u16-is-cased'.
80432         * lib/unicase/u16-is-cased.c: New file.
80433         * modules/unicase/u16-is-cased: New file.
80435         New module 'unicase/u8-is-cased'.
80436         * lib/unicase/u8-is-cased.c: New file.
80437         * lib/unicase/u-is-cased.h: New file.
80438         * modules/unicase/u8-is-cased: New file.
80440         Tests for module 'unicase/u32-is-casefolded'.
80441         * modules/unicase/u32-is-casefolded-tests: New file.
80442         * tests/unicase/test-u32-is-casefolded.c: New file.
80444         Tests for module 'unicase/u16-is-casefolded'.
80445         * modules/unicase/u16-is-casefolded-tests: New file.
80446         * tests/unicase/test-u16-is-casefolded.c: New file.
80448         Tests for module 'unicase/u8-is-casefolded'.
80449         * modules/unicase/u8-is-casefolded-tests: New file.
80450         * tests/unicase/test-u8-is-casefolded.c: New file.
80451         * tests/unicase/test-is-casefolded.h: New file.
80453         New module 'unicase/u32-is-casefolded'.
80454         * lib/unicase/u32-is-casefolded.c: New file.
80455         * modules/unicase/u32-is-casefolded: New file.
80457         New module 'unicase/u16-is-casefolded'.
80458         * lib/unicase/u16-is-casefolded.c: New file.
80459         * modules/unicase/u16-is-casefolded: New file.
80461         New module 'unicase/u8-is-casefolded'.
80462         * lib/unicase/u8-is-casefolded.c: New file.
80463         * modules/unicase/u8-is-casefolded: New file.
80465         Tests for module 'unicase/u32-is-titlecase'.
80466         * modules/unicase/u32-is-titlecase-tests: New file.
80467         * tests/unicase/test-u32-is-titlecase.c: New file.
80469         Tests for module 'unicase/u16-is-titlecase'.
80470         * modules/unicase/u16-is-titlecase-tests: New file.
80471         * tests/unicase/test-u16-is-titlecase.c: New file.
80473         Tests for module 'unicase/u8-is-titlecase'.
80474         * modules/unicase/u8-is-titlecase-tests: New file.
80475         * tests/unicase/test-u8-is-titlecase.c: New file.
80476         * tests/unicase/test-is-titlecase.h: New file.
80478         New module 'unicase/u32-is-titlecase'.
80479         * lib/unicase/u32-is-titlecase.c: New file.
80480         * modules/unicase/u32-is-titlecase: New file.
80482         New module 'unicase/u16-is-titlecase'.
80483         * lib/unicase/u16-is-titlecase.c: New file.
80484         * modules/unicase/u16-is-titlecase: New file.
80486         New module 'unicase/u8-is-titlecase'.
80487         * lib/unicase/u8-is-titlecase.c: New file.
80488         * modules/unicase/u8-is-titlecase: New file.
80490         Tests for module 'unicase/u32-is-lowercase'.
80491         * modules/unicase/u32-is-lowercase-tests: New file.
80492         * tests/unicase/test-u32-is-lowercase.c: New file.
80494         Tests for module 'unicase/u16-is-lowercase'.
80495         * modules/unicase/u16-is-lowercase-tests: New file.
80496         * tests/unicase/test-u16-is-lowercase.c: New file.
80498         Tests for module 'unicase/u8-is-lowercase'.
80499         * modules/unicase/u8-is-lowercase-tests: New file.
80500         * tests/unicase/test-u8-is-lowercase.c: New file.
80501         * tests/unicase/test-is-lowercase.h: New file.
80503         New module 'unicase/u32-is-lowercase'.
80504         * lib/unicase/u32-is-lowercase.c: New file.
80505         * modules/unicase/u32-is-lowercase: New file.
80507         New module 'unicase/u16-is-lowercase'.
80508         * lib/unicase/u16-is-lowercase.c: New file.
80509         * modules/unicase/u16-is-lowercase: New file.
80511         New module 'unicase/u8-is-lowercase'.
80512         * lib/unicase/u8-is-lowercase.c: New file.
80513         * modules/unicase/u8-is-lowercase: New file.
80515         Tests for module 'unicase/u32-is-uppercase'.
80516         * modules/unicase/u32-is-uppercase-tests: New file.
80517         * tests/unicase/test-u32-is-uppercase.c: New file.
80519         Tests for module 'unicase/u16-is-uppercase'.
80520         * modules/unicase/u16-is-uppercase-tests: New file.
80521         * tests/unicase/test-u16-is-uppercase.c: New file.
80523         Tests for module 'unicase/u8-is-uppercase'.
80524         * modules/unicase/u8-is-uppercase-tests: New file.
80525         * tests/unicase/test-u8-is-uppercase.c: New file.
80526         * tests/unicase/test-is-uppercase.h: New file.
80528         New module 'unicase/u32-is-uppercase'.
80529         * lib/unicase/u32-is-uppercase.c: New file.
80530         * modules/unicase/u32-is-uppercase: New file.
80532         New module 'unicase/u16-is-uppercase'.
80533         * lib/unicase/u16-is-uppercase.c: New file.
80534         * modules/unicase/u16-is-uppercase: New file.
80536         New module 'unicase/u8-is-uppercase'.
80537         * lib/unicase/u8-is-uppercase.c: New file.
80538         * modules/unicase/u8-is-uppercase: New file.
80540         New module 'unicase/u32-is-invariant'.
80541         * lib/unicase/u32-is-invariant.c: New file.
80542         * modules/unicase/u32-is-invariant: New file.
80544         New module 'unicase/u16-is-invariant'.
80545         * lib/unicase/u16-is-invariant.c: New file.
80546         * modules/unicase/u16-is-invariant: New file.
80548         New module 'unicase/u8-is-invariant'.
80549         * lib/unicase/u8-is-invariant.c: New file.
80550         * lib/unicase/invariant.h: New file.
80551         * lib/unicase/u-is-invariant.h: New file.
80552         * modules/unicase/u8-is-invariant: New file.
80554         Tests for module 'unicase/u32-casecoll'.
80555         * modules/unicase/u32-casecoll-tests: New file.
80556         * tests/unicase/test-u32-casecoll.c: New file.
80558         Tests for module 'unicase/u16-casecoll'.
80559         * modules/unicase/u16-casecoll-tests: New file.
80560         * tests/unicase/test-u16-casecoll.c: New file.
80562         Tests for module 'unicase/u8-casecoll'.
80563         * modules/unicase/u8-casecoll-tests: New file.
80564         * tests/unicase/test-u8-casecoll.c: New file.
80566         New module 'unicase/u32-casecoll'.
80567         * lib/unicase/u32-casecoll.c: New file.
80568         * modules/unicase/u32-casecoll: New file.
80570         New module 'unicase/u16-casecoll'.
80571         * lib/unicase/u16-casecoll.c: New file.
80572         * modules/unicase/u16-casecoll: New file.
80574         New module 'unicase/u8-casecoll'.
80575         * lib/unicase/u8-casecoll.c: New file.
80576         * lib/unicase/u-casecoll.h: New file.
80577         * modules/unicase/u8-casecoll: New file.
80579         New module 'unicase/u32-casexfrm'.
80580         * lib/unicase/u32-casexfrm.c: New file.
80581         * modules/unicase/u32-casexfrm: New file.
80583         New module 'unicase/u16-casexfrm'.
80584         * lib/unicase/u16-casexfrm.c: New file.
80585         * modules/unicase/u16-casexfrm: New file.
80587         New module 'unicase/u8-casexfrm'.
80588         * lib/unicase/u8-casexfrm.c: New file.
80589         * lib/unicase/u-casexfrm.h: New file.
80590         * modules/unicase/u8-casexfrm: New file.
80592         Tests for module 'unicase/u32-casecmp'.
80593         * modules/unicase/u32-casecmp-tests: New file.
80594         * tests/unicase/test-u32-casecmp.c: New file.
80596         Tests for module 'unicase/u16-casecmp'.
80597         * modules/unicase/u16-casecmp-tests: New file.
80598         * tests/unicase/test-u16-casecmp.c: New file.
80600         Tests for module 'unicase/u8-casecmp'.
80601         * modules/unicase/u8-casecmp-tests: New file.
80602         * tests/unicase/test-u8-casecmp.c: New file.
80603         * tests/unicase/test-casecmp.h: New file.
80605         New module 'unicase/u32-casecmp'.
80606         * lib/unicase/u32-casecmp.c: New file.
80607         * modules/unicase/u32-casecmp: New file.
80609         New module 'unicase/u16-casecmp'.
80610         * lib/unicase/u16-casecmp.c: New file.
80611         * modules/unicase/u16-casecmp: New file.
80613         New module 'unicase/u8-casecmp'.
80614         * lib/unicase/u8-casecmp.c: New file.
80615         * lib/unicase/u-casecmp.h: New file.
80616         * modules/unicase/u8-casecmp: New file.
80618         Tests for module 'unicase/u32-casefold'.
80619         * modules/unicase/u32-casefold-tests: New file.
80620         * tests/unicase/test-u32-casefold.c: New file.
80622         Tests for module 'unicase/u16-casefold'.
80623         * modules/unicase/u16-casefold-tests: New file.
80624         * tests/unicase/test-u16-casefold.c: New file.
80626         Tests for module 'unicase/u8-casefold'.
80627         * modules/unicase/u8-casefold-tests: New file.
80628         * tests/unicase/test-u8-casefold.c: New file.
80630         New module 'unicase/u32-casefold'.
80631         * lib/unicase/u32-casefold.c: New file.
80632         * modules/unicase/u32-casefold: New file.
80634         New module 'unicase/u16-casefold'.
80635         * lib/unicase/u16-casefold.c: New file.
80636         * modules/unicase/u16-casefold: New file.
80638         New module 'unicase/u8-casefold'.
80639         * lib/unicase/u8-casefold.c: New file.
80640         * lib/unicase/u-casefold.h: New file.
80641         * modules/unicase/u8-casefold: New file.
80643         New module 'unicase/tocasefold'.
80644         * lib/unicase/casefold.h: New file.
80645         * lib/unicase/tocasefold.c: New file.
80646         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
80647         * modules/unicase/tocasefold: New file.
80649         Tests for module 'unicase/u32-totitle'.
80650         * modules/unicase/u32-totitle-tests: New file.
80651         * tests/unicase/test-u32-totitle.c: New file.
80653         Tests for module 'unicase/u16-totitle'.
80654         * modules/unicase/u16-totitle-tests: New file.
80655         * tests/unicase/test-u16-totitle.c: New file.
80657         Tests for module 'unicase/u8-totitle'.
80658         * modules/unicase/u8-totitle-tests: New file.
80659         * tests/unicase/test-u8-totitle.c: New file.
80661         New module 'unicase/u32-totitle'.
80662         * lib/unicase/u32-totitle.c: New file.
80663         * modules/unicase/u32-totitle: New file.
80665         New module 'unicase/u16-totitle'.
80666         * lib/unicase/u16-totitle.c: New file.
80667         * modules/unicase/u16-totitle: New file.
80669         New module 'unicase/u8-totitle'.
80670         * lib/unicase/u8-totitle.c: New file.
80671         * lib/unicase/u-totitle.h: New file.
80672         * modules/unicase/u8-totitle: New file.
80674         Tests for module 'unicase/u32-tolower'.
80675         * modules/unicase/u32-tolower-tests: New file.
80676         * tests/unicase/test-u32-tolower.c: New file.
80678         Tests for module 'unicase/u16-tolower'.
80679         * modules/unicase/u16-tolower-tests: New file.
80680         * tests/unicase/test-u16-tolower.c: New file.
80682         Tests for module 'unicase/u8-tolower'.
80683         * modules/unicase/u8-tolower-tests: New file.
80684         * tests/unicase/test-u8-tolower.c: New file.
80686         New module 'unicase/u32-tolower'.
80687         * lib/unicase/u32-tolower.c: New file.
80688         * modules/unicase/u32-tolower: New file.
80690         New module 'unicase/u16-tolower'.
80691         * lib/unicase/u16-tolower.c: New file.
80692         * modules/unicase/u16-tolower: New file.
80694         New module 'unicase/u8-tolower'.
80695         * lib/unicase/u8-tolower.c: New file.
80696         * modules/unicase/u8-tolower: New file.
80698         Tests for module 'unicase/u32-toupper'.
80699         * modules/unicase/u32-toupper-tests: New file.
80700         * tests/unicase/test-u32-toupper.c: New file.
80702         Tests for module 'unicase/u16-toupper'.
80703         * modules/unicase/u16-toupper-tests: New file.
80704         * tests/unicase/test-u16-toupper.c: New file.
80706         Tests for module 'unicase/u8-toupper'.
80707         * modules/unicase/u8-toupper-tests: New file.
80708         * tests/unicase/test-u8-toupper.c: New file.
80710         New module 'unicase/u32-toupper'.
80711         * lib/unicase/u32-toupper.c: New file.
80712         * modules/unicase/u32-toupper: New file.
80714         New module 'unicase/u16-toupper'.
80715         * lib/unicase/u16-toupper.c: New file.
80716         * modules/unicase/u16-toupper: New file.
80718         New module 'unicase/u8-toupper'.
80719         * lib/unicase/u8-toupper.c: New file.
80720         * modules/unicase/u8-toupper: New file.
80722         New module 'unicase/u32-casemap'.
80723         * lib/unicase/u32-casemap.c: New file.
80724         * modules/unicase/u32-casemap: New file.
80726         New module 'unicase/u16-casemap'.
80727         * lib/unicase/u16-casemap.c: New file.
80728         * modules/unicase/u16-casemap: New file.
80730         New module 'unicase/u8-casemap'.
80731         * lib/unicase/unicasemap.h: New file.
80732         * lib/unicase/u8-casemap.c: New file.
80733         * lib/unicase/u-casemap.h: New file.
80734         * modules/unicase/u8-casemap: New file.
80736         New module 'unicase/special-casing'.
80737         * lib/unicase/special-casing.h: New file.
80738         * lib/unicase/special-casing.c: New file.
80739         * lib/unicase/special-casing-table.gperf: New file, generated by
80740         gen-uni-tables.c.
80741         * modules/unicase/special-casing: New file.
80743         Tests for module 'unicase/locale-language'.
80744         * modules/unicase/locale-language-tests: New file.
80745         * tests/unicase/test-locale-language.sh: New file.
80746         * tests/unicase/test-locale-language.c: New file.
80748         New module 'unicase/locale-language'.
80749         * lib/unicase/locale-language.c: New file.
80750         * lib/unicase/locale-languages.gperf: New file.
80751         * modules/unicase/locale-language: New file.
80753         Generate more tables for case conversion and case folding.
80754         * lib/gen-uni-tables.c (SCC_*): New enum items.
80755         (struct special_casing_rule): New type.
80756         (casing_rules, num_casing_rules, allocated_casing_rules): New
80757         variables.
80758         (add_casing_rule, fill_casing_rules): New functions.
80759         (struct casefold_rule): New type.
80760         (casefolding_rules, num_casefolding_rules,
80761         allocated_casefolding_rules): New variables.
80762         (fill_casefolding_rules): New function.
80763         (unicode_casefold): New variable.
80764         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
80765         sort_casing_rules, output_casing_rules): New functions.
80766         (main): Accept to more arguments: SpecialCasing.txt and
80767         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
80768         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
80769         Output mapping for casefolding.
80771         * lib/unicase.h: Include stdbool.h, uninorm.h.
80772         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
80773         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
80774         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
80775         arguments.
80776         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
80777         resultp arguments.
80778         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
80779         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
80780         resultp arguments.
80781         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
80782         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
80783         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
80784         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
80785         declarations.
80786         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
80788 2009-03-08  Bruno Haible  <bruno@clisp.org>
80790         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80791         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
80792         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
80793         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80795 2009-03-07  Bruno Haible  <bruno@clisp.org>
80797         Adjust u*_normcmp, u*_normcoll API.
80798         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80799         u16_normcoll, u32_normcoll): Change failure conventions.
80800         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
80801         errno and return -1.
80802         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80804 2009-03-07  Bruno Haible  <bruno@clisp.org>
80806         Tests for module 'uninorm/u32-normcoll'.
80807         * modules/uninorm/u32-normcoll-tests: New file.
80808         * tests/uninorm/test-u32-normcoll.c: New file.
80810         Tests for module 'uninorm/u16-normcoll'.
80811         * modules/uninorm/u16-normcoll-tests: New file.
80812         * tests/uninorm/test-u16-normcoll.c: New file.
80814         Tests for module 'uninorm/u8-normcoll'.
80815         * modules/uninorm/u8-normcoll-tests: New file.
80816         * tests/uninorm/test-u8-normcoll.c: New file.
80818 2009-03-07  Bruno Haible  <bruno@clisp.org>
80820         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
80821         tests/uninorm/test-u32-normcmp.c.
80822         * tests/uninorm/test-u32-normcmp.c: Include it.
80823         (test_nonascii): New function, extracted from main. Add some more
80824         tests.
80825         (main): Invoke test_ascii and test_nonascii.
80826         * modules/uninorm/u32-normcmp-tests (Files): Add
80827         tests/uninorm/test-u32-normcmp.h.
80828         (Depends-on): Remove uninorm/u32-normcmp.
80830         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
80831         tests/uninorm/test-u16-normcmp.c.
80832         * tests/uninorm/test-u16-normcmp.c: Include it.
80833         (test_nonascii): New function, extracted from main. Add some more
80834         tests.
80835         (main): Invoke test_ascii and test_nonascii.
80836         * modules/uninorm/u16-normcmp-tests (Files): Add
80837         tests/uninorm/test-u16-normcmp.h.
80838         (Depends-on): Remove uninorm/u16-normcmp.
80840         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
80841         tests/uninorm/test-u8-normcmp.c.
80842         * tests/uninorm/test-u8-normcmp.c: Include it.
80843         (test_nonascii): New function, extracted from main. Add some more
80844         tests.
80845         (main): Invoke test_ascii and test_nonascii.
80846         * modules/uninorm/u8-normcmp-tests (Files): Add
80847         tests/uninorm/test-u8-normcmp.h.
80848         (Depends-on): Remove uninorm/u8-normcmp.
80850 2009-03-07  Bruno Haible  <bruno@clisp.org>
80852         New module 'uninorm/u32-normcoll'.
80853         * lib/uninorm/u32-normcoll.c: New file.
80854         * modules/uninorm/u32-normcoll: New file.
80856         New module 'uninorm/u16-normcoll'.
80857         * lib/uninorm/u16-normcoll.c: New file.
80858         * modules/uninorm/u16-normcoll: New file.
80860         New module 'uninorm/u8-normcoll'.
80861         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
80862         declarations.
80863         * lib/uninorm/u8-normcoll.c: New file.
80864         * lib/uninorm/u-normcoll.h: New file.
80865         * modules/uninorm/u8-normcoll: New file.
80867         New module 'uninorm/u32-normxfrm'.
80868         * lib/uninorm/u32-normxfrm.c: New file.
80869         * modules/uninorm/u32-normxfrm: New file.
80871         New module 'uninorm/u16-normxfrm'.
80872         * lib/uninorm/u16-normxfrm.c: New file.
80873         * modules/uninorm/u16-normxfrm: New file.
80875         New module 'uninorm/u8-normxfrm'.
80876         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
80877         declarations.
80878         * lib/uninorm/u8-normxfrm.c: New file.
80879         * lib/uninorm/u-normxfrm.h: New file.
80880         * modules/uninorm/u8-normxfrm: New file.
80882 2009-03-07  Bruno Haible  <bruno@clisp.org>
80884         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
80885         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
80886         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
80888 2009-03-07  Bruno Haible  <bruno@clisp.org>
80890         New module 'memxfrm'.
80891         * lib/memxfrm.h: New file.
80892         * lib/memxfrm.c: New file.
80893         * modules/memxfrm: New file.
80895 2009-03-07  Bruno Haible  <bruno@clisp.org>
80897         New module 'memcmp2'.
80898         * lib/memcmp2.h: New file.
80899         * lib/memcmp2.c: New file.
80900         * modules/memcmp2: New file.
80902 2009-03-07  Bruno Haible  <bruno@clisp.org>
80904         Tests for module 'uninorm/decomposing-form'.
80905         * modules/uninorm/decomposing-form-tests: New file.
80906         * tests/uninorm/test-decomposing-form.c: New file.
80908         New module 'uninorm/decomposing-form'.
80909         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
80910         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
80911         Add 'decomposing_variant' field.
80912         * lib/uninorm/decomposing-form.c: New file.
80913         * lib/uninorm/nfc.c (uninorm_nfc): Update.
80914         * lib/uninorm/nfd.c (uninorm_nfd): Update.
80915         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
80916         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
80917         * modules/uninorm/decomposing-form: New file.
80918         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
80919         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
80921 2009-03-07  Bruno Haible  <bruno@clisp.org>
80923         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
80924         strings.
80926 2009-03-06  Bruno Haible  <bruno@clisp.org>
80928         Tests for module 'uninorm/u32-normcmp'.
80929         * tests/uninorm/test-u32-normcmp.c: New file.
80930         * modules/uninorm/u32-normcmp-tests: New file.
80932         Tests for module 'uninorm/u16-normcmp'.
80933         * tests/uninorm/test-u16-normcmp.c: New file.
80934         * modules/uninorm/u16-normcmp-tests: New file.
80936         Tests for module 'uninorm/u8-normcmp'.
80937         * tests/uninorm/test-u8-normcmp.c: New file.
80938         * modules/uninorm/u8-normcmp-tests: New file.
80940         New module 'uninorm/u32-normcmp'.
80941         * lib/uninorm/u32-normcmp.c: New file.
80942         * modules/uninorm/u32-normcmp: New file.
80944         New module 'uninorm/u16-normcmp'.
80945         * lib/uninorm/u16-normcmp.c: New file.
80946         * modules/uninorm/u16-normcmp: New file.
80948         New module 'uninorm/u8-normcmp'.
80949         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
80950         declarations.
80951         * lib/uninorm/u8-normcmp.c: New file.
80952         * lib/uninorm/u-normcmp.h: New file.
80953         * modules/uninorm/u8-normcmp: New file.
80955 2009-03-06  Bruno Haible  <bruno@clisp.org>
80957         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
80958         Reported by Eric Blake.
80960 2009-03-06  Eric Blake  <ebb9@byu.net>
80961             Bruno Haible  <bruno@clisp.org>
80963         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
80964         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
80965         condition.
80966         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
80967         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
80968         condition.
80969         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
80971 2009-03-06  Eric Blake  <ebb9@byu.net>
80973         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
80974         to avoid compiler warnings.
80975         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
80977 2009-03-05  Bruno Haible  <bruno@clisp.org>
80979         * tests/test-ftell.c (main): Disable test beyond end of file on
80980         FreeMiNT.
80981         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
80983 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
80985         * lib/filevercmp.c: Move hidden files up in ordering.
80986         * tests/test-filevercmp.c: Add tests for hidden files.
80988 2009-03-04  Bruno Haible  <bruno@clisp.org>
80990         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
80991         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
80992         AM_CFLAGS.
80993         Reported by Simon Josefsson.
80995 2009-03-03  Bruno Haible  <bruno@clisp.org>
80997         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
80998         Reported by Simon Josefsson.
81000         * doc/ld-version-script.texi: Update node reference.
81002 2009-03-03  Bruno Haible  <bruno@clisp.org>
81004         * modules/visibility (License): Change to 'unlimited'.
81005         Suggested by Simon Josefsson.
81007 2009-03-03  Jim Meyering  <meyering@redhat.com>
81009         unlinkdir: cannot_unlink_dir may modify process state
81010         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81011         it's neither thread-safe nor appropriate for use in a library.
81013 2009-03-03  Eric Blake  <ebb9@byu.net>
81015         test-closein: silence test under Darwin
81016         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81017         care if it dies from EPIPE or EBADF.
81019 2009-03-03  Bruno Haible  <bruno@clisp.org>
81021         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81022         earlier.
81023         * doc/visibility.texi: Fix @node and @section.
81025 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81027         * doc/gnulib.texi: Link to sections for ld version script and
81028         visibility.
81029         * doc/visibility.texi: Add @node and @section.
81030         * modules/ld-version-script: New module.
81031         * m4/ld-version-script.m4: New file.
81032         * doc/ld-version-script.texi: New file.
81034 2009-03-02  David Lutterkort  <lutter@redhat.com>
81036         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81039 2009-03-02  Bruno Haible  <bruno@clisp.org>
81041         * doc/visibility.texi: Mention libtool's -export-symbols option.
81043 2009-03-02  Jim Meyering  <meyering@redhat.com>
81045         announce-gen: new option: --no-print-checksums
81046         * build-aux/announce-gen (usage): Describe it.
81047         (print_checksums): Print a newline here, not in the [*] footnote.
81048         (main): Honor it.
81050 2009-03-01  Bruno Haible  <bruno@clisp.org>
81052         Use socklen_t in the native Windows replacements prototypes.
81053         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81054         instead of 'int'.
81055         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81056         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81057         * modules/getsockopt (Depends-on): Add socklen.
81058         * modules/setsockopt (Depends-on): Add socklen.
81060 2009-03-01  Bruno Haible  <bruno@clisp.org>
81062         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81063         least 4.2.
81065 2009-03-01  Eric Blake  <ebb9@byu.net>
81066             Bruno Haible  <bruno@clisp.org>
81068         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81069         error messages.
81070         * lib/wait-process.c (wait_subprocess): Omit error message about
81071         deadly signal sent to the child of termsigp != NULL.
81073 2009-03-01  Eric Blake  <ebb9@byu.net>
81075         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81077 2009-03-01  Bruno Haible  <bruno@clisp.org>
81079         Avoid a gcc warning.
81080         * tests/test-sched.c (b): Make global.
81081         Reported by Eric Blake.
81083 2009-01-19  Martin Lambers  <marlam@marlam.de>
81085         Provide POSIX semantics for socket timeout options on W32.
81086         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81087         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81088         * modules/setsockopt: Depend on sys_time module for struct timeval.
81089         * modules/getsockopt: Depend on sys_time module for struct timeval.
81091 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81093         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81094         __USE_GNU, for consistency with netdb.in.h.
81095         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81097 2009-03-01  Bruno Haible  <bruno@clisp.org>
81099         More support for FreeMiNT.
81100         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81101         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81103 2009-03-01  Bruno Haible  <bruno@clisp.org>
81105         More support for FreeMiNT.
81106         * lib/fpurge.c (fpurge): Correct last commit.
81107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81109 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81111         Fix unportable awk script in vc-list-files.
81112         * build-aux/vc-list-files: In the replacement awk script, use
81113         substr with a second argument of 1, not zero.
81114         Report by Simon Josefsson.
81116 2009-02-28  Bruno Haible  <bruno@clisp.org>
81118         More support for FreeMiNT.
81119         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81120         to FreeMiNT today.
81121         * lib/fwriting.c (fwriting): Likewise.
81122         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81124 2009-02-28  Bruno Haible  <bruno@clisp.org>
81126         * tests/test-freadseek.c (main): Disable test beyond end of file on
81127         FreeMiNT.
81128         * tests/test-ftello.c (main): Likewise.
81129         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81131 2009-02-28  Bruno Haible  <bruno@clisp.org>
81133         Add tentative support for FreeMiNT.
81134         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81135         * lib/fpurge.c (fpurge): Likewise.
81136         * lib/freadable.c (freadable): Likewise.
81137         * lib/freading.c (freading): Likewise.
81138         * lib/freadptr.c (freadptr): Likewise.
81139         * lib/freadseek.c (freadptrinc): Likewise.
81140         * lib/fseeko.c (rpl_fseeko): Likewise.
81141         * lib/fseterr.c (fseterr): Likewise.
81142         * lib/fwritable.c (fwritable): Likewise.
81143         * lib/fwriting.c (fwriting): Likewise.
81144         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81145         Hourihane.
81146         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81148 2009-02-28  Bruno Haible  <bruno@clisp.org>
81150         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81151         SIGCHLD.
81152         Reported by Jim Meyering.
81154 2009-02-28  Bruno Haible  <bruno@clisp.org>
81156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81157         Mention the results of these tests on various platforms.
81158         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81159         order.
81160         * doc/posix-functions/printf.texi: Likewise.
81161         * doc/posix-functions/snprintf.texi: Likewise.
81162         * doc/posix-functions/sprintf.texi: Likewise.
81163         * doc/posix-functions/vfprintf.texi: Likewise.
81164         * doc/posix-functions/vprintf.texi: Likewise.
81165         * doc/posix-functions/vsnprintf.texi: Likewise.
81166         * doc/posix-functions/vsprintf.texi: Likewise.
81167         * doc/glibc-functions/obstack_printf.texi: Likewise.
81168         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81170 2009-02-28  Bruno Haible  <bruno@clisp.org>
81172         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81173         Reported by Loïc Minier <lool@dooz.org>.
81175 2009-02-27  Bruno Haible  <bruno@clisp.org>
81177         * gnulib-tool (func_import): Make the sed expression used to create the
81178         sed script for updating the .gitignore file POSIX compliant.
81179         Reported by Eric Blake.
81181 2009-02-27  Bruno Haible  <bruno@clisp.org>
81183         * gnulib-tool (sed): Don't alias as "sed --posix".
81184         Reported by Eric Blake.
81186 2009-02-27  Bruno Haible  <bruno@clisp.org>
81188         Avoid test link errors.
81189         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81190         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81191         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81192         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81195 2009-02-27  Bruno Haible  <bruno@clisp.org>
81197         Avoid spurious "(cached)" in configure output.
81198         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81199         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81200         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81201         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81202         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81203         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81204         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81205         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81206         Reported by Eric Blake.
81208 2009-02-27  Eric Blake  <ebb9@byu.net>
81210         printf: fix regression in previous patch
81211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81213 2009-02-27  Bruno Haible  <bruno@clisp.org>
81215         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81216         value.
81217         * lib/stdint.in.h: Likewise.
81218         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81220 2009-02-27  Eric Blake  <ebb9@byu.net>
81222         doc: mention more functions added in cygwin 1.7.0
81223         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81224         addition.
81225         * doc/posix-functions/open_wmemstream.texi: Likewise.
81226         * doc/posix-functions/wcsnlen.texi: Likewise.
81227         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81228         * doc/posix-functions/wcstod.texi: Likewise.
81229         * doc/posix-functions/wcstof.texi: Likewise.
81230         * doc/posix-functions/wcstoimax.texi: Likewise.
81231         * doc/posix-functions/wcstok.texi: Likewise.
81232         * doc/posix-functions/wcstoumax.texi: Likewise.
81234         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81236         * doc/posix-functions/fprintf.texi: Update.
81237         * doc/posix-functions/printf.texi: Update.
81238         * doc/posix-functions/snprintf.texi: Update.
81239         * doc/posix-functions/sprintf.texi: Update.
81240         * doc/posix-functions/vfprintf.texi: Update.
81241         * doc/posix-functions/vprintf.texi: Update.
81242         * doc/posix-functions/vsnprintf.texi: Update.
81243         * doc/posix-functions/vsprintf.texi: Update.
81244         * doc/glibc-functions/obstack_printf.texi: Update.
81245         * doc/glibc-functions/obstack_vprintf.texi: Update.
81247 2009-02-26  Eric Blake  <ebb9@byu.net>
81249         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81250         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81251         compilation bug by using runtime conversion.
81252         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81253         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81254         * modules/ceill-tests (Files): Use nan.h.
81255         * modules/floorl-tests (Files): Likewise.
81256         * modules/frexpl-tests (Files): Likewise.
81257         * modules/isnanl-tests (Files): Likewise.
81258         * modules/ldexpl-tests (Files): Likewise.
81259         * modules/roundl-tests (Files): Likewise.
81260         * modules/truncl-tests (Files): Likewise.
81261         * tests/test-ceill.c (main): Use a working NaN.
81262         * tests/test-floorl.c (main): Likewise.
81263         * tests/test-frexpl.c (main): Likewise.
81264         * tests/test-isnan.c (test_long_double): Likewise.
81265         * tests/test-isnanl.h (main): Likewise.
81266         * tests/test-ldexpl.h (main): Likewise.
81267         * tests/test-roundl.h (main): Likewise.
81268         * tests/test-truncl.h (main): Likewise.
81269         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81271 2009-02-26  Eric Blake  <ebb9@byu.net>
81272             Bruno Haible  <bruno@clisp.org>
81274         Work around a *printf bug with %ls on Solaris.
81275         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81276         precision is specified, sprintf stops converting the wide string
81277         argument when the number of bytes that have been produced by this
81278         conversion equals or exceeds the precision.
81279         * doc/posix-functions/fprintf.texi: Update.
81280         * doc/posix-functions/printf.texi: Update.
81281         * doc/posix-functions/snprintf.texi: Update.
81282         * doc/posix-functions/sprintf.texi: Update.
81283         * doc/posix-functions/vfprintf.texi: Update.
81284         * doc/posix-functions/vprintf.texi: Update.
81285         * doc/posix-functions/vsnprintf.texi: Update.
81286         * doc/posix-functions/vsprintf.texi: Update.
81287         * doc/glibc-functions/obstack_printf.texi: Update.
81288         * doc/glibc-functions/obstack_vprintf.texi: Update.
81290 2009-02-26  Eric Blake  <ebb9@byu.net>
81292         stdlib: favor compiler check of random.h
81293         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81294         to avoid an ObjC random.h installed by Swarm.
81296 2009-02-26  Bruno Haible  <bruno@clisp.org>
81298         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81299         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81300         Reported by Gary V. Vaughan <gary@gnu.org>.
81302 2009-02-26  Bruno Haible  <bruno@clisp.org>
81304         Fix *printf behaviour regarding the %ls directive.
81305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81306         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81307         NEED_PRINTF_DIRECTIVE_LS.
81308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81309         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81311         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81312         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81313         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81314         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81319         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81323         * doc/posix-functions/fprintf.texi: Update.
81324         * doc/posix-functions/printf.texi: Update.
81325         * doc/posix-functions/snprintf.texi: Update.
81326         * doc/posix-functions/sprintf.texi: Update.
81327         * doc/posix-functions/vfprintf.texi: Update.
81328         * doc/posix-functions/vprintf.texi: Update.
81329         * doc/posix-functions/vsnprintf.texi: Update.
81330         * doc/posix-functions/vsprintf.texi: Update.
81331         * doc/glibc-functions/obstack_printf.texi: Update.
81332         * doc/glibc-functions/obstack_vprintf.texi: Update.
81333         Reported by Eric Blake.
81335 2009-02-25  Bruno Haible  <bruno@clisp.org>
81337         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81338         with known value.
81339         Reported by Gary V. Vaughan <gary@gnu.org>.
81341 2009-02-25  Bruno Haible  <bruno@clisp.org>
81343         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81344         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81345         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81346         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81347         Reported by Gary V. Vaughan <gary@gnu.org>.
81349 2009-02-25  Bruno Haible  <bruno@clisp.org>
81351         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81352         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81353         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81354         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81355         Reported by Gary V. Vaughan <gary@gnu.org>.
81357 2009-02-25  Eric Blake  <ebb9@byu.net>
81359         tests: skip fseek/ftell tests if ungetc is broken
81360         * m4/ungetc.m4: New file.
81361         * modules/fseek-tests: Split test, so ungetc dependency is
81362         separate from rest of test.
81363         * modules/fseeko-tests: Likewise.
81364         * modules/ftell-tests: Likewise.
81365         * modules/ftello-tests: Likewise.
81366         * tests/test-fseek.c (main): Isolate ungetc dependency.
81367         * tests/test-fseeko.c (main): Likewise.
81368         * tests/test-ftell.c (main): Likewise.
81369         * tests/test-ftello.c (main): Likewise.
81370         * tests/test-fseek2.sh: New file.
81371         * tests/test-fseeko2.sh: Likewise.
81372         * tests/test-ftell2.sh: Likewise.
81373         * tests/test-ftello2.sh: Likewise.
81375 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81377         test-getaddrinfo: fix usage of skip return code 77
81378         * tests/test-gettaddrinfo.c: Return skip code 77 only
81379         for first occurrence of skip (4x77 is not 77)
81381 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81383         strtod: avoid C99 decl-after-statement
81384         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81386 2009-02-24  Eric Blake  <ebb9@byu.net>
81388         strtod: detect HP-UX 11.31 bug
81389         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81390         Reported by Gary V. Vaughan.
81392 2009-02-23  Bruno Haible  <bruno@clisp.org>
81394         Fix invalid read past end of memory block.
81395         * lib/vasnprintf.c (DCHAR_SET): Define.
81396         (local_wcslen): Define only when needed.
81397         (local_strnlen, local_wcsnlen): New functions.
81398         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81399         directives that involve a conversion ourselves.
81400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81401         wcsnlen, mbrtowc, wcrtomb.
81402         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81403         * tests/test-vasprintf-posix.c (test_function): Likewise.
81404         * tests/test-snprintf-posix.h (test_function): Likewise.
81405         * tests/test-sprintf-posix.h (test_function): Likewise.
81406         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81408 2009-02-22  Bruno Haible  <bruno@clisp.org>
81410         Implement new clarified decomposition of Hangul syllables.
81411         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81412         of type LTV, return only a pairwise decomposition.
81413         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81414         Likewise.
81415         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81416         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81417         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81419 2009-02-22  Bruno Haible  <bruno@clisp.org>
81421         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81422         zero-length results and shrink excess allocated memory.
81423         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81424         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81425         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81426         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81427         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81428         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81429         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81430         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81431         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81432         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81433         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81434         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81436 2009-02-21  Bruno Haible  <bruno@clisp.org>
81438         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81439         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81440         spaces after a period. Put a space between a macro name and its
81441         argument list. Trivial rewordings.
81442         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81443         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81444         (main): Return 0 explicitly.
81446 2009-02-21  Bruno Haible  <bruno@clisp.org>
81448         Tests for module 'uninorm/filter'.
81449         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81450         * modules/uninorm/filter-tests: New file.
81452         New module 'uninorm/filter'.
81453         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81454         uninorm_filter_flush, uninorm_filter_free): New declarations.
81455         * lib/uninorm/uninorm-filter.c: New file.
81456         * modules/uninorm/filter: New file.
81458 2009-02-21  Bruno Haible  <bruno@clisp.org>
81460         Tests for module 'uninorm/nfkc'.
81461         * tests/uninorm/test-nfkc.c: New file.
81462         * tests/uninorm/test-u8-nfkc.c: New file.
81463         * tests/uninorm/test-u16-nfkc.c: New file.
81464         * tests/uninorm/test-u32-nfkc.c: New file.
81465         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81466         * tests/uninorm/test-u32-nfkc-big.c: New file.
81467         * modules/uninorm/nfkc-tests: New file.
81469         New module 'uninorm/nfkc'.
81470         * lib/uninorm/nfkc.c: New file.
81471         * modules/uninorm/nfkc: New file.
81473         Tests for module 'uninorm/nfkd'.
81474         * tests/uninorm/test-nfkd.c: New file.
81475         * tests/uninorm/test-u8-nfkd.c: New file.
81476         * tests/uninorm/test-u16-nfkd.c: New file.
81477         * tests/uninorm/test-u32-nfkd.c: New file.
81478         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81479         * tests/uninorm/test-u32-nfkd-big.c: New file.
81480         * modules/uninorm/nfkd-tests: New file.
81482         New module 'uninorm/nfkd'.
81483         * lib/uninorm/nfkd.c: New file.
81484         * modules/uninorm/nfkd: New file.
81486         Tests for module 'uninorm/nfc'.
81487         * tests/uninorm/test-nfc.c: New file.
81488         * tests/uninorm/test-u8-nfc.c: New file.
81489         * tests/uninorm/test-u16-nfc.c: New file.
81490         * tests/uninorm/test-u32-nfc.c: New file.
81491         * tests/uninorm/test-u32-nfc-big.sh: New file.
81492         * tests/uninorm/test-u32-nfc-big.c: New file.
81493         * modules/uninorm/nfc-tests: New file.
81495         New module 'uninorm/nfc'.
81496         * lib/uninorm/nfc.c: New file.
81497         * modules/uninorm/nfc: New file.
81499         Tests for module 'uninorm/nfd'.
81500         * tests/uninorm/test-nfd.c: New file.
81501         * tests/uninorm/test-u8-nfd.c: New file.
81502         * tests/uninorm/test-u16-nfd.c: New file.
81503         * tests/uninorm/test-u32-nfd.c: New file.
81504         * tests/uninorm/test-u32-nfd-big.sh: New file.
81505         * tests/uninorm/test-u32-nfd-big.c: New file.
81506         * tests/uninorm/test-u32-normalize-big.h: New file.
81507         * tests/uninorm/test-u32-normalize-big.c: New file.
81508         * tests/uninorm/NormalizationTest.txt: New file, created from
81509         Unicode 5.1.0 NormalizationTest.txt.
81510         * modules/uninorm/nfd-tests: New file.
81512         New module 'uninorm/nfd'.
81513         * lib/uninorm/nfd.c: New file.
81514         * modules/uninorm/nfd: New file.
81516         New module 'uninorm/u32-normalize'.
81517         * lib/uninorm/u32-normalize.c: New file.
81518         * modules/uninorm/u32-normalize: New file.
81520         New module 'uninorm/u16-normalize'.
81521         * lib/uninorm/u16-normalize.c: New file.
81522         * modules/uninorm/u16-normalize: New file.
81524         New module 'uninorm/u8-normalize'.
81525         * lib/uninorm/u8-normalize.c: New file.
81526         * lib/uninorm/normalize-internal.h: New file.
81527         * lib/uninorm/u-normalize-internal.h: New file.
81528         * modules/uninorm/u8-normalize: New file.
81530         New module 'uninorm/decompose-internal'.
81531         * lib/uninorm/decompose-internal.c: New file.
81532         * modules/uninorm/decompose-internal: New file.
81534         Tests for module 'uninorm/composition'.
81535         * tests/uninorm/test-composition.c: New file.
81536         * modules/uninorm/composition-tests: New file.
81538         New module 'uninorm/composition'.
81539         * lib/uninorm/composition.c: New file.
81540         * lib/uninorm/composition-table.gperf: New file, generated by
81541         gen-uni-tables.
81542         * modules/uninorm/composition: New file.
81544         Tests for module 'uninorm/compat-decomposition'.
81545         * tests/uninorm/test-compat-decomposition.c: New file.
81546         * modules/uninorm/compat-decomposition-tests: New file.
81548         New module 'uninorm/compat-decomposition'.
81549         * lib/uninorm/decompose-internal.h: New file.
81550         * lib/uninorm/compat-decomposition.c: New file.
81551         * modules/uninorm/compat-decomposition: New file.
81553         Tests for module 'uninorm/canonical-decomposition'.
81554         * tests/uninorm/test-canonical-decomposition.c: New file.
81555         * modules/uninorm/canonical-decomposition-tests: New file.
81557         New module 'uninorm/canonical-decomposition'.
81558         * lib/uninorm/canonical-decomposition.c: New file.
81559         * modules/uninorm/canonical-decomposition: New file.
81561         Tests for module 'uninorm/decomposition'.
81562         * tests/uninorm/test-decomposition.c: New file.
81563         * modules/uninorm/decomposition-tests: New file.
81565         New module 'uninorm/decomposition'.
81566         * lib/uninorm/decomposition.c: New file.
81567         * modules/uninorm/decomposition: New file.
81569         New module 'uninorm/decomposition-table'.
81570         * lib/uninorm/decomposition-table.h: New file.
81571         * lib/uninorm/decomposition-table.c: New file.
81572         * lib/uninorm/decomposition-table1.h: New file, generated by
81573         gen-uni-tables.
81574         * lib/uninorm/decomposition-table2.h: New file, generated by
81575         gen-uni-tables.
81576         * modules/uninorm/decomposition-table: New file.
81578         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81579         (UC_DECOMP_*): New enumeration items.
81580         (get_decomposition): New function.
81581         (struct decomp_table): New type.
81582         (output_decomposition, output_decomposition_tables): New functions.
81583         (unicode_composition_exclusions): New variable.
81584         (fill_composition_exclusions, debug_output_composition_tables): New
81585         functions.
81586         (main): Accept one more argument. Invoke fill_composition_exclusions.
81587         Output decomposition and composition tables.
81589         New module 'uninorm/base'.
81590         * lib/uninorm.h: New file.
81591         * lib/unictype.h: Update comment.
81592         * modules/uninorm/base: New file.
81594 2009-02-21  David Lutterkort  <lutter@redhat.com>
81596         Tests for module 'safe-alloc'.
81597         * tests/test-safe-alloc.c: New file.
81598         * modules/safe-alloc-tests: New file.
81600         New module 'safe-alloc'.
81601         * lib/safe-alloc.h: New file.
81602         * lib/safe-alloc.c: New file.
81603         * m4/safe-alloc.m4: New file.
81604         * modules/safe-alloc: New file.
81605         * doc/safe-alloc.texi: New file.
81606         * doc/gnulib.texi: Include it.
81607         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
81608         safe-alloc.
81610 2009-02-18  Bruno Haible  <bruno@clisp.org>
81612         Fix link error on non-glibc systems.
81613         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
81614         variable.
81615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81617 2009-02-18  Jim Meyering  <meyering@redhat.com>
81619         fts: avoid used-uninitialized error due to recent change
81620         * lib/fts.c (fts_read): Guard uses of the new member,
81621         parent->fts_n_dirs_remaining, since it's not relevant for
81622         the parent of a directory specified on the command-line.
81624 2009-02-17  James Youngman  <jay@gnu.org>
81625             Bruno Haible  <bruno@clisp.org>
81627         * m4/include_next.m4: Reformulate comment.
81629 2009-02-16  Jim Meyering  <meyering@redhat.com>
81631         fts: add #if guards so that the fts_lgpl module still builds
81632         * lib/fts.c: Guard just-added hash-table-using parts with
81633         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
81634         Reported by Simon Josefsson.
81636 2009-02-15  Bruno Haible  <bruno@clisp.org>
81638         * modules/array-mergesort-tests: New file.
81639         * tests/test-array-mergesort.c: New file.
81641         New module 'array-mergesort'.
81642         * modules/array-mergesort: New file.
81643         * lib/array-mergesort.h: New file.
81645 2009-02-15  Bruno Haible  <bruno@clisp.org>
81647         Fix 2009-02-07 commit.
81648         * lib/gen-uni-tables.c (output_predicate, output_category,
81649         output_combclass, output_bidi_category, output_decimal_digit,
81650         output_digit, output_numeric, output_mirror, output_scripts,
81651         output_ident_category, output_simple_mapping): Fix format directives.
81652         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
81654 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
81656         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
81657         fixes are available from IBM.
81659 2009-02-13  Jim Meyering  <meyering@redhat.com>
81661         fts: arrange not to stat non-directories in more cases
81662         This makes GNU find (when it doesn't need to stat each file)
81663         *much* more efficient at traversing reiserfs file systems.
81664         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
81665         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
81666         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
81667         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
81668         (leaf_optimization_applies): New function.
81669         (LCO_hash, LCO_compare): New helper functions.
81670         (link_count_optimize_ok): New function.
81671         (fts_stat): Initialize new member (if dir).
81672         (fts_read): Decrement parent's fts_n_dirs_remaining count if
81673         we've just stat'ed a directory.  Skip the stat call when possible.
81674         ---
81675         Note this AFS-related exchange:
81676         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
81677         and note find's pioctl call in find/fstype.c.
81678         But that is necessary only if you want to enable the
81679         optimization for AFS, and for now, I don't.
81681         fts: move a function definition "up" (no semantic change)
81682         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
81683         "up" to precede upcoming use of a related function.
81685 2009-02-11  Jim Meyering  <meyering@redhat.com>
81687         fts: correct internal computation of nlinks (optimization-related)
81688         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
81689         whether the current entry is a directory, so don't test it.
81691 2009-02-10  Bruno Haible  <bruno@clisp.org>
81693         Tests for module 'uniwbrk/ulc-wordbreaks'.
81694         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
81695         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
81696         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
81698         Tests for module 'uniwbrk/u32-wordbreaks'.
81699         * modules/uniwbrk/u32-wordbreaks-tests: New file.
81700         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
81702         Tests for module 'uniwbrk/u16-wordbreaks'.
81703         * modules/uniwbrk/u16-wordbreaks-tests: New file.
81704         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
81706         Tests for module 'uniwbrk/u8-wordbreaks'.
81707         * modules/uniwbrk/u8-wordbreaks-tests: New file.
81708         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
81710 2009-02-10  Bruno Haible  <bruno@clisp.org>
81712         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
81713         property.
81714         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
81715         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
81716         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
81718 2009-02-10  Simon Josefsson  <simon@josefsson.org>
81720         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
81721         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
81723 2009-02-10  Bruno Haible  <bruno@clisp.org>
81725         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
81726         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
81727         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
81728         * lib/unilbrk/u8-possible-linebreaks.c: Update.
81729         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
81730         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
81732 2009-02-09  Simon Josefsson  <simon@josefsson.org>
81734         * lib/sockets.h (gl_fd_to_handle): New function.
81736         * tests/test-sockets.c: Call gl_fd_to_handle.
81738 2009-02-09  Bruno Haible  <bruno@clisp.org>
81740         * doc/havelib.texi: Document the conventions on bi-arch systems.
81742 2009-02-08  Bruno Haible  <bruno@clisp.org>
81744         Document the AC_LIB_LINKFLAGS macro.
81745         * doc/havelib.texi: New file, mostly written on 2005-05-24.
81746         * doc/gnulib.texi: Include it.
81748 2009-02-08  Bruno Haible  <bruno@clisp.org>
81750         Fix wrong order of sections, compared to TOC.
81751         * doc/gnulib.texi: Include relocatable-maint.texi after the
81752         "Regular expressions" node, not before.
81754 2009-02-08  Bruno Haible  <bruno@clisp.org>
81756         Tests for module 'unicase/totitle'.
81757         * modules/unicase/totitle-tests: New file.
81759         Tests for module 'unicase/tolower'.
81760         * modules/unicase/tolower-tests: New file.
81762         Tests for module 'unicase/toupper'.
81763         * modules/unicase/toupper-tests: New file.
81764         * tests/unicase/test-mapping-part1.h: New file.
81765         * tests/unicase/test-mapping-part2.h: New file.
81767         New module 'unicase/totitle'.
81768         * modules/unicase/totitle: New file.
81769         * lib/unicase/totitle.c: New file.
81771         New module 'unicase/tolower'.
81772         * modules/unicase/tolower: New file.
81773         * lib/unicase/tolower.c: New file.
81775         New module 'unicase/toupper'.
81776         * modules/unicase/toupper: New file.
81777         * lib/unicase/toupper.c: New file.
81778         * lib/unicase/simple-mapping.h: New file.
81780         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
81781         (mapping_table): New structure.
81782         (output_simple_mapping): New function.
81783         (main): Invoke output_simple_mapping_test and output_simple_mapping.
81784         * modules/gen-uni-tables (Description): Update.
81785         * lib/unicase/toupper.h: New file, automatically generated by
81786         gen-uni-tables.
81787         * lib/unicase/tolower.h: New file, automatically generated by
81788         gen-uni-tables.
81789         * lib/unicase/totitle.h: New file, automatically generated by
81790         gen-uni-tables.
81791         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
81792         gen-uni-tables.
81793         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
81794         gen-uni-tables.
81795         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
81796         gen-uni-tables.
81798         New module 'unicase/base'.
81799         * modules/unicase/base: New file.
81800         * lib/unicase.h: New file.
81802 2009-02-08  Bruno Haible  <bruno@clisp.org>
81804         New module 'uniwbrk/ulc-wordbreaks'.
81805         * modules/uniwbrk/ulc-wordbreaks: New file.
81806         * lib/uniwbrk/ulc-wordbreaks.c: New file.
81808         New module 'uniwbrk/u32-wordbreaks'.
81809         * modules/uniwbrk/u32-wordbreaks: New file.
81810         * lib/uniwbrk/u32-wordbreaks.c: New file.
81812         New module 'uniwbrk/u16-wordbreaks'.
81813         * modules/uniwbrk/u16-wordbreaks: New file.
81814         * lib/uniwbrk/u16-wordbreaks.c: New file.
81816         New module 'uniwbrk/u8-wordbreaks'.
81817         * modules/uniwbrk/u8-wordbreaks: New file.
81818         * lib/uniwbrk/u8-wordbreaks.c: New file.
81819         * lib/uniwbrk/u-wordbreaks.h: New file.
81821         New module 'uniwbrk/table'.
81822         * modules/uniwbrk/table: New file.
81823         * lib/uniwbrk/wbrktable.h: New file.
81824         * lib/uniwbrk/wbrktable.c: New file.
81826         New module 'uniwbrk/wordbreak-property'.
81827         * modules/uniwbrk/wordbreak-property: New file.
81828         * lib/uniwbrk/wordbreak-property.c: New file.
81830         * lib/gen-uni-tables.c (WBP_*): New enum items.
81831         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
81832         (unicode_org_wbp): New variable.
81833         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
81834         New functions.
81835         (wbp_table): New structure.
81836         (output_wbp, output_wbrk_tables): New functions.
81837         (main): Accept additional argument. Invoke fill_org_wbp,
81838         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
81839         output_wbrk_tables.
81840         * modules/gen-uni-tables (Description): Update.
81841         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
81842         gen-uni-tables.
81844         New module 'uniwbrk/base'.
81845         * modules/uniwbrk/base: New file.
81846         * lib/uniwbrk.h: New file.
81848 2009-02-08  Bruno Haible  <bruno@clisp.org>
81850         Update to Unicode 5.1.0.
81851         * lib/gen-uni-tables.c (is_property_alphabetic): Include
81852         U+2185..U+2188.
81853         (is_property_default_ignorable_code_point): Don't include characters
81854         of category Cc or Cs and not-a-characters.
81855         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
81856         U+0D79, U+109E, U+109F, U+A60C.
81857         * lib/unictype/bidi_of.h: Regenerated.
81858         * lib/unictype/blocks.h: Regenerated.
81859         * lib/unictype/categ_C.h: Regenerated.
81860         * lib/unictype/categ_Cf.h: Regenerated.
81861         * lib/unictype/categ_Cn.h: Regenerated.
81862         * lib/unictype/categ_L.h: Regenerated.
81863         * lib/unictype/categ_Ll.h: Regenerated.
81864         * lib/unictype/categ_Lm.h: Regenerated.
81865         * lib/unictype/categ_Lo.h: Regenerated.
81866         * lib/unictype/categ_Lu.h: Regenerated.
81867         * lib/unictype/categ_M.h: Regenerated.
81868         * lib/unictype/categ_Mc.h: Regenerated.
81869         * lib/unictype/categ_Me.h: Regenerated.
81870         * lib/unictype/categ_Mn.h: Regenerated.
81871         * lib/unictype/categ_N.h: Regenerated.
81872         * lib/unictype/categ_Nd.h: Regenerated.
81873         * lib/unictype/categ_Nl.h: Regenerated.
81874         * lib/unictype/categ_No.h: Regenerated.
81875         * lib/unictype/categ_P.h: Regenerated.
81876         * lib/unictype/categ_Pd.h: Regenerated.
81877         * lib/unictype/categ_Pe.h: Regenerated.
81878         * lib/unictype/categ_Pf.h: Regenerated.
81879         * lib/unictype/categ_Pi.h: Regenerated.
81880         * lib/unictype/categ_Po.h: Regenerated.
81881         * lib/unictype/categ_Ps.h: Regenerated.
81882         * lib/unictype/categ_S.h: Regenerated.
81883         * lib/unictype/categ_Sk.h: Regenerated.
81884         * lib/unictype/categ_Sm.h: Regenerated.
81885         * lib/unictype/categ_So.h: Regenerated.
81886         * lib/unictype/categ_of.h: Regenerated.
81887         * lib/unictype/combining.h: Regenerated.
81888         * lib/unictype/ctype_alnum.h: Regenerated.
81889         * lib/unictype/ctype_alpha.h: Regenerated.
81890         * lib/unictype/ctype_graph.h: Regenerated.
81891         * lib/unictype/ctype_lower.h: Regenerated.
81892         * lib/unictype/ctype_print.h: Regenerated.
81893         * lib/unictype/ctype_punct.h: Regenerated.
81894         * lib/unictype/ctype_upper.h: Regenerated.
81895         * lib/unictype/decdigit.h: Regenerated.
81896         * lib/unictype/digit.h: Regenerated.
81897         * lib/unictype/mirror.h: Regenerated.
81898         * lib/unictype/numeric.h: Regenerated.
81899         * lib/unictype/pr_alphabetic.h: Regenerated.
81900         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
81901         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
81902         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
81903         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
81904         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
81905         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
81906         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
81907         * lib/unictype/pr_combining.h: Regenerated.
81908         * lib/unictype/pr_dash.h: Regenerated.
81909         * lib/unictype/pr_decimal_digit.h: Regenerated.
81910         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
81911         * lib/unictype/pr_deprecated.h: Regenerated.
81912         * lib/unictype/pr_diacritic.h: Regenerated.
81913         * lib/unictype/pr_extender.h: Regenerated.
81914         * lib/unictype/pr_format_control.h: Regenerated.
81915         * lib/unictype/pr_grapheme_base.h: Regenerated.
81916         * lib/unictype/pr_grapheme_extend.h: Regenerated.
81917         * lib/unictype/pr_grapheme_link.h: Regenerated.
81918         * lib/unictype/pr_id_continue.h: Regenerated.
81919         * lib/unictype/pr_id_start.h: Regenerated.
81920         * lib/unictype/pr_ideographic.h: Regenerated.
81921         * lib/unictype/pr_ignorable_control.h: Regenerated.
81922         * lib/unictype/pr_lowercase.h: Regenerated.
81923         * lib/unictype/pr_math.h: Regenerated.
81924         * lib/unictype/pr_numeric.h: Regenerated.
81925         * lib/unictype/pr_other_alphabetic.h: Regenerated.
81926         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
81927         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
81928         * lib/unictype/pr_other_id_continue.h: Regenerated.
81929         * lib/unictype/pr_other_lowercase.h: Regenerated.
81930         * lib/unictype/pr_other_math.h: Regenerated.
81931         * lib/unictype/pr_punctuation.h: Regenerated.
81932         * lib/unictype/pr_sentence_terminal.h: Regenerated.
81933         * lib/unictype/pr_soft_dotted.h: Regenerated.
81934         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
81935         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
81936         * lib/unictype/pr_unified_ideograph.h: Regenerated.
81937         * lib/unictype/pr_uppercase.h: Regenerated.
81938         * lib/unictype/pr_xid_continue.h: Regenerated.
81939         * lib/unictype/pr_xid_start.h: Regenerated.
81940         * lib/unictype/pr_zero_width.h: Regenerated.
81941         * lib/unictype/scripts.h: Regenerated.
81942         * lib/unictype/scripts_byname.gperf: Regenerated.
81943         * lib/unictype/sy_java_ident.h: Regenerated.
81944         * lib/unilbrk/lbrkprop1.h: Regenerated.
81945         * lib/unilbrk/lbrkprop2.h: Regenerated.
81946         * tests/unictype/test-categ_C.c: Regenerated.
81947         * tests/unictype/test-categ_Cf.c: Regenerated.
81948         * tests/unictype/test-categ_Cn.c: Regenerated.
81949         * tests/unictype/test-categ_L.c: Regenerated.
81950         * tests/unictype/test-categ_Ll.c: Regenerated.
81951         * tests/unictype/test-categ_Lm.c: Regenerated.
81952         * tests/unictype/test-categ_Lo.c: Regenerated.
81953         * tests/unictype/test-categ_Lu.c: Regenerated.
81954         * tests/unictype/test-categ_M.c: Regenerated.
81955         * tests/unictype/test-categ_Mc.c: Regenerated.
81956         * tests/unictype/test-categ_Me.c: Regenerated.
81957         * tests/unictype/test-categ_Mn.c: Regenerated.
81958         * tests/unictype/test-categ_N.c: Regenerated.
81959         * tests/unictype/test-categ_Nd.c: Regenerated.
81960         * tests/unictype/test-categ_Nl.c: Regenerated.
81961         * tests/unictype/test-categ_No.c: Regenerated.
81962         * tests/unictype/test-categ_P.c: Regenerated.
81963         * tests/unictype/test-categ_Pd.c: Regenerated.
81964         * tests/unictype/test-categ_Pe.c: Regenerated.
81965         * tests/unictype/test-categ_Pf.c: Regenerated.
81966         * tests/unictype/test-categ_Pi.c: Regenerated.
81967         * tests/unictype/test-categ_Po.c: Regenerated.
81968         * tests/unictype/test-categ_Ps.c: Regenerated.
81969         * tests/unictype/test-categ_S.c: Regenerated.
81970         * tests/unictype/test-categ_Sk.c: Regenerated.
81971         * tests/unictype/test-categ_Sm.c: Regenerated.
81972         * tests/unictype/test-categ_So.c: Regenerated.
81973         * tests/unictype/test-ctype_alnum.c: Regenerated.
81974         * tests/unictype/test-ctype_alpha.c: Regenerated.
81975         * tests/unictype/test-ctype_graph.c: Regenerated.
81976         * tests/unictype/test-ctype_lower.c: Regenerated.
81977         * tests/unictype/test-ctype_print.c: Regenerated.
81978         * tests/unictype/test-ctype_punct.c: Regenerated.
81979         * tests/unictype/test-ctype_upper.c: Regenerated.
81980         * tests/unictype/test-decdigit.h: Regenerated.
81981         * tests/unictype/test-digit.h: Regenerated.
81982         * tests/unictype/test-numeric.h: Regenerated.
81983         * tests/unictype/test-pr_alphabetic.c: Regenerated.
81984         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
81985         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
81986         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
81987         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
81988         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
81989         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
81990         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
81991         * tests/unictype/test-pr_combining.c: Regenerated.
81992         * tests/unictype/test-pr_dash.c: Regenerated.
81993         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
81994         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
81995         * tests/unictype/test-pr_deprecated.c: Regenerated.
81996         * tests/unictype/test-pr_diacritic.c: Regenerated.
81997         * tests/unictype/test-pr_extender.c: Regenerated.
81998         * tests/unictype/test-pr_format_control.c: Regenerated.
81999         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82000         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82001         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82002         * tests/unictype/test-pr_id_continue.c: Regenerated.
82003         * tests/unictype/test-pr_id_start.c: Regenerated.
82004         * tests/unictype/test-pr_ideographic.c: Regenerated.
82005         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82006         * tests/unictype/test-pr_lowercase.c: Regenerated.
82007         * tests/unictype/test-pr_math.c: Regenerated.
82008         * tests/unictype/test-pr_numeric.c: Regenerated.
82009         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82010         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82011         Regenerated.
82012         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82013         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82014         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82015         * tests/unictype/test-pr_other_math.c: Regenerated.
82016         * tests/unictype/test-pr_punctuation.c: Regenerated.
82017         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82018         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82019         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82020         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82021         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82022         * tests/unictype/test-pr_uppercase.c: Regenerated.
82023         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82024         * tests/unictype/test-pr_xid_start.c: Regenerated.
82025         * tests/unictype/test-pr_zero_width.c: Regenerated.
82027         Update to Unicode 5.1.0.
82028         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82029         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82030         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82031         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82032         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82033         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82034         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82035         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82036         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82037         (nonspacing_table_ind): Update.
82038         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82040         Update to Unicode 5.1.0.
82041         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82042         code transform.
82043         * lib/uniname/uniname.c (unicode_character_name,
82044         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82045         * lib/uniname/uninames.h: Regenerated.
82046         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82048 2009-02-07  Bruno Haible  <bruno@clisp.org>
82050         Merge gen-ctype and gen-lbrk into a single program.
82051         * lib/gen-uni-tables.c: New file, incorporating
82052         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82053         Add directory prefixes to the names of the generated files.
82054         * lib/unictype/gen-ctype.c: Remove file.
82055         * lib/unilbrk/gen-lbrk.c: Remove file.
82056         * modules/gen-uni-tables: New file.
82057         * modules/unictype/gen-ctype: Remove file.
82058         * modules/unilbrk/gen-lbrk: Remove file.
82060 2009-02-07  Bruno Haible  <bruno@clisp.org>
82062         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82064         New module 'unistr/u32-strcoll'.
82065         * modules/unistr/u32-strcoll: New file.
82066         * lib/unistr/u32-strcoll.c: New file.
82068         New module 'unistr/u16-strcoll'.
82069         * modules/unistr/u16-strcoll: New file.
82070         * lib/unistr/u16-strcoll.c: New file.
82072         New module 'unistr/u8-strcoll'.
82073         * modules/unistr/u8-strcoll: New file.
82074         * lib/unistr/u8-strcoll.c: New file.
82075         * lib/unistr/u-strcoll.h: New file.
82077 2009-02-07  Bruno Haible  <bruno@clisp.org>
82079         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82080         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82081         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82082         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82083         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82084         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82086 2009-02-07  Bruno Haible  <bruno@clisp.org>
82088         Make 64-bit clean.
82089         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82090         output_combclass, output_bidi_category, output_decimal_digit,
82091         output_digit, output_numeric, output_mirror, output_scripts,
82092         output_ident_category): Use proper width specifier in format strings.
82094 2009-02-07  Bruno Haible  <bruno@clisp.org>
82096         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82097         failure behaviour.
82099 2009-02-07  Jim Meyering  <meyering@redhat.com>
82101         regex: avoid compilation failure with upcoming gcc-4.4
82102         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82103         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82104         "... error: integer overflow in preprocessor expression".
82106 2009-02-05  Ben Pfaff  <blp@gnu.org>
82108         Fix link errors on Windows when close module is used.
82109         * modules/close: Add $(LIB_CLOSE) to Link section.
82110         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82111         $(LIB_CLOSE) on Windows.
82113 2009-02-05  Jim Meyering  <meyering@redhat.com>
82115         still avoid unused-parameter warnings, but do it cleanly
82116         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82117         (get_fs_usage): Cast to void instead.
82118         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82119         (dev_from_mount_options, read_file_system_list): Cast to void.
82120         Prompted by Bruno Haible.
82122 2009-02-04  Jim Meyering  <meyering@redhat.com>
82124         fsusage.c: correct copyright year
82125         * lib/fsusage.c: Reflect year in which the change is pushed into
82127         avoid misc. warnings
82128         * lib/fsusage.c (UNUSED_PARAM): Define.
82129         (get_fs_usage): Mark parameter "disk" as unused.
82130         * lib/getugroups.c (getgrent): Use "void" in prototype.
82131         * lib/mountlist.c: Mark unused parameters.
82132         (read_file_system_list): Declare a local with "const".
82133         * lib/nanosleep.c (getnow): Declare static.
82134         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82136         dirfd: set errno upon failure
82137         * lib/dirfd.c: Include <errno.h>.
82138         Set errno to ENOTSUP when returning -1.
82139         * modules/dirfd (Depends-on): Add errno.
82140         Suggested by John Kodis <kodis@comcast.net>.
82142 2009-02-01  Bruno Haible  <bruno@clisp.org>
82144         Don't assume sizeof (long) >= sizeof (void *).
82145         * lib/memcmp.c: Include stdint.h.
82146         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82147         srcp2 to 'const byte *'.
82148         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82149         types to uintptr_t.
82150         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82151         * modules/memcmp (Depends-on): Add stdint.
82152         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82154 2009-01-30  Eric Blake  <ebb9@byu.net>
82156         fix more require-before-expand issues
82157         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82158         expand, AC_PROG_AWK.
82159         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82161 2009-01-28  Eric Blake  <ebb9@byu.net>
82163         version-etc: use consistent URL formatting
82164         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82165         Improve formatting.  Use fputs for string without %.
82167 2009-01-28  Jim Meyering  <meyering@redhat.com>
82169         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82170         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82171         "underquoted definition of NAME" from autoconf-2.59.
82173 2009-01-28  Bruno Haible  <bruno@clisp.org>
82175         * doc/gnulib.texi: Add "Obsolete modules" to index.
82177 2009-01-28  Jim Meyering  <meyering@redhat.com>
82179         useless-if-before-free: recognize more variants
82180         * build-aux/useless-if-before-free: Also recognize e.g.,
82181         if (NULL != p) free (p);
82183 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82185         test-getaddrinfo: skip (don't fail) this test when there's no network
82186         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82187         on the presumption that it means you lack network access.
82189 2009-01-26  Jim Meyering  <meyering@redhat.com>
82191         fflush: avoid warnings on modern systems
82192         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82193         pos and result, into scopes where they're used.
82195 2009-01-26  Eric Blake  <ebb9@byu.net>
82197         Silence warning reintroduced by recent extensions patch.
82198         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82199         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82200         autoconf.
82202         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82203         * m4/00gnulib.m4: New file.
82204         * gnulib-tool (func_get_filelist): Always use it.
82205         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82206         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82208 2009-01-25  Bruno Haible  <bruno@clisp.org>
82210         Make test-quotearg work on MacOS X and AIX.
82211         * tests/test-quotearg.sh: New file.
82212         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82213         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82214         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82215         include <libintl.h>.
82216         (fake_locale): Remove variable.
82217         (gettext, dgettext, dcgettext): Remove functions.
82218         (main): Instead of setting a fake locale, set a real locale. Call
82219         textdomain and bindtextdomain.
82220         * modules/quotearg-tests (Files): Add the new files.
82221         (Depends-on): Add gettext, setenv, unsetenv.
82222         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82223         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82224         Augment TESTS_ENVIRONMENT.
82226 2009-01-25  Bruno Haible  <bruno@clisp.org>
82228         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82229         fr_FR.ISO8859-1 locale on MacOS X.
82230         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82231         ja_JP.eucJP locale on MacOS X.
82232         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82233         zh_CN.GB18030 locale on MacOS X.
82235 2009-01-25  Bruno Haible  <bruno@clisp.org>
82237         Avoid link errors on MacOS X 10.3.
82238         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82239         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82241 2009-01-25  Bruno Haible  <bruno@clisp.org>
82243         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82244         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82245         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82246         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82247         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82248         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82249         posix_spawnattr_init, posix_spawnattr_setsigmask,
82250         posix_spawnattr_setflags, posix_spawnattr_destroy.
82252         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82253         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82254         * modules/execute (Files): Remove m4/posix_spawn.m4.
82255         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82256         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82257         posix_spawnattr_init, posix_spawnattr_setsigmask,
82258         posix_spawnattr_setflags, posix_spawnattr_destroy.
82260 2009-01-25  Bruno Haible  <bruno@clisp.org>
82262         * lib/glthread/threadlib.c: Include <stdlib.h>.
82264 2009-01-25  Bruno Haible  <bruno@clisp.org>
82266         * lib/glthread/threadlib.c (dummy): New declaration.
82268 2009-01-25  Bruno Haible  <bruno@clisp.org>
82270         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82271         multibyte characters also for the GB18030 encoding. Don't crash when
82272         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82274 2009-01-25  Bruno Haible  <bruno@clisp.org>
82276         Avoid redefining 'struct random_data' on OSF/1 5.1.
82277         * lib/stdlib.in.h: Include <random.h> if it exists.
82278         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82279         HAVE_RANDOM_H. Include <random.h> when testing whether
82280         'struct random_data' exists.
82281         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82283 2009-01-25  Bruno Haible  <bruno@clisp.org>
82285         Don't install charset.alias on MacOS X >= 10.3.
82286         * lib/localcharset.c (DARWIN7): New macro.
82287         (get_charset_aliases): Hardcode the result for Darwin7.
82288         * modules/localcharset (install-exec-local): Don't install
82289         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82291 2009-01-25  Bruno Haible  <bruno@clisp.org>
82293         Don't install charset.alias on mingw and Cygwin.
82294         * modules/localcharset (install-exec-local): Don't install
82295         charset.alias on mingw and Cygwin, if the file does not yet exist.
82296         The result for these platforms is hardcoded in localcharset.c.
82298 2009-01-25  Bruno Haible  <bruno@clisp.org>
82300         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82302         before requiring AC_USE_SYSTEM_EXTENSIONS.
82304 2009-01-25  Jim Meyering  <meyering@redhat.com>
82306         c-strtod: avoid warnings
82307         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82308         "assignment discards qualifiers from pointer target type" warnings.
82310 2009-01-24  Bruno Haible  <bruno@clisp.org>
82312         Add support for non-UTF-8 locales on MacOS X.
82313         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82314         canonical encodings. For Darwin 7 and newer, don't map traditional
82315         encodings to UTF-8.
82316         Reported by Vincent Lefevre <vincent@vinc17.org>
82317         at <http://savannah.gnu.org/bugs/?25235>.
82319 2009-01-24  Bruno Haible  <bruno@clisp.org>
82321         * doc/gnulib.texi (Obsolete modules): New section.
82322         Reported by Mike Frysinger <vapier@gentoo.org>.
82324 2009-01-24  Bruno Haible  <bruno@clisp.org>
82326         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82327         (%.dvi): New rule.
82329 2009-01-24  Bruno Haible  <bruno@clisp.org>
82331         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82332         Reported by Eric Blake.
82334 2009-01-24  Bruno Haible  <bruno@clisp.org>
82336         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82337         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82338         Reported by Gary V. Vaughan <gary@gnu.org>.
82340 2009-01-24  Bruno Haible  <bruno@clisp.org>
82342         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82344 2009-01-23  Bruno Haible  <bruno@clisp.org>
82346         Make c-strtod, c-strtold usable in libraries.
82347         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82348         (C_STRTOD): Call strdup instead of xstrdup.
82349         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82350         * modules/c-strtold (Depends-on): Likewise.
82351         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82352         * NEWS: Mention the change.
82353         Reported by Michael Gold <mgold@ncf.ca>.
82355 2009-01-23  Jim Meyering  <meyering@redhat.com>
82357         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82358         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82359         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82361 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82363         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82364         GNU CoreUtils.
82365         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82366         * modules/version-etc (Description): Update.
82368 2009-01-22  Bruno Haible  <bruno@clisp.org>
82370         Cache the C locale object.
82371         * lib/c-strtod.c (c_locale_cache): New variable.
82372         (c_locale): New function.
82373         (C_STRTOD): Use it, and don't call freelocale.
82374         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82375         Suggested by Paolo Bonzini.
82377 2009-01-21  Bruno Haible  <bruno@clisp.org>
82379         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82380         conditions other than overflow.
82382 2009-01-21  Bruno Haible  <bruno@clisp.org>
82384         * lib/c-strtod.c: Include errno.h.
82385         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82386         value from STRTOD_L and STRTOD.
82388 2009-01-21  Bruno Haible  <bruno@clisp.org>
82389         and Jim Meyering  <meyering@redhat.com>
82391         nanosleep: skip configure test (fail it) for apple universal builds
82392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82393         universal builds, assume that nanosleep does not work.
82394         * modules/nanosleep (Depends-on): Add multiarch.
82396         mktime: skip configure test (fail it) for apple universal builds
82397         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82398         universal builds, assume that mktime does not work.
82399         * modules/mktime (Depends-on): Add multiarch.
82401 2009-01-21  Eric Blake  <ebb9@byu.net>
82403         multiarch: avoid expand-before-require warning
82404         * modules/multiarch (configure.ac): Require, rather than expand,
82405         gl_MULTIARCH.
82406         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82407         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82408         enforce that all clients require it.  Partial reversion of
82409         2008-12-29 patch.
82411         error: avoid expand-before-require warning
82412         * modules/errno (configure.ac): Require, rather than expand,
82413         gl_HEADER_ERRNO_H.
82414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82415         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82416         enforce that all clients require it.
82418         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82419         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82420         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82421         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82423 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82425         Revert:
82426         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82428         regex: do not depend on obsolete modules.
82429         * modules/regex: Remove memcmp and memmove.
82431 2009-01-20  Bruno Haible  <bruno@clisp.org>
82433         Make the 'link' module link on Windows NT 4.
82434         * lib/link.c (_WIN32_WINNT): Don't define.
82435         (CreateHardLinkFuncType): New type.
82436         (CreateHardLinkFunc, initialized): New variables.
82437         (initialize): New function.
82438         (link): Invoke CreateHardLink indirectly through the function pointer.
82440 2009-01-20  Bruno Haible  <bruno@clisp.org>
82442         Fix compilation failure on mingw.
82443         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82445 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82447         * doc/c-strtod.texi: Mention a couple of restrictions.
82449 2009-01-20  Jim Meyering  <meyering@redhat.com>
82451         gettimeofday: move more declarations out of functions
82452         * lib/gettimeofday.c: Move extern declarations of tzset and
82453         gmtime out of containing functions.  Prompted by Bruno Haible.
82455 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82457         regex: do not depend on obsolete modules.
82458         * modules/regex: Remove memcmp and memmove.
82460 2009-01-19  Bruno Haible  <bruno@clisp.org>
82462         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82463         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82464         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82465         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82466         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82468 2009-01-19  Bruno Haible  <bruno@clisp.org>
82470         * tests/test-link.c: Include <errno.h>.
82471         (main): Exit with code 77 when a hard link cannot be created due to
82472         the file system.
82473         * tests/test-link.sh: Skip test when a hard link cannot be created due
82474         to the file system.
82475         Suggested by Eric Blake.
82477 2009-01-19  Martin Lambers  <marlam@marlam.de>
82479         * modules/link-tests: New file.
82480         * tests/test-link.sh: New file.
82481         * tests/test-link.c: New file.
82483 2009-01-19  Eric Blake  <ebb9@byu.net>
82485         doc: mention another function added in cygwin 1.7.0
82486         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82487         Another new function in cygwin 1.7.
82489 2009-01-19  Bruno Haible  <bruno@clisp.org>
82491         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82492         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82493         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82494         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82495         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82496         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82498         * m4/md4.m4 (gl_MD4): Likewise.
82499         * m4/md5.m4 (gl_MD5): Likewise.
82500         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82501         * m4/sha1.m4 (gl_SHA1): Likewise.
82502         * m4/sha256.m4 (gl_SHA256): Likewise.
82503         * m4/sha512.m4 (gl_SHA512): Likewise.
82505 2009-01-19  Bruno Haible  <bruno@clisp.org>
82507         * modules/uniname/uniname-tests (Depends-on): Add progname.
82508         * tests/uniname/test-uninames.c: Include progname.h.
82509         (main): Call set_program_name.
82511         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82512         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82513         (main): Call set_program_name.
82515         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82516         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82517         (main): Call set_program_name.
82519         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82520         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82521         (main): Call set_program_name.
82523         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82524         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82525         (main): Call set_program_name.
82527         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82528         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82529         (main): Call set_program_name.
82531         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82532         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82533         (main): Call set_program_name.
82535         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82536         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82537         (main): Call set_program_name.
82539         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82540         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82541         (main): Call set_program_name.
82543 2009-01-19  Eric Blake  <ebb9@byu.net>
82545         test-unistd: test previous patch
82546         * tests/test-unistd.c: Test *_FILENO macros.
82548         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82549         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82550         Guarantee a definition.
82551         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82552         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82553         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82554         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82555         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82556         Likewise.
82557         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82558         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82559         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82560         Likewise.
82561         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82562         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82563         (STDERR_FILENO): Likewise.
82564         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82565         (STDERR_FILENO): Likewise.
82566         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82567         (STDERR_FILENO): Likewise.
82568         Reported by Elbert Pol.
82570 2009-01-19  Eric Blake  <ebb9@byu.net>
82572         doc: mention more functions added in cygwin 1.7.0
82573         * doc/posix-functions/abort.texi (abort): Update wording related
82574         to cygwin.
82575         * doc/posix-functions/daylight.texi (daylight): Likewise.
82576         * doc/posix-functions/optarg.texi (optarg): Likewise.
82577         * doc/posix-functions/optarg.texi (opterr): Likewise.
82578         * doc/posix-functions/optarg.texi (optind): Likewise.
82579         * doc/posix-functions/optarg.texi (optopt): Likewise.
82580         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82581         worked in 1.5.x, and was withdrawn in 1.7.
82582         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82583         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82584         cygwin versions.
82585         * doc/posix-functions/perror.texi (perror): Likewise.
82586         * doc/posix-functions/printf.texi (printf): Likewise.
82587         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
82588         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
82589         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
82590         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
82591         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82592         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
82593         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82594         Likewise.
82595         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82596         Likewise.
82597         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
82598         this function.
82599         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
82600         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
82601         Likewise.
82602         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
82603         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
82604         * doc/posix-functions/confstr.texi (confstr): Likewise.
82605         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
82606         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
82607         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
82608         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
82609         * doc/posix-functions/fputws.texi (fputws): Likewise.
82610         * doc/posix-functions/fwide.texi (fwide): Likewise.
82611         * doc/posix-functions/getwc.texi (getwc): Likewise.
82612         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
82613         * doc/posix-functions/putwc.texi (putwc): Likewise.
82614         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
82615         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
82616         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
82617         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
82618         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
82619         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
82620         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
82621         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
82622         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
82623         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
82624         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
82626 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82628         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
82629         * lib/ioctl.c: Include <sys/ioctl.h>.
82631 2009-01-19  Simon Josefsson  <simon@josefsson.org>
82633         * modules/getdate-tests (Depends-on): Add progname.
82634         * tests/test-getdate.c: Use progname module, to avoid link errors
82635         on non-glibc systems.
82637 2009-01-18  Simon Josefsson  <simon@josefsson.org>
82639         * modules/filenamecat-tests (Depends-on): Add progname.
82640         * modules/fstrcmp-tests (Depends-on): Likewise.
82642         * tests/test-filenamecat.c: Use progname module, to avoid link
82643         errors on non-glibc systems.
82644         * tests/test-fstrcmp.c: Likewise.
82646 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82648         gettimeofday: avoid warning: nested extern declaration of 'localtime'
82649         * lib/gettimeofday.c: Move extern declaration out of function.
82651 2009-01-18  Bruno Haible  <bruno@clisp.org>
82653         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
82654         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
82655         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
82657 2009-01-18  Bruno Haible  <bruno@clisp.org>
82659         * lib/strftime.c (MEMPCPY): Remove unused macro.
82660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
82662 2009-01-18  Martin Lambers  <marlam@marlam.de>
82664         New module 'link'.
82665         * lib/unistd.in.h (link): New declaration.
82666         * lib/link.c: New file.
82667         * m4/link.m4: New file.
82668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
82669         HAVE_LINK.
82670         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
82671         * modules/link: New file.
82672         * doc/posix-functions/link.texi: Mention the new module.
82674 2009-01-18  Bruno Haible  <bruno@clisp.org>
82676         * tests/test-avltree_list.c (main): Call set_program_name.
82677         * tests/test-avltree_oset.c (main): Likewise.
82678         * tests/test-obstack-printf.c: Include progname.h.
82679         (main): Call set_program_name.
82680         * tests/test-quotearg.c: Include progname.h.
82681         (main): Call set_program_name.
82682         * tests/test-xmemdup0.c: Include progname.h.
82683         (main): Call set_program_name.
82685 2009-01-18  Bruno Haible  <bruno@clisp.org>
82687         New module 'alphasort'.
82688         * lib/dirent.in.h (alphasort): New declaration.
82689         * lib/alphasort.c: New file, from glibc with modifications.
82690         * m4/alphasort.m4: New file.
82691         * modules/alphasort: New file.
82692         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
82693         HAVE_ALPHASORT.
82694         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
82695         HAVE_ALPHASORT.
82696         * doc/posix-functions/alphasort.texi: Mention the new module and the
82697         portability problems.
82699 2009-01-18  Bruno Haible  <bruno@clisp.org>
82701         New module 'scandir'.
82702         * lib/dirent.in.h (scandir): New declaration.
82703         * lib/scandir.c: New file, from glibc with modifications.
82704         * m4/scandir.m4: New file.
82705         * modules/scandir: New file.
82706         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
82707         HAVE_SCANDIR.
82708         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
82709         HAVE_SCANDIR.
82710         * doc/posix-functions/scandir.texi: Mention the new module and the
82711         portability problems.
82713 2009-01-17  Bruno Haible  <bruno@clisp.org>
82715         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
82716         Update documentation.
82717         (func_remove_suffix): Escape all dots in the suffix. Update
82718         documentation.
82719         (func_filter_filelist): Update documentation.
82720         Reported by Ralf Wildenhues.
82722 2009-01-17  Bruno Haible  <bruno@clisp.org>
82724         * modules/dprintf-posix-tests: New file.
82725         * tests/test-dprintf-posix.sh: New file.
82726         * tests/test-dprintf-posix.c: New file.
82728         New modules 'dprintf', 'dprintf-posix'.
82729         * lib/stdio.in.h (dprintf): New declaration.
82730         * lib/dprintf.c: New file.
82731         * m4/dprintf.m4: New file.
82732         * m4/dprintf-posix.m4: New file.
82733         * modules/dprintf: New file.
82734         * modules/dprintf-posix: New file.
82735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
82736         HAVE_DPRINTF, REPLACE_DPRINTF.
82737         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
82738         HAVE_DPRINTF, REPLACE_DPRINTF.
82739         * doc/posix-functions/dprintf.texi: Mention the new modules.
82741 2009-01-17  Bruno Haible  <bruno@clisp.org>
82743         * modules/vdprintf-posix-tests: New file.
82744         * tests/test-vdprintf-posix.sh: New file.
82745         * tests/test-vdprintf-posix.c: New file.
82747         New modules 'vdprintf', 'vdprintf-posix'.
82748         * lib/stdio.in.h (vdprintf): New declaration.
82749         * lib/vdprintf.c: New file.
82750         * m4/vdprintf.m4: New file.
82751         * m4/vdprintf-posix.m4: New file.
82752         * modules/vdprintf: New file.
82753         * modules/vdprintf-posix: New file.
82754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
82755         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82756         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
82757         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82758         * doc/posix-functions/vdprintf.texi: Mention the new modules.
82760 2009-01-17  Bruno Haible  <bruno@clisp.org>
82762         Fix replacement of fopen on mingw.
82763         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
82764         mingw.
82766 2009-01-17  Bruno Haible  <bruno@clisp.org>
82768         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
82769         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
82771 2009-01-17  Bruno Haible  <bruno@clisp.org>
82773         Avoid test-fflush2.sh failure on mingw.
82774         * tests/test-fflush2.c: Include binary-io.h.
82775         (main): Put standard input into binary mode.
82776         * modules/fflush-tests (Depends-on): Add binary-io.
82778 2009-01-17  Bruno Haible  <bruno@clisp.org>
82780         * lib/wchar.in.h: In another particular situation, include only the
82781         system's <wchar.h> file.
82782         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
82783         Reported by Albert Chin-A-Young <china@thewrittenword.com>
82784         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
82786 2009-01-17  Bruno Haible  <bruno@clisp.org>
82788         Support for stripping executables in --enable-relocatable.
82789         * build-aux/install-reloc: Expect one more argument, or an environment
82790         variable RELOC_STRIP_PROG. If set, strip the destination program and
82791         its wrapper.
82792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
82793         RELOC_STRIP_PROG.
82794         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
82795         to set RELOCATABLE_STRIP.
82796         * NEWS: Mention the new Makefile requirement.
82798 2009-01-17  Bruno Haible  <bruno@clisp.org>
82800         * build-aux/install-reloc: Remove debugging information left over by
82801         C compiler on MacOS X.
82803 2009-01-17  Bruno Haible  <bruno@clisp.org>
82805         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
82806         * lib/progreloc.c (find_executable): Fix type of pointer passed to
82807         _NSGetExecutablePath.
82809 2009-01-16  Jim Meyering  <meyering@redhat.com>
82811         strerror: avoid warnings about discarding "const"
82812         * lib/strerror.c (rpl_strerror): Instead of returning a const
82813         string from each and every "case", use a variable, and add a single
82814         cast after the switch.
82816 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
82818         * lib/arpa_inet.in.h: Add extern "C" block for C++.
82820 2009-01-16  Bruno Haible  <bruno@clisp.org>
82822         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
82823         array initializer syntax that also works in C++ mode.
82824         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82826 2009-01-16  Jim Meyering  <meyering@redhat.com>
82828         poll: suppress a warning
82829         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
82830         to ignore "...unsigned expression < 0 is always false" warnings.
82832 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
82834         poll: remove declarations of unused variables
82835         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
82836         sockbuf and optlen.
82838 2009-01-15  Bruno Haible  <bruno@clisp.org>
82840         Make fflush-after-ungetc POSIX compliant on BSD systems.
82841         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
82842         (clear_ungetc_buffer): Implement also for other systems.
82843         (rpl_fflush): On glibc systems, invoke
82844         clear_ungetc_buffer_preserving_position. Otherwise, invoke
82845         clear_ungetc_buffer after fetching the stream's position, not before.
82847 2009-01-15  Bruno Haible  <bruno@clisp.org>
82849         Make fflush-after-ungetc POSIX compliant on glibc systems.
82850         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
82851         after ungetc.
82852         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
82853         (rpl_fflush): On glibc systems, simply call the system's fflush
82854         function after clearing the ungetc buffer.
82855         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
82856         Instead, lseek only to the end of file, then use the system's fseeko
82857         for the rest. On glibc systems, reset the EOF indicator bit.
82859 2009-01-15  Jim Meyering  <meyering@redhat.com>
82861         openmp.m4: revert quote-adding change, for portability to older autoconf
82862         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
82863         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
82864         Simon Josefsson noticed the problem when using autoconf-2.61.
82866 2009-01-15  Bruno Haible  <bruno@clisp.org>
82868         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
82869         * tests/test-fflush2.c (ASSERT): Always fail.
82870         (main): Add two tests for fflush() after ungetc(), taking into account
82871         the Austin Group's clarification.
82872         Suggested by Eric Blake.
82874 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
82876         mktime.m4: remove K&R-style function prototypes
82877         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
82878         for the Sun C++ compiler.
82880 2009-01-14  Bruno Haible  <bruno@clisp.org>
82882         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
82883         while including <wchar.h>.
82884         * lib/wchar.in.h: In two particular situations on HP-UX, include only
82885         the system's <wchar.h> file.
82886         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82888 2009-01-14  Bruno Haible  <bruno@clisp.org>
82890         * m4/csharp.m4: Don't mention gettext on the serial number line.
82891         * m4/csharpexec.m4: Likewise.
82892         * m4/eaccess.m4: Likewise.
82893         * m4/javaexec.m4: Likewise.
82894         * m4/sig_atomic_t.m4: Likewise.
82895         * m4/tmpdir.m4: Likewise.
82896         * m4/intldir.m4: Bump gettext version.
82897         * m4/lib-ld.m4: Likewise.
82899 2009-01-14  Bruno Haible  <bruno@clisp.org>
82901         * lib/progname.c (set_program_name): Add more comments.
82902         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
82904 2009-01-14  Simon Josefsson  <simon@josefsson.org>
82906         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
82907         were sys/stat.h does not define it.
82909 2009-01-14  Jim Meyering  <meyering@redhat.com>
82911         many *.m4 files: improve m4 quoting
82912         99% of this change was performed by running the following commands:
82913         git ls-files | grep '\.m4$' | xargs perl -pi \
82914           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
82915           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
82916           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
82917           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
82918         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
82919         The remainder were to add Copyright dates, increment serial numbers,
82920         undo some changes in comments, exclude m4/intl.m4, and add quotes
82921         around the "1" in ",1" where the unusual spacing prohibited the
82922         above regexps from doing the job.  For more details, see
82923         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
82924         * m4/acl.m4: Modified.
82925         * m4/afs.m4: Likewise.
82926         * m4/alloca.m4: Likewise.
82927         * m4/argp.m4: Likewise.
82928         * m4/argz.m4: Likewise.
82929         * m4/atexit.m4: Likewise.
82930         * m4/bison-i18n.m4: Likewise.
82931         * m4/bison.m4: Likewise.
82932         * m4/byteswap.m4: Likewise.
82933         * m4/c-stack.m4: Likewise.
82934         * m4/c-strtod.m4: Likewise.
82935         * m4/calloc.m4: Likewise.
82936         * m4/canonicalize-lgpl.m4: Likewise.
82937         * m4/chown.m4: Likewise.
82938         * m4/clock_time.m4: Likewise.
82939         * m4/codeset.m4: Likewise.
82940         * m4/copy-file.m4: Likewise.
82941         * m4/csharp.m4: Likewise.
82942         * m4/csharpcomp.m4: Likewise.
82943         * m4/csharpexec.m4: Likewise.
82944         * m4/d-ino.m4: Likewise.
82945         * m4/d-type.m4: Likewise.
82946         * m4/dirfd.m4: Likewise.
82947         * m4/double-slash-root.m4: Likewise.
82948         * m4/eaccess.m4: Likewise.
82949         * m4/eealloc.m4: Likewise.
82950         * m4/environ.m4: Likewise.
82951         * m4/errno_h.m4: Likewise.
82952         * m4/euidaccess.m4: Likewise.
82953         * m4/execute.m4: Likewise.
82954         * m4/fatal-signal.m4: Likewise.
82955         * m4/fchdir.m4: Likewise.
82956         * m4/fcntl_h.m4: Likewise.
82957         * m4/fileblocks.m4: Likewise.
82958         * m4/filenamecat.m4: Likewise.
82959         * m4/findprog.m4: Likewise.
82960         * m4/flexmember.m4: Likewise.
82961         * m4/fnmatch.m4: Likewise.
82962         * m4/fopen.m4: Likewise.
82963         * m4/fpending.m4: Likewise.
82964         * m4/fprintf-posix.m4: Likewise.
82965         * m4/free.m4: Likewise.
82966         * m4/frexp.m4: Likewise.
82967         * m4/frexpl.m4: Likewise.
82968         * m4/fsusage.m4: Likewise.
82969         * m4/ftruncate.m4: Likewise.
82970         * m4/gc-camellia.m4: Likewise.
82971         * m4/gc-random.m4: Likewise.
82972         * m4/gc.m4: Likewise.
82973         * m4/getaddrinfo.m4: Likewise.
82974         * m4/getcwd-abort-bug.m4: Likewise.
82975         * m4/getcwd-path-max.m4: Likewise.
82976         * m4/getdate.m4: Likewise.
82977         * m4/getdomainname.m4: Likewise.
82978         * m4/getgroups.m4: Likewise.
82979         * m4/gethostname.m4: Likewise.
82980         * m4/gethrxtime.m4: Likewise.
82981         * m4/getline.m4: Likewise.
82982         * m4/getloadavg.m4: Likewise.
82983         * m4/getndelim2.m4: Likewise.
82984         * m4/getpass.m4: Likewise.
82985         * m4/gettext.m4: Likewise.
82986         * m4/gettime.m4: Likewise.
82987         * m4/gettimeofday.m4: Likewise.
82988         * m4/gnulib-common.m4: Likewise.
82989         * m4/group-member.m4: Likewise.
82990         * m4/host-os.m4: Likewise.
82991         * m4/iconv.m4: Likewise.
82992         * m4/iconv_open.m4: Likewise.
82993         * m4/inet_ntop.m4: Likewise.
82994         * m4/inet_pton.m4: Likewise.
82995         * m4/inline.m4: Likewise.
82996         * m4/intldir.m4: Likewise.
82997         * m4/intlmacosx.m4: Likewise.
82998         * m4/intmax.m4: Likewise.
82999         * m4/intmax_t.m4: Likewise.
83000         * m4/inttypes.m4: Likewise.
83001         * m4/inttypes_h.m4: Likewise.
83002         * m4/inttypes-pri.m4: Likewise.
83003         * m4/isapipe.m4: Likewise.
83004         * m4/isnand.m4: Likewise.
83005         * m4/isnanf.m4: Likewise.
83006         * m4/isnanl.m4: Likewise.
83007         * m4/javacomp.m4: Likewise.
83008         * m4/javaexec.m4: Likewise.
83009         * m4/jm-winsz1.m4: Likewise.
83010         * m4/jm-winsz2.m4: Likewise.
83011         * m4/lchown.m4: Likewise.
83012         * m4/lcmessage.m4: Likewise.
83013         * m4/ldexpl.m4: Likewise.
83014         * m4/lib-ld.m4: Likewise.
83015         * m4/lib-link.m4: Likewise.
83016         * m4/libsigsegv.m4: Likewise.
83017         * m4/link-follow.m4: Likewise.
83018         * m4/localcharset.m4: Likewise.
83019         * m4/locale-fr.m4: Likewise.
83020         * m4/locale-ja.m4: Likewise.
83021         * m4/locale-tr.m4: Likewise.
83022         * m4/locale-zh.m4: Likewise.
83023         * m4/lock.m4: Likewise.
83024         * m4/longlong.m4: Likewise.
83025         * m4/ls-mntd-fs.m4: Likewise.
83026         * m4/lstat.m4: Likewise.
83027         * m4/malloc.m4: Likewise.
83028         * m4/mathl.m4: Likewise.
83029         * m4/mbrtowc.m4: Likewise.
83030         * m4/mbstate_t.m4: Likewise.
83031         * m4/mbswidth.m4: Likewise.
83032         * m4/memchr.m4: Likewise.
83033         * m4/memcmp.m4: Likewise.
83034         * m4/memcpy.m4: Likewise.
83035         * m4/memmem.m4: Likewise.
83036         * m4/memmove.m4: Likewise.
83037         * m4/mempcpy.m4: Likewise.
83038         * m4/memrchr.m4: Likewise.
83039         * m4/memset.m4: Likewise.
83040         * m4/minmax.m4: Likewise.
83041         * m4/mkdir-slash.m4: Likewise.
83042         * m4/mkdtemp.m4: Likewise.
83043         * m4/mktime.m4: Likewise.
83044         * m4/mmap-anon.m4: Likewise.
83045         * m4/mountlist.m4: Likewise.
83046         * m4/nanosleep.m4: Likewise.
83047         * m4/nls.m4: Likewise.
83048         * m4/nocrash.m4: Likewise.
83049         * m4/open.m4: Likewise.
83050         * m4/openat.m4: Likewise.
83051         * m4/openmp.m4: Likewise.
83052         * m4/pathmax.m4: Likewise.
83053         * m4/perl.m4: Likewise.
83054         * m4/physmem.m4: Likewise.
83055         * m4/pipe.m4: Likewise.
83056         * m4/po.m4: Likewise.
83057         * m4/poll.m4: Likewise.
83058         * m4/posixtm.m4: Likewise.
83059         * m4/posixver.m4: Likewise.
83060         * m4/printf-frexp.m4: Likewise.
83061         * m4/printf-frexpl.m4: Likewise.
83062         * m4/printf-posix.m4: Likewise.
83063         * m4/printf-posix-rpl.m4: Likewise.
83064         * m4/printf.m4: Likewise.
83065         * m4/progtest.m4: Likewise.
83066         * m4/putenv.m4: Likewise.
83067         * m4/readline.m4: Likewise.
83068         * m4/readlink.m4: Likewise.
83069         * m4/readutmp.m4: Likewise.
83070         * m4/realloc.m4: Likewise.
83071         * m4/regex.m4: Likewise.
83072         * m4/relocatable.m4: Likewise.
83073         * m4/relocatable-lib.m4: Likewise.
83074         * m4/rename-dest-slash.m4: Likewise.
83075         * m4/rename.m4: Likewise.
83076         * m4/rmdir-errno.m4: Likewise.
83077         * m4/rmdir.m4: Likewise.
83078         * m4/roundf.m4: Likewise.
83079         * m4/roundl.m4: Likewise.
83080         * m4/rpmatch.m4: Likewise.
83081         * m4/save-cwd.m4: Likewise.
83082         * m4/selinux-selinux-h.m4: Likewise.
83083         * m4/setenv.m4: Likewise.
83084         * m4/settime.m4: Likewise.
83085         * m4/sig2str.m4: Likewise.
83086         * m4/sig_atomic_t.m4: Likewise.
83087         * m4/signalblocking.m4: Likewise.
83088         * m4/signbit.m4: Likewise.
83089         * m4/sigpipe.m4: Likewise.
83090         * m4/sockets.m4: Likewise.
83091         * m4/sockpfaf.m4: Likewise.
83092         * m4/st_dm_mode.m4: Likewise.
83093         * m4/stat-time.m4: Likewise.
83094         * m4/stdbool.m4: Likewise.
83095         * m4/stdint.m4: Likewise.
83096         * m4/stdint_h.m4: Likewise.
83097         * m4/stpcpy.m4: Likewise.
83098         * m4/stpncpy.m4: Likewise.
83099         * m4/strcase.m4: Likewise.
83100         * m4/strchrnul.m4: Likewise.
83101         * m4/strcspn.m4: Likewise.
83102         * m4/strdup.m4: Likewise.
83103         * m4/strftime.m4: Likewise.
83104         * m4/strndup.m4: Likewise.
83105         * m4/strnlen.m4: Likewise.
83106         * m4/strpbrk.m4: Likewise.
83107         * m4/strptime.m4: Likewise.
83108         * m4/strsep.m4: Likewise.
83109         * m4/strtod.m4: Likewise.
83110         * m4/strtoimax.m4: Likewise.
83111         * m4/strtok_r.m4: Likewise.
83112         * m4/strtol.m4: Likewise.
83113         * m4/strtoll.m4: Likewise.
83114         * m4/strtoul.m4: Likewise.
83115         * m4/strtoull.m4: Likewise.
83116         * m4/strtoumax.m4: Likewise.
83117         * m4/strverscmp.m4: Likewise.
83118         * m4/threadlib.m4: Likewise.
83119         * m4/timegm.m4: Likewise.
83120         * m4/tm_gmtoff.m4: Likewise.
83121         * m4/tmpdir.m4: Likewise.
83122         * m4/tmpfile.m4: Likewise.
83123         * m4/tzset.m4: Likewise.
83124         * m4/uintmax_t.m4: Likewise.
83125         * m4/unlinkdir.m4: Likewise.
83126         * m4/unlocked-io.m4: Likewise.
83127         * m4/uptime.m4: Likewise.
83128         * m4/userspec.m4: Likewise.
83129         * m4/utimbuf.m4: Likewise.
83130         * m4/utime.m4: Likewise.
83131         * m4/utimes-null.m4: Likewise.
83132         * m4/utimes.m4: Likewise.
83133         * m4/vararrays.m4: Likewise.
83134         * m4/vasnprintf.m4: Likewise.
83135         * m4/vfprintf-posix.m4: Likewise.
83136         * m4/vprintf-posix.m4: Likewise.
83137         * m4/wait-process.m4: Likewise.
83138         * m4/wchar_t.m4: Likewise.
83139         * m4/wint_t.m4: Likewise.
83140         * m4/write-any-file.m4: Likewise.
83141         * m4/yield.m4: Likewise.
83143 2009-01-13  Bruno Haible  <bruno@clisp.org>
83145         Avoid test-copy-file.sh failures when ACL support insufficient.
83146         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83147         TESTS_ENVIRONMENT.
83148         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83149         Reported by Jim Meyering.
83151 2009-01-13  Bruno Haible  <bruno@clisp.org>
83153         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83154         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83155         * modules/unistdio/u8-printf-parse (Files): Likewise.
83156         * modules/unistdio/u32-printf-parse (Files): Likewise.
83157         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83159 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83161         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83162         and m4/inttypes_h.m4 too.
83164 2009-01-12  Eric Blake  <ebb9@byu.net>
83166         tests: IRIX 6.2 cc can't compile -0.0 into .data
83167         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83168         rather than at compile-time.
83169         * tests/test-floorl.c (minus_zero): Likewise.
83170         * tests/test-frexpl.c (minus_zero): Likewise.
83171         * tests/test-isnan.c (minus_zerol): Likewise.
83172         * tests/test-isnanl.h (minus_zero): Likewise.
83173         * tests/test-ldexpl.c (minus_zero): Likewise.
83174         * tests/test-roundl.c (minus_zero): Likewise.
83175         * tests/test-signbit.c (minus_zerol): Likewise.
83176         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83177         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83178         * tests/test-truncl.c (minus_zero): Likewise.
83179         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83180         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83181         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83183 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83185         regex: fix glibc bug 9697
83186         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83187         handling.
83189 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83191         regex: fix glibc bug 697
83192         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83193         being NULL also if there are no backreferences.
83195 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83197         regex: merge glibc changes
83198         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83199         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83200         re_string_skip_chars, re_string_reconstruct): Likewise.
83201         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83203 2009-01-07  Jim Meyering  <meyering@redhat.com>
83205         poll: filter through cppi
83206         * lib/poll.c: Indent cpp directives to reflect nesting.
83208 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83210         poll: don't return uninitialized
83211         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83213 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83215         avoid compile failure on AIX 6.1
83216         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83217         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83219 2009-01-04  Jim Meyering  <meyering@redhat.com>
83221         remove duplicate inclusion of <stdio.h>
83222         * tests/test-fprintf-posix.c: Likewise.
83223         * tests/test-printf-posix.c: Likewise.
83224         * tests/test-snprintf-posix.c: Likewise.
83225         * tests/test-sprintf-posix.c: Likewise.
83226         * tests/test-vasprintf-posix.c: Likewise.
83227         * tests/test-vfprintf-posix.c: Likewise.
83228         * tests/test-vprintf-posix.c: Likewise.
83229         * tests/test-vsnprintf-posix.c: Likewise.
83230         * tests/test-vsprintf-posix.c: Likewise.
83232 2009-01-03  Jim Meyering  <meyering@redhat.com>
83234         gnulib-tool: fix sed-based filtering
83235         * gnulib-tool (func_filter_filelist): Remove extra backslash
83236         in sed_fff_filter definition.
83238 2009-01-02  Jim Meyering  <meyering@redhat.com>
83240         strftime: avoid compilation failure on Solaris 2.6
83241         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83242         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83243         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83244         be available.  Reported by Tom G. Christensen.  Details in
83245         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83247 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83248             Bruno Haible  <bruno@clisp.org>
83250         Speed up gnulib-tool by doing more string processing through shell
83251         built-ins.
83252         * gnulib-tool (fast_func_append): New variable.
83253         (func_remove_prefix, func_remove_suffix): New functions.
83254         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83255         (func_filter_filelist): New function.
83256         (func_get_dependencies): Use func_remove_suffix instead of sed.
83257         (func_get_automake_snippet): Use func_filter_filelist instead of a
83258         subshell and sed invocation.
83260 2009-01-01  Bruno Haible  <bruno@clisp.org>
83262         Fix a security bug.
83263         * gnulib-tool (func_import, import, update): Don't allow the characters
83264         '"', '$', '`', '\' in macro arguments that become part of commands that
83265         are evaluated.
83267 2009-01-01  Bruno Haible  <bruno@clisp.org>
83269         * gnulib-tool (func_reset_sigpipe): Add more comments.
83271 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83273         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83274         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83275         already know the answer.
83277 2009-01-01  Jim Meyering  <meyering@redhat.com>
83279         * lib/version-etc.c (version_etc_va): Update copyright year.
83281 2008-12-30  Bruno Haible  <bruno@clisp.org>
83283         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83284         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83285         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83287 2008-12-29  Eric Blake  <ebb9@byu.net>
83289         multiarch: avoid autoconf AC_REQUIRE bug
83290         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83291         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83292         2.63 and older.
83293         Reported by Bruno Haible, and analyzed in
83294         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83296 2008-12-29  Bruno Haible  <bruno@clisp.org>
83298         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83299         files in subdirectories correctly.
83300         Reported by Ralf Wildenhues.
83302 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83304         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83305         rather than 'join FILE -', for Solaris join.
83307 2008-12-29  Bruno Haible  <bruno@clisp.org>
83309         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83310         quoting.
83311         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83312         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83313         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83314         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83315         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83316         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83317         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83318         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83319         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83320         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83321         * m4/nls.m4 (AM_NLS): Likewise.
83322         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83323         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83324         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83325         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83326         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83327         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83328         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83329         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83330         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83331         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83332         * m4/xsize.m4 (gl_XSIZE): Likewise.
83333         Suggested by Jim Meyering.
83335 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83337         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83338         * lib/parse-duration.c: use a switch instead of cascading if's.
83340 2008-12-29  Eric Blake  <ebb9@byu.net>
83342         wchar.h: supply WEOF on Irix 5.3
83343         * lib/wchar.in.h (wint_t): Also supply WEOF.
83344         * lib/wctype.in.h (wint_t): Likewise.
83345         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83346         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83347         Reported by Tom G. Christensen.
83349 2008-12-26  Bruno Haible  <bruno@clisp.org>
83351         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83352         i486, i586, i686.
83354 2008-12-26  Bruno Haible  <bruno@clisp.org>
83356         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83358 2008-12-26  Bruno Haible  <bruno@clisp.org>
83360         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83361         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83362         not __STDC_CONSTANT_MACROS.
83363         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83365 2008-12-25  Bruno Haible  <bruno@clisp.org>
83367         Add support for universal builds to vasnprintf.
83368         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83369         universal builds, guess no.
83370         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83371         * modules/vasprintf-posix (Depends-on): Likewise.
83372         * modules/fprintf-posix (Depends-on): Likewise.
83373         * modules/vfprintf-posix (Depends-on): Likewise.
83374         * modules/snprintf-posix (Depends-on): Likewise.
83375         * modules/vsnprintf-posix (Depends-on): Likewise.
83376         * modules/sprintf-posix (Depends-on): Likewise.
83377         * modules/vsprintf-posix (Depends-on): Likewise.
83378         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83379         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83380         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83381         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83382         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83383         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83384         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83386         Add support for universal builds to <inttypes.h>.
83387         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83388         _SCNu64_PREFIX): In Apple
83389         universal builds, define directly, using _LP64.
83390         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83391         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83392         * modules/inttypes (Depends-on): Add multiarch.
83393         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83395         Add support for universal builds to <stdint.h>.
83396         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83397         universal builds, define directly, using _LP64.
83398         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83399         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83400         and size_t.
83401         * modules/stdint (Depends-on): Add multiarch.
83402         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83404         New module 'multiarch'.
83405         * modules/multiarch: New file.
83406         * m4/multiarch.m4: New file.
83408 2008-12-25  Bruno Haible  <bruno@clisp.org>
83410         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83412 2008-12-25  Bruno Haible  <bruno@clisp.org>
83414         * modules/btowc (License): Relicense under LGPLv2+.
83415         * modules/mbsinit (License): Likewise.
83416         * modules/mbrtowc (License): Likewise.
83417         * modules/wcrtomb (License): Likewise.
83418         * modules/streq (License): Likewise.
83419         Reported by David Lutterkort <lutter@redhat.com>.
83421 2008-12-23  Bruno Haible  <bruno@clisp.org>
83423         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83425 2008-12-23  Bruno Haible  <bruno@clisp.org>
83427         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83429         GETADDRINFO_LIB, not in LIBS.
83430         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83431         * modules/canon-host (Link): Likewise.
83432         * NEWS: Mention the change.
83433         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83434         GETADDRINFO_LIB.
83436 2008-12-22  Bruno Haible  <bruno@clisp.org>
83438         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83439         * doc/posix-functions/iswalpha_l.texi: Likewise.
83440         * doc/posix-functions/iswblank_l.texi: Likewise.
83441         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83442         * doc/posix-functions/iswctype_l.texi: Likewise.
83443         * doc/posix-functions/iswdigit_l.texi: Likewise.
83444         * doc/posix-functions/iswgraph_l.texi: Likewise.
83445         * doc/posix-functions/iswlower_l.texi: Likewise.
83446         * doc/posix-functions/iswprint_l.texi: Likewise.
83447         * doc/posix-functions/iswpunct_l.texi: Likewise.
83448         * doc/posix-functions/iswspace_l.texi: Likewise.
83449         * doc/posix-functions/iswupper_l.texi: Likewise.
83450         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83451         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83452         * doc/posix-functions/open_wmemstream.texi: Likewise.
83453         * doc/posix-functions/swscanf.texi: Likewise.
83454         * doc/posix-functions/towctrans_l.texi: Likewise.
83455         * doc/posix-functions/towlower.texi: Likewise.
83456         * doc/posix-functions/towlower_l.texi: Likewise.
83457         * doc/posix-functions/towupper.texi: Likewise.
83458         * doc/posix-functions/towupper_l.texi: Likewise.
83459         * doc/posix-functions/vfwprintf.texi: Likewise.
83460         * doc/posix-functions/vfwscanf.texi: Likewise.
83461         * doc/posix-functions/vswscanf.texi: Likewise.
83462         * doc/posix-functions/vwprintf.texi: Likewise.
83463         * doc/posix-functions/vwscanf.texi: Likewise.
83464         * doc/posix-functions/wcpcpy.texi: Likewise.
83465         * doc/posix-functions/wcpncpy.texi: Likewise.
83466         * doc/posix-functions/wcscasecmp.texi: Likewise.
83467         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83468         * doc/posix-functions/wcscoll_l.texi: Likewise.
83469         * doc/posix-functions/wcsdup.texi: Likewise.
83470         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83471         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83472         * doc/posix-functions/wcsnlen.texi: Likewise.
83473         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83474         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83475         * doc/posix-functions/wctrans_l.texi: Likewise.
83476         * doc/posix-functions/wctype_l.texi: Likewise.
83477         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83478         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83479         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83480         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83481         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83482         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83483         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83484         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83485         * doc/glibc-functions/wcschrnul.texi: Likewise.
83486         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83487         * doc/glibc-functions/wcstod_l.texi: Likewise.
83488         * doc/glibc-functions/wcstof_l.texi: Likewise.
83489         * doc/glibc-functions/wcstol_l.texi: Likewise.
83490         * doc/glibc-functions/wcstold_l.texi: Likewise.
83491         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83492         * doc/glibc-functions/wcstoq.texi: Likewise.
83493         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83494         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83495         * doc/glibc-functions/wcstouq.texi: Likewise.
83496         * doc/glibc-functions/wmempcpy.texi: Likewise.
83498 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83499             Eric Blake  <ebb9@byu.net>
83500             Paolo Bonzini  <bonzini@gnu.org>
83501             Bruno Haible  <bruno@clisp.org>
83503         Make c-stack work on Haiku.
83504         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83505         (c_stack_action): Use SA_ONSTACK flag.
83507 2008-12-22  Bruno Haible  <bruno@clisp.org>
83509         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83511 2008-12-22  Bruno Haible  <bruno@clisp.org>
83513         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83514         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83515         being overridden.
83516         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83517         New macros.
83518         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83520         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83521         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83523 2008-12-22  Bruno Haible  <bruno@clisp.org>
83525         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83526         from test code.
83528 2008-12-22  Eric Blake  <ebb9@byu.net>
83530         Avoid gcc warnings on cygwin.
83531         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83532         Avoid unused variable.
83533         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83534         Likewise.
83536 2008-12-22  Bruno Haible  <bruno@clisp.org>
83538         Remove HAVE_MBRTOWC conditionals.
83539         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83540         (mbscasecmp): Assume mbrtowc function.
83541         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83542         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83543         * lib/mbschr.c: Include mbuiter.h unconditionally.
83544         (mbschr): Assume mbrtowc function.
83545         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83546         (mbscspn): Assume mbrtowc function.
83547         * lib/mbslen.c: Include mbuiter.h unconditionally.
83548         (mbslen): Assume mbrtowc function.
83549         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83550         (mbsncasecmp): Assume mbrtowc function.
83551         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83552         (mbsnlen): Assume mbrtowc function.
83553         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83554         (mbspbrk): Assume mbrtowc function.
83555         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83556         (mbspcasecmp): Assume mbrtowc function.
83557         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83558         (mbsrchr): Assume mbrtowc function.
83559         * lib/mbssep.c: Include mbuiter.h unconditionally.
83560         (mbssep): Assume mbrtowc function.
83561         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83562         (mbsspn): Assume mbrtowc function.
83563         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83564         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83565         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83566         (mbstok_r): Assume mbrtowc function.
83567         * lib/propername.c: Include mbuiter.h unconditionally.
83568         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83569         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83570         (trim2): Assume mbrtowc function.
83571         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83572         (mbsnwidth): Assume mbrtowc function.
83573         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83574         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83575         fallback definitions.
83576         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83578 2008-12-22  Bruno Haible  <bruno@clisp.org>
83580         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83582 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83584         * modules/regex: Request emulations for the mb*/wc* functions we need.
83585         * m4/regex.m4: Don't look for those functions here.
83586         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
83588 2008-12-22  Bruno Haible  <bruno@clisp.org>
83590         * modules/fnmatch (Depends-on): Remove duplicated dependency.
83592 2008-12-21  Bruno Haible  <bruno@clisp.org>
83594         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
83595         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
83596         (Include): Remove conditionalization.
83597         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
83598         (Include): Remove conditionalization.
83599         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
83600         (Include): Remove conditionalization.
83601         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
83602         * m4/mbfile.m4 (gl_MBFILE): Likewise.
83603         * NEWS: Mention the change.
83604         Reported by Alan Hourihane <alanh@fairlite.co.uk>
83605         via Sergey Poznyakoff <gray@gnu.org.ua>.
83607 2008-12-21  Bruno Haible  <bruno@clisp.org>
83609         * MODULES.html.sh (Extended multibyte and wide character utilities
83610         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
83611         wcrtomb, wcsrtombs.
83612         (Support for systems lacking POSIX:2008): Add accept, bind, close,
83613         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
83614         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
83615         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
83617 2008-12-21  Bruno Haible  <bruno@clisp.org>
83619         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
83621 2008-12-21  Bruno Haible  <bruno@clisp.org>
83623         * modules/wcsnrtombs-tests: New file.
83624         * tests/test-wcsnrtombs1.sh: New file.
83625         * tests/test-wcsnrtombs2.sh: New file.
83626         * tests/test-wcsnrtombs3.sh: New file.
83627         * tests/test-wcsnrtombs4.sh: New file.
83628         * tests/test-wcsnrtombs.c: New file.
83630         New module 'wcsnrtombs'.
83631         * lib/wchar.in.h (wcsnrtombs): New declaration.
83632         * lib/wcsnrtombs.c: New file.
83633         * lib/wcsrtombs-state.c: New file.
83634         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
83635         (internal_state): Remove variable.
83636         * m4/wcsnrtombs.m4: New file.
83637         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
83638         compilation units.
83639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
83640         HAVE_WCSNRTOMBS.
83641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
83642         HAVE_WCSNRTOMBS.
83643         * modules/wcsnrtombs: New file.
83644         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
83645         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
83647 2008-12-21  Bruno Haible  <bruno@clisp.org>
83649         * modules/wcsrtombs-tests: New file.
83650         * tests/test-wcsrtombs1.sh: New file.
83651         * tests/test-wcsrtombs2.sh: New file.
83652         * tests/test-wcsrtombs3.sh: New file.
83653         * tests/test-wcsrtombs4.sh: New file.
83654         * tests/test-wcsrtombs.c: New file.
83656         New module 'wcsrtombs'.
83657         * lib/wchar.in.h (wcsrtombs): New declaration.
83658         * lib/wcsrtombs.c: New file.
83659         * m4/wcsrtombs.m4: New file.
83660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
83661         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
83663         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83664         * modules/wcsrtombs: New file.
83665         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
83666         bugs.
83668 2008-12-21  Bruno Haible  <bruno@clisp.org>
83670         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
83671         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
83672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
83673         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
83674         if not correct.
83675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
83676         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
83677         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83678         m4/locale-zh.m4, m4/codeset.m4.
83679         * doc/posix-functions/wcrtomb.texi: Document the bug.
83681 2008-12-21  Bruno Haible  <bruno@clisp.org>
83683         Work around a btowc() bug on IRIX 6.5.
83684         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
83685         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
83686         REPLACE_WTOBC if not.
83687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
83688         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
83689         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
83691 2008-12-21  Bruno Haible  <bruno@clisp.org>
83693         * modules/wcrtomb-tests: New file.
83694         * tests/test-wcrtomb.sh: New file.
83695         * tests/test-wcrtomb.c: New file.
83697         New module 'wcrtomb'.
83698         * lib/wchar.in.h (wcrtomb): New declaration.
83699         * lib/wcrtomb.c: New file.
83700         * m4/wcrtomb.m4: New file.
83701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
83702         HAVE_WCRTOMB.
83703         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
83704         HAVE_WCRTOMB.
83705         * modules/wcrtomb: New file.
83706         * doc/posix-functions/wcrtomb.texi: Mention the new module.
83708 2008-12-21  Bruno Haible  <bruno@clisp.org>
83710         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
83711         * modules/mbsrtowcs (Files): Likewise.
83712         * modules/wctob (Files): Likewise.
83713         * modules/c-strcase-tests (Files): Likewise.
83714         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
83715         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
83716         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
83717         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
83718         * modules/vasnprintf-posix-tests (Files): Likewise.
83720 2008-12-21  William Pursell  <bill.pursell@gmail.com>
83722         gitlog-to-changelog: pass all command-line arguments to git-log
83723         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
83724         it is sometimes convenient to filter the commits in various ways.
83725         gitlog-to-changelog only allows --since to specify a start date,
83726         but git-log itself supports many other filtering mechanisms.
83727         At the moment, I want to filter by branch name.  Rather than
83728         adding a --branch option to gitlog-to-changelog, it seems more
83729         flexible to simply pass all options directly to git-log and let
83730         git do the work.  Notice that this effectively makes --since a
83731         redundant option for gitlog-to-changelog, but removing it would
83732         require current usage to change since calls would then require
83733         an additional '--'.
83735 2008-12-21  Bruno Haible  <bruno@clisp.org>
83737         * modules/mbsnrtowcs-tests: New file.
83738         * tests/test-mbsnrtowcs1.sh: New file.
83739         * tests/test-mbsnrtowcs2.sh: New file.
83740         * tests/test-mbsnrtowcs3.sh: New file.
83741         * tests/test-mbsnrtowcs4.sh: New file.
83742         * tests/test-mbsnrtowcs.c: New file.
83744         New module 'mbsnrtowcs'.
83745         * lib/wchar.in.h (mbsnrtowcs): New declaration.
83746         * lib/mbsnrtowcs.c: New file.
83747         * lib/mbsrtowcs-state.c: New file.
83748         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
83749         (internal_state): Remove variable.
83750         * m4/mbsnrtowcs.m4: New file.
83751         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
83752         compilation units.
83753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
83754         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83755         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
83756         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83757         * modules/mbsnrtowcs: New file.
83758         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
83759         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
83760         portability problem.
83762 2008-12-21  Bruno Haible  <bruno@clisp.org>
83764         Work around mbsrtowcs bug.
83765         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
83766         (gl_FUNC_MBSRTOWCS): Invoke it.
83767         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83768         m4/locale-zh.m4.
83769         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
83771 2008-12-21  Bruno Haible  <bruno@clisp.org>
83773         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
83775 2008-12-21  Bruno Haible  <bruno@clisp.org>
83777         Update doc for AIX.
83778         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
83779         16-bit wchar_t type.
83780         * doc/posix-functions/btowc.texi: Likewise.
83781         * doc/posix-functions/fgetwc.texi: Likewise.
83782         * doc/posix-functions/fgetws.texi: Likewise.
83783         * doc/posix-functions/fputwc.texi: Likewise.
83784         * doc/posix-functions/fputws.texi: Likewise.
83785         * doc/posix-functions/fwide.texi: Likewise.
83786         * doc/posix-functions/fwprintf.texi: Likewise.
83787         * doc/posix-functions/fwscanf.texi: Likewise.
83788         * doc/posix-functions/getwchar.texi: Likewise.
83789         * doc/posix-functions/getwc.texi: Likewise.
83790         * doc/posix-functions/iswalnum.texi: Likewise.
83791         * doc/posix-functions/iswalpha.texi: Likewise.
83792         * doc/posix-functions/iswblank.texi: Likewise.
83793         * doc/posix-functions/iswcntrl.texi: Likewise.
83794         * doc/posix-functions/iswctype.texi: Likewise.
83795         * doc/posix-functions/iswdigit.texi: Likewise.
83796         * doc/posix-functions/iswgraph.texi: Likewise.
83797         * doc/posix-functions/iswlower.texi: Likewise.
83798         * doc/posix-functions/iswprint.texi: Likewise.
83799         * doc/posix-functions/iswpunct.texi: Likewise.
83800         * doc/posix-functions/iswspace.texi: Likewise.
83801         * doc/posix-functions/iswupper.texi: Likewise.
83802         * doc/posix-functions/iswxdigit.texi: Likewise.
83803         * doc/posix-functions/mbrtowc.texi: Likewise.
83804         * doc/posix-functions/mbsrtowcs.texi: Likewise.
83805         * doc/posix-functions/mbstowcs.texi: Likewise.
83806         * doc/posix-functions/mbtowc.texi: Likewise.
83807         * doc/posix-functions/putwchar.texi: Likewise.
83808         * doc/posix-functions/putwc.texi: Likewise.
83809         * doc/posix-functions/swprintf.texi: Likewise.
83810         * doc/posix-functions/tolower.texi: Likewise.
83811         * doc/posix-functions/toupper.texi: Likewise.
83812         * doc/posix-functions/towctrans.texi: Likewise.
83813         * doc/posix-functions/ungetwc.texi: Likewise.
83814         * doc/posix-functions/vswprintf.texi: Likewise.
83815         * doc/posix-functions/wcrtomb.texi: Likewise.
83816         * doc/posix-functions/wcscat.texi: Likewise.
83817         * doc/posix-functions/wcschr.texi: Likewise.
83818         * doc/posix-functions/wcscmp.texi: Likewise.
83819         * doc/posix-functions/wcscoll.texi: Likewise.
83820         * doc/posix-functions/wcscpy.texi: Likewise.
83821         * doc/posix-functions/wcscspn.texi: Likewise.
83822         * doc/posix-functions/wcsftime.texi: Likewise.
83823         * doc/posix-functions/wcslen.texi: Likewise.
83824         * doc/posix-functions/wcsncat.texi: Likewise.
83825         * doc/posix-functions/wcsncmp.texi: Likewise.
83826         * doc/posix-functions/wcsncpy.texi: Likewise.
83827         * doc/posix-functions/wcspbrk.texi: Likewise.
83828         * doc/posix-functions/wcsrchr.texi: Likewise.
83829         * doc/posix-functions/wcsrtombs.texi: Likewise.
83830         * doc/posix-functions/wcsspn.texi: Likewise.
83831         * doc/posix-functions/wcsstr.texi: Likewise.
83832         * doc/posix-functions/wcstod.texi: Likewise.
83833         * doc/posix-functions/wcstof.texi: Likewise.
83834         * doc/posix-functions/wcstoimax.texi: Likewise.
83835         * doc/posix-functions/wcstok.texi: Likewise.
83836         * doc/posix-functions/wcstold.texi: Likewise.
83837         * doc/posix-functions/wcstoll.texi: Likewise.
83838         * doc/posix-functions/wcstol.texi: Likewise.
83839         * doc/posix-functions/wcstombs.texi: Likewise.
83840         * doc/posix-functions/wcstoull.texi: Likewise.
83841         * doc/posix-functions/wcstoul.texi: Likewise.
83842         * doc/posix-functions/wcstoumax.texi: Likewise.
83843         * doc/posix-functions/wcswidth.texi: Likewise.
83844         * doc/posix-functions/wcsxfrm.texi: Likewise.
83845         * doc/posix-functions/wctob.texi: Likewise.
83846         * doc/posix-functions/wctomb.texi: Likewise.
83847         * doc/posix-functions/wctrans.texi: Likewise.
83848         * doc/posix-functions/wctype.texi: Likewise.
83849         * doc/posix-functions/wcwidth.texi: Likewise.
83850         * doc/posix-functions/wmemchr.texi: Likewise.
83851         * doc/posix-functions/wmemcmp.texi: Likewise.
83852         * doc/posix-functions/wmemcpy.texi: Likewise.
83853         * doc/posix-functions/wmemmove.texi: Likewise.
83854         * doc/posix-functions/wmemset.texi: Likewise.
83855         * doc/posix-functions/wprintf.texi: Likewise.
83856         * doc/posix-functions/wscanf.texi: Likewise.
83858 2008-12-21  Bruno Haible  <bruno@clisp.org>
83860         Update doc for HP-UX 11.11.
83861         * doc/posix-functions/btowc.texi: Clarify that the function is missing
83862         in HP-UX version 11.00, not in all versions of HP-UX 11.
83863         * doc/posix-functions/fwide.texi: Likewise.
83864         * doc/posix-functions/fwprintf.texi: Likewise.
83865         * doc/posix-functions/fwscanf.texi: Likewise.
83866         * doc/posix-functions/inet_ntop.texi: Likewise.
83867         * doc/posix-functions/inet_pton.texi: Likewise.
83868         * doc/posix-functions/mbrlen.texi: Likewise.
83869         * doc/posix-functions/mbrtowc.texi: Likewise.
83870         * doc/posix-functions/mbsinit.texi: Likewise.
83871         * doc/posix-functions/mbsrtowcs.texi: Likewise.
83872         * doc/posix-functions/swprintf.texi: Likewise.
83873         * doc/posix-functions/swscanf.texi: Likewise.
83874         * doc/posix-functions/towctrans.texi: Likewise.
83875         * doc/posix-functions/vfwprintf.texi: Likewise.
83876         * doc/posix-functions/vswprintf.texi: Likewise.
83877         * doc/posix-functions/vwprintf.texi: Likewise.
83878         * doc/posix-functions/wcrtomb.texi: Likewise.
83879         * doc/posix-functions/wcsrtombs.texi: Likewise.
83880         * doc/posix-functions/wcsstr.texi: Likewise.
83881         * doc/posix-functions/wctob.texi: Likewise.
83882         * doc/posix-functions/wctrans.texi: Likewise.
83883         * doc/posix-functions/wmemchr.texi: Likewise.
83884         * doc/posix-functions/wmemcmp.texi: Likewise.
83885         * doc/posix-functions/wmemcpy.texi: Likewise.
83886         * doc/posix-functions/wmemmove.texi: Likewise.
83887         * doc/posix-functions/wmemset.texi: Likewise.
83888         * doc/posix-functions/wprintf.texi: Likewise.
83889         * doc/posix-functions/wscanf.texi: Likewise.
83891 2008-12-21  Bruno Haible  <bruno@clisp.org>
83893         Work around a portability problem.
83894         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
83895         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
83897 2008-12-20  Bruno Haible  <bruno@clisp.org>
83899         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
83900         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
83901         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
83902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
83903         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
83905         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
83906         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
83907         set.
83908         (GNULIB_defined_mbstate_t): New macro.
83909         (mbsinit): Redefine if REPLACE_MBSINIT is set.
83910         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
83911         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
83912         reuses the system's mbrtowc function but works around the bugs.
83913         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
83914         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
83915         macros.
83916         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
83917         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
83918         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
83919         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
83920         REPLACE_MBSINIT if mbsinit needs to be overridden.
83921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
83922         REPLACE_MBSINIT, REPLACE_MBRTOWC.
83923         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
83924         REPLACE_MBSINIT, REPLACE_MBRTOWC.
83925         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83926         m4/locale-zh.m4.
83927         (Depends): Add mbsinit.
83928         * modules/mbsinit (Depends): Add mbrtowc.
83929         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
83931 2008-12-20  Bruno Haible  <bruno@clisp.org>
83933         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
83934         so that there are no conversion errors on AIX.
83935         * tests/test-mbsrtowcs.c (main): LIkewise.
83937 2008-12-20  Bruno Haible  <bruno@clisp.org>
83939         Work around wctob bug on Solaris <= 9.
83940         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
83941         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
83942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
83943         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
83944         * modules/wctob (Files): Add m4/locale-fr.m4.
83945         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
83947 2008-12-20  Bruno Haible  <bruno@clisp.org>
83949         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
83950         /dev/null.
83951         * tests/test-select-in.sh: Likewise.
83952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83954 2008-12-20  Bruno Haible  <bruno@clisp.org>
83956         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
83957         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
83958         Cygwin 1.5.x.
83960 2008-12-20  Bruno Haible  <bruno@clisp.org>
83962         Ensure mbstate_t is defined on HP-UX 11.11.
83963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
83964         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
83965         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
83966         AC_USE_SYSTEM_EXTENSIONS.
83967         * modules/fnmatch (Depends-on): Add extensions.
83968         * modules/mbrlen (Depends-on): Likewise.
83969         * modules/mbrtowc (Depends-on): Likewise.
83970         * modules/mbsinit (Depends-on): Likewise.
83971         * modules/mbsrtowcs (Depends-on): Likewise.
83972         * modules/mbswidth (Depends-on): Likewise.
83973         * modules/quotearg (Depends-on): Likewise.
83974         * modules/strftime (Depends-on): Likewise.
83976 2008-12-20  Bruno Haible  <bruno@clisp.org>
83978         Ensure wctob is declared on IRIX 6.5.
83979         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
83980         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
83981         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
83982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
83983         of HAVE_WCTOB.
83984         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
83985         HAVE_WCTOB.
83986         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
83988 2008-12-19  Bruno Haible  <bruno@clisp.org>
83990         * modules/mbsrtowcs-tests: New file.
83991         * tests/test-mbsrtowcs1.sh: New file.
83992         * tests/test-mbsrtowcs2.sh: New file.
83993         * tests/test-mbsrtowcs3.sh: New file.
83994         * tests/test-mbsrtowcs4.sh: New file.
83995         * tests/test-mbsrtowcs.c: New file.
83997         New module 'mbsrtowcs'.
83998         * lib/wchar.in.h (mbsrtowcs): New declaration.
83999         * lib/mbsrtowcs.c: New file.
84000         * m4/mbsrtowcs.m4: New file.
84001         * modules/mbsrtowcs: New file.
84002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84003         HAVE_MBSRTOWCS.
84004         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84005         HAVE_MBSRTOWCS.
84006         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84008 2008-12-19  Bruno Haible  <bruno@clisp.org>
84010         New module 'mbrlen'.
84011         * lib/wchar.in.h (mbrlen): New declaration.
84012         * lib/mbrlen.c: New file.
84013         * m4/mbrlen.m4: New file.
84014         * modules/mbrlen: New file.
84015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84016         HAVE_MBRLEN.
84017         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84018         HAVE_MBRLEN.
84019         * doc/posix-functions/mbrlen.texi: Document the new module.
84021 2008-12-19  Bruno Haible  <bruno@clisp.org>
84023         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84024         * modules/mbrtowc (Depends-on): Add verify.
84025         Suggested by Paul Eggert.
84027 2008-12-18  Bruno Haible  <bruno@clisp.org>
84029         * modules/mbsinit-tests: New file.
84030         * tests/test-mbsinit.sh: New file.
84031         * tests/test-mbsinit.c: New file.
84033 2008-12-18  Bruno Haible  <bruno@clisp.org>
84035         * modules/mbrtowc-tests: New file.
84036         * tests/test-mbrtowc1.sh: New file.
84037         * tests/test-mbrtowc2.sh: New file.
84038         * tests/test-mbrtowc3.sh: New file.
84039         * tests/test-mbrtowc4.sh: New file.
84040         * tests/test-mbrtowc.c: New file.
84042         New module 'mbrtowc'.
84043         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84044         mbsinit and mbrtowc.
84045         (mbrtowc): New declaration.
84046         * lib/mbrtowc.c: New file.
84047         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84048         * modules/mbrtowc: New file.
84049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84050         HAVE_MBRTOWC.
84051         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84052         HAVE_MBRTOWC.
84053         * doc/posix-functions/mbrtowc.texi: Document the new module.
84055 2008-12-18  Bruno Haible  <bruno@clisp.org>
84057         New module 'wctob'.
84058         * lib/wchar.in.h (wctob): New declaration.
84059         * lib/wctob.c: New file.
84060         * m4/wctob.m4: New file.
84061         * modules/wctob: New file.
84062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84063         HAVE_WCTOB.
84064         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84065         * doc/posix-functions/wctob.texi: Document the new module.
84067 2008-12-18  Bruno Haible  <bruno@clisp.org>
84069         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84070         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84072 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84074         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84075         G. Christensen" <tgc@jupiterrise.com>.
84077         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84078         G. Christensen" <tgc@jupiterrise.com>.
84080         * lib/flock.c: Need to include string.h.  Reported by "Tom
84081         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84082         <ebb9@byu.net>.
84084 2008-12-18  Bruno Haible  <bruno@clisp.org>
84086         * m4/locale-ja.m4: New file, from GNU gettext.
84088 2008-12-17  Bruno Haible  <bruno@clisp.org>
84090         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84091         Suggested by Eric Blake.
84093 2008-12-17  Bruno Haible  <bruno@clisp.org>
84095         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84097 2008-12-17  Bruno Haible  <bruno@clisp.org>
84099         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84100         * modules/mbsinit (Depends-on): Add verify.
84101         Suggested by Paul Eggert.
84103 2008-12-17  Bruno Haible  <bruno@clisp.org>
84105         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84106         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84107         gl_FUNC_MBRTOWC.
84108         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84109         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84110         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84111         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84112         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84113         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84114         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84115         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84116         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84117         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84118         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84119         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84120         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84121         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84122         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84123         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84124         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84125         * modules/trim (configure.ac): Likewise.
84127 2008-12-17  Bruno Haible  <bruno@clisp.org>
84129         * modules/btowc-tests: New file.
84130         * tests/test-btowc1.sh: New file.
84131         * tests/test-btowc2.sh: New file.
84132         * tests/test-btowc.c: New file.
84134         New module 'btowc'.
84135         * lib/wchar.in.h (btowc): New declaration.
84136         * lib/btowc.c: New file.
84137         * m4/btowc.m4: New file.
84138         * modules/btowc: New file.
84139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84140         HAVE_BTOWC.
84141         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84142         * doc/posix-functions/btowc.texi: Document the new module.
84144 2008-12-17  Bruno Haible  <bruno@clisp.org>
84146         New module 'mbsinit'.
84147         * lib/wchar.in.h (mbsinit): New declaration.
84148         * lib/mbsinit.c: New file.
84149         * m4/mbsinit.m4: New file.
84150         * modules/mbsinit: New file.
84151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84152         HAVE_MBSINIT.
84153         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84154         HAVE_MBSINIT.
84155         * doc/posix-functions/mbsinit.texi: Document the new module.
84157 2008-12-16  Bruno Haible  <bruno@clisp.org>
84159         * lib/unistd.in.h: Add comment.
84160         * tests/test-environ.c: Don't include <stdlib.h>.
84162 2008-12-16  Bruno Haible  <bruno@clisp.org>
84164         * lib/parse-duration.h (parse_duration): Document return value
84165         convention.
84166         * lib/parse-duration.c: Include specification header first. Add
84167         comments.
84168         (_): Remove macro.
84169         (parse_year_month_day, parse_hour_minute_second): Move side effects
84170         outside of strchr call.
84171         (parse_non_iso8601): Move side effects outside of isspace call.
84172         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84173         call.
84175 2008-12-16  Bruno Haible  <bruno@clisp.org>
84177         * tests/test-parse-duration.sh: Produce no output when the test
84178         succeeds.
84180 2008-12-16  Bruno Haible  <bruno@clisp.org>
84182         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84183         expressions.
84185 2008-12-15  Bruno Haible  <bruno@clisp.org>
84187         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84188         * doc/glibc-functions/flistxattr.texi: Likewise.
84189         * doc/glibc-functions/fopencookie.texi: Likewise.
84190         * doc/glibc-functions/fremovexattr.texi: Likewise.
84191         * doc/glibc-functions/fsetxattr.texi: Likewise.
84192         * doc/glibc-functions/getxattr.texi: Likewise.
84193         * doc/glibc-functions/lgetxattr.texi: Likewise.
84194         * doc/glibc-functions/listxattr.texi: Likewise.
84195         * doc/glibc-functions/llistxattr.texi: Likewise.
84196         * doc/glibc-functions/lremovexattr.texi: Likewise.
84197         * doc/glibc-functions/lsetxattr.texi: Likewise.
84198         * doc/glibc-functions/removexattr.texi: Likewise.
84199         * doc/glibc-functions/setxattr.texi: Likewise.
84200         * doc/posix-functions/open_memstream.texi: Likewise.
84202 2008-12-15  Eric Blake  <ebb9@byu.net>
84204         Update doc for cygwin 1.7.
84205         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84206         functions.
84207         * doc/posix-functions/fchmodat.texi: Likewise.
84208         * doc/posix-functions/fchownat.texi: Likewise.
84209         * doc/posix-functions/fdopendir.texi: Likewise.
84210         * doc/posix-functions/fmemopen.texi: Likewise.
84211         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84212         * doc/posix-functions/fstatat.texi: Likewise.
84213         * doc/posix-functions/futimens.texi: Likewise.
84214         * doc/posix-functions/gai_strerror.texi: Likewise.
84215         * doc/posix-functions/getaddrinfo.texi: Likewise.
84216         * doc/posix-functions/getnameinfo.texi: Likewise.
84217         * doc/posix-functions/if_freenameindex.texi: Likewise.
84218         * doc/posix-functions/if_indextoname.texi: Likewise.
84219         * doc/posix-functions/if_nameindex.texi: Likewise.
84220         * doc/posix-functions/if_nametoindex.texi: Likewise.
84221         * doc/posix-functions/insque.texi: Likewise.
84222         * doc/posix-functions/linkat.texi: Likewise.
84223         * doc/posix-functions/llrint.texi: Likewise.
84224         * doc/posix-functions/llrintf.texi: Likewise.
84225         * doc/posix-functions/llrintl.texi: Likewise.
84226         * doc/posix-functions/lockf.texi: Likewise.
84227         * doc/posix-functions/lrintl.texi: Likewise.
84228         * doc/posix-functions/mkdirat.texi: Likewise.
84229         * doc/posix-functions/mkfifoat.texi: Likewise.
84230         * doc/posix-functions/mknodat.texi: Likewise.
84231         * doc/posix-functions/mq_close.texi: Likewise.
84232         * doc/posix-functions/mq_getattr.texi: Likewise.
84233         * doc/posix-functions/mq_notify.texi: Likewise.
84234         * doc/posix-functions/mq_open.texi: Likewise.
84235         * doc/posix-functions/mq_receive.texi: Likewise.
84236         * doc/posix-functions/mq_send.texi: Likewise.
84237         * doc/posix-functions/mq_setattr.texi: Likewise.
84238         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84239         * doc/posix-functions/mq_timedsend.texi: Likewise.
84240         * doc/posix-functions/mq_unlink.texi: Likewise.
84241         * doc/posix-functions/open_memstream.texi: Likewise.
84242         * doc/posix-functions/openat.texi: Likewise.
84243         * doc/posix-functions/posix_fadvise.texi: Likewise.
84244         * doc/posix-functions/posix_fallocate.texi: Likewise.
84245         * doc/posix-functions/posix_madvise.texi: Likewise.
84246         * doc/posix-functions/posix_memalign.texi: Likewise.
84247         * doc/posix-functions/posix_openpt.texi: Likewise.
84248         * doc/posix-functions/readlinkat.texi: Likewise.
84249         * doc/posix-functions/remque.texi: Likewise.
84250         * doc/posix-functions/renameat.texi: Likewise.
84251         * doc/posix-functions/rintl.texi: Likewise.
84252         * doc/posix-functions/sem_unlink.texi: Likewise.
84253         * doc/posix-functions/shm_open.texi: Likewise.
84254         * doc/posix-functions/shm_unlink.texi: Likewise.
84255         * doc/posix-functions/signgam.texi: Likewise.
84256         * doc/posix-functions/sigset.texi: Likewise.
84257         * doc/posix-functions/stpcpy.texi: Likewise.
84258         * doc/posix-functions/stpncpy.texi: Likewise.
84259         * doc/posix-functions/strerror.texi: Likewise.
84260         * doc/posix-functions/strtod.texi: Likewise.
84261         * doc/posix-functions/symlinkat.texi: Likewise.
84262         * doc/posix-functions/unlinkat.texi: Likewise.
84263         * doc/posix-functions/utimensat.texi: Likewise.
84264         * doc/glibc-functions/bindresvport.texi: Likewise.
84265         * doc/glibc-functions/dn_expand.texi: Likewise.
84266         * doc/glibc-functions/exp10.texi: Likewise.
84267         * doc/glibc-functions/exp10f.texi: Likewise.
84268         * doc/glibc-functions/fgetxattr.texi: Likewise.
84269         * doc/glibc-functions/flistxattr.texi: Likewise.
84270         * doc/glibc-functions/fopencookie.texi: Likewise.
84271         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84272         * doc/glibc-functions/fremovexattr.texi: Likewise.
84273         * doc/glibc-functions/fsetxattr.texi: Likewise.
84274         * doc/glibc-functions/getifaddrs.texi: Likewise.
84275         * doc/glibc-functions/getxattr.texi: Likewise.
84276         * doc/glibc-functions/lgetxattr.texi: Likewise.
84277         * doc/glibc-functions/listxattr.texi: Likewise.
84278         * doc/glibc-functions/llistxattr.texi: Likewise.
84279         * doc/glibc-functions/lremovexattr.texi: Likewise.
84280         * doc/glibc-functions/lsetxattr.texi: Likewise.
84281         * doc/glibc-functions/pow10.texi: Likewise.
84282         * doc/glibc-functions/pow10f.texi: Likewise.
84283         * doc/glibc-functions/rcmd_af.texi: Likewise.
84284         * doc/glibc-functions/removexattr.texi: Likewise.
84285         * doc/glibc-functions/res_init.texi: Likewise.
84286         * doc/glibc-functions/res_mkquery.texi: Likewise.
84287         * doc/glibc-functions/res_query.texi: Likewise.
84288         * doc/glibc-functions/res_querydomain.texi: Likewise.
84289         * doc/glibc-functions/res_send.texi: Likewise.
84290         * doc/glibc-functions/rresvport_af.texi: Likewise.
84291         * doc/glibc-functions/setxattr.texi: Likewise.
84292         * doc/glibc-functions/strcasestr.texi: Likewise.
84294 2008-12-15  Bruno Haible  <bruno@clisp.org>
84296         Fix compilation error on OSF/1 4.0.
84297         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84298         <sys/time.h>, simply delegate to the system header.
84299         Reported by Daniel Richard G. <oss@teragram.com>.
84301 2008-12-15  Bruno Haible  <bruno@clisp.org>
84303         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84304         * doc/posix-functions/fchmodat.texi: Likewise.
84305         * doc/posix-functions/fchownat.texi: Likewise.
84306         * doc/posix-functions/fdopendir.texi: Likewise.
84307         * doc/posix-functions/fstatat.texi: Likewise.
84308         * doc/posix-functions/mkdirat.texi: Likewise.
84309         * doc/posix-functions/unlinkat.texi: Likewise.
84311 2008-12-14  Bruno Haible  <bruno@clisp.org>
84313         Update doc for POSIX:2008.
84314         * doc/posix-functions/faccessat.texi: New file.
84315         * doc/posix-functions/fchmodat.texi: New file.
84316         * doc/posix-functions/fchownat.texi: New file.
84317         * doc/posix-functions/fdopendir.texi: New file.
84318         * doc/posix-functions/fstatat.texi: New file.
84319         * doc/posix-functions/futimens.texi: New file.
84320         * doc/posix-functions/linkat.texi: New file.
84321         * doc/posix-functions/mkdirat.texi: New file.
84322         * doc/posix-functions/mkfifoat.texi: New file.
84323         * doc/posix-functions/mknodat.texi: New file.
84324         * doc/posix-functions/open_wmemstream.texi: New file.
84325         * doc/posix-functions/openat.texi: New file.
84326         * doc/posix-functions/psiginfo.texi: New file.
84327         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84328         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84329         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84330         * doc/posix-functions/readlinkat.texi: New file.
84331         * doc/posix-functions/renameat.texi: New file.
84332         * doc/posix-functions/strerror_l.texi: New file.
84333         * doc/posix-functions/symlinkat.texi: New file.
84334         * doc/posix-functions/unlinkat.texi: New file.
84335         * doc/posix-functions/utimensat.texi: New file.
84336         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84338 2008-12-14  Bruno Haible  <bruno@clisp.org>
84340         Update doc for POSIX:2008.
84341         * doc/posix-functions/alphasort.texi: Renamed from
84342         doc/glibc-functions/alphasort.texi.
84343         * doc/posix-functions/dirfd.texi: Renamed from
84344         doc/glibc-functions/dirfd.texi.
84345         * doc/posix-functions/dprintf.texi: Renamed from
84346         doc/glibc-functions/dprintf.texi.
84347         * doc/posix-functions/duplocale.texi: Renamed from
84348         doc/glibc-functions/duplocale.texi.
84349         * doc/posix-functions/fexecve.texi: Renamed from
84350         doc/glibc-functions/fexecve.texi.
84351         * doc/posix-functions/fmemopen.texi: Renamed from
84352         doc/glibc-functions/fmemopen.texi.
84353         * doc/posix-functions/freelocale.texi: Renamed from
84354         doc/glibc-functions/freelocale.texi.
84355         * doc/posix-functions/getdate_err.texi: Renamed from
84356         doc/glibc-functions/getdate_err.texi.
84357         * doc/posix-functions/isalnum_l.texi: Renamed from
84358         doc/glibc-functions/isalnum_l.texi.
84359         * doc/posix-functions/isalpha_l.texi: Renamed from
84360         doc/glibc-functions/isalpha_l.texi.
84361         * doc/posix-functions/isblank_l.texi: Renamed from
84362         doc/glibc-functions/isblank_l.texi.
84363         * doc/posix-functions/iscntrl_l.texi: Renamed from
84364         doc/glibc-functions/iscntrl_l.texi.
84365         * doc/posix-functions/isdigit_l.texi: Renamed from
84366         doc/glibc-functions/isdigit_l.texi.
84367         * doc/posix-functions/isgraph_l.texi: Renamed from
84368         doc/glibc-functions/isgraph_l.texi.
84369         * doc/posix-functions/islower_l.texi: Renamed from
84370         doc/glibc-functions/islower_l.texi.
84371         * doc/posix-functions/isprint_l.texi: Renamed from
84372         doc/glibc-functions/isprint_l.texi.
84373         * doc/posix-functions/ispunct_l.texi: Renamed from
84374         doc/glibc-functions/ispunct_l.texi.
84375         * doc/posix-functions/isspace_l.texi: Renamed from
84376         doc/glibc-functions/isspace_l.texi.
84377         * doc/posix-functions/isupper_l.texi: Renamed from
84378         doc/glibc-functions/isupper_l.texi.
84379         * doc/posix-functions/iswalnum_l.texi: Renamed from
84380         doc/glibc-functions/iswalnum_l.texi.
84381         * doc/posix-functions/iswalpha_l.texi: Renamed from
84382         doc/glibc-functions/iswalpha_l.texi.
84383         * doc/posix-functions/iswblank_l.texi: Renamed from
84384         doc/glibc-functions/iswblank_l.texi.
84385         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84386         doc/glibc-functions/iswcntrl_l.texi.
84387         * doc/posix-functions/iswctype_l.texi: Renamed from
84388         doc/glibc-functions/iswctype_l.texi.
84389         * doc/posix-functions/iswdigit_l.texi: Renamed from
84390         doc/glibc-functions/iswdigit_l.texi.
84391         * doc/posix-functions/iswgraph_l.texi: Renamed from
84392         doc/glibc-functions/iswgraph_l.texi.
84393         * doc/posix-functions/iswlower_l.texi: Renamed from
84394         doc/glibc-functions/iswlower_l.texi.
84395         * doc/posix-functions/iswprint_l.texi: Renamed from
84396         doc/glibc-functions/iswprint_l.texi.
84397         * doc/posix-functions/iswpunct_l.texi: Renamed from
84398         doc/glibc-functions/iswpunct_l.texi.
84399         * doc/posix-functions/iswspace_l.texi: Renamed from
84400         doc/glibc-functions/iswspace_l.texi.
84401         * doc/posix-functions/iswupper_l.texi: Renamed from
84402         doc/glibc-functions/iswupper_l.texi.
84403         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84404         doc/glibc-functions/iswxdigit_l.texi.
84405         * doc/posix-functions/isxdigit_l.texi: Renamed from
84406         doc/glibc-functions/isxdigit_l.texi.
84407         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84408         doc/glibc-functions/mbsnrtowcs.texi.
84409         * doc/posix-functions/mkdtemp.texi: Renamed from
84410         doc/glibc-functions/mkdtemp.texi.
84411         * doc/posix-functions/newlocale.texi: Renamed from
84412         doc/glibc-functions/newlocale.texi.
84413         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84414         doc/glibc-functions/nl_langinfo_l.texi.
84415         * doc/posix-functions/open_memstream.texi: Renamed from
84416         doc/glibc-functions/open_memstream.texi.
84417         * doc/posix-functions/opterr.texi: Renamed from
84418         doc/glibc-functions/opterr.texi.
84419         * doc/posix-functions/optind.texi: Renamed from
84420         doc/glibc-functions/optind.texi.
84421         * doc/posix-functions/optopt.texi: Renamed from
84422         doc/glibc-functions/optopt.texi.
84423         * doc/posix-functions/psignal.texi: Renamed from
84424         doc/glibc-functions/psignal.texi.
84425         * doc/posix-functions/scandir.texi: Renamed from
84426         doc/glibc-functions/scandir.texi.
84427         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84428         doc/glibc-functions/sched_get_priority_min.texi.
84429         * doc/posix-functions/signgam.texi: Renamed from
84430         doc/glibc-functions/signgam.texi.
84431         * doc/posix-functions/stpcpy.texi: Renamed from
84432         doc/glibc-functions/stpcpy.texi.
84433         * doc/posix-functions/stpncpy.texi: Renamed from
84434         doc/glibc-functions/stpncpy.texi.
84435         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84436         doc/glibc-functions/strcasecmp_l.texi.
84437         * doc/posix-functions/strcoll_l.texi: Renamed from
84438         doc/glibc-functions/strcoll_l.texi.
84439         * doc/posix-functions/strfmon_l.texi: Renamed from
84440         doc/glibc-functions/strfmon_l.texi.
84441         * doc/posix-functions/strftime_l.texi: Renamed from
84442         doc/glibc-functions/strftime_l.texi.
84443         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84444         doc/glibc-functions/strncasecmp_l.texi.
84445         * doc/posix-functions/strndup.texi: Renamed from
84446         doc/glibc-functions/strndup.texi.
84447         * doc/posix-functions/strnlen.texi: Renamed from
84448         doc/glibc-functions/strnlen.texi.
84449         * doc/posix-functions/strsignal.texi: Renamed from
84450         doc/glibc-functions/strsignal.texi.
84451         * doc/posix-functions/strxfrm_l.texi: Renamed from
84452         doc/glibc-functions/strxfrm_l.texi.
84453         * doc/posix-functions/timer_gettime.texi: Renamed from
84454         doc/glibc-functions/timer_gettime.texi.
84455         * doc/posix-functions/tolower_l.texi: Renamed from
84456         doc/glibc-functions/tolower_l.texi.
84457         * doc/posix-functions/toupper_l.texi: Renamed from
84458         doc/glibc-functions/toupper_l.texi.
84459         * doc/posix-functions/towctrans_l.texi: Renamed from
84460         doc/glibc-functions/towctrans_l.texi.
84461         * doc/posix-functions/towlower_l.texi: Renamed from
84462         doc/glibc-functions/towlower_l.texi.
84463         * doc/posix-functions/towupper_l.texi: Renamed from
84464         doc/glibc-functions/towupper_l.texi.
84465         * doc/posix-functions/uselocale.texi: Renamed from
84466         doc/glibc-functions/uselocale.texi.
84467         * doc/posix-functions/vdprintf.texi: Renamed from
84468         doc/glibc-functions/vdprintf.texi.
84469         * doc/posix-functions/wcpcpy.texi:
84470         Renamed from doc/glibc-functions/wcpcpy.texi.
84471         * doc/posix-functions/wcpncpy.texi: Renamed from
84472         doc/glibc-functions/wcpncpy.texi.
84473         * doc/posix-functions/wcscasecmp.texi: Renamed from
84474         doc/glibc-functions/wcscasecmp.texi.
84475         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84476         doc/glibc-functions/wcscasecmp_l.texi.
84477         * doc/posix-functions/wcscoll_l.texi: Renamed from
84478         doc/glibc-functions/wcscoll_l.texi.
84479         * doc/posix-functions/wcsdup.texi: Renamed from
84480         doc/glibc-functions/wcsdup.texi.
84481         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84482         doc/glibc-functions/wcsncasecmp.texi.
84483         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84484         doc/glibc-functions/wcsncasecmp_l.texi.
84485         * doc/posix-functions/wcsnlen.texi: Renamed from
84486         doc/glibc-functions/wcsnlen.texi.
84487         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84488         doc/glibc-functions/wcsnrtombs.texi.
84489         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84490         doc/glibc-functions/wcsxfrm_l.texi.
84491         * doc/posix-functions/wctrans_l.texi: Renamed from
84492         doc/glibc-functions/wctrans_l.texi.
84493         * doc/posix-functions/wctype_l.texi: Renamed from
84494         doc/glibc-functions/wctype_l.texi.
84495         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84496         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84497         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84498         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84499         these subsections.
84500         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84501         Remove sections.
84503 2008-12-14  Bruno Haible  <bruno@clisp.org>
84505         Update doc for POSIX:2008.
84506         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84508 2008-12-14  Bruno Haible  <bruno@clisp.org>
84510         Update doc for POSIX:2008.
84511         * doc/pastposix-functions/bcmp.texi: Renamed from
84512         doc/posix-functions/bcmp.texi.
84513         * doc/pastposix-functions/bcopy.texi: Renamed from
84514         doc/posix-functions/bcopy.texi.
84515         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84516         doc/posix-functions/bsd_signal.texi.
84517         * doc/pastposix-functions/bzero.texi: Renamed from
84518         doc/posix-functions/bzero.texi.
84519         * doc/pastposix-functions/ecvt.texi: Renamed from
84520         doc/posix-functions/ecvt.texi.
84521         * doc/pastposix-functions/fcvt.texi: Renamed from
84522         doc/posix-functions/fcvt.texi.
84523         * doc/pastposix-functions/ftime.texi: Renamed from
84524         doc/posix-functions/ftime.texi.
84525         * doc/pastposix-functions/gcvt.texi: Renamed from
84526         doc/posix-functions/gcvt.texi.
84527         * doc/pastposix-functions/getcontext.texi: Renamed from
84528         doc/posix-functions/getcontext.texi.
84529         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84530         doc/posix-functions/gethostbyaddr.texi.
84531         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84532         doc/posix-functions/gethostbyname.texi.
84533         * doc/pastposix-functions/getwd.texi: Renamed from
84534         doc/posix-functions/getwd.texi.
84535         * doc/pastposix-functions/h_errno.texi: Renamed from
84536         doc/posix-functions/h_errno.texi.
84537         * doc/pastposix-functions/index.texi: Renamed from
84538         doc/posix-functions/index.texi.
84539         * doc/pastposix-functions/makecontext.texi: Renamed from
84540         doc/posix-functions/makecontext.texi.
84541         * doc/pastposix-functions/mktemp.texi: Renamed from
84542         doc/posix-functions/mktemp.texi.
84543         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84544         doc/posix-functions/pthread_attr_getstackaddr.texi.
84545         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84546         doc/posix-functions/pthread_attr_setstackaddr.texi.
84547         * doc/pastposix-functions/rindex.texi: Renamed from
84548         doc/posix-functions/rindex.texi.
84549         * doc/pastposix-functions/scalb.texi: Renamed from
84550         doc/posix-functions/scalb.texi.
84551         * doc/pastposix-functions/setcontext.texi: Renamed from
84552         doc/posix-functions/setcontext.texi.
84553         * doc/pastposix-functions/swapcontext.texi: Renamed from
84554         doc/posix-functions/swapcontext.texi.
84555         * doc/pastposix-functions/ualarm.texi: Renamed from
84556         doc/posix-functions/ualarm.texi.
84557         * doc/pastposix-functions/usleep.texi: Renamed from
84558         doc/posix-functions/usleep.texi.
84559         * doc/pastposix-functions/vfork.texi: Renamed from
84560         doc/posix-functions/vfork.texi.
84561         * doc/pastposix-functions/wcswcs.texi: Renamed from
84562         doc/posix-functions/wcswcs.texi.
84563         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84564         (Function Substitutes): Update.
84566 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84568         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84569         m4/strerror.m4.
84571 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84572             Bruno Haible  <bruno@clisp.org>
84574         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84576 2008-12-13  Bruno Haible  <bruno@clisp.org>
84578         * modules/strtoull (Depends-on): Remove unistd.
84580 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84582         * modules/strtoull (Depends-on): Add stdlib.
84584 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84586         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
84588 2008-12-10  Jim Meyering  <meyering@redhat.com>
84590         gl_ASSERT: don't say assertions are disabled when they're not
84591         * m4/assert.m4 (gl_ASSERT): Do not make configure report
84592         "checking whether to enable assertions... no", when they are in
84593         fact enabled.  This is solely a bug in the output of configure.
84594         In spite of saying "no", NDEBUG was not defined in that case.
84595         Also, as noted by Eric Blake, leave assertions enabled upon
84596         --enable-assert=INVALID.
84598 2008-12-10  Bruno Haible  <bruno@clisp.org>
84600         Change MODULES.html to refer to POSIX:2008 where possible.
84601         * MODULES.html.sh (POSIX2008_URL): New variable.
84602         (posix_headers): Remove sys/timeb, ucontext.
84603         (posix2001_headers): New variable.
84604         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
84605         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
84606         index, makecontext, mktemp, pthread_attr_getstackaddr,
84607         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
84608         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
84609         (posix2001_functions): New variable.
84610         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
84611         otherwise.
84613 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84615         add missing include to parse-duration.c
84616         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
84617         * modules/parse-duration (Depends-on): Add xalloc.
84619         fix sed script reading maint.mk
84620         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
84621         (syntax-check-rules): Use it.
84623 2008-12-09  Bruno Haible  <bruno@clisp.org>
84625         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
84626         MacOS X 10.4/PowerPC.
84627         Reported by Simon Josefsson.
84629 2008-12-08  Jim Meyering  <meyering@redhat.com>
84631         work around mingw's lack of some S_IF definitions
84632         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
84633         Reported by Simon Josefsson.
84635 2008-12-08  Bruno Haible  <bruno@clisp.org>
84637         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
84638         applied to variables. Needed on MacOS X 10.4/PowerPC.
84639         Reported by Simon Josefsson.
84641 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
84642         and Eric Blake  <ebb9@byu.net>
84644         assert: honor --enable-assert
84645         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
84646         order to honor --enable-assert, rather than treating it as a
84647         synonym for --disable-assert.
84649 2008-12-08  Jim Meyering  <meyering@redhat.com>
84651         * lib/posixtm.c: Remove now-useless declaration of mktime.
84653         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
84655 2008-12-07  Bruno Haible  <bruno@clisp.org>
84657         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
84658         test_once): Mark functions as static.
84659         * tests/test-tls.c (test_tls): Likewise.
84661 2008-12-07  Bruno Haible  <bruno@clisp.org>
84663         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
84664         iconv_register_autodetect.
84666 2008-12-07  Jim Meyering  <meyering@redhat.com>
84668         posixtm.c: avoid a warning
84669         * lib/posixtm.c (posixtime): Don't initialize tm0.
84670         It's no longer needed to placate gcc4's -Wuninitialized,
84671         and the attempt to placate would elicit a new warning.
84673         unicodeio.c: mark unused parameters
84674         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84675         (fallback_failure_callback): Likewise.
84677 2008-12-07  Bruno Haible  <bruno@clisp.org>
84679         * gnulib-tool (func_create_testdir): When building the tests
84680         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
84681         Reported by Simon Josefsson.
84683 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84685         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
84687 2008-12-06  Bruno Haible  <bruno@clisp.org>
84689         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
84690         Suggested by Eric Blake.
84692 2008-12-06  Bruno Haible  <bruno@clisp.org>
84694         Fix a c-stack test failure on MacOS X.
84695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
84696         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
84697         handler for SIGBUS as well.
84698         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
84699         install a signal handler for SIGBUS as well.
84700         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
84702 2008-12-06  Bruno Haible  <bruno@clisp.org>
84704         Advocacy documentation.
84705         * doc/gnulib-intro.texi (Benefits): New section.
84706         * doc/gnulib.texi: Update.
84708 2008-12-06  Bruno Haible  <bruno@clisp.org>
84710         Document the 'manywarnings' module.
84711         * doc/manywarnings.texi: New file.
84712         * doc/gnulib.texi: Include it.
84714 2008-12-05  Eric Blake  <ebb9@byu.net>
84716         tests: silence some gcc warnings
84717         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
84718         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
84719         type mismatches.
84721 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84722             Bruno Haible  <bruno@clisp.org>
84724         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
84726 2008-11-29  Jim Meyering  <meyering@redhat.com>
84728         unicodeio.c: mark unused parameters
84729         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84730         (fallback_failure_callback): Likewise.
84732         fts: fix a thinko
84733         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
84734         (set_stat_type): Return S_IF*-valued "type" directly.
84735         Prompted by James Youngman's spotting a related bug.
84736         Confirmed by further testing through find.
84738         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
84739         * lib/fts.c (D_TYPE): Define.
84740         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
84741         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
84742         (s_ifmt_shift_bits): New function.
84743         (set_stat_type): New function.
84744         (fts_build): When not calling fts_stat, call set_stat_type
84745         to propagate dirent.d_type info to fts_read caller.
84746         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
84747         fts_statp->st_mode type information may be valid.
84749 2008-11-28  Simon Josefsson  <simon@josefsson.org>
84751         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
84752         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
84753         <sds@gnu.org>.
84755 2008-11-20  Bruno Haible  <bruno@clisp.org>
84757         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
84758         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
84759         INCLUDE_NEXT.
84760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
84761         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
84762         * modules/math (Makefile.am): Substitute
84763         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
84764         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84766 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
84767             Bruno Haible  <bruno@clisp.org>
84769         * lib/stdint.in.h: Define all type macros so that their expansion is
84770         a single typedef'ed token. Fixes a compilation failure in Boost which
84771         does "using ::int8_t;".
84773 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84775         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
84776         gl_MANYWARN_ALL_GCC.
84777         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
84778         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
84779         * modules/manywarnings: New file.
84780         * MODULES.html.sh: Mention manywarnings module.
84782 2008-11-18  Bruno Haible  <bruno@clisp.org>
84784         * doc/gnulib-tool.texi (Unit tests): New section.
84786 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84788         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
84789         paths like 'lib/po/foo.po'.
84791 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84793         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
84794         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
84796 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84798         * m4/warnings.m4: Use CPPFLAGS to really check whether the
84799         parameter works.
84801 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84803         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
84805 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84807         * modules/parse-duration-tests: New file.
84808         * tests/test-parse-duration.sh: New file.
84809         * tests/test-parse-duration.c: New file.
84811         New module 'parse-duration'.
84812         * lib/parse-duration.h: New file.
84813         * lib/parse-duration.c: New file.
84814         * modules/parse-duration: New file.
84816 2008-11-17  Bruno Haible  <bruno@clisp.org>
84818         * tests/test-select-out.sh: Comment out the first pipe test.
84819         Reported by Simon Josefsson.
84821 2008-11-17  Bruno Haible  <bruno@clisp.org>
84823         * modules/getaddrinfo (Depends-on): Add servent, hostent.
84824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
84825         gl_HOSTENT.
84827 2008-11-17  Bruno Haible  <bruno@clisp.org>
84829         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
84830         -lnetwork and -lnet. Needed for Haiku and BeOS.
84832 2008-11-16  Bruno Haible  <bruno@clisp.org>
84834         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
84836 2008-11-16  Bruno Haible  <bruno@clisp.org>
84838         Avoid test failure on Haiku.
84839         * tests/test-fsync.c: Include <errno.h>.
84840         (main): Don't require that fsync (0) fails.
84842 2008-11-15  Bruno Haible  <bruno@clisp.org>
84844         New module 'hostent'.
84845         * modules/hostent: New file.
84846         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
84848 2008-11-15  Bruno Haible  <bruno@clisp.org>
84850         New module 'servent'.
84851         * modules/servent: New file.
84852         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
84854 2008-11-15  Bruno Haible  <bruno@clisp.org>
84856         Avoid generating same test program with two different rules.
84857         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
84858         test-frexp to test-frexp-nolibm.
84859         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
84860         test-frexpl to test-frexpl-nolibm.
84862 2008-11-15  Bruno Haible  <bruno@clisp.org>
84864         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
84865         $(FREXPL_LIBM).
84867 2008-11-15  Bruno Haible  <bruno@clisp.org>
84869         * lib/netdb.in.h: Activate the definitions also when the system's
84870         <netdb.h> has 'struct addrinfo'.
84871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
84872         EAI_OVERFLOW or AI_NUMERICSERV.
84873         * doc/posix-headers/netdb.texi: Document the problem.
84875 2008-11-15  Bruno Haible  <bruno@clisp.org>
84877         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
84879         Make the 'sched' module work on platforms where <sched.h> exists but
84880         is incomplete (such as Haiku).
84881         * lib/sched.in.h; Include the system's <sched.h> if it exists.
84882         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
84883         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
84884         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
84885         HAVE_STRUCT_SCHED_PARAM.
84886         * modules/sched (Depends-on): Add include_next.
84887         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
84888         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
84889         * doc/posix-headers/sched.texi: Document the issue.
84891 2008-11-13  Jim Meyering  <meyering@redhat.com>
84893         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
84894         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
84895         test would fail due to the difference in the Report bugs to ...
84896         line.  The expected address is empty, "<>", while the actual
84897         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
84899 2008-11-12  Bruno Haible  <bruno@clisp.org>
84901         lstat: don't compile lstat.c on systems lacking lstat
84902         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
84903         which don't have lstat; this is handled by lib/sys_stat.in.h already.
84904         Reported by Daniel P. Berrange via Jim Meyering.
84906 2008-11-12  Jim Meyering  <meyering@redhat.com>
84908         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
84910 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84912         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
84913         instead.
84915 2008-11-12  Bruno Haible  <bruno@clisp.org>
84917         * lib/unicodeio.c: Include unistr.h.
84918         (utf8_wctomb): Remove function.
84919         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
84921 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84923         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
84924         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
84925         <bruno@clisp.org>.
84926         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
84928 2008-11-12  Simon Josefsson  <simon@josefsson.org>
84930         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
84931         * doc/gnulib.texi: Add section for warnings.
84933 2008-11-11  Bruno Haible  <bruno@clisp.org>
84935         * lib/sockets.h: Add a comment.
84937 2008-11-11  Karl Berry  <karl@gnu.org>
84939         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
84941 2008-11-11  Eric Blake  <ebb9@byu.net>
84943         fdl.texi: avoid git symlinks
84944         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
84946 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84948         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
84950 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84952         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
84953         (gl_WARN_ADD): Substitute $2 if literal.
84955 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84957         * m4/warning.m4: Remove.
84959 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
84961         * m4/warnings.m4: Almost complete rewrite. :-)
84963 2008-11-10  Simon Josefsson  <simon@josefsson.org>
84965         * modules/warnings: New module.
84966         * m4/warnings.m4: New file.
84967         * MODULES.html.sh: Mention warnings module.
84968         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
84969         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84971 2008-11-10  Eric Blake  <ebb9@byu.net>
84973         fdl.texi: make a symlink to the latest version
84974         * doc/standards.texi: Revert today's earlier change.
84975         * doc/fdl-1.2.texi: Rename from old fdl.texi...
84976         * doc/fdl.texi: ...and replace this with a symlink to the newer
84977         fdl-1.3.texi.
84979 2008-11-10  Bruno Haible  <bruno@clisp.org>
84981         * tests/test-select-fd.c (main): Accept the result file name as fourth
84982         argument.
84983         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
84984         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
84986 2008-11-10  Bruno Haible  <bruno@clisp.org>
84988         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
84989         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
84990         as autoconf-substituted macros.
84991         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
84992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
84993         gl_NETDB_H_DEFAULTS. Set these variables.
84994         * modules/netdb (Makefile.am): Substitute these variables.
84996 2008-11-10  Eric Blake  <ebb9@byu.net>
84998         standards.texi: include correct file for FDL 1.3
84999         * doc/standards.texi (GNU Free Documentation License): Change
85000         include file to pull in FDL 1.3, not 1.2.
85002         fdl.texi: revert accidental change to license
85003         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85005 2008-11-10  Bruno Haible  <bruno@clisp.org>
85007         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85008         cross-compiling guesses also when the native compile gives no result.
85010 2008-11-10  Bruno Haible  <bruno@clisp.org>
85012         * lib/spawni.c (__spawni): Force variable into the stack.
85014 2008-11-10  Bruno Haible  <bruno@clisp.org>
85016         Add support for Haiku.
85017         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85018         glibc and BeOS, but also on Haiku.
85019         * lib/fpurge.c (fpurge): Likewise.
85020         * lib/freadable.c (freadable): Likewise.
85021         * lib/freadahead.c (freadahead): Likewise.
85022         * lib/freading.c (freading): Likewise.
85023         * lib/freadptr.c (freadptr): Likewise.
85024         * lib/freadseek.c (freadptrinc): Likewise.
85025         * lib/fseeko.c (rpl_fseeko): Likewise.
85026         * lib/fseterr.c (fseterr): Likewise.
85027         * lib/fwritable.c (fwritable): Likewise.
85028         * lib/fwriting.c (fwriting): Likewise.
85029         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85031 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85033         * lib/config.charset: Treat Haiku like BeOS.
85035 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85037         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85038         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85040 2008-11-08  Bruno Haible  <bruno@clisp.org>
85042         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85043         AC_CACHE_CHECK.
85045 2008-11-08  Bruno Haible  <bruno@clisp.org>
85047         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85049 2008-11-08  Bruno Haible  <bruno@clisp.org>
85051         * tests/test-select-fd.c: New file.
85052         * tests/test-select-in.sh: New file.
85053         * tests/test-select-out.sh: New file.
85054         * tests/test-select-stdin.c: New file.
85055         * modules/select-tests (Files): Add the new files.
85056         (Depends-on): Add gettimeofday.
85057         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85058         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85059         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85061 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85062             Bruno Haible  <bruno@clisp.org>
85064         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85066 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85068         * build-aux/pmccabe2html: Added support for C++ source files.
85070 2008-11-05  Ben Pfaff  <blp@gnu.org>
85072         Fix lib/close.c build on Windows.
85073         * modules/close (Files): Add lib/w32sock.h.
85075 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85077         Accept Bison's NEWS format.
85078         * build-aux/announce-gen (print_news_deltas): Tweak
85079         $re_prefix.
85081 2008-11-04  Bruno Haible  <bruno@clisp.org>
85083         * modules/random_r (Maintainer): Add glibc.
85085 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85087         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85088         by karl@freefriends.org (Karl Berry).
85089         * doc/alloca.texi: Likewise.
85090         * doc/c-ctype.texi: Likewise.
85091         * doc/c-strcase.texi: Likewise.
85092         * doc/c-strcaseeq.texi: Likewise.
85093         * doc/c-strcasestr.texi: Likewise.
85094         * doc/c-strstr.texi: Likewise.
85095         * doc/c-strtod.texi: Likewise.
85096         * doc/c-strtold.texi: Likewise.
85097         * doc/ctime.texi: Likewise.
85098         * doc/error.texi: Likewise.
85099         * doc/fdl.texi: Likewise.
85100         * doc/gcd.texi: Likewise.
85101         * doc/getdate.texi: Likewise.
85102         * doc/gnulib-intro.texi: Likewise.
85103         * doc/gnulib-tool.texi: Likewise.
85104         * doc/gnulib.texi: Likewise.
85105         * doc/inet_ntoa.texi: Likewise.
85106         * doc/maintain.texi: Likewise.
85107         * doc/make-stds.texi: Likewise.
85108         * doc/quote.texi: Likewise.
85109         * doc/regexprops-generic.texi: Likewise.
85110         * doc/standards.texi: Likewise.
85111         * doc/verify.texi: Likewise.
85112         * doc/visibility.texi: Likewise.
85113         * doc/gnulib.texi (GNU Free Documentation License): Include
85114         fdl-1.3.texi instead of fdl.texi.
85116 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85118         * doc/fdl-1.3.texi: New file, from
85119         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85120         * modules/fdl-1.3: Add.
85121         * MODULES.html.sh: Add fdl-1.3.
85123 2008-11-03  Bruno Haible  <bruno@clisp.org>
85125         Make determination of absolute name of header file work with AIX xlc.
85126         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85127         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85128         preprocessing.
85129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85130         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85132 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85134         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85135         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85136         <ludo@gnu.org>.
85138 2008-11-02  Bruno Haible  <bruno@clisp.org>
85140         Mark 'strpbrk' obsolete.
85141         * modules/strpbrk (Status, Notice): New sections.
85142         * modules/strtok_r (Depends-on): Add strpbrk.
85144 2008-11-02  Bruno Haible  <bruno@clisp.org>
85146         Mark 'strdup' obsolete.
85147         * modules/strdup (Status, Notice): New sections.
85148         * modules/findprog (Depends-on): Add strdup.
85149         * modules/getaddrinfo (Depends-on): Likewise.
85150         * modules/localename (Depends-on): Likewise.
85151         * modules/relocatable-lib (Depends-on): Likewise.
85152         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85153         * modules/relocatable-prog (Depends-on): Likewise.
85154         * modules/trim (Depends-on): Likewise.
85155         * modules/unictype/gen-ctype (Depends-on): Likewise.
85156         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85158 2008-11-02  Bruno Haible  <bruno@clisp.org>
85160         Mark 'strcspn' obsolete.
85161         * modules/strcspn (Status, Notice): New sections.
85163 2008-11-02  Bruno Haible  <bruno@clisp.org>
85165         Mark 'rmdir' obsolete.
85166         * modules/rmdir (Status, Notice): New sections.
85167         * modules/clean-temp (Depends-on): Add rmdir.
85168         * modules/openat (Depends-on): Likewise.
85170 2008-11-02  Bruno Haible  <bruno@clisp.org>
85172         Mark 'raise' obsolete.
85173         * modules/raise (Status, Notice): New sections.
85174         (Include): Specify <signal.h>.
85175         * modules/stdio (Depends-on): Add raise.
85176         * modules/write (Depends-on): Likewise.
85178 2008-11-02  Bruno Haible  <bruno@clisp.org>
85180         Mark 'memset' obsolete.
85181         * modules/memset (Status, Notice): New sections.
85183 2008-11-02  Bruno Haible  <bruno@clisp.org>
85185         Mark 'memmove' obsolete.
85186         * modules/memmove (Status, Notice): New sections.
85187         * modules/argp (Depends-on): Add memmove.
85188         * modules/argz (Depends-on): Likewise.
85189         * modules/canonicalize (Depends-on): Likewise.
85190         * modules/canonicalize-lgpl (Depends-on): Likewise.
85191         * modules/fts (Depends-on): Likewise.
85192         * modules/getcwd (Depends-on): Likewise.
85193         * modules/human (Depends-on): Likewise.
85194         * modules/regex (Depends-on): Likewise.
85195         * modules/striconveh (Depends-on): Likewise.
85196         * modules/trim (Depends-on): Likewise.
85197         * modules/unistr/u8-move (Depends-on): Likewise.
85198         * modules/unistr/u16-move (Depends-on): Likewise.
85199         * modules/unistr/u32-move (Depends-on): Likewise.
85201 2008-11-02  Bruno Haible  <bruno@clisp.org>
85203         Mark 'memcpy' obsolete.
85204         * modules/memcpy (Status, Notice): New sections.
85206 2008-11-02  Bruno Haible  <bruno@clisp.org>
85208         Mark 'memcmp' obsolete.
85209         * modules/memcmp (Status, Notice): New sections.
85210         * modules/argmatch (Depends-on): Add memchr.
85211         * modules/backupfile (Depends-on): Likewise.
85212         * modules/c-strcasestr (Depends-on): Likewise.
85213         * modules/crypto/des (Depends-on): Likewise.
85214         * modules/csharpcomp (Depends-on): Likewise.
85215         * modules/fnmatch (Depends-on): Likewise.
85216         * modules/git-merge-changelog (Depends-on): Likewise.
85217         * modules/isnand (Depends-on): Likewise.
85218         * modules/isnand-nolibm (Depends-on): Likewise.
85219         * modules/isnanf (Depends-on): Likewise.
85220         * modules/isnanf-nolibm (Depends-on): Likewise.
85221         * modules/isnanl (Depends-on): Likewise.
85222         * modules/isnanl-nolibm (Depends-on): Likewise.
85223         * modules/mbchar (Depends-on): Likewise.
85224         * modules/memcoll (Depends-on): Likewise.
85225         * modules/quotearg (Depends-on): Likewise.
85226         * modules/regex (Depends-on): Likewise.
85227         * modules/relocatable-prog (Depends-on): Likewise.
85228         * modules/same (Depends-on): Likewise.
85229         * modules/signbit (Depends-on): Likewise.
85230         * modules/strcasestr-simple (Depends-on): Likewise.
85231         * modules/unictype/gen-ctype (Depends-on): Likewise.
85232         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85233         * modules/uniname/uniname (Depends-on): Likewise.
85234         * modules/unistr/u8-cmp (Depends-on): Likewise.
85236 2008-11-02  Bruno Haible  <bruno@clisp.org>
85238         Mark 'memchr' obsolete.
85239         * modules/memchr (Status, Notice): New sections.
85240         * modules/argp (Depends-on): Add memchr.
85241         * modules/base64 (Depends-on): Likewise.
85242         * modules/c-strcasestr (Depends-on): Likewise.
85243         * modules/chdir-long (Depends-on): Likewise.
85244         * modules/fnmatch (Depends-on): Likewise.
85245         * modules/getsubopt (Depends-on): Likewise.
85246         * modules/git-merge-changelog (Depends-on): Likewise.
85247         * modules/glob (Depends-on): Likewise.
85248         * modules/strcasestr-simple (Depends-on): Likewise.
85249         * modules/strnlen (Depends-on): Likewise.
85251 2008-11-02  Bruno Haible  <bruno@clisp.org>
85253         Mark 'atexit' obsolete.
85254         * modules/atexit (Status, Notice): New sections.
85255         * modules/chdir-long (Depends-on): Add atexit.
85256         * modules/wait-process (Depends-on): Likewise.
85258 2008-11-02  Bruno Haible  <bruno@clisp.org>
85260         * gnulib-tool: New option --with-obsolete.
85261         (func_usage): Document it.
85262         (func_modules_transitive_closure): Drop obsolete dependencies if
85263         incobsolete is not true.
85264         (func_import): Read and save the incobsolete variable to the cache.
85266 2008-11-02  Bruno Haible  <bruno@clisp.org>
85268         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85269         * gnulib-tool: New option --extract-status.
85270         (func_usage): Document it.
85271         (sed_extract_prog): Recognize it.
85272         (func_get_status): New function.
85274 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85276         * modules/sockets (License): Change from LGPL to LGPLv2+.
85278 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85280         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85282 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85284         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85285         Mention times and sys_times.
85286         * modules/sys_times, modules/sys_times-tests: New modules.
85287         * modules/times, modules/times-tests: Likewise
85288         * m4/sys_times_h.m4: New file.
85289         * lib/sys_times.in.h: Likewise
85290         * lib/times.c: Likewise.
85291         * tests/test-sys_times.c: Likewise.
85292         * tests/test-times.c: Likewise.
85293         * doc/posix-headers/sys_times.texi: Update.
85294         * doc/posix-functions/times.texi: Update.
85296 2008-10-28  Jim Meyering  <meyering@redhat.com>
85298         * modules/tempname (Depends-on): Add lstat.
85300         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85302 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85304         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85305         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85306         using idiom used elsewhere in gnulib.
85308 2008-10-27  Jim Meyering  <meyering@redhat.com>
85310         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85312 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85314         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85315         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85316         programs.
85317         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85319 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85321         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85323 2008-10-27  Bruno Haible  <bruno@clisp.org>
85325         * tests/test-lstat.c: Include <stdio.h>.
85327 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85329         * modules/lstat-tests: New module.
85330         * tests/test-lstat.c: New file.
85332 2008-10-26  Jim Meyering  <meyering@redhat.com>
85334         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85336 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85337             Bruno Haible  <bruno@clisp.org>
85339         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85340         * modules/configmake (Include): Add a note that the include must come
85341         after all system headers.
85342         * lib/javaversion.c: Include configmake.h after all other includes.
85344 2008-10-26  Bruno Haible  <bruno@clisp.org>
85346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85347         HAVE_STRUCT_RANDOM_DATA to 1.
85348         (gl_STDLIB_H): Simplify.
85350 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85352         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85353         substitute HAVE_STRUCT_RANDOM_DATA.
85354         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85355         random_data.
85356         * modules/stdlib (Makefile.am): Substitute
85357         HAVE_STRUCT_RANDOM_DATA.
85359 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85361         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85362         * doc/gnulib-intro.texi (Copyright): Likewise.
85364 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85366         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85367         findings.
85369 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85370             Bruno Haible  <bruno@clisp.org>
85372         * lib/unistd.in.h: Include <winsock2.h>.
85373         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85374         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85375         Provide dummy declarations.
85376         (gethostname): Override.
85377         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85378         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85379         gl_PREREQ_SYS_H_WINSOCK2.
85380         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85381         * doc/posix-functions/gethostname.texi: More details.
85383 2008-10-25  Bruno Haible  <bruno@clisp.org>
85385         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85386         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85387         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85389         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85390         here ...
85391         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85392         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85393         gl_UNISTD_H_DEFAULTS.
85395 2008-10-25  Eric Blake  <ebb9@byu.net>
85397         signbit: avoid spurious compiler failure
85398         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85399         declarations inside function.
85401 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85402             Bruno Haible  <bruno@clisp.org>
85404         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85405         * modules/random_r (Depends-on): Add stdint.
85407 2008-10-24  Bruno Haible  <bruno@clisp.org>
85409         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85410         Eggert.
85411         * modules/strerror (License): Likewise.
85413 2008-10-24  Jim Meyering  <meyering@redhat.com>
85415         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85416         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85418 2008-10-24  Eric Blake  <ebb9@byu.net>
85420         getgroups: fix compilation when getgroups is available
85421         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85422         but with <config.h> override of getgroups disabled.
85424 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85426         * doc/gnulib.texi (Header files): Add note about C++ problems.
85427         Explained by Bruno Haible <bruno@clisp.org>.
85429 2008-10-23  Bruno Haible  <bruno@clisp.org>
85431         Define a dummy SA_NODEFER macro on Interix.
85432         * lib/signal.in.h (SA_NODEFER): Define fallback.
85433         Reported by Aleksey Cheusov <cheusov@tut.by> via
85434         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85436 2008-10-23  Bruno Haible  <bruno@clisp.org>
85438         * modules/freadahead (License): Change to LGPLv2+.
85439         Suggested by Simon Josefsson.
85441 2008-10-23  Jim Meyering  <meyering@redhat.com>
85443         random_r: new module
85444         * modules/random_r: New file.
85445         * m4/random_r.m4: New file.
85446         * lib/random_r.c: New file, from glibc.
85447         * modules/random_r-tests: New file.
85448         * tests/test-random_r.c: New file.
85449         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85450          Declare.
85451         (RAND_MAX): Define.
85452         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85453         * modules/stdlib: Substitute them, too.
85454         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85455         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85456         * doc/glibc-functions/random_r.texi: Likewise.
85457         * doc/glibc-functions/setstate_r.texi: Likewise.
85458         * doc/glibc-functions/srandom_r.texi: Likewise.
85459         * config/srclist.txt: Mention it.
85461 2008-10-23  David Lutterkort  <lutter@redhat.com>
85463         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85464         link requirement
85466 2008-10-23  Jim Meyering  <meyering@redhat.com>
85468         selinux-h: mark parameters of stub functions as intentionally unused
85469         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85470         * lib/se-context.in.h: Likewise.
85472 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85474         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85476 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85478         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85480 2008-10-22  Eric Blake  <ebb9@byu.net>
85482         glthread/thread: avoid compiler warning
85483         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85484         Add unreachable abort to silence compiler.
85486 2008-10-22  Eric Blake  <ebb9@byu.net>
85488         netdb: also supply struct addrinfo for cygwin 1.5.x
85489         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85490         older cygwin.
85491         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85492         cygwin.
85493         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85495 2008-10-22  Bruno Haible  <bruno@clisp.org>
85497         * users.txt: Update entry about pspp.
85499 2008-10-21  Bruno Haible  <bruno@clisp.org>
85501         Simplification.
85502         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85503         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85505         Simplification.
85506         * lib/ioctl.c (ioctl): Don't undefine.
85507         * lib/socket.c (socket): Don't undefine.
85509         Remove unused module indicator macros.
85510         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85511         GNULIB_$1 as a C macro.
85513         * doc/posix-functions/close.texi: Undo last change.
85514         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85515         Windows platforms.
85517 2008-10-21  Bruno Haible  <bruno@clisp.org>
85519         Add gethostname() declaration to <unistd.h>.
85520         * lib/unistd.in.h (gethostname): New declaration.
85521         * lib/gethostname.c: Include <unistd.h>.
85522         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85523         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85525         and HAVE_GETHOSTNAME.
85526         * modules/gethostname (Depends-on): Add unistd.
85527         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85528         (Include): Specify <unistd.h>.
85529         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85530         HAVE_GETHOSTNAME.
85531         * tests/test-gethostname.c: Include <unistd.h> first.
85533 2008-10-21  Bruno Haible  <bruno@clisp.org>
85535         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85536         * modules/select-tests (Depends-on): Likewise.
85537         Reported by Simon Josefsson.
85539 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85541         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85542         * lib/accept.c: New file, based on winsock.c.
85543         * lib/bind.c: New file, based on winsock.c.
85544         * lib/connect.c: New file, based on winsock.c.
85545         * lib/getpeername.c: New file, based on winsock.c.
85546         * lib/getsockname.c: New file, based on winsock.c.
85547         * lib/getsockopt.c: New file, based on winsock.c.
85548         * lib/ioctl.c: New file, based on winsock.c.
85549         * lib/listen.c: New file, based on winsock.c.
85550         * lib/recv.c: New file, based on winsock.c.
85551         * lib/recvfrom.c: New file, based on winsock.c.
85552         * lib/send.c: New file, based on winsock.c.
85553         * lib/sendto.c: New file, based on winsock.c.
85554         * lib/setsockopt.c: New file, based on winsock.c.
85555         * lib/shutdown.c: New file, based on winsock.c.
85556         * lib/socket.c: New file, based on winsock.c.
85557         * lib/w32sock.h: New file, based on winsock.c.
85558         * lib/winsock.c: Remove file.
85559         * modules/accept: Likewise.
85560         * modules/bind: Likewise.
85561         * modules/connect: Likewise.
85562         * modules/getpeername: Likewise.
85563         * modules/getsockname: Likewise.
85564         * modules/getsockopt: Likewise.
85565         * modules/ioctl: Likewise.
85566         * modules/listen: Likewise.
85567         * modules/recv: Likewise.
85568         * modules/recvfrom: Likewise.
85569         * modules/send: Likewise.
85570         * modules/sendto: Likewise.
85571         * modules/setsockopt: Likewise.
85572         * modules/shutdown: Likewise.
85573         * modules/socket: Use socket.c instead of winsock.c.
85574         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85575         * doc/posix-functions/accept.texi: Doc fix.
85576         * doc/posix-functions/bind.texi: Doc fix.
85577         * doc/posix-functions/close.texi: Doc fix.
85578         * doc/posix-functions/connect.texi: Doc fix.
85579         * doc/posix-functions/getpeername.texi: Doc fix.
85580         * doc/posix-functions/getsockname.texi: Doc fix.
85581         * doc/posix-functions/getsockopt.texi: Doc fix.
85582         * doc/posix-functions/ioctl.texi: Doc fix.
85583         * doc/posix-functions/listen.texi: Doc fix.
85584         * doc/posix-functions/recv.texi: Doc fix.
85585         * doc/posix-functions/recvfrom.texi: Doc fix.
85586         * doc/posix-functions/send.texi: Doc fix.
85587         * doc/posix-functions/sendto.texi: Doc fix.
85588         * doc/posix-functions/setsockopt.texi: Doc fix.
85589         * doc/posix-functions/shutdown.texi: Doc fix.
85590         * doc/posix-functions/socket.texi: Doc fix.
85592 2008-10-20  Bruno Haible  <bruno@clisp.org>
85594         Take into account the role of SIGABRT_COMPAT on Windows 2008.
85595         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
85596         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
85597         as an alias for SIGABRT.
85598         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
85599         (sigaction): Map it to SIGABRT.
85600         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
85602 2008-10-20  Bruno Haible  <bruno@clisp.org>
85604         * lib/fts.c: Don't include lstat.h.
85605         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
85607         Move the lstat() declaration to <sys/stat.h>.
85608         * lib/lstat.h: Remove file.
85609         * lib/sys_stat.in.h: Add special invocation convention.
85610         (lstat): New declaration.
85611         * lib/lstat.c (orig_lstat): New function.
85612         (rpl_lstat): Use orig_lstat instead of lstat.
85613         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
85614         AC_C_INLINE. Set REPLACE_LSTAT.
85615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
85616         and REPLACE_LSTAT.
85617         * modules/lstat (Files): Remove lib/lstat.h.
85618         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85619         (Include): Specify <sys/stat.h> instead of lstat.h.
85620         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
85621         REPLACE_LSTAT.
85622         * NEWS: Mention the change.
85624 2008-10-20  Bruno Haible  <bruno@clisp.org>
85626         * modules/posix_spawn-tests: New file.
85627         * tests/test-posix_spawn3.c: New file.
85629 2008-10-20  Bruno Haible  <bruno@clisp.org>
85631         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
85632         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85633         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
85634         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85635         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
85637 2008-10-20  Bruno Haible  <bruno@clisp.org>
85639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
85640         of posix_spawn on AIX 5.3.
85642 2008-10-20  Bruno Haible  <bruno@clisp.org>
85644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
85646 2008-10-20  Bruno Haible  <bruno@clisp.org>
85648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
85649         of AC_LANG_PROGRAM.
85651 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85653         * lib/netdb.in.h: Don't define GNU specific constants until they
85654         are supported or needed.  Reported by Bruno Haible
85655         <bruno@clisp.org>.
85657 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85659         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
85661 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85663         * lib/getaddrinfo.h: Remove file.
85664         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
85665         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
85666         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
85667         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
85668         * modules/netdb: Substitute GNULIB_GETADDRINFO.
85669         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
85670         * tests/test-getaddrinfo.c: Likewise.
85671         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
85672         * NEWS: Mention change.
85674 2008-10-19  Bruno Haible  <bruno@clisp.org>
85676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
85678 2008-10-19  Bruno Haible  <bruno@clisp.org>
85680         * lib/wait-process.c: Include simply <sys/wait.h>.
85681         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
85682         WIFSTOPPED): Remove fallback definitions.
85683         * modules/wait-process (Depends-on): Add sys_wait.
85685         New module 'sys_wait'.
85686         * modules/sys_wait: New file.
85687         * lib/sys_wait.in.h: New file, partially copied from
85688         lib/wait-process.c.
85689         * m4/sys_wait_h.m4: New file.
85690         * doc/posix-headers/sys_wait.texi: Mention the new module.
85692 2008-10-19  Bruno Haible  <bruno@clisp.org>
85694         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
85696 2008-10-19  Bruno Haible  <bruno@clisp.org>
85698         Assume that waitpid() fills an 'int' status, not a 'union wait'.
85699         * lib/wait-process.c (WAIT_T): Remove type.
85700         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
85701         (wait_subprocess): Update.
85703 2008-10-19  Bruno Haible  <bruno@clisp.org>
85705         New module 'atoll'.
85706         * modules/atoll: New file.
85707         * lib/stdlib.in.h (atoll): New declaration.
85708         * lib/atoll.c: New file, from glibc with modifications.
85709         * m4/atoll.m4: New file.
85710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
85711         HAVE_ATOLL.
85712         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
85713         * doc/posix-functions/atoll.texi: Mention the new module.
85715 2008-10-19  Bruno Haible  <bruno@clisp.org>
85717         Add strtoull() declaration to <stdlib.h>.
85718         * lib/stdlib.in.h (strtoull): New declaration.
85719         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85720         Set HAVE_STRTOULL.
85721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
85722         HAVE_STRTOULL.
85723         * modules/strtoull (Depends-on): Add stdlib.
85724         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85725         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
85726         HAVE_STRTOULL.
85728 2008-10-19  Bruno Haible  <bruno@clisp.org>
85730         Add strtoll() declaration to <stdlib.h>.
85731         * lib/stdlib.in.h (strtoll): New declaration.
85732         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85733         Set HAVE_STRTOLL.
85734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
85735         HAVE_STRTOLL.
85736         * modules/strtoll (Depends-on): Add stdlib.
85737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85738         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
85740 2008-10-19  Bruno Haible  <bruno@clisp.org>
85742         * modules/bcopy (Depends-on): Add strings.
85743         (Include): Specify <strings.h>.
85745 2008-10-19  Bruno Haible  <bruno@clisp.org>
85747         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
85749 2008-10-19  Bruno Haible  <bruno@clisp.org>
85751         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
85752         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
85753         mingw.
85755 2008-10-19  Bruno Haible  <bruno@clisp.org>
85757         * lib/atanl.c: Don't include isnanl.h.
85758         * lib/cosl.c: Likewise.
85759         * lib/ldexpl.c: Likewise.
85760         * lib/logl.c: Likewise.
85761         * lib/sinl.c: Likewise.
85762         * lib/sqrtl.c: Likewise.
85763         * lib/tanl.c: Likewise.
85765         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
85766         * lib/isnanf.h: Remove file.
85767         * lib/isnand.h: Remove file.
85768         * lib/isnanl.h: Remove file.
85769         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
85770         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
85771         macros.
85772         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
85773         HAVE_ISNANF, don't define it as a C macro.
85774         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
85775         HAVE_ISNAND, don't define it as a C macro.
85776         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
85777         HAVE_ISNANL, don't define it as a C macro.
85778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
85779         HAVE_ISNAN[FDL].
85780         * modules/isnanf (Files): Remove lib/isnanf.h.
85781         (Depends-on): Add math.
85782         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85783         (Include): Specify <math.h> instead of isnanf.h.
85784         * modules/isnand (Files): Remove lib/isnand.h.
85785         (Depends-on): Add math.
85786         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85787         (Include): Specify <math.h> instead of isnand.h.
85788         * modules/isnanl (Files): Remove lib/isnanl.h.
85789         (Depends-on): Add math.
85790         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85791         (Include): Specify <math.h> instead of isnanl.h.
85792         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
85793         HAVE_ISNAN[FDL].
85794         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
85795         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
85796         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
85797         * NEWS: Mention the change.
85799 2008-10-18  Bruno Haible  <bruno@clisp.org>
85801         Add getusershell(), setusershell(), endusershell() declarations to
85802         <unistd.h>.
85803         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
85804         declarations.
85805         * lib/getusershell.c: Include unistd.h.
85806         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
85807         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
85808         HAVE_GETUSERSHELL.
85809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
85810         and HAVE_GETUSERSHELL.
85811         * modules/getusershell (Depends-on): Add unistd, extensions.
85812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85813         (Include): Specify <unistd.h>.
85814         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
85815         HAVE_GETUSERSHELL.
85817 2008-10-18  Bruno Haible  <bruno@clisp.org>
85819         Add a getloadavg() declaration to <stdlib.h>.
85820         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
85821         getloadavg declaration.
85822         (getloadavg): New declaration.
85823         * lib/getloadavg.c: Include <stdlib.h> first.
85824         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
85825         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
85826         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
85827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
85828         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
85829         * modules/getloadavg (Depends-on): Add stdlib, extensions.
85830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85831         (Include): Specify <stdlib.h>.
85832         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
85833         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
85835 2008-10-18  Bruno Haible  <bruno@clisp.org>
85837         * lib/dirchownmod.c: Don't include lchmod.h.
85839         Move the lchmod() declaration to <sys/stat.h>.
85840         * lib/lchmod.h: Remove file.
85841         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
85842         (lchmod): New declaration, moved here from lib/lchown.h.
85843         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
85844         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
85845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
85846         and HAVE_LCHMOD.
85847         * modules/lchmod (Files): Remove lib/lchmod.h.
85848         (Depends-on): Add sys_stat, extensions.
85849         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85850         (Include): Specify <sys/stat.h> instead of lchmod.h.
85851         * modules/sys_stat (Depends-on): Add link-warning.
85852         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
85853         definition of GL_LINK_WARNING.
85854         * NEWS: Mention the change.
85856 2008-10-18  Bruno Haible  <bruno@clisp.org>
85858         * lib/fchdir.c: Don't include dirfd.h.
85859         * lib/fts.c: Likewise.
85860         * lib/getcwd.c: Likewise.
85861         * lib/glob.c: Likewise.
85863         Move the dirfd() declaration to <dirent.h>.
85864         * lib/dirfd.h: Remove file.
85865         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
85866         (dirfd): New declaration.
85867         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
85868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
85869         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
85870         HAVE_DECL_DIRFD.
85871         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
85872         HAVE_DECL_DIRFD.
85873         * modules/dirfd (Files): Remove lib/dirfd.h.
85874         (Depends-on): Add dirent, extensions.
85875         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
85876         (Include): Specify <dirent.h> instead of dirfd.h.
85877         * modules/dirent (Depends-on): Add link-warning.
85878         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
85879         definition of GL_LINK_WARNING.
85880         * NEWS: Mention the change.
85882 2008-10-18  Bruno Haible  <bruno@clisp.org>
85884         Move the euidaccess() declaration to <unistd.h>.
85885         * lib/euidaccess.h: Remove file.
85886         * lib/unistd.in.h (euidaccess): New declaration.
85887         * lib/euidaccess.c: Don't include euidaccess.h.
85888         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
85889         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
85890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
85891         and HAVE_EUIDACCESS.
85892         * modules/euidaccess (Files): Remove lib/euidaccess.h.
85893         (Depends-on): Add unistd.
85894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85895         (Include): Specify <unistd.h> instead of euidaccess.h.
85896         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
85897         HAVE_EUIDACCESS.
85898         * NEWS: Mention the change.
85900 2008-10-18  Bruno Haible  <bruno@clisp.org>
85902         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
85904         Move the getdomainname() declaration to <unistd.h>.
85905         * lib/getdomainname.h: Remove file.
85906         * lib/unistd.in.h (getdomainname): New declaration.
85907         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
85908         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
85909         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
85910         HAVE_GETDOMAINNAME.
85911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85912         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
85913         * modules/getdomainname (Files): Remove lib/getdomainname.h.
85914         (Depends-on): Add unistd, extensions.
85915         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85916         (Includes): Specify <unistd.h> instead of getdomainname.h.
85917         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
85918         HAVE_GETDOMAINNAME.
85919         * NEWS: Mention the change.
85921 2008-10-18  Bruno Haible  <bruno@clisp.org>
85923         * modules/dirent: New file.
85924         * m4/dirent_h.m4: New file.
85925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
85926         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
85927         * modules/fchdir (Files): Remove lib/dirent.in.h.
85928         (Depends-on): Add dirent.
85929         (Makefile.am): Move rules to modules/dirent.
85930         * doc/posix-headers/dirent.texi: Mention the new module.
85932 2008-10-18  Bruno Haible  <bruno@clisp.org>
85934         Avoid -Wunused-parameter warnings in public gnulib header files.
85935         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
85936         macro.
85937         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
85939 2008-10-18  Bruno Haible  <bruno@clisp.org>
85941         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
85942         * doc/glibc-functions/error.texi: Mention the module 'error'.
85943         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
85944         * doc/glibc-functions/getdomainname.texi: Mention the module
85945         'getdomainname'.
85946         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
85947         * doc/glibc-functions/getpagesize.texi: Mention the module
85948         'getpagesize'.
85949         * doc/glibc-functions/getusershell.texi: Mention the module
85950         'getusershell'.
85951         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
85952         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
85953         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
85954         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
85955         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
85956         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
85957         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
85958         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
85959         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
85960         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
85961         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
85962         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
85963         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
85964         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
85966 2008-10-17  Bruno Haible  <bruno@clisp.org>
85968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
85969         HP-UX and IRIX, use -0.0L.
85970         * tests/test-ceill.c (minus_zero): Likewise.
85971         * tests/test-floorl.c (minus_zero): Likewise.
85972         * tests/test-frexpl.c (minus_zero): Likewise.
85973         * tests/test-isnan.c (minus_zerol): Likewise.
85974         * tests/test-isnanl.h (minus_zero): Likewise.
85975         * tests/test-ldexpl.c (minus_zero): Likewise.
85976         * tests/test-roundl.c (minus_zero): Likewise.
85977         * tests/test-signbit.c (minus_zerol): Likewise.
85978         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
85979         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
85980         * tests/test-truncl.c (minus_zero): Likewise.
85981         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
85982         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
85983         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
85984         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
85986 2008-10-17  Bruno Haible  <bruno@clisp.org>
85988         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
85989         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
85990         that it gets activated only for gcc >= 3.0.
85991         * lib/dirent.in.h: Likewise.
85992         * lib/errno.in.h: Likewise.
85993         * lib/fcntl.in.h: Likewise.
85994         * lib/float.in.h: Likewise.
85995         * lib/iconv.in.h: Likewise.
85996         * lib/inttypes.in.h: Likewise.
85997         * lib/locale.in.h: Likewise.
85998         * lib/math.in.h: Likewise.
85999         * lib/netdb.in.h: Likewise.
86000         * lib/netinet_in.in.h: Likewise.
86001         * lib/search.in.h: Likewise.
86002         * lib/signal.in.h: Likewise.
86003         * lib/spawn.in.h: Likewise.
86004         * lib/stdarg.in.h: Likewise.
86005         * lib/stdint.in.h: Likewise.
86006         * lib/stdio.in.h: Likewise.
86007         * lib/stdlib.in.h: Likewise.
86008         * lib/string.in.h: Likewise.
86009         * lib/strings.in.h: Likewise.
86010         * lib/sys_file.in.h: Likewise.
86011         * lib/sys_ioctl.in.h: Likewise.
86012         * lib/sys_select.in.h: Likewise.
86013         * lib/sys_socket.in.h: Likewise.
86014         * lib/sys_stat.in.h: Likewise.
86015         * lib/sys_time.in.h: Likewise.
86016         * lib/sysexits.in.h: Likewise.
86017         * lib/time.in.h: Likewise.
86018         * lib/unistd.in.h: Likewise.
86019         * lib/wchar.in.h: Likewise.
86020         * lib/wctype.in.h: Likewise.
86021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86023 2008-10-17  Jim Meyering  <meyering@redhat.com>
86025         ignore-value: don't depend on inline module
86026         * modules/ignore-value (Depends-on): Remove 'inline'.
86027         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86028         Suggestion from Bruno Haible.
86030 2008-10-17  Bruno Haible  <bruno@clisp.org>
86032         New implementation of condition variables for Win32.
86033         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86034         (gl_linked_waitqueue_t): New type.
86035         (gl_cond_t): Use it.
86036         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86037         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86038         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86039         (glthread_cond_init_func, glthread_cond_wait_func,
86040         glthread_cond_timedwait_func, glthread_cond_signal_func,
86041         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86042         Reimplemented on the basis of gl_linked_waitqueue_t.
86043         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86044         gl_waitqueue_t.
86045         (gl_rwlock_t): Update.
86046         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86048 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86050         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86051         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86053 2008-10-17  Jim Meyering  <meyering@redhat.com>
86055         ignore-value: new module
86056         * modules/ignore-value: New file.
86057         * lib/ignore-value.h: New file.
86058         * MODULES.html.sh (Compiler warning management): New section,
86059         just for this module.  More to come.
86061 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86063         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86064         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86065         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86067 2008-10-16  Jim Meyering  <meyering@redhat.com>
86069         openat-die.c: avoid 'no previous prototype' warning
86070         * lib/openat-die.c: Include "openat.h".
86071         Reported by Reuben Thomas <rrt@sc3d.org>.
86073 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86075         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86076         * lib/netdb.in.h: Fix typo.
86077         Reported by Bruno Haible  <bruno@clisp.org>
86079         * lib/netdb.in.h: Include sys/socket.h for platforms without
86080         netdb.h, to get structures like hostent on MinGW.
86081         * modules/netdb (Depends-on): Add sys_socket.
86083 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86085         * modules/netdb, modules/netdb-tests: New file.
86086         * m4/netdb_h.m4: New file.
86087         * lib/netdb.in.h: Add, currently just an empty file pending
86088         definitions.
86089         * tests/test-netdb.c: New file.
86090         * doc/posix-headers/netdb.texi: Mention that we replace it if
86091         needed.
86092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86093         netdb.
86095 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86097         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86098         with code.
86100 2008-10-13  Bruno Haible  <bruno@clisp.org>
86102         * lib/glthread/cond.c (glthread_cond_wait_func,
86103         glthread_cond_timedwait_func): Add a comment.
86105 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86107         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86108         * tests/test-select.c: Likewise,
86110 2008-10-13  Bruno Haible  <bruno@clisp.org>
86112         * lib/glthread/cond.c (glthread_cond_wait_func,
86113         glthread_cond_timedwait_func): Fix variable name.
86114         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86116 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86118         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86120         struct sockaddr.sa_len.
86121         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86123 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86125         * build-aux/pmccabe2html: Add css and css_url parameters.
86127 2008-10-12  Bruno Haible  <bruno@clisp.org>
86129         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86130         calling aclx_get.
86131         Reported by Rainer Tammer <tammer@tammer.net>.
86133 2008-10-12  Bruno Haible  <bruno@clisp.org>
86135         Use msvcrt aware primitives for creation/termination of Win32 threads.
86136         * lib/glthread/thread.c: Include <process.h>.
86137         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86138         (wrapper_func): Update signature.
86139         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86141 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86142             Bruno Haible  <bruno@clisp.org>
86144         Provide a Win32 implementation of the 'cond' module.
86145         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86146         * lib/glthread/cond.c (glthread_cond_init_func,
86147         glthread_cond_wait_func, glthread_cond_timedwait_func,
86148         glthread_cond_signal_func, glthread_cond_broadcast_func,
86149         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86150         * modules/cond (Dependencies): Add gettimeofday.
86152 2008-10-11  Bruno Haible  <bruno@clisp.org>
86154         Make sleep work on older versions of mingw.
86155         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86156         only whether it exists.
86157         * doc/posix-functions/sleep.texi: Mention the problem with older
86158         versions of mingw.
86160 2008-10-11  Bruno Haible  <bruno@clisp.org>
86162         New module 'shutdown'.
86163         * modules/shutdown: New file.
86164         * lib/sys_socket.in.h (shutdown): New declaration.
86165         * lib/winsock.c (shutdown): New function.
86166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86167         GNULIB_SHUTDOWN.
86168         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86169         * doc/posix-functions/shutdown.texi: Document the new module.
86171 2008-10-11  Jim Meyering  <meyering@redhat.com>
86173         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86175 2008-10-11  Bruno Haible  <bruno@clisp.org>
86177         New module 'fclose'.
86178         * modules/fclose: New file.
86179         * lib/stdio.in.h (fclose): New declaration.
86180         * lib/fclose.c: New file.
86181         * m4/fclose.m4: New file.
86182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86183         REPLACE_FCLOSE.
86184         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86185         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86186         REPLACE_FCLOSE.
86187         * modules/close (Depends-on): fclose.
86188         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86190 2008-10-11  Bruno Haible  <bruno@clisp.org>
86192         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86193         set errno and don't call _close.
86195 2008-10-10  Bruno Haible  <bruno@clisp.org>
86197         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86198         ACL, not afterwards. Fixes test failure on Cygwin.
86200 2008-10-09  Ben Pfaff  <blp@gnu.org>
86202         * build-aux/announce-gen: Fix gnulib version related part of usage
86203         message.  Die with a useful error message if no tarballs are
86204         found.
86206 2008-10-10  Jim Meyering  <meyering@redhat.com>
86208         bootstrap: use git's --depth=N option only if it's supported
86209         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86210         recognize the --depth option.  Reported by Pádraig Brady.
86212 2008-10-09  Bruno Haible  <bruno@clisp.org>
86214         New module 'ioctl'.
86215         * modules/ioctl: New file.
86216         * lib/sys_socket.in.h (ioctl): Remove declaration.
86217         * lib/winsock.c: Include <sys/ioctl.h>.
86218         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86219         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86220         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86221         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86222         * doc/posix-functions/ioctl.texi: Mention the new module.
86224 2008-10-09  Bruno Haible  <bruno@clisp.org>
86226         New module 'sys_ioctl'.
86227         * lib/sys_ioctl.in.h: New file.
86228         * m4/sys_ioctl_h.m4: New file.
86229         * modules/sys_ioctl: New file.
86230         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86232 2008-10-09  Bruno Haible  <bruno@clisp.org>
86234         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86235         * lib/winsock.c: Include <stdarg.h>.
86236         (rpl_ioctl): Change to second argument 'int' and then varargs.
86238 2008-10-09  Bruno Haible  <bruno@clisp.org>
86240         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86241         when the sys_socket module is present and the system has <winsock2.h>.
86243 2008-10-09  Bruno Haible  <bruno@clisp.org>
86245         * doc/posix-functions/close.texi: Mention module 'close' instead of
86246         module 'sys_socket'.
86248 2008-10-09  Bruno Haible  <bruno@clisp.org>
86250         * doc/glibc-headers/sys_ioctl.texi: New file.
86251         * doc/gnulib.texi: Include it.
86253 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86254             Bruno Haible  <bruno@clisp.org>
86256         Combine the two replacements of 'close'.
86257         * lib/sys_socket.in.h (close): Define to a reminder to include
86258         <unistd.h>.
86259         (_gl_close_fd_maybe_socket): New declaration.
86260         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86261         * lib/winsock.c (close): Remove undefinition.
86262         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86263         needed for the gnulib module 'close'.
86264         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86265         define to an error symbol or to a warning, if suitable.
86266         * lib/close.c: Include <sys/socket.h>.
86267         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86268         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86269         UNISTD_H_HAVE_WINSOCK2_H.
86270         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86272         UNISTD_H_HAVE_WINSOCK2_H.
86273         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86274         (configure.ac): Set a module indicator.
86275         (Makefile.am): Substitute GNULIB_CLOSE.
86276         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86277         * modules/poll-tests (Depends-on): Add close.
86278         * modules/select-tests (Depends-on): Likewise.
86280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86281             Bruno Haible  <bruno@clisp.org>
86283         New module 'close'.
86284         * modules/close: New file.
86285         * lib/unistd.in.h (close): Move declaration out of the
86286         FCHDIR_REPLACEMENT scope.
86287         (_gl_unregister_fd): New declaration.
86288         * lib/close.c: New file.
86289         * lib/fchdir.c (rpl_close): Remove function.
86290         * m4/close.m4: New file.
86291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86292         close.
86293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86294         REPLACE_CLOSE.
86295         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86296         REPLACE_CLOSE.
86297         * modules/fchdir (Depends-on): Add close.
86299 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86300             Bruno Haible  <bruno@clisp.org>
86302         * lib/fcntl.in.h (open): Simplify conditionals.
86303         (_gl_register_fd): New declaration.
86304         * lib/fchdir.c (rpl_open): Remove function.
86305         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86306         also.
86307         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86309         open.
86311 2008-10-09  Jim Meyering  <meyering@redhat.com>
86313         GNUmakefile: use the more name-space-friendly "_version"
86314         * top/GNUmakefile (_dummy): Update.
86315         (_version): Rename from "version".
86317 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86318             Bruno Haible  <bruno@clisp.org>
86320         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86321         rpl_close.
86322         (_gl_register_fd): New function, extracted from rpl_open.
86323         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86324         (rpl_open, rpl_opendir): Use _gl_register_fd.
86326 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86328         Fix organization of 'open' replacement.
86329         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86330         (gl_FUNC_OPEN): Use it.
86331         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86333 2008-10-08  Bruno Haible  <bruno@clisp.org>
86335         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86337 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86339         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86340         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86341         listen).
86343 2008-10-08  Eric Blake  <ebb9@byu.net>
86345         GNUmakefile: add 'make version' target
86346         * top/GNUmakefile (_curr-ver): Split version update rules...
86347         (version): ...into a target.
86349 2008-10-07  Bruno Haible  <bruno@clisp.org>
86351         Use a more portable replacement expression for -0.0L.
86352         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86353         instead of -0.0L. Fix m4 quotation.
86355         * tests/test-signbit.c: Include <float.h>.
86356         (minus_zero): New variable.
86357         (test_signbitl): Use minus_zero instead of -zero.
86358         * modules/signbit-tests (Depends-on): Add float.
86360         * tests/test-ceill.c: Include <float.h>.
86361         (zero): Remove variable.
86362         (minus_zero): New variable.
86363         (main): Use minus_zero instead of -zero.
86364         * modules/ceill-tests (Depends-on): Add float.
86366         * tests/test-floorl.c: Include <float.h>.
86367         (zero): Remove variable.
86368         (minus_zero): New variable.
86369         (main): Use minus_zero instead of -zero.
86370         * modules/floorl-tests (Depends-on): Add float.
86372         * tests/test-roundl.c: Include <float.h>.
86373         (zero): Remove variable.
86374         (minus_zero): New variable.
86375         (main): Use minus_zero instead of -zero.
86376         * modules/roundl-tests (Depends-on): Add float.
86378         * tests/test-truncl.c: Include <float.h>.
86379         (zero): Remove variable.
86380         (minus_zero): New variable.
86381         (main): Use minus_zero instead of -zero.
86382         * modules/truncl-tests (Depends-on): Add float.
86384         * tests/test-frexpl.c (zero): Remove variable.
86385         (minus_zero): New variable.
86386         (main): Use minus_zero instead of -zero.
86387         * modules/frexpl-tests (Depends-on): Add float.
86389         * tests/test-isnan.c (zerol): Remove variable.
86390         (minus_zerol): New variable.
86391         (test_long_double): Use minus_zerol instead of -zerol.
86392         * modules/isnan-tests (Depends-on): Add float.
86394         * tests/test-isnanl.h (zero): Remove variable.
86395         (minus_zero): New variable.
86396         (main): Use minus_zero instead of -zero.
86397         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86398         * modules/isnanl-tests (Depends-on): Add float.
86400         * tests/test-ldexpl.c (zero): Remove variable.
86401         (minus_zero): New variable.
86402         (main): Use minus_zero instead of -zero.
86403         * modules/ldexpl-tests (Depends-on): Add float.
86405         * tests/test-snprintf-posix.h (zerol): Remove variable.
86406         (minus_zerol): New variable.
86407         (test_function): Use minus_zerol instead of -zerol.
86408         * modules/snprintf-posix-tests (Depends-on): Add float.
86409         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86411         * tests/test-sprintf-posix.h (zerol): Remove variable.
86412         (minus_zerol): New variable.
86413         (test_function): Use minus_zerol instead of -zerol.
86414         * modules/sprintf-posix-tests (Depends-on): Add float.
86415         * modules/vsprintf-posix-tests (Depends-on): Add float.
86417         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86418         (minus_zerol): New variable.
86419         (test_function): Use minus_zerol instead of -zerol.
86420         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86422         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86423         (minus_zerol): New variable.
86424         (test_function): Use minus_zerol instead of -zerol.
86425         * modules/vasprintf-posix-tests (Depends-on): Add float.
86427 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86429         * MODULES.html.sh (Support for building documentation): Mention
86430         pmccabe2html.  Sort entries.
86432         Add pmccabe2html module, from gnupdf.
86433         * build-aux/pmccabe.css: New file.
86434         * build-aux/pmccabe2html: New file.
86435         * m4/pmccabe2html.m4: New file.
86436         * modules/pmccabe2html: New file.
86438 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86440         flock: new module
86441         * MODULES.html.sh: Add to list of modules.
86442         * lib/flock.c: flock implementation for Windows and Unix systems
86443         which have fcntl.
86444         * doc/glibc-functions/flock.texi: Update documentation.
86445         * lib/sys_file.in.h: <sys/file.h> header file.
86446         * m4/flock.m4: M4 macros.
86447         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86448         * modules/flock: flock module.
86449         * modules/flock-tests: flock tests module.
86450         * modules/sys_file: sys/file.h module.
86451         * tests/test-flock.c: test suite for flock.
86453 2008-10-06  Jim Meyering  <meyering@redhat.com>
86455         bootstrap: check for LT_INIT more portably still ;-)
86456         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86457         Spotted by Bruno Haible.
86459 2008-10-06  Eric Blake  <ebb9@byu.net>
86461         test-signbit: avoid tripping Irix cc bug on -0.0L
86462         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86463         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86464         entire testsuite consistent and avoids an Irix 6.2 bug.
86466 2008-10-05  Bruno Haible  <bruno@clisp.org>
86467             Jim Meyering  <jim@meyering.net>
86469         Add an option for ignoring EPIPE during close_stdout.
86470         * lib/closeout.h: Include <stdbool.h>.
86471         (close_stdout_set_ignore_EPIPE): New declaration.
86472         * lib/closeout.c: Include <stdbool.h>.
86473         (ignore_EPIPE): New variable.
86474         (close_stdout_set_ignore_EPIPE): New function.
86475         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86476         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86477         failure.
86478         * modules/closeout (Depends-on): Add stdbool.
86480 2008-10-05  Bruno Haible  <bruno@clisp.org>
86482         * modules/accept: New file.
86483         * modules/bind: New file.
86484         * modules/connect: New file.
86485         * modules/getpeername: New file.
86486         * modules/getsockname: New file.
86487         * modules/getsockopt: New file.
86488         * modules/listen: New file.
86489         * modules/recv: New file.
86490         * modules/recvfrom: New file.
86491         * modules/send: New file.
86492         * modules/sendto: New file.
86493         * modules/setsockopt: New file.
86494         * modules/socket: New file.
86495         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86496         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86497         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86498         the particular module is requested. Add a link warning when the
86499         particular module is not requested.
86500         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86501         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86502         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86503         the particular module is requested.
86504         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86505         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86506         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86507         * modules/sys_socket (Depends-on): Add link-warning.
86508         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86509         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86510         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86511         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86512         GL_LINK_WARNING.
86513         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86514         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86515         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86516         * doc/posix-functions/getpeername.texi: Mention the new module
86517         'getpeername'.
86518         * doc/posix-functions/getsockname.texi: Mention the new module
86519         'getsockname'.
86520         * doc/posix-functions/getsockopt.texi: Mention the new module
86521         'getsockopt'.
86522         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86523         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86524         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86525         * doc/posix-functions/send.texi: Mention the new module 'send'.
86526         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86527         * doc/posix-functions/setsockopt.texi: Mention the new module
86528         'setsockopt'.
86529         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86530         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86531         listen, connect, accept.
86532         * modules/select-tests (Depends-on): Likewise.
86534 2008-10-05  Bruno Haible  <bruno@clisp.org>
86536         * lib/winsock.c (strerror): Remove unused #undef.
86537         (rpl_close): Remove unused local variable.
86539         * modules/sys_socket (Depends-on); Add errno.
86541 2008-10-05  Bruno Haible  <bruno@clisp.org>
86543         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86544         (select): Add a link warning when the 'select' module is not used.
86545         * modules/sys_select (Depends-on): Add link-warning.
86546         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86547         Suggested by Paolo Bonzini.
86549 2008-10-05  Jim Meyering  <meyering@redhat.com>
86551         bootstrap: check for LT_INIT more portably
86552         * build-aux/bootstrap: Avoid using grep -E, since it's not
86553         portable enough.  Suggestion from Bruno Haible.
86555 2008-10-05  Bruno Haible  <bruno@clisp.org>
86557         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86558         as being fixed by gnulib.
86560 2008-10-05  Bruno Haible  <bruno@clisp.org>
86562         * modules/select-tests: New file, mostly copied from
86563         modules/sys_select-tests.
86564         * tests/test-select.c: New file, mostly copied from
86565         tests/test-sys_select.c.
86566         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86567         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86568         (Makefile.am): Remove test_sys_select_LDADD.
86570         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86571         to an undefined symbol, for an error message.
86572         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86573         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86574         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86575         winsock-select.c here.
86576         * modules/sys_select (Files): Remove lib/winsock-select.c.
86577         (Depends-on): Remove alloca.
86578         (Makefile.am): Substitute GNULIB_SELECT.
86579         * modules/select: New file.
86580         * doc/posix-functions/select.texi: Update.
86582 2008-10-05  Bruno Haible  <bruno@clisp.org>
86584         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86585         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86586         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
86587         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
86588         getdtablesize.
86589         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
86590         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
86592 2008-10-05  Bruno Haible  <bruno@clisp.org>
86594         * modules/getdtablesize-tests: New file.
86595         * tests/test-getdtablesize.c: New file.
86597         New module 'getdtablesize'.
86598         * lib/unistd.in.h (getdtablesize): New declaration.
86599         * lib/getdtablesize.c: New file.
86600         * m4/getdtablesize.m4: New file.
86601         * modules/getdtablesize: New file.
86602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86603         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
86604         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
86605         HAVE_GETDTABLESIZE.
86606         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
86608 2008-10-05  Bruno Haible  <bruno@clisp.org>
86610         * modules/sched (Makefile.am): Fix typo.
86611         Reported by Simon Josefsson.
86613 2008-10-05  Jim Meyering  <meyering@redhat.com>
86615         bootstrap: check for LT_INIT, too
86616         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
86617         are deprecated.  Suggestion from Ralf Wildenhues.
86619 2008-10-05  Bruno Haible  <bruno@clisp.org>
86621         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
86622         overriding them by ours.
86623         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
86625 2008-10-05  Jim Meyering  <meyering@redhat.com>
86627         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
86628         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
86629         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
86631 2008-10-04  Bruno Haible  <bruno@clisp.org>
86633         * modules/dup2 (License): Change to LGPLv2+.
86634         * modules/sleep (License): Likewise.
86635         * modules/perror (License): Likewise.
86636         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
86637         Blake.
86638         * modules/signal (License): Likewise.
86639         * modules/sigprocmask (License): Likewise.
86640         * modules/raise (License): Change to LGPLv2+, with approval by Jim
86641         Meyering.
86643 2008-10-04  Bruno Haible  <bruno@clisp.org>
86645         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
86646         Reported by Rainer Tammer <tammer@tammer.net>.
86648 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
86649             Bruno Haible  <bruno@clisp.org>
86651         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
86652         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
86653         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
86655 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
86657         filevercmp: new module
86658         * lib/filevercmp.h: New function filevercmp comparing version strings.
86659         * lib/filevercmp.c: Implementation of filevercmp function.
86660         * modules/filevercmp: Module metadata.
86661         * tests/test-filevercmp.c: Unit test for new module.
86662         * modules/filevercmp-tests: Unit test metadata.
86663         * MODULES.html.sh: Add filevercmp module.
86665 2008-10-03  Bruno Haible  <bruno@clisp.org>
86667         * lib/c-ctype.h: Add comment.
86668         Reported by Jim Meyering.
86670 2008-10-02  Bruno Haible  <bruno@clisp.org>
86672         * modules/posix_spawn-internal (Depends-on): Add 'open'.
86674 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86676         * build-aux/bootstrap: Allow renaming bootstrap, and change the
86677         name of bootstrap.conf accordingly.
86679 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86681         * build-aux/bootstrap: Install git-merge-changelog configuration
86682         items into .gitconfig if needed.
86684 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86686         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
86687         git repository, and initialize/update it accordingly.
86689 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
86691         * modules/fsync-tests: New file.
86692         * tests/test-fsync.c: New file.
86694         New module 'fsync'.
86695         * lib/fsync.c: New file.
86696         * m4/fsync.m4: New file.
86697         * modules/fsync: New file.
86698         * lib/unistd.in.h (fsync): New declaration.
86699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
86700         GNULIB_FSYNC and HAVE_FSYNC.
86701         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
86702         * MODULES.html.sh (posix_functions): Add fsync.
86703         * doc/posix-functions/fsync.texi: Mention the new module.
86705 2008-10-02  Jim Meyering  <meyering@redhat.com>
86707         fts.c: sync with similar code from coreutils' remove.c
86708         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
86709         Guard also with "#if defined __linux__", since for now at least,
86710         this code is Linux-kernel-specific.
86712 2008-10-02  Jim Meyering  <meyering@redhat.com>
86714         fts: bug fixes
86715         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
86716         Include <sys/vfs.h>, not <sys/statfs.h>.
86718         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
86719         Include <sys/vfs.h>, not <sys/statfs.h>.
86721 2008-10-01  Bruno Haible  <bruno@clisp.org>
86723         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
86724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
86725         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
86726         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
86727         * doc/posix-functions/posix_spawnp.texi: Likewise.
86728         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
86729         whether posix_spawn actually works.
86730         * m4/pipe.m4 (gl_PIPE): Likewise.
86731         * modules/execute (Files): Add m4/posix_spawn.m4.
86732         * modules/pipe (Files): Add m4/posix_spawn.m4.
86733         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
86735 2008-10-01  Jim Meyering  <meyering@redhat.com>
86737         remove trailing spaces
86738         * NEWS: Likewise.
86739         * lib/poll.c (poll): Likewise.
86740         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
86741         * lib/winsock.c (rpl_close): Likewise.
86742         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
86743         * modules/yield: Likewise.
86744         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
86745         * tests/test-sys_select.c (connect_to_socket): Likewise.
86747         fts.c: adjust a new interface to be more generally useful
86748         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
86749         (fts_build): Adjust caller.
86751 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86753         * modules/cond-tests: New file.
86754         * tests/test-cond.c: New file.
86756 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86757             Bruno Haible  <bruno@clisp.org>
86759         * modules/cond (Dependencies): Add errno, time.
86760         * lib/glthread/cond.h: Include <time.h>.
86761         (gl_cond_define, gl_cond_define_initialized): Use the same definition
86762         across platforms.
86764 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86765             Bruno Haible  <bruno@clisp.org>
86767         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
86769 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86770             Bruno Haible  <bruno@clisp.org>
86772         * modules/tls-tests (Depends-on): Add thread, yield.
86773         (configure.ac): Remove all checks.
86774         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
86775         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86776         gl_thread_self): Remove definitions. Include glthread/thread.h and
86777         glthread/yield.h instead.
86778         (test_tls): Pass an additional NULL argument to gl_thread_join.
86780 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86781             Bruno Haible  <bruno@clisp.org>
86783         * modules/lock-tests (Depends-on): Add thread, yield.
86784         (configure.ac): Remove all checks.
86785         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
86786         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86787         gl_thread_self): Remove definitions. Include glthread/thread.h and
86788         glthread/yield.h instead.
86789         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
86790         additional NULL argument to gl_thread_join.
86792 2008-09-30  Bruno Haible  <bruno@clisp.org>
86794         Fix the Win32 implementation of the 'thread' module.
86795         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
86796         pointer type.
86797         (gl_thread_self): Invoke gl_thread_self_func.
86798         (gl_thread_self_func): New declaration.
86799         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
86800         (do_init_self_key, init_self_key): New functions.
86801         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
86802         Remove some fields.
86803         (running_threads, running_lock): Remove variables.
86804         (get_current_thread_handle): New function.
86805         (gl_thread_self_func, wrapper_func, glthread_create_func,
86806         glthread_join_func, gl_thread_exit_func): Largely rewritten and
86807         simplified.
86809 2008-09-30  Bruno Haible  <bruno@clisp.org>
86811         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
86812         files.
86814 2008-09-30  Jim Meyering  <meyering@redhat.com>
86816         fts.m4: correct the test for statfs.f_type
86817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
86818         when checking for statfs.f_type.
86820 2008-09-15  Simon Josefsson  <simon@josefsson.org>
86822         tests: avoid some compiler warnings
86823         * tests/test-memchr.c (main): Pass NULL indirectly.
86824         * tests/test-getdate.c (main): Remove unused variable 'ret'.
86826 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
86828         getdate.y: disallow countable dayshifts like "4 yesterday ago"
86829         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
86830         exactly specified dayshifts.
86831         (dayshift): New rule.
86832         (rel): Add dayshift.
86833         (relative_time_table) [tomorrow, yesterday, today, now]:
86834         Use tDAY_SHIFT in place of tDAY_UNIT.
86835         * tests/test-getdate.c: Add tests for now-disallowed countable
86836         dayshifts, e.g., "4 yesterday ago".
86838 2008-09-29  Bruno Haible  <bruno@clisp.org>
86840         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
86841         * tests/test-posix_spawn1.in.sh: Renamed from
86842         tests/test-posix_spawn.in.sh.
86843         * tests/test-posix_spawn2.c: New file.
86844         * tests/test-posix_spawn2.in.sh: New file.
86845         * modules/posix_spawnp-tests (Files): Update.
86846         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
86848 2008-09-29  Bruno Haible  <bruno@clisp.org>
86850         Propagate effects of putenv/setenv/unsetenv to child processes.
86851         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
86852         * lib/pipe.c (create_pipe): Likewise.
86854 2008-09-29  Bruno Haible  <bruno@clisp.org>
86856         Enable use of shell scripts as executables in mingw.
86857         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
86858         run the program as a shell script.
86859         * lib/pipe.c (create_pipe): Likewise.
86860         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
86861         resulting array.
86863 2008-09-29  Eric Blake  <ebb9@byu.net>
86865         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
86867 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
86869         * doc/posix-functions/accept.texi: Update mingw problems.
86870         * doc/posix-functions/bind.texi: Update mingw problems.
86871         * doc/posix-functions/close.texi: Update mingw problems.
86872         * doc/posix-functions/connect.texi: Update mingw problems.
86873         * doc/posix-functions/getpeername.texi: Update mingw problems.
86874         * doc/posix-functions/getsockname.texi: Update mingw problems.
86875         * doc/posix-functions/getsockopt.texi: Update mingw problems.
86876         * doc/posix-functions/ioctl.texi: Update mingw problems.
86877         * doc/posix-functions/listen.texi: Update mingw problems.
86878         * doc/posix-functions/recv.texi: Update mingw problems.
86879         * doc/posix-functions/recvfrom.texi: Update mingw problems.
86880         * doc/posix-functions/select.texi: Update mingw problems.
86881         * doc/posix-functions/send.texi: Update mingw problems.
86882         * doc/posix-functions/sendto.texi: Update mingw problems.
86883         * doc/posix-functions/setsockopt.texi: Update mingw problems.
86884         * doc/posix-functions/socket.texi: Update mingw problems.
86886 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
86887             Bruno Haible  <bruno@clisp.org>
86889         * lib/sys_select.in.h: Include sys/time.h.
86890         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
86891         * modules/sys_select: Depend on sys_time.
86892         * tests/test-sys_select.c: Test that sys/select.h defines struct
86893         timeval fully.
86895 2008-09-29  Bruno Haible  <bruno@clisp.org>
86897         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
86898         * lib/sys_select.in.h: Likewise.
86900 2008-09-29  Bruno Haible  <bruno@clisp.org>
86902         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
86904 2008-09-29  Bruno Haible  <bruno@clisp.org>
86906         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
86907         Set LIBSOCKET instead of augmenting LIBS.
86908         * modules/sockets (Link): New section.
86909         * modules/sockets-tests (test_sockets_LDADD): New variable.
86910         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
86911         * modules/poll-tests (test_poll_LDADD): New variable.
86912         * NEWS: Document the change.
86914 2008-09-29  Bruno Haible  <bruno@clisp.org>
86916         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
86917         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
86918         ARPA_INET_H directly.
86919         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86921 2008-09-28  Bruno Haible  <bruno@clisp.org>
86923         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
86924         from gl_HEADER_SYS_SOCKET.
86925         (gl_HEADER_SYS_SOCKET): Invoke it.
86926         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
86928 2008-09-28  Bruno Haible  <bruno@clisp.org>
86930         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
86931         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
86932         Needed on OSF/1 4.0.
86934 2008-09-28  Bruno Haible  <bruno@clisp.org>
86936         Override open more carefully.
86937         * lib/open.c (orig_open): New function.
86938         (rpl_open): Use orig_open instead of open.
86939         * lib/fcntl.in.h: Add special invocation convention.
86940         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
86941         (gl_FUNC_OPEN): Invoke it.
86943         Override freopen more carefully.
86944         * lib/freopen.c (orig_freopen): New function.
86945         (rpl_freopen): Use orig_freopen instead of freopen.
86946         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
86947         (gl_FUNC_FREOPEN): Invoke it.
86949         Override fopen more carefully.
86950         * lib/fopen.c (orig_fopen): New function.
86951         (rpl_fopen): Use orig_fopen instead of fopen.
86952         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
86953         (gl_FUNC_FOPEN): Invoke it.
86954         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
86956 2008-09-28  Bruno Haible  <bruno@clisp.org>
86958         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
86959         SIGPIPE.
86961 2008-09-28  Bruno Haible  <bruno@clisp.org>
86963         * tests/test-sigaction.c (handler, main): Disable the check whether
86964         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
86965         glibc systems with LinuxThreads.
86967 2008-09-28  Bruno Haible  <bruno@clisp.org>
86969         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
86971         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
86972         with AIX xlc.
86973         * lib/fcntl.in.h (open): Likewise.
86974         Reported by Rainer Tammer <tammer@tammer.net>.
86976 2008-09-28  Bruno Haible  <bruno@clisp.org>
86978         * modules/posix_spawnp-tests: New file.
86979         * tests/test-posix_spawn.c: New file.
86980         * tests/test-posix_spawn.in.sh: New file.
86982         New module 'posix_spawnp'.
86983         * modules/posix_spawnp: New file.
86984         * lib/spawnp.c: New file, from GNU libc with modifications.
86985         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
86987         New module 'posix_spawn'.
86988         * modules/posix_spawn: New file.
86989         * lib/spawn.c: New file, from GNU libc with modifications.
86990         * doc/posix-functions/posix_spawn.texi: Mention the new module.
86992         New module 'posix_spawnattr_destroy'.
86993         * modules/posix_spawnattr_destroy: New file.
86994         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
86995         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
86996         module.
86998         New module 'posix_spawnattr_setsigmask'.
86999         * modules/posix_spawnattr_setsigmask: New file.
87000         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87001         modifications.
87002         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87003         new module.
87005         New module 'posix_spawnattr_getsigmask'.
87006         * modules/posix_spawnattr_getsigmask: New file.
87007         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87008         modifications.
87009         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87010         new module.
87012         New module 'posix_spawnattr_setsigdefault'.
87013         * modules/posix_spawnattr_setsigdefault: New file.
87014         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87015         modifications.
87016         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87017         new module.
87019         New module 'posix_spawnattr_getsigdefault'.
87020         * modules/posix_spawnattr_getsigdefault: New file.
87021         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87022         modifications.
87023         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87024         new module.
87026         New module 'posix_spawnattr_setschedpolicy'.
87027         * modules/posix_spawnattr_setschedpolicy: New file.
87028         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87029         modifications.
87030         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87031         new module.
87033         New module 'posix_spawnattr_getschedpolicy'.
87034         * modules/posix_spawnattr_getschedpolicy: New file.
87035         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87036         modifications.
87037         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87038         new module.
87040         New module 'posix_spawnattr_setschedparam'.
87041         * modules/posix_spawnattr_setschedparam: New file.
87042         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87043         modifications.
87044         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87045         new module.
87047         New module 'posix_spawnattr_getschedparam'.
87048         * modules/posix_spawnattr_getschedparam: New file.
87049         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87050         modifications.
87051         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87052         new module.
87054         New module 'posix_spawnattr_setpgroup'.
87055         * modules/posix_spawnattr_setpgroup: New file.
87056         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87057         modifications.
87058         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87059         module.
87061         New module 'posix_spawnattr_getpgroup'.
87062         * modules/posix_spawnattr_getpgroup: New file.
87063         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87064         modifications.
87065         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87066         module.
87068         New module 'posix_spawnattr_setflags'.
87069         * modules/posix_spawnattr_setflags: New file.
87070         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87071         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87072         module.
87074         New module 'posix_spawnattr_getflags'.
87075         * modules/posix_spawnattr_getflags: New file.
87076         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87077         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87078         module.
87080         New module 'posix_spawnattr_init'.
87081         * modules/posix_spawnattr_init: New file.
87082         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87083         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87084         module.
87086         New module 'posix_spawn_file_actions_destroy'.
87087         * modules/posix_spawn_file_actions_destroy: New file.
87088         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87089         modifications.
87090         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87091         the new module.
87093         New module 'posix_spawn_file_actions_addopen'.
87094         * modules/posix_spawn_file_actions_addopen: New file.
87095         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87096         modifications.
87097         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87098         the new module.
87100         New module 'posix_spawn_file_actions_adddup2'.
87101         * modules/posix_spawn_file_actions_adddup2: New file.
87102         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87103         modifications.
87104         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87105         the new module.
87107         New module 'posix_spawn_file_actions_addclose'.
87108         * modules/posix_spawn_file_actions_addclose: New file.
87109         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87110         modifications.
87111         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87112         the new module.
87114         New module 'posix_spawn_file_actions_init'.
87115         * modules/posix_spawn_file_actions_init: New file.
87116         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87117         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87118         new module.
87120         New module 'posix_spawn-internal'.
87121         * modules/posix_spawn-internal: New file.
87122         * lib/spawn_int.h: New file, from GNU libc with modifications.
87123         * lib/spawni.c: New file, from GNU libc with modifications.
87124         * m4/posix_spawn.m4: New file.
87126         New module 'spawn'.
87127         * modules/spawn: New file.
87128         * lib/spawn.in.h: New file, from GNU libc with modifications.
87129         * m4/spawn_h.m4: New file.
87130         * doc/posix-headers/spawn.texi: Mention the new module.
87132 2008-09-28  Bruno Haible  <bruno@clisp.org>
87134         * modules/sched-tests: New file.
87135         * tests/test-sched.c: New file.
87137         New module 'sched'.
87138         * modules/sched: New file.
87139         * lib/sched.in.h: New file.
87140         * m4/sched_h.m4: New file.
87141         * doc/posix-headers/sched.texi: Mention the new module.
87143 2008-09-27  Eric Blake  <ebb9@byu.net>
87145         Fix previous patch, and tweak references to $0.
87146         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87147         (func_version, func_gnulib_dir): Don't call this program
87148         gnulib-tool.
87149         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87150         with using $0 in function.
87151         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87152         (func_fatal_error): Reuse the name the user invoked us with.
87154 2008-09-27  Bruno Haible  <bruno@clisp.org>
87156         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87157         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87158         (gl_ICONV_H): Not here.
87159         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87160         instead of assigning ICONV_H directly.
87162         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87164         WCHAR_H directly.
87166 2008-09-27  Bruno Haible  <bruno@clisp.org>
87168         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87169         * modules/arpa_inet (Depends-on): Add link-warning.
87170         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87171         * modules/unistd (Makefile.am): Likewise.
87173 2008-09-26  Bruno Haible  <bruno@clisp.org>
87175         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87176         variables.
87177         (func_version): Essentially copied from gnulib-tool.
87178         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87179         func_readlink): Copied from gnulib-tool.
87181 2008-09-26  Bruno Haible  <bruno@clisp.org>
87183         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87184         invoking git-version-gen.
87186 2008-09-26  Bruno Haible  <bruno@clisp.org>
87188         * posix-modules: Update to directory names changed on 2008-01-19.
87189         Remove commas in output before splitting into words. No more need to
87190         avoid 'ftruncate' since 2007-02-19.
87192 2008-09-26  Bruno Haible  <bruno@clisp.org>
87194         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87196 2008-09-26  Bruno Haible  <bruno@clisp.org>
87198         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87199         * modules/fwriteerror (Depends-on): Add errno.
87201 2008-09-26  Bruno Haible  <bruno@clisp.org>
87203         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87204         * tests/test-vc-list-files-cvs.sh: Likewise.
87206 2008-09-26  Bruno Haible  <bruno@clisp.org>
87208         * doc/posix-headers/sys_resource.texi: Reorder items.
87210 2008-09-26  Jim Meyering  <meyering@redhat.com>
87212         fts: tweak inode comparison function
87213         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87214         inode numbers, as documented.
87216         fts: sort dirent entries on inode number before traversing
87217         This avoids a quadratic, seek-related performance penalty when
87218         operating on a directory containing many entries (measurable at 10k;
87219         3.5 hours at 2 million entries with a cold cache) on certain types
87220         of file systems, including ext3 and ext4, but not tmpfs.
87221         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87222         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87223         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87224         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87225         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87226         (fts_build): Set the stat.st_ino member from D_INO.
87227         If it is likely to be useful, sort dirent entries on inode number.
87229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87230         and the struct statfs.f_type member.
87231         * modules/fts (Depends-on): Add d-ino.
87233 2008-09-26  Bruno Haible  <bruno@clisp.org>
87235         * modules/sigpipe-die (Depends-on): Add sigpipe.
87237         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87238         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87239         and GNULIB_STDIO_H_SIGPIPE are set.
87240         * lib/stdio-write.c: New file.
87241         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87242         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87243         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87244         REPLACE_STDIO_WRITE_FUNCS.
87245         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87246         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87247         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87248         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87249         * modules/stdio (Files): Add lib/stdio-write.c.
87250         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87251         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87252         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87253         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87254         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87255         REPLACE_FPRINTF_POSIX.
87256         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87257         REPLACE_PRINTF_POSIX.
87258         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87259         REPLACE_VFPRINTF_POSIX.
87260         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87261         REPLACE_VPRINTF_POSIX.
87262         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87263         SIGPIPE issue.
87264         * doc/posix-functions/fputc.texi: Likewise.
87265         * doc/posix-functions/fputs.texi: Likewise.
87266         * doc/posix-functions/fwrite.texi: Likewise.
87267         * doc/posix-functions/printf.texi: Likewise.
87268         * doc/posix-functions/putc.texi: Likewise.
87269         * doc/posix-functions/putchar.texi: Likewise.
87270         * doc/posix-functions/puts.texi: Likewise.
87271         * doc/posix-functions/vfprintf.texi: Likewise.
87272         * doc/posix-functions/vprintf.texi: Likewise.
87274         * modules/safe-write (Depends-on): Add write.
87276         * modules/sigpipe-tests: New file.
87277         * tests/test-sigpipe.c: New file.
87278         * tests/test-sigpipe.sh: New file.
87280         * modules/write: New file.
87281         * lib/unistd.in.h: Include <sys/types.h>.
87282         (write): New declaration.
87283         * lib/write.c: New file.
87284         * m4/write.m4: New file.
87285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87286         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87287         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87288         GNULIB_WRITE, REPLACE_WRITE.
87289         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87290         and the SIGPIPE issue.
87292         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87293         (raise): New declaration.
87294         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87295         (ext_signal): New function.
87296         (rpl_raise): New function.
87297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87298         GNULIB_SIGNAL_H_SIGPIPE.
87299         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87300         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87302         * modules/sigpipe: New file.
87303         * m4/sigpipe.m4: New file.
87305 2008-09-25  Derek Price  <derek@ximbiot.com>
87306             Bruno Haible  <bruno@clisp.org>
87308         * gnulib-tool (func_import): Report all license incompatibilities, not
87309         just the first one.
87311 2008-09-25  Bruno Haible  <bruno@clisp.org>
87313         * gnulib-tool (func_import): When computing the edits, consider not
87314         only the Makefile.ams that exist but also those that will be generated.
87316 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87318         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87319         fixes gnulib-tool --test warning about duplicate dependency.
87321 2008-09-25  Bruno Haible  <bruno@clisp.org>
87323         * gnulib-tool: Don't ask the user to perform edits in the generated
87324         Makefile.ams.
87325         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87326         apply to the Makefile.am being generated.
87327         (func_emit_tests_Makefile_am): Execute edits that apply to the
87328         Makefile.am being generated.
87329         (func_import): Setup list of Makefile.am edits before emitting the
87330         Makefile.ams, not at the end.
87331         (func_create_testdir): Update.
87332         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87334 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87336         * gnulib-tool (func_import): Store the --tests-base option in the
87337         comment in gnulib-cache.m4.
87339 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87341         * NEWS: Document increased portability that sys_select now provides.
87343         * lib/sys_select.in.h: Install select wrapper.
87344         * lib/sys_socket.in.h: Use more descriptive name when there is no
87345         select wrapper.
87346         * lib/winsock-select.c: New.
87347         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87348         Require gl_HEADER_SYS_SOCKET.
87349         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87350         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87351         * tests/test-sys_select.c: Add functional tests.
87353 2008-09-24  Eric Blake  <ebb9@byu.net>
87355         open, fopen: close fd leak in last patch
87356         * lib/open.c (rpl_open): Close fd before returning error.
87357         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87358         * doc/posix-functions/open.texi (open): Document that Irix also
87359         has the bug.
87360         * doc/posix-functions/fopen.texi (fopen): Likewise.
87361         Reported by Paolo Bonzini.
87363 2008-09-24  Bruno Haible  <bruno@clisp.org>
87365         Ensure that a filename ending in a slash cannot be used to access a
87366         non-directory.
87367         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87368         to check whether it's really a directory.
87369         * lib/fopen.c: Include fcntl.h, unistd.h.
87370         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87371         and fdopen().
87372         * modules/fopen (Depends-on): Add unistd.
87373         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87374         * tests/test-fopen.c (main): Likewise.
87375         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87376         * doc/posix-functions/fopen.texi: Likewise.
87377         Reported by Eric Blake.
87379 2008-09-23  Eric Blake  <ebb9@byu.net>
87381         c-stack: avoid compiler optimizations when provoking overflow
87382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87383         recursion harder to optimize, to ensure a stack overflow occurs.
87384         * tests/test-c-stack.c (recurse): Likewise.
87385         Borrowed from libsigsegv.
87387         c-stack: work around Irix sigaltstack bug
87388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87389         whether sigaltstack uses wrong end of stack_t (copied in part from
87390         libsigsegv).
87391         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87392         Irix bug, without requiring an over-allocation.
87393         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87394         bug.
87396         fopen: document mingw bug on directories
87397         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87398         not allowing a stream visiting a directory, even though reading
87399         from such a stream is not portable.
87401 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87403         * lib/poll.c: Rewrite.
87404         * modules/poll: Depend on alloca.
87406 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87408         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87409         instead define prototypes for a full set of wrappers.  Ensure
87410         that Cygwin does not use the compatibility code, which is only
87411         for MinGW.
87412         * lib/winsock.c: New.
87413         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87414         * modules/sys_socket: Add lib/winsock.c.
87416         * modules/poll-tests: Add errno and perror.
87417         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87419 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87421         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87423 2008-09-23  Bruno Haible  <bruno@clisp.org>
87425         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87426         * doc/glibc-functions/*: Likewise.
87428 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87430         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87431         success.
87433 2008-09-22  Eric Blake  <ebb9@byu.net>
87434             Bruno Haible  <bruno@clisp.org>
87436         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87437         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87438         supply %A but mishandle pseudo-NaN.
87439         Reported by Simon Josefsson.
87441 2008-09-21  Bruno Haible  <bruno@clisp.org>
87443         * tests/test-lock.c (main): Tweak skip message.
87444         * tests/test-tls.c (main): Likewise.
87446 2008-09-21  Bruno Haible  <bruno@clisp.org>
87448         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87449         whether 'struct sigaction' has sa_sigaction here...
87450         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87451         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87453 2008-09-21  Bruno Haible  <bruno@clisp.org>
87455         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87456         section.
87457         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87458         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87459         the new section.
87460         (Support for obsolete systems lacking POSIX:2001): New section.
87461         (String handling <string.h>): Move strdup to the new section.
87462         Suggested by Simon Josefsson and Paolo Bonzini.
87464 2008-09-21  Bruno Haible  <bruno@clisp.org>
87466         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87467         exponents in %e and %g results on 'long double'. Needed for mingw's
87468         improved *printf functions.
87469         * tests/test-vasprintf-posix.c (test_function): Likewise.
87470         * tests/test-snprintf-posix.h (test_function): Likewise.
87471         * tests/test-sprintf-posix.h (test_function): Likewise.
87472         Reported by Eric Blake.
87474 2008-09-21  Bruno Haible  <bruno@clisp.org>
87476         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87477         * tests/test-sprintf-posix.h (test_function): Likewise.
87479 2008-09-21  Bruno Haible  <bruno@clisp.org>
87481         * modules/getpass (Depends-on): Add strdup-posix.
87483         New module 'strdup-posix'.
87484         * modules/strdup-posix: New file.
87485         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87486         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87488         REPLACE_STRDUP.
87489         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87490         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87492         strdup-posix.
87494         * modules/strdup (Depends-on): Remove malloc-posix.
87496 2008-09-20  Bruno Haible  <bruno@clisp.org>
87498         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87499         Wildenhues.
87501 2008-09-20  Bruno Haible  <bruno@clisp.org>
87503         Ensure that wint_t gets defined on IRIX 5.3.
87504         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87505         * lib/wctype.in.h (wint_t): Likewise.
87506         (__wctype_wint_t): Remove type.
87507         (isw*): Use wint_t instead of __wctype_wint_t.
87508         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87509         * modules/wchar (Files): Add m4/wint_t.m4.
87510         (Makefile.am): Substitute HAVE_WINT_T.
87511         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87512         * tests/test-wctype.c: Check that wint_t is defined.
87513         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87514         * doc/posix-headers/wctype.texi: Likewise.
87515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87517 2008-09-18  Bruno Haible  <bruno@clisp.org>
87519         * gnulib-tool (func_exit): Update comment.
87521 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87523         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87524         assumes strdup exists and does not depend on strdup to return
87525         ENOMEM on out of memory conditions.
87527 2008-09-18  Bruno Haible  <bruno@clisp.org>
87529         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87530         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87531         digits for the exponent.
87533 2008-09-18  Jim Meyering  <meyering@redhat.com>
87534             Bruno Haible  <bruno@clisp.org>
87536         * lib/vasnprintf.c (decimal_point_char): Define also if
87537         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87539 2008-09-16  Bruno Haible  <bruno@clisp.org>
87540         and Eric Blake  <ebb9@byu.net>
87542         vasnprintf: support Irix 5.3
87543         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87544         that mishandle long double infinity.
87545         Reported by Tom G. Christensen.
87547 2008-09-16  Bruno Haible  <bruno@clisp.org>
87549         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87550         Solaris 9.
87551         * doc/glibc-functions/alphasort.texi: Likewise.
87552         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87554 2008-09-16  Jim Meyering  <meyering@redhat.com>
87556         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87557         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87558         a umask modification leak out of a subshell.  Otherwise, the
87559         opensolaris /bin/sh would be accepted and thus cause unwarranted
87560         failures in the coreutils test suite.
87562 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87564         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87565         to succeed.
87567 2008-09-16  Jim Meyering  <meyering@redhat.com>
87569         avoid spurious test failure when library is built without ACL support
87570         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87571         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87572         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87573         * tests/test-copy-acl.sh: Likewise.
87575 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87577         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87578         based on character occurrence counts.
87580 2008-09-15  Eric Blake  <ebb9@byu.net>
87582         tests: avoid some compiler warnings
87583         * tests/test-memchr.c (main): Pass NULL indirectly.
87584         * tests/test-closein.c (main): Avoid unused variable.
87586 2008-09-15  Bruno Haible  <bruno@clisp.org>
87588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
87589         are missing on OpenBSD 4.0 individually.
87590         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87592 2008-09-15  Bruno Haible  <bruno@clisp.org>
87594         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
87595         * doc/posix-functions/strerror.texi: Mention also Cygwin.
87596         * doc/posix-functions/perror.texi: Likewise.
87597         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
87598         is missing.
87599         Reported by Eric Blake.
87601         * lib/errno.in.h: Use replacement values >= 2000.
87602         Reported by Eric Blake.
87604 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87606         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
87607         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
87608         limit.
87609         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
87610         compareseq was aborted.
87612 2008-09-14  Bruno Haible  <bruno@clisp.org>
87614         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
87615         yvec_edit_count.
87616         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
87617         (fstrcmp_bounded): Simplify result computation accordingly.
87619 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87621         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
87622         (fstrcmp): Define in terms of fstrcmp_bounded.
87623         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
87624         lower_bound argument.
87625         Return quickly if the result is certainly < lower_bound.
87626         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
87628 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87630         * lib/diffseq.h (EARLY_ABORT): New macro.
87631         (compareseq): Change return type to bool. Return true when EARLY_ABORT
87632         evaluates to true.
87634 2008-09-14  Bruno Haible  <bruno@clisp.org>
87636         * modules/perror-tests: New file.
87637         * tests/test-perror.sh: New file.
87638         * tests/test-perror.c: New file.
87640         New module 'perror'.
87641         * lib/stdio.in.h (perror): New declaration.
87642         * lib/perror.c: New file.
87643         * m4/perror.m4: New file.
87644         * modules/perror: New file.
87645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
87646         * doc/posix-functions/perror.texi: Mention the perror module.
87647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
87648         REPLACE_PERROR.
87649         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
87650         REPLACE_PERROR.
87652 2008-09-14  Bruno Haible  <bruno@clisp.org>
87654         * modules/stdio (Makefile.am): Reorder to match the order in
87655         lib/stdio.in.h.
87656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87658 2008-09-13  Bruno Haible  <bruno@clisp.org>
87660         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
87662 2008-09-13  Bruno Haible  <bruno@clisp.org>
87664         Extend strerror to cover the added errno values.
87665         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
87666         (rpl_strerror): Provide error messages for the added errno values and
87667         for the WSA* values.
87668         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
87669         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
87670         strerror.
87671         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
87672         * modules/strerror (Depends-on): Add errno.
87673         * doc/posix-functions/strerror.texi: Document the change.
87674         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
87675         and EOVERFLOW.
87677 2008-09-13  Bruno Haible  <bruno@clisp.org>
87679         * modules/EOVERFLOW: Remove file.
87680         * m4/eoverflow.m4: Remove file.
87681         * modules/EOVERFLOW-tests: Remove file.
87682         * tests/test-EOVERFLOW.c: Remove file.
87683         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
87684         * modules/ftell (Depends-on): Likewise.
87685         * modules/getdelim (Depends-on): Likewise.
87686         * modules/getugroups (Depends-on): Likewise.
87687         * modules/poll (Depends-on): Likewise.
87688         * modules/snprintf (Depends-on): Likewise.
87689         * modules/sprintf-posix (Depends-on): Likewise.
87690         * modules/vasnprintf (Depends-on): Likewise.
87691         * modules/vasprintf (Depends-on): Likewise.
87692         * modules/vfprintf-posix (Depends-on): Likewise.
87693         * modules/vsnprintf (Depends-on): Likewise.
87694         * modules/vsprintf-posix (Depends-on): Likewise.
87695         * modules/xvasprintf (Depends-on): Likewise.
87696         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87697         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
87698         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
87699         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
87700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87701         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
87702         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
87703         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
87704         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87705         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
87706         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
87707         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
87708         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87709         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
87710         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
87711         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
87712         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87713         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
87714         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
87715         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
87716         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87717         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
87718         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
87719         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
87720         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
87721         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87722         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
87723         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
87724         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
87725         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
87726         * MODULES.html.sh: Remove EOVERFLOW.
87727         * NEWS: Mention the change.
87729 2008-09-13  Bruno Haible  <bruno@clisp.org>
87731         * modules/errno-tests: New file.
87732         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
87734         * lib/errno.in.h: New file.
87735         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
87736         * modules/errno: New file.
87737         * doc/posix-headers/errno.texi: Update documentation.
87738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
87740 2008-09-13  Bruno Haible  <bruno@clisp.org>
87742         * tests/test-poll.c: Use #if for native Windows, rather than testing
87743         __MSVCRT__.
87745 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87746             Bruno Haible  <bruno@clisp.org>
87748         * lib/glob.c: Don't include <pwd.h> on native Windows.
87749         (WINDOWS32): New macro.
87750         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
87752 2008-09-13  Bruno Haible  <bruno@clisp.org>
87754         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
87755         (ETIMEDOUT): Remove macro.
87756         (glthread_cond_timedwait_multithreaded): New declaration.
87757         (glthread_cond_timedwait): Use it.
87758         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
87759         (glthread_cond_timedwait_multithreaded): New function.
87761 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87763         * modules/poll-tests: Do not check for io.h.
87764         * tests/test-poll.c: Check for __MSVCRT__ instead.
87766 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87768         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
87769         * modules/poll-tests: Add inet_pton, stdbool, sockets.
87770         * tests/test-poll.c: Use them.  Use _pipe on Windows.
87772 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87774         * modules/poll-tests: New.
87775         * tests/test-poll.c: New.
87777 2008-09-12  Eric Blake  <ebb9@byu.net>
87779         frexp: test for NetBSD failure on -0.0
87780         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
87781         not all, bugs from NetBSD 3.0 have been fixed.
87782         * doc/posix-functions/frexp.texi (frexp): Document bug.
87783         Reported by Thomas Klausner.
87785         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
87786         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
87787         literal -0.0.
87788         Reported by Jonathan C. Patschke <jp@centtech.com>.
87790 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87792         * lib/glthread/cond.h: Use dummy implementation also if
87793         USE_WIN32_THREADS.
87795 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87797         * modules/fnmatch-posix (License): Change to LGPLv2+.
87798         * modules/fnmatch-gnu (License): Likewise.
87800 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87802         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
87804 2008-09-11  Jim Meyering  <meyering@redhat.com>
87806         * users.txt: Add gtk-vnc.
87808 2008-09-08  Simon Josefsson  <simon@josefsson.org>
87810         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
87811         rotate amounts.
87813         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
87814         required for 16-bit and 8-bit rotates.
87815         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
87816         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
87817         UINT8_MAX instead of hard-coded constants.
87818         Suggested by Paul Eggert.
87820 2008-09-07  Bruno Haible  <bruno@clisp.org>
87822         * tests/test-striconveh.c (main): Check behaviour when converting from
87823         UTF-7.
87825         Make striconveh work better with stateful encodings.
87826         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
87827         that iconv does not increment the inptr when returning -1/EINVAL.
87829 2008-09-07  Bruno Haible  <bruno@clisp.org>
87831         * build-aux/config.rpath: Update according to libtool-2.2.6.
87832         * build-aux/config.libpath: Likewise.
87834 2008-09-06  Bruno Haible  <bruno@clisp.org>
87836         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
87837         * lib/freadptr.c (freadptr): Likewise.
87838         * lib/freadseek.c (freadptrinc): Likewise.
87839         Reported by Simon Josefsson.
87841 2008-09-06  Bruno Haible  <bruno@clisp.org>
87843         * modules/freadptr (License): Change to LGPLv2+.
87844         * modules/freadseek (License): Likewise.
87845         Suggested by Eric Blake.
87847         * modules/memchr2 (License): Change to LGPLv2+.
87848         Approved by Eric Blake.
87850 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87851             Bruno Haible  <bruno@clisp.org>
87853         Make gnulib-tool work with native 'sed' on AIX.
87854         * gnulib-tool (sed_noop): New variable.
87855         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
87856         func_add_or_update, func_create_testdir): Use it to initialize sed
87857         script variables.
87858         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87860 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
87861             Bruno Haible  <bruno@clisp.org>
87863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
87864         also works after #include directives.
87866 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
87868         getdate.y: reject an out-of-range timezone value
87869         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
87870         the range [-24...+24].  When specified with only one or two digits,
87871         * tests/test-getdate.c: Tests for the fix.
87872         * doc/getdate.texi: Document this change.
87874 2008-09-03  Bruno Haible  <bruno@clisp.org>
87876         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
87878 2008-09-02  Simon Josefsson  <simon@josefsson.org>
87880         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
87881         <bruce.korb@gmail.com> with ideas from Ben Pfaff
87882         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
87883         Blake <ebb9@byu.net>.
87885         * tests/test-bitrotate.c: Add more test vectors.
87887 2008-09-02  Eric Blake  <ebb9@byu.net>
87889         vasnprintf-posix: handle large precision via %.*d
87890         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
87891         when handling it ourselves.
87892         * tests/test-vasnprintf-posix.c (test_function): Add test.
87893         * tests/test-snprintf-posix.h (test_function): Likewise.
87894         * tests/test-sprintf-posix.h (test_function): Likewise.
87895         * tests/test-vasprintf-posix.c (test_function): Likewise.
87896         Reported by Alain Guibert.
87898 2008-09-01  Eric Blake  <ebb9@byu.net>
87900         c-stack: make configure-time check more robust
87901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
87902         successful sigaction call.
87903         Reported by Tom G. Christensen.
87905 2008-09-01  Bruno Haible  <bruno@clisp.org>
87907         New module 'findprog-lgpl'.
87908         * modules/findprog-lgpl: New file.
87909         * lib/findprog-lgpl.c: New file.
87910         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
87911         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
87912         to decide whether to use strdup or xstrdup, concatenated_filename or
87913         xconcatenated_filename.
87915 2008-09-01  Bruno Haible  <bruno@clisp.org>
87917         Split module 'concat-filename' into 'concat-filename' (LGPL) and
87918         'xconcat-filename' (GPL).
87919         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
87920         (License): Change to LGPLv2+.
87921         * modules/xconcat-filename: New file.
87922         * lib/concat-filename.h (concatenated_filename): Change specification.
87923         (xconcatenated_filename): New declaration.
87924         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
87925         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
87926         memory situations.
87927         * lib/xconcat-filename.c: New file.
87928         * NEWS: Mention the change.
87929         * lib/findprog.c: Include concat-filename.h, not filename.h.
87930         (find_in_path): Use xconcatenated_filename instead of
87931         concatenated_filename.
87932         * lib/javacomp.c: Include concat-filename.h, not filename.h.
87933         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
87934         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
87935         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
87936         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
87937         instead of concatenated_filename.
87938         * lib/javaexec.c: Include concat-filename.h, not filename.h.
87939         (execute_java_class): Use xconcatenated_filename instead of
87940         concatenated_filename.
87941         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
87942         * modules/javacomp (Depends-on): Likewise.
87943         * modules/javaexec (Depends-on): Likewise.
87945 2008-09-01  Bruno Haible  <bruno@clisp.org>
87947         Split module 'filename' into 'filename' and 'concat-filename'.
87948         * modules/filename: Keep only lib/filename.h.
87949         (License): Change to LGPLv2+.
87950         * modules/concat-filename: New file, extracted from modules/filename.
87951         * lib/filename.h (concatenated_filename): Remove declaration.
87952         * lib/concat-filename.h: New file, extracted from lib/filename.h.
87953         * lib/concat-filename.c: Include concat-filename.h.
87954         * NEWS: Mention the change.
87956 2008-09-01  Simon Josefsson  <simon@josefsson.org>
87958         * lib/bitrotate.h (rotl8, rotr8): Add.
87960         * modules/bitrotate (configure.ac): Need
87961         AC_REQUIRE([AC_C_INLINE]).
87962         (Description): Mention stdint.h.  Reported by Bruno Haible
87963         <bruno@clisp.org>.
87965         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
87966         Paolo Bonzini <bonzini@gnu.org>.
87968 2008-08-31  Bruno Haible  <bruno@clisp.org>
87970         Assume Solaris specific bi-arch conventions on Solaris systems.
87971         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
87972         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
87973         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
87974         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
87975         like acl_libdirstem.
87976         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
87977         acl_libdirstem.
87978         * NEWS: Mention the change.
87979         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
87981 2008-08-31  Jim Meyering  <meyering@redhat.com>
87983         * lib/strftime.h: Add comments describing the two added arguments.
87985         remove duplicate #include directives
87986         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
87987         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
87989 2008-08-31  Bruno Haible  <bruno@clisp.org>
87991         New module 'sigpipe-die'.
87992         * modules/sigpipe-die: New file.
87993         * lib/sigpipe-die.h: New file.
87994         * lib/sigpipe-die.c: New file.
87995         * MODULES.html.sh (Signal handling): Add sigpipe-die.
87997 2008-08-31  Bruno Haible  <bruno@clisp.org>
87999         Don't override previously installed signal handlers.
88000         * lib/fatal-signal.c (saved_sigactions): New variable.
88001         (uninstall_handlers): Reset the signal to the saved handler, not
88002         to SIG_DFL (except when ignored).
88003         (install_handlers): Save the previous handlers.
88005 2008-08-30  Bruno Haible  <bruno@clisp.org>
88007         * gnulib-tool (func_reset_sigpipe): New function.
88008         (func_get_automake_snippet, func_modules_transitive_closure,
88009         func_import): Invoke it before a join command that reads from stdin,
88010         to avoid "echo: write error: Broken pipe" error messages on stderr.
88011         Reported by Sam Steingold <sds@gnu.org>.
88013 2008-08-30  Bruno Haible  <bruno@clisp.org>
88015         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88016         Code copied from m4/open.m4.
88017         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88018         access and the filename ends in a slash. Code copied from lib/open.c.
88019         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88020         * tests/test-fopen.c (main): Check against bug with trailing slash.
88022 2008-08-29  Bruno Haible  <bruno@clisp.org>
88024         Avoid some "gcc -pedantic" warnings.
88025         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88026         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88027         * lib/dirent.in.h: Likewise.
88028         * lib/fcntl.in.h: Likewise.
88029         * lib/float.in.h: Likewise.
88030         * lib/iconv.in.h: Likewise.
88031         * lib/inttypes.in.h: Likewise.
88032         * lib/locale.in.h: Likewise.
88033         * lib/math.in.h: Likewise.
88034         * lib/netinet_in.in.h: Likewise.
88035         * lib/search.in.h: Likewise.
88036         * lib/signal.in.h: Likewise.
88037         * lib/stdarg.in.h: Likewise.
88038         * lib/stdint.in.h: Likewise.
88039         * lib/stdio.in.h: Likewise.
88040         * lib/stdlib.in.h: Likewise.
88041         * lib/string.in.h: Likewise.
88042         * lib/strings.in.h: Likewise.
88043         * lib/sys_select.in.h: Likewise.
88044         * lib/sys_socket.in.h: Likewise.
88045         * lib/sys_stat.in.h: Likewise.
88046         * lib/sys_time.in.h: Likewise.
88047         * lib/sysexits.in.h: Likewise.
88048         * lib/time.in.h: Likewise.
88049         * lib/unistd.in.h: Likewise.
88050         * lib/wchar.in.h: Likewise.
88051         * lib/wctype.in.h: Likewise.
88052         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88053         * modules/fchdir (Makefile.am): Likewise.
88054         * modules/fcntl (Makefile.am): Likewise.
88055         * modules/float (Makefile.am): Likewise.
88056         * modules/iconv_open (Makefile.am): Likewise.
88057         * modules/inttypes (Makefile.am): Likewise.
88058         * modules/locale (Makefile.am): Likewise.
88059         * modules/math (Makefile.am): Likewise.
88060         * modules/netinet_in (Makefile.am): Likewise.
88061         * modules/search (Makefile.am): Likewise.
88062         * modules/signal (Makefile.am): Likewise.
88063         * modules/stdarg (Makefile.am): Likewise.
88064         * modules/stdint (Makefile.am): Likewise.
88065         * modules/stdio (Makefile.am): Likewise.
88066         * modules/stdlib (Makefile.am): Likewise.
88067         * modules/string (Makefile.am): Likewise.
88068         * modules/strings (Makefile.am): Likewise.
88069         * modules/sys_select (Makefile.am): Likewise.
88070         * modules/sys_socket (Makefile.am): Likewise.
88071         * modules/sys_stat (Makefile.am): Likewise.
88072         * modules/sys_time (Makefile.am): Likewise.
88073         * modules/sysexits (Makefile.am): Likewise.
88074         * modules/time (Makefile.am): Likewise.
88075         * modules/unistd (Makefile.am): Likewise.
88076         * modules/wchar (Makefile.am): Likewise.
88077         * modules/wctype (Makefile.am): Likewise.
88078         Reported by Reuben Thomas <rrt@sc3d.org>.
88080 2008-08-29  Bruno Haible  <bruno@clisp.org>
88082         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88083         any more.
88085 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88087         * MODULES.html.sh (Misc): Add bitrotate.
88089         * modules/bitrotate: New file.
88091         * lib/bitrotate.h: New file.
88093         * modules/bitrotate-tests: New file.
88095         * tests/test-bitrotate.c: New file.
88097         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88098         on the bitrotate module.
88100         * lib/arctwo.c: Use new bitrotate module.
88102 2008-08-29  Jim Meyering  <meyering@redhat.com>
88104         bootstrap: merge changes from coreutils
88105         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88106         of copied files.  Remove a kludge, now that this is fixed.
88107         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88108         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88109         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88111 2008-08-29  Bruno Haible  <bruno@clisp.org>
88113         * MODULES.html.sh: Remove --cvs-urls option.
88115 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88117         maint.mk: adjust to file name change
88118         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88120 2008-08-28  Jim Meyering  <meyering@redhat.com>
88122         * modules/getndelim2 (License): Relicense to LGPLv2+.
88123         Approved by Richard Stallman for the version of 1995, and by
88124         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88126 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88128         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88129         dummy if one is not available.  Do not touch them if
88130         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88131         (getc_maybe_unlocked): New.
88132         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88134 2008-08-26  Eric Blake  <ebb9@byu.net>
88136         doc/INSTALL: resync from autoconf
88137         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88138         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88139         moving...
88140         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88141         * INSTALL: Regenerate.
88142         * INSTALL.ISO: New file.
88143         * INSTALL.UTF-8: Likewise.
88145 2008-08-26  Jim Meyering  <meyering@redhat.com>
88147         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88148         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88149         these definitions conditional, so that they may be overridden, too.
88151 2008-08-26  Bruno Haible  <bruno@clisp.org>
88153         Generate INSTALL file variants with prettier quotes.
88154         * doc/Makefile (INSTALL_PRELUDE): New macro.
88155         (INSTALL): Use it.
88156         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88158 2008-08-26  Bruno Haible  <bruno@clisp.org>
88160         Run makeinfo in an English locale.
88161         * doc/Makefile (MAKEINFO): New variable.
88163 2008-08-26  Bruno Haible  <bruno@clisp.org>
88165         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88166         Suggested by Eric Blake.
88168 2008-08-25  Bruno Haible  <bruno@clisp.org>
88170         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88172 2008-08-25  Eric Blake  <ebb9@byu.net>
88174         c-stack: test that stack overflow can be caught
88175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88176         that platform allows handling stack overflow; at least OS/2 EMX
88177         has sigaltstack, but crashes before transferring control to
88178         handler on stack overflow.
88179         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88180         check for HAVE_STACK_OVERFLOW_HANDLING.
88181         Reported by Elbert Pol.
88183 2008-08-25  Bruno Haible  <bruno@clisp.org>
88185         * doc/posix-functions/strftime.texi: Fix description of strftime
88186         module.
88188 2008-08-24  Bruno Haible  <bruno@clisp.org>
88190         * tests/uniwidth/test-uc_width2.c: New file.
88191         * tests/uniwidth/test-uc_width2.sh: New file.
88192         * modules/uniwidth/width-tests (Files): Add the new files.
88193         (TESTS): Add uniwidth/test-uc_width2.sh.
88194         (TESTS_ENVIRONMENT): New variable.
88195         (check_PROGRAMS): Add test-uc_width2.
88196         (test_uc_width2_SOURCES): New variable.
88198         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88199         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88200         not 0x00AB.
88201         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88203 2008-08-22  Eric Blake  <ebb9@byu.net>
88205         test-lock, test-tls: mention why a test is skipped
88206         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88207         skipped.
88208         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88210         count-one-bits: relax license
88211         * modules/count-one-bits (License): Relicense to LGPLv2+.
88212         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88214 2008-08-22  Andreas Schwab  <schwab@suse.de>
88216         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88217         Remove spurious space in assignment.
88219 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88221         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88222         Paul Eggert <eggert@CS.UCLA.EDU>.
88224 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88226         * modules/gettext: Add m4/threadlib.m4.
88228 2008-08-19  Eric Blake  <ebb9@byu.net>
88230         test-c-stack: fix compilation failure on FreeBSD 5.0
88231         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88232         headers before <sys/resource.h>.
88233         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88234         the bug.
88235         Reported by Nelson H. F. Beebe.
88237         strverscmp: migrate from "strverscmp.h" to <string.h>
88238         * modules/string (Makefile.am): Add new hooks.
88239         * modules/strverscmp (Files): Remove strverscmp.h.
88240         (Depends-on): Add string.
88241         (configure.ac): Add indicator.
88242         (Include): Mention new header.
88243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88244         defaults.
88245         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88246         results.
88247         * lib/strverscmp.h: Delete.
88248         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88249         * tests/test-strverscmp.c (includes): Adjust client.
88250         * lib/check-version.c (includes): Likewise.
88251         * NEWS: Document the change.
88253         strverscmp: add unit test
88254         * modules/strverscmp-tests: New file.
88255         * tests/test-strverscmp.c: Likewise.
88257 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88259         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88260         regarding Windows crypto stuff, from Mono.
88262 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88264         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88265         if present, for intel RND.  Return error on failures.
88267 2008-08-18  Ben Pfaff  <blp@gnu.org>
88269         gitlog-to-changelog: give better diagnostic for failed pipe-open
88270         * build-aux/gitlog-to-changelog: Improve error message: suggest
88271         that the version of Git may be too old.
88273 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88275         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88276         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88278 2008-08-18  Bruno Haible  <bruno@clisp.org>
88280         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88281         pthread_in_use().
88283 2008-08-18  Bruno Haible  <bruno@clisp.org>
88285         * lib/glthread/threadlib.c: Include <pthread.h>.
88287 2008-08-18  Bruno Haible  <bruno@clisp.org>
88289         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88290         glthread_recursive_lock_* macros.
88291         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88292         Fix syntax error.
88294 2008-08-18  Bruno Haible  <bruno@clisp.org>
88296         * lib/glthread/thread.c: Avoid forcing a context switch right after
88297         thread creation.
88299 2008-08-17  Bruno Haible  <bruno@clisp.org>
88301         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88302         * lib/glthread/thread.h: Provide Win32 specific implementation.
88303         * modules/thread (Files): Add lib/glthread/thread.c.
88304         (Depends-on): Add lock.
88305         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88307 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88309         New module 'yield'.
88310         * modules/yield: New file.
88311         * lib/glthread/yield.h: New file.
88312         * m4/yield.m4: New file.
88313         * MODULES.html.sh (Multithreading): Add yield.
88315 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88317         New module 'thread'.
88318         * modules/thread: New file.
88319         * lib/glthread/thread.h: New file.
88320         * m4/thread.m4: New file.
88321         * MODULES.html.sh (Multithreading): Add thread.
88323 2008-08-17  Bruno Haible  <bruno@clisp.org>
88325         * lib/glthread/lock.h: Include <stdlib.h> always.
88326         * lib/glthread/tls.h: Likewise.
88327         * lib/glthread/cond.h: Likewise.
88329 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88331         New module 'cond'.
88332         * modules/cond: New file.
88333         * lib/glthread/cond.h: New file.
88334         * lib/glthread/cond.c: New file.
88335         * m4/cond.m4: New file.
88336         * MODULES.html.sh (Multithreading): Add cond.
88338 2008-08-16  Eric Blake  <ebb9@byu.net>
88340         c-stack: fix regression on Irix 5.3 from 2008-06-21
88341         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88342         sa_sigaction...
88343         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88344         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88345         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88346         * modules/signal (Makefile.am): Use the value.
88347         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88348         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88349         * doc/posix-headers/signal.texi (signal.h): Document this
88350         portability issue.
88351         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88352         Reported by Tom G. Christensen.
88354 2008-08-17  Bruno Haible  <bruno@clisp.org>
88356         New module 'threadlib'.
88357         * modules/threadlib: New file.
88358         * lib/glthread/threadlib.c: New file, extracted from
88359         lib/glthread/lock.c.
88360         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88361         functions.
88362         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88363         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88364         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88365         macros.
88366         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88367         (gl_DISABLE_THREADS): Remove macro.
88368         * modules/lock (Files): Remove build-aux/config.rpath.
88369         (Depends-on): Remove havelib. Add threadlib.
88370         (configure.ac-early): Remove section.
88371         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88372         * modules/tls (Depends-on): Remove lock. Add threadlib.
88373         (Link): New section, copied from threadlib.
88374         * MODULES.html.sh (Multithreading): Add threadlib.
88376 2008-08-14  Bruno Haible  <bruno@clisp.org>
88378         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88379         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88380         glthread_rwlock_unlock, glthread_rwlock_destroy,
88381         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88382         glthread_recursive_lock_destroy): Define as macros always.
88383         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88384         glthread_lock_lock.
88385         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88386         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88387         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88388         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88389         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88390         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88391         (glthread_recursive_lock_lock_func): Renamed from
88392         glthread_recursive_lock_lock.
88393         (glthread_recursive_lock_unlock_func): Renamed from
88394         glthread_recursive_lock_unlock.
88395         (glthread_recursive_lock_destroy_func): Renamed from
88396         glthread_recursive_lock_destroy.
88398 2008-08-14  Bruno Haible  <bruno@clisp.org>
88400         * lib/glthread/lock.h: Renamed from lib/lock.h.
88401         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88402         * lib/glthread/tls.h: Renamed from lib/tls.h.
88403         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88404         * lib/fstrcmp.c: Update includes.
88405         * lib/strsignal.c: Update includes.
88406         * modules/lock (Files, Makefile.am): Update.
88407         (Include): Change to "glthread/lock.h".
88408         * modules/tls (Files, Makefile.am): Update.
88409         (Include): Change to "glthread/tls.h".
88410         * tests/test-lock.c: Update includes.
88411         * tests/test-tls.c: Update includes.
88412         * NEWS: Mention the renamed header files.
88414 2008-08-11  Jim Meyering  <meyering@redhat.com>
88416         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88418 2008-08-11  Eric Blake  <ebb9@byu.net>
88420         test-c-stack: avoid C99-ism
88421         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88422         before statement.
88423         Reported by Alain Guibert.
88425 2008-08-10  Jim Meyering  <meyering@redhat.com>
88427         ensure that return value of uinttostr et al are not ignored
88428         * lib/inttostr.h (__GNUC_PREREQ): Define.
88429         (__attribute_warn_unused_result__): Define.
88430         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88432 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88434         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88435         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88437 2008-08-07  Jim Meyering  <meyering@redhat.com>
88439         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88441         * modules/mkstemp (License): Relicense under LGPLv2+.
88442         * modules/tempname (License): Likewise.
88444 2008-08-06  Bruno Haible  <bruno@clisp.org>
88446         * lib/poll.c (poll): Further micro-optimization.
88448 2008-08-06  Jim Meyering  <meyering@redhat.com>
88450         inet_pton.c: use locale-independent tolower
88451         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88452         (inet_pton6): Use c_tolower rather than tolower.
88453         * modules/inet_pton (Depends-on): Add c-ctype.
88455 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88457         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88458         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88460 2008-08-06  Jim Meyering  <meyering@redhat.com>
88462         * modules/inet_pton (License): Relicense under LGPLv2+.
88464 2008-08-03  Bruno Haible  <bruno@clisp.org>
88466         Additional non-aborting API for lock and tls.
88467         * lib/lock.h: Include <errno.h>.
88468         (glthread_lock_init): New macro/function.
88469         (gl_lock_init): Define as wrapper around glthread_lock_init.
88470         (glthread_lock_lock): New macro/function.
88471         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88472         (glthread_lock_unlock): New macro/function.
88473         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88474         (glthread_lock_destroy): New macro/function.
88475         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88476         (glthread_rwlock_init): New macro/function.
88477         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88478         (glthread_rwlock_rdlock): New macro/function.
88479         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88480         (glthread_rwlock_wrlock): New macro/function.
88481         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88482         (glthread_rwlock_unlock): New macro/function.
88483         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88484         (glthread_rwlock_destroy): New macro/function.
88485         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88486         (glthread_recursive_lock_init): New macro/function.
88487         (gl_recursive_lock_init): Define as wrapper around
88488         glthread_recursive_lock_init.
88489         (glthread_recursive_lock_lock): New macro/function.
88490         (gl_recursive_lock_lock): Define as wrapper around
88491         glthread_recursive_lock_lock.
88492         (glthread_recursive_lock_unlock): New macro/function.
88493         (gl_recursive_lock_unlock): Define as wrapper around
88494         glthread_recursive_lock_unlock.
88495         (glthread_recursive_lock_destroy): New macro/function.
88496         (gl_recursive_lock_destroy): Define as wrapper around
88497         glthread_recursive_lock_destroy.
88498         (glthread_once): New macro/function.
88499         (gl_once): Define as wrapper around glthread_once.
88500         Update function declarations.
88501         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88502         glthread_rwlock_init. Return error code.
88503         (glthread_rwlock_rdlock_multithreaded): Renamed from
88504         glthread_rwlock_rdlock. Return error code.
88505         (glthread_rwlock_wrlock_multithreaded): Renamed from
88506         glthread_rwlock_wrlock. Return error code.
88507         (glthread_rwlock_unlock_multithreaded): Renamed from
88508         glthread_rwlock_unlock. Return error code.
88509         (glthread_rwlock_destroy_multithreaded): Renamed from
88510         glthread_rwlock_destroy. Return error code.
88511         (glthread_recursive_lock_init_multithreaded): Renamed from
88512         glthread_recursive_lock_init. Return error code.
88513         (glthread_recursive_lock_lock_multithreaded): Renamed from
88514         glthread_recursive_lock_lock. Return error code.
88515         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88516         glthread_recursive_lock_unlock. Return error code.
88517         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88518         glthread_recursive_lock_destroy. Return error code.
88519         (glthread_once_call): Make static.
88520         (glthread_once_multithreaded): Renamed from glthread_once.
88521         * lib/tls.h: Include <errno.h>.
88522         (glthread_tls_key_init): New macro/function.
88523         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88524         (glthread_tls_set): New macro/function.
88525         (gl_tls_set): Define as wrapper around glthread_tls_set.
88526         (glthread_tls_key_destroy): New macro/function.
88527         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88528         Update function declarations.
88529         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88530         glthread_tls_get.
88531         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88533 2008-08-04  Eric Blake  <ebb9@byu.net>
88535         gnumakefile: use space, not TAB, outside of targets
88536         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88538 2008-08-02  Jim Meyering  <meyering@redhat.com>
88540         getdate.y: avoid locale-dependent date parsing failure
88541         In Turkish locales, getdate would fail to recognize keywords
88542         containing a lowercase "i".  The solution is not to rely on
88543         locale-sensitive case-conversion.
88544         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88545         (lookup_word): Use c_toupper in place of toupper.
88546         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88547         Reported by Vefa Bicakci <bicave@superonline.com> in
88548         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88549         * modules/getdate (Depends-on): Add c-ctype.
88551 2008-08-02  Bruno Haible  <bruno@clisp.org>
88553         * gnulib-tool (func_import): When updating or creating a .gitignore
88554         file, prepend each added line with a slash, and ignore leading slashes
88555         from the existing lines.
88556         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88558 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88560         Portability fix for GNU make 3.79.1.
88561         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88562         versions do not understand.
88564 2008-08-01  Bruno Haible  <bruno@clisp.org>
88566         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88567         * tests/test-isnanf.h (zero): New variable.
88568         (main): Avoid literal -0.0f.
88569         * tests/test-isnand.h (zero): New variable.
88570         (main): Avoid literal -0.0.
88571         * tests/test-isnanl.h (zero): New variable.
88572         (main): Avoid literal -0.0L.
88573         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88574         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88575         -0.0, -0.0L.
88576         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88577         (test_signbitd): Avoid literal -0.0.
88578         (test_signbitl): Avoid literal -0.0L.
88579         * tests/test-ceilf1.c (zero): New variable.
88580         (main): Avoid literal -0.0f.
88581         * tests/test-ceill.c (zero): New variable.
88582         (main): Avoid literal -0.0L.
88583         * tests/test-floorf1.c (zero): New variable.
88584         (main): Avoid literal -0.0f.
88585         * tests/test-floorl.c (zero): New variable.
88586         (main): Avoid literal -0.0L.
88587         * tests/test-roundf1.c (zero): New variable.
88588         (main): Avoid literal -0.0f.
88589         * tests/test-round1.c (zero): New variable.
88590         (main): Avoid literal -0.0.
88591         * tests/test-roundl.c (zero): New variable.
88592         (main): Avoid literal -0.0L.
88593         * tests/test-truncf1.c (zero): New variable.
88594         (main): Avoid literal -0.0f.
88595         * tests/test-trunc1.c (zero): New variable.
88596         (main): Avoid literal -0.0.
88597         * tests/test-truncl.c (zero): New variable.
88598         (main): Avoid literal -0.0L.
88599         * tests/test-frexp.c (zero): New variable.
88600         (main): Avoid literal -0.0.
88601         * tests/test-frexpl.c (zero): New variable.
88602         (main): Avoid literal -0.0L.
88603         * tests/test-ldexpl.c (zero): New variable.
88604         (main): Avoid literal -0.0L.
88605         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88606         (zerod, zerol): New variables.
88607         (test_function): Avoid literals -0.0, -0.0L.
88608         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88609         (zerod, zerol): New variables.
88610         (test_function): Avoid literals -0.0, -0.0L.
88611         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88612         (zerod, zerol): New variables.
88613         (test_function): Avoid literals -0.0, -0.0L.
88614         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88615         (zerod, zerol): New variables.
88616         (test_function): Avoid literals -0.0, -0.0L.
88617         * tests/test-strtod.c (zero): New variable.
88618         (main): Avoid literal -0.0.
88619         Reported by Jonathan C. Patschke <jp@centtech.com>.
88621 2008-07-31  Jim Meyering  <meyering@redhat.com>
88623         sha256.h: correct definition of SHA224_DIGEST_SIZE
88624         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
88625         Reported by Paulie Pena IV <paulie4@gmail.com>.
88626         Define as 224 / 8, rather than as a literal.
88627         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
88628         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
88629         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
88631 2008-07-31  Bruno Haible  <bruno@clisp.org>
88633         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
88634         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
88635         Reported by Jonathan Patschke <jp@centtech.com>.
88637 2008-07-31  Bruno Haible  <bruno@clisp.org>
88639         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
88640         Reported by Paolo Bonzini <bonzini@gnu.org>.
88642 2008-07-30  Eric Blake  <ebb9@byu.net>
88644         test-strtod: allow compilation without -lm
88645         * tests/test-strtod.c (main): Avoid link dependence on fabs.
88646         Reported by Dennis Clarke <blastwave@gmail.com>.
88648 2008-07-28  Jim Meyering  <meyering@redhat.com>
88650         bootstrap: work also when there are no .po files in po/
88651         * build-aux/bootstrap (update_po_files): Complete the change
88652         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
88654 2008-07-27  Jim Meyering  <meyering@redhat.com>
88656         * users.txt: Add zile.
88658 2008-07-26  Ben Pfaff  <blp@gnu.org>
88660         Add missing dependencies on new m4/exponent[fdl].m4 files.
88661         * modules/isnanf-nolibm: Add m4/exponentf.m4.
88662         * modules/isnand-nolibm: Add m4/exponentd.m4.
88663         * modules/isnanl-nolibm: Add m4/exponentl.m4.
88664         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
88665         m4/isnan[fdl].m4, because the macros actually used moved.
88666         Reported by Jim Meyering.
88668 2008-07-14  Ben Pfaff  <blp@gnu.org>
88670         Add isinf module.
88671         * lib/isinf.c: New file.
88672         * lib/math.in.h: Define isinf macro if we have decided to replace
88673         it.
88674         * m4/isinf.m4: New file.
88675         * m4/math_h.m4: Initialize and substitute variables for isinf
88676         module.
88677         * modules/isinf: New file.
88678         * modules/isinf-tests: New file.
88679         * modules/math: Add substitutions for new module.
88680         * tests/test-isinf.c: New file.
88681         * doc/posix-functions/isinf.texi: Mention new module.
88682         * MODULES.html.sh: Mention new module.
88684 2008-07-14  Ben Pfaff  <blp@gnu.org>
88686         Factor out some macros for use by additional modules.
88687         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
88688         exponentf.m4.
88689         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
88690         exponentd.m4.
88691         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
88692         file exponentl.m4.
88693         * m4/exponentf.m4: New file.
88694         * m4/exponentd.m4: New file.
88695         * m4/exponentl.m4: New file.
88696         * modules/isnanf: Use new file m4/exponentf.m4.
88697         * modules/isnand: Use new file m4/exponentd.m4.
88698         * modules/isnanl: Use new file m4/exponentl.m4.
88700 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
88702         mktime.c: normalize tp->tm_isdst value to -1/0/1.
88703         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
88704         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
88705         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
88707         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
88708         readlink on platforms without PATH_MAX.
88710 2008-07-21  Eric Blake  <ebb9@byu.net>
88712         Warn, not fail, on stale version.
88713         * top/GNUmakefile (_curr-ver): Tone down previous patch.
88715         Don't allow installation with stale devel version number.
88716         * top/GNUmakefile (_is-install-target): New macro.
88717         (_curr-ver): Forbid installation with stale version number.
88719 2008-07-20  Bruno Haible  <bruno@clisp.org>
88721         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
88722         TESTS_ENVIRONMENT.
88723         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
88725 2008-07-20  Bruno Haible  <bruno@clisp.org>
88727         * lib/c-stack.h (c_stack_action): Add documentation.
88728         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
88730 2008-07-20  Bruno Haible  <bruno@clisp.org>
88732         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
88733         * modules/readlink (License): Likewise.
88735 2008-07-17  Eric Blake  <ebb9@byu.net>
88737         * modules/c-stack (Link): Fix typo.
88739         Make c-stack use libsigsegv, when available.
88740         * modules/c-stack (Depends-on): Add libsigsegv.
88741         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
88742         needed.
88743         * lib/c-stack.c (SIGSTKSZ): Define fallback.
88744         (segv_handler, overflow_handler, c_stack_action)
88745         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
88746         implementation when libsigsegv is available, but only when using
88747         the library is necessary.
88748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
88749         comment, explaining why XSI check fails on Linux.
88750         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
88751         * tests/test-c-stack2.sh: Tweak skip message.
88752         * NEWS: Document new link-time requirements.
88754 2008-07-16  Eric Blake  <ebb9@byu.net>
88756         c-stack: Expose false positives when not using libsigsegv.
88757         * modules/c-stack-tests (Files): Expand test.
88758         * tests/test-c-stack.c (main): Add means to conditionally trigger
88759         non-overflow SIGSEGV.
88760         * tests/test-c-stack2.sh: New file.
88762 2008-07-14  Bruno Haible  <bruno@clisp.org>
88764         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
88765         Reported by Eric Blake.
88767 2008-07-14  Sam Steingold  <sds@gnu.org>
88768             Bruno Haible  <bruno@clisp.org>
88770         New module libsigsegv.
88771         * modules/libsigsegv: New file.
88772         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
88773         modifications.
88774         * MODULES.html.sh (Signal handling): New section.
88776 2008-07-14  Bruno Haible  <bruno@clisp.org>
88778         * modules/unictype/ctype-* (Description): Add the word "function".
88779         Improves the resulting doc in MODULES.html.
88781 2008-07-12  Ben Pfaff  <blp@gnu.org>
88783         Add longlong module.
88784         * modules/longlong: New file.
88786 2008-07-12  Bruno Haible  <bruno@clisp.org>
88788         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
88789         to empty.
88791 2008-07-10  Ben Pfaff  <blp@gnu.org>
88793         Add isnan module.
88794         * doc/posix-functions/isnan.texi: Mention new module.
88795         * lib/math.in.h: Define isnan macro if we have decided to replace
88796         it.
88797         * m4/isnan.m4: New file.
88798         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
88799         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
88800         also.
88801         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
88802         redundancy.
88803         * m4/math_h.m4: Initialize and substitute variables for isnan
88804         module.
88805         * modules/isnan: New file.
88806         * modules/isnan-tests: New file.
88807         * modules/math: Add substitutions for new module.
88808         * tests/test-isnan.c: New file.
88809         * MODULES.html.sh: Mention new module.
88811 2008-07-10  Ben Pfaff  <blp@gnu.org>
88813         Add isnanf module.
88814         * lib/isnanf.m4: New file.
88815         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
88816         (gl_HAVE_ISNANF_IN_LIBM): New macro.
88817         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
88818         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
88819         * modules/isnanf: New file.
88820         * modules/isnanf-tests: New file.
88821         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
88822         files.
88823         * tests/test-isnanf-nolibm.c: factored most of its contents into
88824         new file tests/test-isnanf.h.
88825         * tests/test-isnanf.h: New file.
88826         * tests/test-isnanf.c: New file.
88827         * MODULES.html.sh: Mention new module.
88828         * doc/glibc-functions/isnanf.texi: Mention new module.
88830 2008-07-10  Ben Pfaff  <blp@gnu.org>
88832         Add isnand module.
88833         * lib/isnand.h: New file.
88834         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
88835         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
88836         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
88837         functionality also.
88838         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
88839         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
88840         (gl_HAVE_ISNAND_IN_LIBM): New macro.
88841         * modules/isnand: New file.
88842         * modules/isnand-tests: New file.
88843         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
88844         files.
88845         * tests/test-isnand-nolibm.c: factored most of its contents into
88846         new file tests/test-isnand.h.
88847         * tests/test-isnand.h: New file.
88848         * tests/test-isnand.c: New file.
88849         * MODULES.html.sh: Mention new module.
88851 2008-07-10  Ben Pfaff  <blp@gnu.org>
88853         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
88854         * lib/isnand.h: Rename lib/isnand-nolibm.h.
88855         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
88856         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
88857         * modules/isnanf-nolibm: Update references to renamed files.
88858         * modules/isnand-nolibm: Likewise.
88859         * modules/isnanf-nolibm-tests: Likewise.
88860         * modules/isnand-nolibm-tests: Likewise.
88861         * lib/frexp.c: Likewise.
88862         * lib/isfinite.c: Likewise.
88863         * lib/signbitd.c: Likewise.
88864         * lib/signbitf.c: Likewise.
88865         * lib/vasnprintf.c: Likewise.
88866         * tests/test-ceilf1.c: Likewise.
88867         * tests/test-ceilf2.c: Likewise.
88868         * tests/test-floorf1.c: Likewise.
88869         * tests/test-floorf2.c: Likewise.
88870         * tests/test-frexp.c: Likewise.
88871         * tests/test-round1.c: Likewise.
88872         * tests/test-round2.c: Likewise.
88873         * tests/test-roundf1.c: Likewise.
88874         * tests/test-strtod.c: Likewise.
88875         * tests/test-trunc1.c: Likewise.
88876         * tests/test-trunc2.c: Likewise.
88877         * tests/test-truncf1.c: Likewise.
88878         * tests/test-truncf2.c: Likewise.
88879         * NEWS: Mention the renamed header files.
88881 2008-07-11  Jim Meyering  <meyering@redhat.com>
88883         vc-list-files: make the last-resort awk code more portable
88884         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
88885         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
88886         does not support it.
88888 2008-07-10  Eric Blake  <ebb9@byu.net>
88890         Work with tar's bootstrap.
88891         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
88892         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
88893         an m4 comment.
88895 2008-07-09  Jim Meyering  <meyering@redhat.com>
88897         posix-shell.m4: fix typo that made this test malfunction
88898         * m4/posix-shell.m4: Remove capitalization in variable name.
88900 2008-07-08  Bruno Haible  <bruno@clisp.org>
88902         * m4/onceonly.m4: Update comments.
88903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
88905 2008-07-04  Jim Meyering  <meyering@redhat.com>
88907         * users.txt: Add vc-dwim.
88908         (bison, coreutils): Use the gitweb URL.
88910 2008-07-03  Jim Meyering  <meyering@redhat.com>
88912         * users.txt: Add libffcall.  From Sam Steingold.
88914 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
88916         getdate.y: do not ignore TZ with relative day, month or year offset
88917         * lib/getdate.y (get_date): Move the tz-handling block to follow the
88918         relative-date-handling, since otherwise, the latter would clobber the
88919         sole output (an updated Start value) of the tz-handling block.
88920         * tests/test-getdate.c: Tests for the fix
88922 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88924         Recognize 'foo_LIBRARIES += libgnu.a'.
88925         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
88926         makefile snippet has already specified an installation location,
88927         also using '+='.
88929 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
88931         getdate.y: factor out common actions
88932         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
88933         Use them in place of open-coded actions.
88935 2008-07-01  Simon Josefsson  <simon@josefsson.org>
88937         Add self-test for getdate module.
88938         * modules/getdate-tests: New file.
88939         * tests/test-getdate.c: New file.
88941 2008-06-29  Bruno Haible  <bruno@clisp.org>
88943         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
88944         .gitignore.
88945         Reported by Sylvain Beucler <beuc@beuc.net>.
88947 2008-06-29  Bruno Haible  <bruno@clisp.org>
88949         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
88950         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
88952 2008-06-29  Bruno Haible  <bruno@clisp.org>
88954         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
88955         EXTRA_DIST.
88956         Reported by Sylvain Beucler <beuc@beuc.net>.
88958 2008-06-26  Jim Meyering  <meyering@redhat.com>
88960         make several modules depend on the "open" module
88961         This provides slightly increased consistency when opening-for-write
88962         the name of a non-directory spelled with a trailing slash.
88963         * modules/chdir-safer: Likewise.
88964         * modules/chown: Likewise.
88965         * modules/clean-temp: Likewise.
88966         * modules/copy-file: Likewise.
88967         * modules/fchdir: Likewise.
88968         * modules/fcntl-safer: Likewise.
88969         * modules/pipe: Likewise.
88970         * modules/utime: Likewise.
88971         Prompted by Eric Blake and Bruno Haible.
88973 2008-06-24  Andreas Schwab  <schwab@suse.de>
88975         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
88976         literals can be used as initializers for global variables.
88978 2008-06-23  Eric Blake  <ebb9@byu.net>
88980         Make gnulib-cache.m4 easier to diff.
88981         * gnulib-tool (func_import): Allow newlines when reading cached
88982         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
88984 2008-06-23  Bruno Haible  <bruno@clisp.org>
88986         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
88987         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
88988         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
88989         m4/signalblocking.m4.
88990         (gl_PREREQ_SIGACTION): Don't invoke it.
88991         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
88992         gl_PREREQ_SIG_HANDLER_H.
88993         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
88994         Don't check for sigaction here.
88996 2008-06-23  Bruno Haible  <bruno@clisp.org>
88998         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
88999         (install_handlers): Don't set the SA_RESETHAND flag.
89001 2008-06-23  Bruno Haible  <bruno@clisp.org>
89003         * m4/sigaction.m4: Comment fixes.
89004         * lib/signal.in.h: Likewise.
89006 2008-06-23  Eric Blake  <ebb9@byu.net>
89008         Fix typo.
89009         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89011         Avoid SA_ namespace.
89012         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89013         Reported by Ralf Wildenhues.
89015         Avoid test failure due to SA_RESTORER.
89016         * tests/test-sigaction.c (SA_MASK): New macro.
89017         (main): Avoid failing due to extension flags being set.
89018         Reported by Jim Meyering.
89020         Revert use of sig-handler.h in sigprocmask.c.
89021         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89022         it requires the existence of struct sigaction.
89023         * lib/sigprocmask.c (handler_t): Restore typedef.
89024         (rpl_signal, old_handlers): Use local type.
89026 2008-06-22  Bruno Haible  <bruno@clisp.org>
89028         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89029         conditionally.
89030         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89032 2008-06-22  Bruno Haible  <bruno@clisp.org>
89034         * doc/posix-functions/siginterrupt.texi: Move note.
89036         * lib/signal.in.h (SA_RESTART): New macro.
89037         * lib/sigaction.c: Update comment.
89039         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89041         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89042         (gl_PREREQ_SIGPROCMASK): Invoke it.
89043         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89045         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89047         * lib/sigprocmask.c: Update a comment.
89049 2008-06-21  Eric Blake  <ebb9@byu.net>
89051         Use sigaction module rather than signal().
89052         * modules/c-stack (Depends-on): Add sigaction.
89053         * modules/fatal-signal (Depends-on): Likewise.
89054         * modules/nanosleep (Depends-on): Likewise.
89055         * modules/sigprocmask (Files): Add sig-handler.h.
89056         * modules/sigaction (Files): Likewise.
89057         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89058         Eggert.
89059         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89060         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89061         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89062         (init_fatal_signals): Likewise.
89063         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89064         (siginterrupt): Delete fallback.
89065         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89066         instead.
89067         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89068         siginterrupt.
89070         New module sigaction, for mingw.
89071         * modules/sigaction: New module...
89072         * modules/sigaction-tests: ...and its test.
89073         * m4/sigaction.m4: New file.
89074         * lib/sigaction.c: Likewise.
89075         * tests/test-sigaction.c: Likewise.
89076         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89077         * modules/signal (Makefile.am): Likewise.
89078         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89079         needed.
89080         * doc/posix-headers/signal.texi (signal.h): Mention provided
89081         types.
89082         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89083         that sigaction is preferable.
89084         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89085         module.
89086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89087         sigaction.
89089         Improve robustness of sigprocmask by overriding signal.
89090         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89091         is in use.
89092         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89093         (SIGKILL, SIGSTOP): Provide fallbacks.
89094         (rpl_signal): Implement.
89095         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89096         signal can be called inside handlers.
89098         Fix nanosleep module on mingw.
89099         * modules/nanosleep (Depends-on): Add sys_select.
89100         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89102         Fix licensing of sigprocmask.
89103         * modules/raise (License): Relicense as LGPL.
89105 2008-06-21  Bruno Haible  <bruno@clisp.org>
89107         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89108         result if it contains question marks.
89109         Reported by Michael Geng <linux@michaelgeng.de>.
89111 2008-06-19  Bruno Haible  <bruno@clisp.org>
89113         Fix CVS-ism.
89114         * doc/gnulib.texi: Include updated-stamp.texi.
89115         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89116         (updated-stamp.texi): New rule.
89117         (gnulib.info): Depend on it.
89118         * doc/.gitignore: Add updated-stamp.texi.
89119         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89121 2008-06-19  Bruno Haible  <bruno@clisp.org>
89123         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89124         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89126 2008-06-19  Eric Blake  <ebb9@byu.net>
89128         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89129         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89130         Reported by Stepan Kasal.
89132 2008-06-18  Bruno Haible  <bruno@clisp.org>
89134         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89135         Reported by Eric Blake.
89137 2008-06-18  Eric Blake  <ebb9@byu.net>
89139         Work around cygwin 1.5.25 strsignal bug.
89140         * tests/test-strsignal.c: Allow for const char *.
89141         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89143 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89145         * users.txt: Update URL to article and add author/date
89146         information.
89148 2008-06-17  Bruno Haible  <bruno@clisp.org>
89150         New macro gl_DISABLE_THREADS.
89151         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89152         if the user did not pass --enable-threads or --disable-threads option.
89153         (gl_DISABLE_THREADS): New macro.
89154         Reported by Eric Blake <ebb9@byu.net>.
89156 2008-06-17  Bruno Haible  <bruno@clisp.org>
89158         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89159         when the macro ignores it.
89160         Based on a patch by Eric Blake <ebb9@byu.net>.
89162 2008-06-17  Bruno Haible  <bruno@clisp.org>
89164         * modules/tls (License): Change to LGPLv2+.
89165         Reported by Eric Blake.
89167 2008-06-17  Eric Blake  <ebb9@byu.net>
89169         Simplify c-stack prerequisites.
89170         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89172         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89173         check.
89174         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89175         <sys/resource.h>.
89177         Move c-stack test into testsuite.
89178         * modules/c-stack-tests: New file.
89179         * lib/c-stack.c [DEBUG]: Move test program...
89180         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89181         fail test if sigaltstack is lacking.
89182         * tests/test-c-stack.sh: New driver file.
89184 2008-06-16  Eric Blake  <ebb9@byu.net>
89186         Use raise module consistently.
89187         * modules/fatal-signal (Depends-on): Add raise.
89188         * modules/sigprocmask (Depends-on): Likewise.
89189         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89190         * lib/sigprocmask.c (sigprocmask): Likewise.
89191         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89192         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89194         Fix compliance bug in sigpending.
89195         * lib/sigprocmask.c (sigpending): Return pending array via
89196         parameter, not return value.
89198 2008-06-14  Eric Blake  <ebb9@byu.net>
89200         Improve obstack-printf test code.
89201         * tests/test-obstack-printf.c (test_function): Fix comment, and
89202         simplify usage of obstack_* in macros.  Add a test for coverage.
89203         Reported by Bruno Haible.
89205 2008-06-14  Bruno Haible  <bruno@clisp.org>
89207         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89208         array size as a constant, not as a const variable.
89209         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89210         AC_USE_SYSTEM_EXTENSIONS.
89211         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89212         Test whether the obstack_printf function actually exists.
89213         * modules/obstack-printf (Depends-on): Add extensions.
89214         (Include): Remove obstack.h.
89215         * modules/obstack-printf-posix (Depends-on): Add extensions.
89216         (Include): Remove obstack.h.
89218 2008-06-13  Eric Blake  <ebb9@byu.net>
89220         Add obstack-printf and obstack-printf-posix modules.
89221         * modules/obstack-printf: New file.
89222         * modules/obstack-printf-posix: Likewise.
89223         * MODULES.html.sh (Misc): Mention them.
89224         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89225         Likewise.
89226         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89227         Likewise.
89228         * modules/stdio (Makefile.am): Accomodate new modules.
89229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89230         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89231         Declare.
89232         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89233         functions.
89234         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89235         (gl_REPLACE_OBSTACK_PRINTF): New macros
89236         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89237         * tests/test-obstack-printf.c: New file.
89238         * modules/obstack-printf-tests: Likewise.
89239         * modules/obstack-printf-posix-tests: Likewise.
89241 2008-06-11  Bruno Haible  <bruno@clisp.org>
89243         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89244         * lib/open.c: Include errno.h.
89245         (open): Fail when attempting to write to a file that has a trailing
89246         slash.
89247         * tests/test-open.c (main): Test against trailing slash bug.
89248         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89250 2008-06-10  Bruno Haible  <bruno@clisp.org>
89252         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89253         for $? to work inside the trap command, with various /bin/sh-s.
89254         * tests/test-vc-list-files-cvs.sh: Likewise.
89256 2008-06-10  Bruno Haible  <bruno@clisp.org>
89258         * lib/acl-internal.h: Don't include gettext.h here.
89259         * lib/set-mode-acl.c: Include gettext.h here.
89260         * lib/copy-acl.c: Likewise.
89262 2008-06-10  Bruno Haible  <bruno@clisp.org>
89264         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89265         * lib/wait-process.c (wait_subprocess): Likewise.
89266         * lib/execute.h (execute): Add termsigp argument.
89267         * lib/execute.c (execute): Likewise.
89268         * lib/csharpcomp.c (compile_csharp_using_pnet,
89269         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89270         * lib/csharpexec.c (execute_csharp_using_pnet,
89271         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89272         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89273         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89274         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89275         is_jikes_present): Update.
89276         * lib/javaexec.c (execute_java_class): Update.
89277         * lib/javaversion.c (execute_and_read_line): Update.
89278         * NEWS: Document the changes.
89279         Reported by Eric Blake.
89281 2008-06-10  Eric Blake  <ebb9@byu.net>
89283         Add missing include.
89284         * tests/test-strstr.c (includes): Add <signal.h>.
89285         * tests/test-strcasestr.c (includes): Likewise.
89286         * tests/test-memmem.c (includes): Likewise.
89288 2008-06-10  Bruno Haible  <bruno@clisp.org>
89290         * lib/wait-process.c (wait_subprocess): Add an assertion.
89292 2008-06-10  Bruno Haible  <bruno@clisp.org>
89294         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89296 2008-06-10  Bruno Haible  <bruno@clisp.org>
89298         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89299         using alarm().
89300         * tests/test-strcasestr.c (main): Likewise.
89301         * tests/test-strstr.c (main): Likewise.
89303 2008-06-09  Bruno Haible  <bruno@clisp.org>
89305         Work around the Solaris 10 ACE ACLs ABI change.
89306         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89307         declare if ACL_NO_TRIVIAL is present.
89308         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89309         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89310         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89311         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89312         define if ACL_NO_TRIVIAL is present.
89313         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89314         and use the current ABI.
89315         (file_has_acl): Use same #if condition as elsewhere.
89316         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89317         in use, and use the current ABI.
89318         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89319         Reported by Jim Meyering.
89321 2008-06-09  Eric Blake  <ebb9@byu.net>
89323         Work around environments that (stupidly) ignore SIGALRM.
89324         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89325         before using alarm().
89326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89328         Reported by Ian Beckwith <ianb@erislabs.net>.
89330         Produce autobuild blurb earlier in log.
89331         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89333 2008-06-09  Jim Meyering  <meyering@redhat.com>
89334         and Ondřej Vašík  <ovasik@redhat.com>
89336         utimens.c: correct kernel bug work-around
89337         Ondřej Vašík found that the invalid return value of 280 indicates
89338         failure, not success, and the kernel bug we're trying to work
89339         around affects not just the utimensat call, but also the fallback
89340         futimens call.
89341         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89342         not success.
89343         [HAVE_FUTIMENS]: Use the same work-around, here.
89345 2008-06-09  Jim Meyering  <meyering@redhat.com>
89347         add more guards around definition of ACE_-related code
89348         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89349         ALLOW and ACE_OWNER are also defined.
89351 2008-06-08  Bruno Haible  <bruno@clisp.org>
89353         * lib/acl-internal.h: Add me as co-author.
89354         * lib/file-has-acl.c: Likewise.
89355         * lib/set-mode-acl.c: Likewise.
89356         * lib/copy-acl.c: Likewise.
89358 2008-06-08  Bruno Haible  <bruno@clisp.org>
89360         Add support for AIX ACLs.
89361         * lib/acl-internal.h (acl_nontrivial): New declaration.
89362         * lib/file-has-acl.c (acl_nontrivial): New function.
89363         (file_has_acl): Add implementation using AIX 4 ACL API.
89364         * lib/set-mode-acl.c (qset_acl): Likewise.
89365         * lib/copy-acl.c (qcopy_acl): Likewise.
89367 2008-06-08  Bruno Haible  <bruno@clisp.org>
89369         Add support for HP-UX ACLs.
89370         * lib/acl-internal.h (acl_nontrivial): New declaration.
89371         * lib/file-has-acl.c (acl_nontrivial): New function.
89372         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89373         * lib/set-mode-acl.c (qset_acl): Likewise.
89374         * lib/copy-acl.c (qcopy_acl): Likewise.
89376 2008-06-08  Bruno Haible  <bruno@clisp.org>
89378         Add support for Cygwin ACLs.
89379         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89380         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89381         the chmod_or_fchmod call.
89382         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89384 2008-06-08  Bruno Haible  <bruno@clisp.org>
89386         Fix bug with setuid modes in Solaris 10+ code.
89387         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89388         succeeded, when the mode contains some special bits.
89390 2008-06-08  Bruno Haible  <bruno@clisp.org>
89392         Add support for Solaris 7..10 ACLs.
89393         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89394         declarations.
89395         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89396         functions.
89397         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89398         * lib/set-mode-acl.c (qset_acl): Likewise.
89399         * lib/copy-acl.c (qcopy_acl): Likewise.
89401 2008-06-08  Bruno Haible  <bruno@clisp.org>
89403         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89404         declaration.
89405         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89406         (acl_access_nontrivial): Remove MacOS X case.
89407         (file_has_acl): Use acl_extended_nontrivial.
89408         * lib/copy-acl.c (qcopy_acl): Likewise.
89410 2008-06-08  Bruno Haible  <bruno@clisp.org>
89412         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89414 2008-06-08  Jim Meyering  <meyering@redhat.com>
89416         * modules/acl (Maintainer): Add Bruno Haible.
89418 2008-06-07  Bruno Haible  <bruno@clisp.org>
89420         Improve support for Tru64 ACLs.
89421         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89422         ACL on OSF/1.
89424 2008-06-07  Bruno Haible  <bruno@clisp.org>
89426         Add support for MacOS X ACLs.
89427         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89428         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89429         * lib/set-mode-acl.c (qset_acl): Likewise.
89430         * lib/copy-acl.c (qcopy_acl): Likewise.
89432 2008-06-07  Bruno Haible  <bruno@clisp.org>
89434         Fix memory leak introduced on 2008-05-22.
89435         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89436         use.
89438 2008-06-07  Bruno Haible  <bruno@clisp.org>
89440         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89441         to construct an empty ACL.
89443 2008-06-07  Bruno Haible  <bruno@clisp.org>
89445         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89446         precisely.
89447         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89449 2008-06-07  Bruno Haible  <bruno@clisp.org>
89451         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89452         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89454 2008-06-07  Bruno Haible  <bruno@clisp.org>
89456         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89457         regardless of POSIX.
89458         * doc/posix-functions/_longjmp.texi: Likewise.
89459         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89460         SystemV platform in this case.
89462 2008-06-06  Eric Blake  <ebb9@byu.net>
89464         Document abort() bugs.
89465         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89467         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89468         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89469         sigsetjmp.
89470         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89471         siglongjmp, but only as a macro.
89472         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89473         is obsolete.
89474         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89476         Tweak documentation to cover cygwin argz bugs.
89477         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89478         argz bug fix; no code change needed since no cygwin releases
89479         occurred between the last fix and the bug being tested.
89480         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89481         module and recently fixed cygwin bugs.
89482         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89483         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89484         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89485         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89486         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89487         Likewise.
89488         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89489         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89490         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89491         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89492         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89493         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89494         Likewise.
89496         Avoid gcc warning on cygwin.
89497         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89498         !ACL_NO_TRIVIAL]: Avoid unused variable.
89500 2008-06-05  Eric Blake  <ebb9@byu.net>
89502         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89503         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89504         git-version-gen fails to come up with a version.
89505         Reported by Simon Josefsson.
89507 2008-06-05  Jim Meyering  <meyering@redhat.com>
89508             Paul Eggert  <eggert@cs.ucla.edu>
89510         utimens.c: work around a probable Linux kernel bug
89511         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89512         appears to be a kernel bug that causes utimensat to return 280
89513         instead of 0, indicating success.
89515 2008-06-04  Bruno Haible  <bruno@clisp.org>
89517         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89518         2008-06-01 commit.
89520 2008-06-04  Bruno Haible  <bruno@clisp.org>
89522         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89523         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89524         (file_has_acl): Use it. Save errno afterwards.
89525         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89527 2008-06-03  Bruno Haible  <bruno@clisp.org>
89529         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89530         draft code. Simplify #ifs.
89531         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89532         Put Solaris code after POSIX-draft code. Fix comments regarding
89533         Solaris 10, HP-UX. Mention Cygwin.
89534         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89536 2008-06-03  Eric Blake  <ebb9@byu.net>
89538         Provide fallback for older kernels.
89539         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89540         Provide runtime fallback if kernel lacks support.
89541         Reported by Mike Frysinger.
89543 2008-06-02  Bruno Haible  <bruno@clisp.org>
89545         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89546         it exists.
89548 2008-06-02  Bruno Haible  <bruno@clisp.org>
89550         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89551         * lib/copy-acl.c (qcopy_acl): Update comment.
89553 2008-06-02  Bruno Haible  <bruno@clisp.org>
89555         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89556         like ACL APIs.
89558 2008-06-02  Bruno Haible  <bruno@clisp.org>
89560         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89561         * tests/test-set-mode-acl.sh: Likewise.
89562         * tests/test-copy-acl.sh: Likewise.
89563         * tests/test-copy-file.sh: Likewise.
89565 2008-06-02  Bruno Haible  <bruno@clisp.org>
89567         * tests/test-file-has-acl.sh: Remove unused code.
89569 2008-06-01  Bruno Haible  <bruno@clisp.org>
89571         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89572         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89573         messages.
89574         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89576 2008-06-01  Bruno Haible  <bruno@clisp.org>
89578         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89579         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89580         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89581         APIs.
89582         * modules/acl-tests (configure.ac): Remove tests now contained in
89583         m4/acl.m4.
89585 2008-06-02  Jim Meyering  <meyering@redhat.com>
89587         announce-gen: use a better key-server host name
89588         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
89589         it may be more consistently reliable.  Suggested by Werner Koch
89590         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
89592 2008-06-01  Bruno Haible  <bruno@clisp.org>
89594         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
89595         Reported by Voroskoi Andras <voroskoi@gmail.com>.
89597 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
89599         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
89601 2008-06-01  Bruno Haible  <bruno@clisp.org>
89603         New ACL tests.
89604         * tests/test-file-has-acl.sh: New file.
89605         * tests/test-file-has-acl.c: New file.
89606         * tests/test-set-mode-acl.sh: New file.
89607         * tests/test-set-mode-acl.c: New file.
89608         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
89609         * tests/test-copy-acl.c: New file.
89610         * modules/acl-tests: New file, based on modules/copy-file-tests.
89611         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
89612         (Depends-on): Add acl-tests.
89613         (configure.ac): Remove checks.
89614         (Makefile.am): Don't create test-sameacls program here any more.
89616 2008-06-01  Bruno Haible  <bruno@clisp.org>
89618         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
89619         * tests/test-sameacls.c: Include progname.h.
89620         (main): Invoke set_program_name. Portability fixes for MacOS X,
89621         Solaris, HP-UX.
89623 2008-06-01  Bruno Haible  <bruno@clisp.org>
89625         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
89626         function.
89627         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
89629 2008-06-01  Bruno Haible  <bruno@clisp.org>
89631         * modules/rpmatch (Depends-on): Add strdup.
89633 2008-06-01  Bruno Haible  <bruno@clisp.org>
89635         * lib/pipe.c: Include unistd-safer.h.
89636         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
89637         * modules/pipe (Depends-on): Add unistd-safer.
89639 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89641         * modules/autobuild (configure.ac): Call AB_INIT.
89643 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89645         * tests/test-getaddrinfo.c: Don't print debug messages by default.
89646         Suggested by Bruno Haible <bruno@clisp.org>.
89648 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89650         * tests/test-base64.c: Cast size_t to unsigned long when invoking
89651         printf.  Use %lu instead of %d.  Reported by Bruno Haible
89652         <bruno@clisp.org>.
89654 2008-05-29  Eric Blake  <ebb9@byu.net>
89656         Prefer new POSIX 200x interfaces over futimesat.
89657         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
89658         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
89659         when available.
89660         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
89662 2008-05-28  Bruno Haible  <bruno@clisp.org>
89664         * modules/stpcpy (License): Change to LGPLv2+.
89665         Requested by David Lutterkort <dlutter@redhat.com>.
89667 2008-05-27  Bruno Haible  <bruno@clisp.org>
89669         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
89670         current mingw.
89671         Reported by Jose E. Marchesi <jemarch@gnu.org>.
89673 2008-05-27  Bruno Haible  <bruno@clisp.org>
89675         * modules/iconv_open (Link): New section, from module 'iconv'.
89676         * modules/striconv (Link): Likewise.
89677         * modules/striconveh (Link): Likewise.
89678         * modules/xstriconv (Link): Likewise.
89679         * modules/unicodeio (Link): Likewise.
89680         * modules/propername (Link): Likewise.
89681         Reported by Jim Meyering.
89683 2008-05-26  Jim Meyering  <meyering@redhat.com>
89685         sha256: do not artificially restrict buffer length to be < 2^32
89686         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
89687         uint32_t to size_t.
89688         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
89689         to match.
89691         avoid unaligned access errors, e.g., on sparc
89692         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
89693         direct access through a possibly-unaligned uint64* pointer.
89694         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
89695         direct access through a possibly-unaligned uint32* pointer.
89696         Prompted by this patch from Tom "spot" Callaway:
89697         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
89699         sha512.c: fix typo in comment
89700         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
89702 2008-05-25  Bruno Haible  <bruno@clisp.org>
89704         * lib/set-mode-acl.c: Renamed from lib/acl.c.
89705         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
89706         (Makefile.am): Update lib_SOURCES.
89708 2008-05-25  Bruno Haible  <bruno@clisp.org>
89710         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
89712 2008-05-25  Jim Meyering  <meyering@redhat.com>
89714         useless-if-before-free: freed expr may have white-space differences
89715         * build-aux/useless-if-before-free: Recognize cases in which the
89716         freed expression differs from the tested one in embedded white
89717         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
89718         $1 was used, so we can't make any regexp shy.  Improved tests now
89719         detect this.
89721         useless-if-before-free: accept white space in the expression.
89722         * build-aux/useless-if-before-free: For now, any white space
89723         in the expression must be identical in the free argument.
89725         useless-if-before-free: efficiency tweak
89726         * build-aux/useless-if-before-free: Make the expression-matching
89727         regexp "shy".
89728         Make the *outer* regexp shy, not the expr-matching one.
89730         update code-in-comment to accept cast of free arg
89731         * build-aux/useless-if-before-free: Update regexp.
89733 2008-05-25  Bruno Haible  <bruno@clisp.org>
89735         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
89736         * modules/copy-file-tests (Files, Makefile.am): Update.
89737         * tests/test-copy-file.c (func_test_copy): Update.
89739 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
89741         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
89743 2008-05-23  Bruno Haible  <bruno@clisp.org>
89745         Improve support for ACLs on OSF/1.
89746         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
89747         Remove fallback for unknown flavors of ACLs.
89749 2008-05-22  Bruno Haible  <bruno@clisp.org>
89751         Add support for ACLs on OSF/1.
89752         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
89753         replacements.
89754         (acl_free_text): New macro fallback.
89755         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
89756         acl_free.
89757         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
89758         acl_free_text function. Require AC_C_INLINE.
89760 2008-05-22  Bruno Haible  <bruno@clisp.org>
89762         Make copy_acl work on MacOS X 10.5.
89763         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
89764         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
89765         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
89766         If MODE_INSIDE_ACL, don't assume that every system has the same text
89767         representation for ACLs as FreeBSD.
89768         * lib/copy-acl.c (copy_acl): Add support for platforms with
89769         !MODE_INSIDE_ACL.
89770         * lib/file-has-acl.c (file_has_acl): Likewise.
89771         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
89772         FreeBSD, MacOS X, or IRIX, respectively.
89774 2008-05-22  Bruno Haible  <bruno@clisp.org>
89776         * lib/acl.h: Don't include <sys/acl.h>.
89777         (GETACLCNT): Move fallback to lib/acl-internal.h.
89778         * lib/acl-internal.h: Include <sys/acl.h> here.
89779         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
89781 2008-05-22  Bruno Haible  <bruno@clisp.org>
89783         Split off copy_acl function to separate file.
89784         * lib/copy-acl.c: New file, extracted from lib/acl.c.
89785         * lib/acl.c (copy_acl): Moved function to separate file.
89786         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
89787         * modules/acl (Files): Add lib/copy-acl.c.
89788         (Makefiles.am): Augment lib_SOURCES.
89790 2008-05-22  Bruno Haible  <bruno@clisp.org>
89792         * modules/copy-file-tests: New file.
89793         * tests/test-copy-file.sh: New file.
89794         * tests/test-copy-file.c: New file.
89795         * tests/test-copy-file-sameacls.c: New file.
89797 2008-05-22  Eric Blake  <ebb9@byu.net>
89799         Avoid gcc warning.
89800         * tests/test-memcmp.c (main): Pass NULL indirectly.
89802 2008-05-21  Bruno Haible  <bruno@clisp.org>
89804         Add reference doc about ACLs.
89805         * doc/acl-resources.txt: New file.
89806         * doc/acl-cygwin.txt: New file.
89808 2008-05-21  Bruno Haible  <bruno@clisp.org>
89810         Avoid one more warning from gcc.
89811         * lib/vasnprintf.c (IF_LINT): Update comments.
89812         (VASNPRINTF): Use it also for the 'prefix' array initializer.
89814 2008-05-21  Jim Meyering  <meyering@redhat.com>
89816         avoid a warning from gcc
89817         * lib/vasnprintf.c (IF_LINT): Define.
89818         (scale10_round_decimal_long_double):
89819         Use it to avoid a "may be used uninitialized" warning.
89820         (scale10_round_decimal_double): Likewise.
89822 2008-05-21  Simon Josefsson  <simon@josefsson.org>
89824         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
89825         declared.
89827 2008-05-20  Bruno Haible  <bruno@clisp.org>
89829         * tests/test-memcmp.c (main): Test also the sign of the result. Test
89830         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
89832 2008-05-20  Simon Josefsson  <simon@josefsson.org>
89834         * modules/memcmp-tests: New file.
89835         * tests/test-memcmp.c: New file.
89837 2008-05-19  Bruno Haible  <bruno@clisp.org>
89839         * modules/propername (Notice, configure.ac): Put quoted "..." into
89840         --keyword option.
89841         * lib/propername.h: Update comments accordingly.
89842         Reported by Eric Blake.
89844 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
89846         * modules/getpass-gnu (Depends-on): Add fseeko.
89848 2008-05-19  Simon Josefsson  <simon@josefsson.org>
89850         * modules/base64-tests: New file.
89852 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
89854         * lib/base64.c (base64_decode_ctx): If a decode context structure
89855         was passed in use it to ignore newlines.  If a context structure
89856         was _not_ passed in, continue to treat newlines as garbage (this
89857         is the historical behavior).  Formerly base64_decode.
89858         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
89859         takes a decode context structure.
89860         * lib/base64.h (base64_decode): Macro for four-argument calls.
89861         (base64_decode_alloc): Likewise.
89862         * lib/base64.c (base64_decode_ctx): If a decode context structure
89863         was passed in use it to ignore newlines.  If a context structure
89864         was _not_ passed in, continue to treat newlines as garbage (this
89865         is the historical behavior).  Formerly base64_decode.
89866         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
89867         takes a decode context structure.
89868         * lib/base64.h (base64_decode): Macro for four-argument calls.
89869         (base64_decode_alloc): Likewise.
89871 2008-05-19  Jim Meyering  <meyering@redhat.com>
89873         avoid a warning from gcc
89874         * lib/trim.c (IF_LINT): Define.
89875         (trim2): Use it to avoid a "may be used uninitialized" warning.
89877         Fix doc typo.
89878         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
89880 2008-05-19  Bruno Haible  <bruno@clisp.org>
89882         * doc/glibc-functions/getpass.texi: Document limits of other
89883         implementations.
89885 2008-05-19  Simon Josefsson  <simon@josefsson.org>
89886             Bruno Haible <bruno@clisp.org>
89888         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
89890 2008-05-18  Bruno Haible  <bruno@clisp.org>
89892         * modules/propername: New file, from GNU gettext.
89893         * lib/propername.h: New file, from GNU gettext.
89894         * lib/propername.c: New file, from GNU gettext.
89895         * MODULES.html.sh (Internationalization functions): Add propername.
89897 2008-05-16  Jim Meyering  <meyering@redhat.com>
89898             Bruno Haible  <bruno@clisp.org>
89900         Avoid some warnings from "gcc -Wshadow".
89901         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
89903 2008-05-15  Eric Blake  <ebb9@byu.net>
89905         Extend previous patch to cygwin 1.7.0.
89906         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
89907         fast implementation in cygwin >= 1.7.0.
89908         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89911 2008-05-15  Bruno Haible  <bruno@clisp.org>
89913         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
89914         implementation in glibc >= 2.9.
89915         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89918 2008-05-15  Bruno Haible  <bruno@clisp.org>
89920         * MODULES.html.sh (Internationalization functions): Remove linebreak.
89921         (Unicode string functions): Add unilbrk/*.
89922         Reported by Karl Berry.
89924 2008-05-15  Eric Blake  <ebb9@byu.net>
89926         Fix violation of <stdbool.h> replacement in regex.
89927         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
89928         * lib/regexec.c (re_search_internal): Likewise.
89929         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
89931 2008-05-15  Jim Meyering  <meyering@redhat.com>
89933         avoid distracting test output when git or cvs is not found
89934         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
89935         * tests/test-vc-list-files-git.sh: Likewise.
89937 2008-05-15  Eric Blake  <ebb9@byu.net>
89939         Glibc finally accepted the memmem speedup code, bugzilla #5514.
89940         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
89941         glibc version.
89942         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
89943         * doc/posix-functions/strstr.texi (strstr): Likewise.
89944         * lib/str-two-way.h (MAX): Sychronize with glibc.
89946 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
89948         * lib/regcomp.c (optimize_utf8): Add a note on why we test
89949         opr.ctx_type.
89950         (calc_first): Initialize constraint field.
89951         (duplicate_node_closure): Use it instead of special casing ANCHORS.
89952         Fix grammar.
89953         (duplicate_node): Merge constraint field for all node types.
89954         (calc_eclosure_iter): Look at constraint field for all node types.
89955         * lib/regex_internal.c (create_cd_newstate): Don't look at
89956         opr.ctx_type.
89958 2008-05-14  Bruno Haible  <bruno@clisp.org>
89960         Help GCC to do better code generation.
89961         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
89962         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
89963         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
89964         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
89965         Declare with attribute 'malloc' if supported.
89967 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
89969         use "echo STR|wc -c" rather than unportable "expr length STR"
89970         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
89971         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
89973 2008-05-14  Jim Meyering  <meyering@redhat.com>
89975         use dd ibs=$n count=1 ... rather than less-portable head -c$n
89976         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
89977         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
89978         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
89979         via Collin Lasse.
89981 2008-05-14  Eric Blake  <ebb9@byu.net>
89983         Avoid quadratic growth in gl_LIBSOURCES.
89984         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
89985         Suggested by Bruno Haible.
89987         Test xmemdup0.
89988         * modules/xmemdup0-tests: New file.
89989         * tests/test-xmemdup0.c: Likewise.
89991 2008-05-13  Eric Blake  <ebb9@byu.net>
89993         Split xmemdup0 into its own module.
89994         * modules/xmemdup0: New file.
89995         * lib/xmemdup0.h: Likewise.
89996         * lib/xmemdup0.c: Likewise.
89997         * MODULES.html.sh (Memory management functions): Add xmemdup0.
89998         * lib/xalloc.h (xmemdup0): Remove.
89999         * lib/xmalloc.c (xmemdup0): Likewise.
90001 2008-05-13  Eric Blake  <ebb9@byu.net>
90002             Bruno Haible  <bruno@clisp.org>
90004         Reduce number of forks required during autoconf.
90005         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90006         and gl_LIBSOURCES_DIR.
90007         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90008         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90009         m4_syscmd per file.
90010         <m4_foreach_w>: Move...
90011         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90013 2008-05-13  Eric Blake  <ebb9@byu.net>
90015         * gnulib-tool: Fix various comment typos.
90017 2008-05-12  Bruno Haible  <bruno@clisp.org>
90019         Tailor the linebreaking algorithm.
90020         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90022 2008-05-12  Bruno Haible  <bruno@clisp.org>
90024         Update to Unicode 5.0.0.
90025         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90026         LBP_JV, LBP_JT. Redistribute values.
90027         (unilbrk_table): Change size.
90028         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90029         Unicode TR#14 rev. 22.
90030         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90031         LBP_JV, LBP_JT. Redistribute values.
90032         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90033         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90034         Update.
90035         * lib/unilbrk/lbrkprop1.h: Regenerated.
90036         * lib/unilbrk/lbrkprop2.h: Regenerated.
90037         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90038         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90039         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90040         Likewise.
90041         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90042         Likewise.
90043         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90044         result.
90045         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90046         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90047         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90048         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90049         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90050         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90052 2008-05-11  Bruno Haible  <bruno@clisp.org>
90054         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90056 2008-05-11  Bruno Haible  <bruno@clisp.org>
90058         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90059         * modules/unilbrk/gen-lbrk: New file.
90061 2008-05-11  Bruno Haible  <bruno@clisp.org>
90063         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90064         * m4/sha512.m4 (gl_SHA512): Likewise.
90066 2008-05-11  Jim Meyering  <meyering@redhat.com>
90068         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90069         * modules/crypto/sha256: New file.
90070         * modules/crypto/sha512: Likewise.
90071         * lib/sha256.c: Likewise.
90072         * lib/sha256.h: Likewise.
90073         * lib/sha512.c: Likewise.
90074         * lib/sha512.h: Likewise.
90075         * lib/u64.h: Likewise.
90076         * m4/sha256.m4: Likewise.
90077         * m4/sha512.m4: Likewise.
90078         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90080 2008-05-10  Bruno Haible  <bruno@clisp.org>
90082         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90083         (Input/Output <stdio.h>): Add xprintf.
90084         (Signal handling <signal.h>): Add strsignal.
90085         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90086         (Core language properties): Add func.
90087         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90088         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90089         strings.
90090         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90091         (Input/output): New section.
90092         (File system functions): Add openat-die, stat-macros.
90093         (Networking functions): Add sockets.
90094         (Unicode string functions): Add unictype/*.
90095         (Support for building libraries and executables): Add gperf.
90096         (Support for building documentation): Add agpl-3.0.
90097         (Misc): Add nocrash.
90099 2008-05-10  Bruno Haible  <bruno@clisp.org>
90101         * modules/unictype/gen-ctype: New file.
90103 2008-05-10  Jim Meyering  <meyering@redhat.com>
90105         Make chdir-safer.c more efficient on a system with no symlinks.
90106         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90107         also if ELOOP is zero.  Suggested by Bruno Haible.
90109         Make chdir-safer.c slightly safer.
90110         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90111         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90113         Avoid compile failure on systems without ELOOP (like mingw).
90114         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90115         Reported by Bruno Haible.
90117 2008-05-10  Bruno Haible  <bruno@clisp.org>
90119         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90120         (is_utf8_encoding): Use a case-insensitive comparison.
90121         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90122         streq.
90124 2008-05-10  Bruno Haible  <bruno@clisp.org>
90126         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90127         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90128         * lib/unilbrk/ulc-common.h (iconv_string_length,
90129         iconv_string_keeping_offsets): Remove declarations.
90130         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90131         Don't include <iconv.h>, streq.h, xsize.h.
90132         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90133         conversion.
90134         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90135         <iconv.h>, streq.h, xsize.h.
90136         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90137         conversion.
90138         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90139         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90140         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90141         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90143 2008-05-10  Bruno Haible  <bruno@clisp.org>
90145         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90146         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90148         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90149         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90151         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90152         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90154         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90155         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90157         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90158         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90160         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90161         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90163         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90164         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90166         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90167         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90169 2008-05-10  Bruno Haible  <bruno@clisp.org>
90171         Split up 'linebreak' module.
90172         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90173         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90174         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90175         modifications.
90176         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90177         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90178         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90179         lib/linebreak.c.
90180         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90181         lib/linebreak.c.
90182         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90183         lib/linebreak.c.
90184         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90185         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90186         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90187         lib/linebreak.c.
90188         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90189         lib/linebreak.c.
90190         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90191         lib/linebreak.c.
90192         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90193         lib/linebreak.c.
90194         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90195         lib/linebreak.c.
90196         * modules/unilbrk/base: New file.
90197         * modules/unilbrk/tables: New file.
90198         * modules/unilbrk/u8-possible-linebreaks: New file.
90199         * modules/unilbrk/u16-possible-linebreaks: New file.
90200         * modules/unilbrk/u32-possible-linebreaks: New file.
90201         * modules/unilbrk/ulc-common: New file.
90202         * modules/unilbrk/ulc-possible-linebreaks: New file.
90203         * modules/unilbrk/u8-width-linebreaks: New file.
90204         * modules/unilbrk/u16-width-linebreaks: New file.
90205         * modules/unilbrk/u32-width-linebreaks: New file.
90206         * modules/unilbrk/ulc-width-linebreaks: New file.
90207         * lib/linebreak.h: Remove file.
90208         * lib/linebreak.c: Remove file.
90209         * m4/linebreak.m4: Remove file.
90210         * modules/linebreak: Remove file.
90211         * NEWS: Mention the changes.
90213 2008-05-09  Eric Blake  <ebb9@byu.net>
90215         Add xmemdup0.
90216         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90217         implementation.
90218         * lib/xmalloc.c (xmemdup0): New C implementation.
90220 2008-05-08  Bruno Haible  <bruno@clisp.org>
90222         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90224 2008-05-07  Eric Blake  <ebb9@byu.net>
90226         Support cross-compilation of <wctype.h>.
90227         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90228         AC_CACHE_CHECK.
90230 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90232         * build-aux/vc-list-files: Add support for bzr.
90234 2008-05-03  Jim Meyering  <meyering@redhat.com>
90236         avoid failed assertion with tight malloc
90237         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90239 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90241         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90242         are needed from arpa/inet.h.
90243         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90244         Reported by Bruno Haible.
90246 2008-05-02  Jim Meyering  <meyering@redhat.com>
90248         avoid compilation error on FreeBSD 6
90249         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90251 2008-05-01  Jim Meyering  <meyering@redhat.com>
90253         useless-if-before-free: correct --help's exit status description
90254         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90255         for one or more matches, etc.  Reported by Bruno Haible.
90257         vc-list-files: make the stand-alone gnulib test work
90258         * modules/vc-list-files-tests (configure.ac):
90259         Define and AC_SUBST abs_aux_dir.
90260         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90261         $(abs_top_srcdir) to each script and having each of them
90262         duplicate the work of setting PATH, set PATH here, using
90263         the new variable, abs_aux_dir instead.
90264         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90265         * tests/test-vc-list-files-git.sh: Likewise.
90266         Reported by Bruno Haible.
90268 2008-05-01  Bruno Haible  <bruno@clisp.org>
90270         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90271         reallocation. Rename 'done' to 'found_delimiter'.
90273 2008-05-01  Jim Meyering  <meyering@redhat.com>
90275         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90276         * build-aux/vc-list-files: Use `...`, not $(...).
90278 2008-04-30  Jim Meyering  <meyering@redhat.com>
90280         add tests for vc-list-files
90281         * modules/vc-list-files-tests: New module.
90282         * tests/test-vc-list-files-cvs.sh: New file.
90283         * tests/test-vc-list-files-git.sh: New file.
90285         avoid a warning from gcc
90286         * lib/getndelim2.c (IF_LINT): Define.
90287         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90289         vc-list-files: work properly with build-aux/cvsu, too
90290         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90291         to all cvs-based clauses.
90293         vc-list-files: work properly in the CVS+awk case, too
90294         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90296         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90297         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90298         take more than one file argument, so .  Add quotes, just in case $dir
90299         ever contains a shell meta-character.  Prompted by Soren Hansen in
90300         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90302 2008-04-29  Eric Blake  <ebb9@byu.net>
90304         Optimize getndelim2 to use block operations when possible.
90305         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90306         freadseek, and memchr2.
90307         * lib/getndelim2.c (getndelim2): Use them for block reads.
90309 2008-04-29  Bruno Haible  <bruno@clisp.org>
90311         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90312         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90313         * modules/inet_ntop (Depends-on): Add extensions.
90314         * modules/inet_pton (Depends-on): Likewise.
90315         Reported by Simon Josefsson.
90317 2008-04-29  Jim Meyering  <meyering@redhat.com>
90319         When the is more than one match in a block, match all of them.
90320         * build-aux/useless-if-before-free: Iterate through each block
90321         until there are no more matches.
90323         Fix broken useless-if-before-free script.
90324         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90325         the expression to match cast of argument to free-like function.
90327 2008-04-29  Eric Blake  <ebb9@byu.net>
90329         Use new header.
90330         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90332 2008-04-29  Jim Meyering  <meyering@redhat.com>
90334         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90335         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90336         by gnulib to exist and to declare e.g., inet_ntop.
90337         Don't include "inet_ntop.h", now removed.
90339         * m4/arpa_inet_h.m4: Remove trailing blanks.
90341 2008-04-29  Eric Blake  <ebb9@byu.net>
90343         Silence valgrind on safe reads beyond potential array bounds.
90344         * lib/rawmemchr.valgrind: New file.
90345         * lib/strchrnul.valgrind: Likewise.
90346         * modules/rawmemchr (Files): Distribute new file.
90347         * modules/strchrnul (Files): Likewise.
90348         Suggested by Bruno Haible.
90350 2008-04-29  Bruno Haible  <bruno@clisp.org>
90352         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90353         (inet_ntop, inet_pton): Change portability warning's wording.
90354         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90355         Invoke gl_CHECK_NEXT_HEADERS.
90356         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90357         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90358         set ARPA_INET_H.
90359         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90360         * modules/arpa_inet (Description): No longer only for systems that
90361         lack it.
90362         (Depends-on): Add include_next.
90363         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90364         HAVE_ARPA_INET_H.
90366 2008-04-29  Jim Meyering  <meyering@redhat.com>
90368         * modules/mkdir (License): Re-license as LGPLv2+.
90370 2008-04-29  Bruno Haible  <bruno@clisp.org>
90372         * modules/rawmemchr (Maintainer): Set to Eric.
90373         * modules/strchrnul (Maintainer): Likewise.
90375 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90377         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90378         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90380         * modules/arpa_inet (arpa/inet.h): Use them.
90382 2008-04-28  Eric Blake  <ebb9@byu.net>
90384         Test getndelim2.
90385         * modules/getndelim2-tests: New file.
90386         * tests/test-getndelim2.c: Likewise.
90387         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90388         stream.
90389         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90391         * MODULES.html.sh: Document new module.
90393 2008-04-20  Bruno Haible  <bruno@clisp.org>
90395         * lib/c-stack.c (die): Use raise.
90396         * modules/c-stack (Depends-on): Add raise.
90398 2008-04-28  Bruno Haible  <bruno@clisp.org>
90400         Expect rpmatch to be declared.
90401         * lib/yesno.c (rpmatch): Remove declaration.
90403         Declare rpmatch.
90404         * lib/stdlib.in.h (rpmatch): New declaration.
90405         * lib/rpmatch.c: Include <stdlib.h> first.
90406         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90407         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90409         HAVE_RPMATCH.
90410         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90412         (Include): Set to <stdlib.h>.
90413         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90414         HAVE_RPMATCH.
90415         * NEWS: Document the change.
90417 2008-04-28  Bruno Haible  <bruno@clisp.org>
90419         Change rpmatch to use nl_langinfo when appropriate.
90420         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90421         (N_): New macro.
90422         (localized_pattern): New function/macro.
90423         (try): Remove match, nomatch arguments. Copy the pattern into safe
90424         memory before caching it.
90425         (rpmatch): Use localized_pattern. Add translator comments.
90426         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90427         Suggested by Eric Blake.
90428         * modules/rpmatch (Depends-on): Add stdbool.
90430 2008-04-28  Eric Blake  <ebb9@byu.net>
90432         Add rawmemchr module, matching glibc.
90433         * modules/string (Makefile.am): New indicator.
90434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90435         * lib/string.in.h (rawmemchr): Declare when appropriate.
90436         * modules/rawmemchr: New file.
90437         * m4/rawmemchr.m4: Likewise.
90438         * lib/rawmemchr.c: Likewise.
90439         * modules/rawmemchr-tests: Likewise.
90440         * tests/test-rawmemchr.c: Likewise.
90441         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90442         module.
90443         * modules/strchrnul (Depends-on): Add rawmemchr.
90444         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90446         Whitespace cleanup.
90447         * tests/test-strchrnul.c: Reindent.
90448         * lib/strchrnul.c: Likewise.
90450         Optimize and test strchrnul.
90451         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90452         * modules/strchrnul-tests: New file.
90453         * tests/test-strchrnul.c: Likewise.
90455         Remove intprops dependency.
90456         * modules/memchr (Depends-on): Remove intprops.
90457         * modules/memrchr (Depends-on): Likewise.
90458         * modules/memchr2 (Depends-on): Likewise.
90459         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90460         * lib/memrchr.c (__memrchr): Likewise.
90461         * lib/memrchr2.c (memchr2): Likewise.
90462         Reported by Simon Josefsson.
90464 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90466         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90467         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90469 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90471         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90473         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90475         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90477         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90478         declarations.
90479         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90481         * m4/inet_pton.m4: Don't check for header files.
90483         * m4/inet_ntop.m4: Don't check for header files.
90485 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90487         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90488         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90489         trigger for cygwin).
90490         Reported by Bruno Haible  <bruno@clisp.org>.
90492 2008-04-28  Bruno Haible  <bruno@clisp.org>
90494         * doc/posix-functions/strdup.texi: Mention mingw problem.
90496 2008-04-27  Bruno Haible  <bruno@clisp.org>
90498         * modules/stat-time-tests (Depends-on): Add sleep.
90499         * tests/test-stat-time.c (force_unlink): New function.
90500         (cleanup): Use it.
90501         (test_mtime): Remove the ctime related tests.
90502         (test_ctime): New function, containing the ctime related tests.
90503         (main): Call test_ctime, except on native Windows platforms.
90505 2008-04-27  Bruno Haible  <bruno@clisp.org>
90507         * lib/rpmatch.c (rpmatch): Add some comments.
90508         Reported by James Youngman <jay@gnu.org>.
90510 2008-04-27  Bruno Haible  <bruno@clisp.org>
90512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90513         quiet NaNs.
90515 2008-04-27  Bruno Haible  <bruno@clisp.org>
90517         Make test-yesno.sh work on mingw.
90518         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90519         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90520         (main): Set stdin to binary mode.
90521         * modules/yesno-tests (Depends-on): Add binary-io.
90523 2008-04-27  Bruno Haible  <bruno@clisp.org>
90525         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90526         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90527         argument that lie outside the IEEE 854 domain.
90528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90529         (gl_ISFINITE): Use it.
90530         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90532 2008-04-27  Bruno Haible  <bruno@clisp.org>
90534         Allow local renaming in config.h.
90535         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90537 2008-04-27  Bruno Haible  <bruno@clisp.org>
90539         * lib/memchr.c (__memchr): Change type of 'i'.
90540         * lib/memchr2.c (memchr2): Likewise.
90542 2008-04-26  Eric Blake  <ebb9@byu.net>
90543         and Bruno Haible  <bruno@clisp.org>
90545         Optimize and test memrchr.
90546         * modules/memrchr (Depends-on): Add intprops.
90547         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90548         * modules/memrchr-tests: New file.
90549         * tests/test-memrchr.c: New file.
90551 2008-04-26  Bruno Haible  <bruno@clisp.org>
90553         Add tentative support for DragonFly BSD.
90554         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90555         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90556         fp.
90557         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90558         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90559         * lib/fpurge.c (fpurge): Likewise.
90560         * lib/freadable.c (freaadable): Likewise.
90561         * lib/freadahead.c (freadahead): Likewise.
90562         * lib/freading.c (freading): Likewise.
90563         * lib/freadptr.c (freadptr): Likewise.
90564         * lib/freadseek.c (freadptrinc): Likewise.
90565         * lib/fseeko.c (fseeko): Likewise.
90566         * lib/fseterr.c (fseterr): Likewise.
90567         * lib/fwritable.c (fwritable): Likewise.
90568         * lib/fwriting.c (fwriting): Likewise.
90570 2008-04-26  Bruno Haible  <bruno@clisp.org>
90572         * lib/stdio-impl.h: New file.
90573         * lib/fbufmode.c: Include stdio-impl.h.
90574         (fbufmode): Use fp_, remove redundant #defines.
90575         * lib/fflush.c: Include stdio-impl.h.
90576         (clear_ungetc_buffer): Remove redundant #defines.
90577         * lib/fpurge.c: Include stdio-impl.h.
90578         (fpurge): Remove redundant #defines.
90579         * lib/freadable.c: Include stdio-impl.h.
90580         (freadable): Remove redundant #defines.
90581         * lib/freadahead.c: Include stdio-impl.h.
90582         (freadahead): Remove redundant #defines.
90583         * lib/freading.c: Include stdio-impl.h.
90584         (freading): Remove redundant #defines.
90585         * lib/freadptr.c: Include stdio-impl.h.
90586         (freadptr): Remove redundant #defines.
90587         * lib/freadseek.c: Include stdio-impl.h.
90588         (freadptrinc): Remove redundant #defines.
90589         * lib/fseeko.c: Include stdio-impl.h.
90590         (rpl_fseeko): Remove redundant #defines.
90591         * lib/fseterr.c: Include stdio-impl.h.
90592         (fseterr): Remove redundant #defines.
90593         * lib/fwritable.c: Include stdio-impl.h.
90594         (fwritable: Remove redundant #defines.
90595         * lib/fwriting.c: Include stdio-impl.h.
90596         (fwriting): Remove redundant #defines.
90597         * modules/fbufmode (Files): Add lib/stdio-impl.h.
90598         * modules/fflush (Files): Likewise.
90599         * modules/fpurge (Files): Likewise.
90600         * modules/freadable (Files): Likewise.
90601         * modules/freadahead (Files): Likewise.
90602         * modules/freading (Files): Likewise.
90603         * modules/freadptr (Files): Likewise.
90604         * modules/freadseek (Files): Likewise.
90605         * modules/fseeko (Files): Likewise.
90606         * modules/fseterr (Files): Likewise.
90607         * modules/fwritable (Files): Likewise.
90608         * modules/fwriting (Files): Likewise.
90610 2008-04-26  Bruno Haible  <bruno@clisp.org>
90612         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90613         restore_seek_optimization, update_fpos_cache): New functions, extracted
90614         from rpl_fflush.
90615         (rpl_fflush): Use them.
90616         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
90617         (gl_REPLACE_FFLUSH): Use it.
90619 2008-04-26  Bruno Haible  <bruno@clisp.org>
90621         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
90622         on Solaris.
90623         * tests/test-xstrtoimax.sh: Likewise.
90624         * tests/test-xstrtoumax.sh: Likewise.
90625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90627 2008-04-26  Bruno Haible  <bruno@clisp.org>
90629         * modules/memchr-tests: New file.
90630         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
90632 2008-04-26  Eric Blake  <ebb9@byu.net>
90633             Bruno Haible  <bruno@clisp.org>
90635         * lib/memchr.c: Include intprops.h.
90636         (__memchr): Optimize parallel detection of matching bytes. Rename local
90637         variables. Add explanatory comments.
90639 2008-04-26  Bruno Haible  <bruno@clisp.org>
90641         Fix module 'memchr', broken since 2000-10-28.
90642         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
90644 2008-04-26  Bruno Haible  <bruno@clisp.org>
90646         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
90647         comments.
90649 2008-04-25  Eric Blake  <ebb9@byu.net>
90651         Use native fstatat on cygwin 1.7.0.
90652         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
90653         first.
90655 2008-04-23  Eric Blake  <ebb9@byu.net>
90657         Improve memchr2 performance.
90658         * lib/memchr2.c (memchr2): Further optimize parallel detection of
90659         NUL bytes.
90660         * modules/memchr2 (Depends-on): Use intprops.h.
90662 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90664         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
90665         an inline function instead of a CPP macro.  Patch by Ben Pfaff
90666         <blp@cs.stanford.edu>.
90668 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90670         * lib/arpa_inet.in.h: New file.
90672         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
90673         (Makefile.am): Sed in substitute header file.
90675         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
90676         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
90678         * modules/inet_ntop (configure.ac): Use
90679         gl_ARPA_INET_MODULE_INDICATOR.
90681         * modules/inet_pton (configure.ac): Use
90682         gl_ARPA_INET_MODULE_INDICATOR.
90684 2008-04-22  Jim Meyering  <meyering@redhat.com>
90686         * modules/verify (License): Re-license as LGPLv2+.
90688 2008-04-22  Simon Josefsson  <simon@josefsson.org>
90690         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
90691         parameter to void* as per POSIX standard (MinGW uses char*).
90693 2008-04-21  Bruno Haible  <bruno@clisp.org>
90695         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
90696         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
90697         Define to replacements if REPLACE_ISWCNTRL is 1.
90698         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
90699         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
90700         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
90701         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
90702         what it fixes.
90703         * doc/posix-functions/iswalpha.texi: Likewise.
90704         * doc/posix-functions/iswblank.texi: Likewise.
90705         * doc/posix-functions/iswcntrl.texi: Likewise.
90706         * doc/posix-functions/iswdigit.texi: Likewise.
90707         * doc/posix-functions/iswgraph.texi: Likewise.
90708         * doc/posix-functions/iswlower.texi: Likewise.
90709         * doc/posix-functions/iswprint.texi: Likewise.
90710         * doc/posix-functions/iswpunct.texi: Likewise.
90711         * doc/posix-functions/iswspace.texi: Likewise.
90712         * doc/posix-functions/iswupper.texi: Likewise.
90713         * doc/posix-functions/iswxdigit.texi: Likewise.
90714         Reported by Alain Guibert.
90716 2008-04-21  Bruno Haible  <bruno@clisp.org>
90718         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
90719         Patch by Alain Guibert.
90721 2008-04-21  Bruno Haible  <bruno@clisp.org>
90723         Fix test failures on mingw.
90724         * tests/test-xstrtol.c (print_no_progname): New function.
90725         (main): Install it in error_print_progname hook.
90726         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
90727         * tests/test-xstrtoimax.sh: Likewise.
90728         * tests/test-xstrtoumax.sh: Likewise.
90730 2008-04-21  Bruno Haible  <bruno@clisp.org>
90732         Fix test failure on mingw.
90733         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
90735 2008-04-21  Bruno Haible  <bruno@clisp.org>
90737         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
90738         Actually assign a value.
90740 2008-04-20  Bruno Haible  <bruno@clisp.org>
90742         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
90743         take 2.
90744         * lib/canonicalize.c (canonicalize_file_name): Elide if the
90745         'canonicalize-lgpl' module is also used.
90746         * lib/canonicalize-lgpl.c: Undo last change.
90747         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
90749 2008-04-20  Bruno Haible  <bruno@clisp.org>
90751         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
90752         config.h. Provide _mkdir based fallback for mingw.
90753         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
90754         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
90755         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
90756         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
90757         rather than defining mkdir in config.h.
90758         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
90759         (gl_SYS_STAT_H_DEFAULTS): New macro.
90760         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
90761         HAVE_IO_H any more.
90762         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
90763         HAVE_DECL_MKDIR and HAVE_IO_H.
90765 2008-04-20  Bruno Haible  <bruno@clisp.org>
90767         * lib/isapipe.c: Port to native Windows platforms.
90769 2008-04-20  Bruno Haible  <bruno@clisp.org>
90771         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
90773 2008-04-21  Eric Blake  <ebb9@byu.net>
90775         Work around preprocessors that don't handle UINTMAX_MAX.
90776         * lib/memchr2.c (memchr2): Avoid embedded #if.
90777         Reported by Alain Guibert, fix suggested by Bruno Haible.
90779 2008-04-21  Simon Josefsson  <simon@josefsson.org>
90781         * doc/posix-functions/strftime.texi (strftime): Explain better
90782         Windows incompatibility.  Suggested by Micah Cowan
90783         <micah@cowan.name>.
90785 2008-04-20  Bruno Haible  <bruno@clisp.org>
90787         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
90788         unistr/u8-mblen.
90790 2008-04-20  Bruno Haible  <bruno@clisp.org>
90792         Fix test failure on platforms with non-GNU iconv.
90793         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
90794         (U_TO_U8): Use it, rather than u16_to_u8.
90795         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
90796         units at the end of the input string.
90797         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
90799 2008-04-20  Bruno Haible  <bruno@clisp.org>
90801         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
90802         when the resulting length is 0.
90803         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
90805 2008-04-20  Bruno Haible  <bruno@clisp.org>
90807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
90808         works.
90809         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
90811 2008-04-20  Bruno Haible  <bruno@clisp.org>
90813         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
90814         * modules/tsearch-tests (configure.ac): Test for initstate function.
90816 2008-04-20  Bruno Haible  <bruno@clisp.org>
90818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
90819         for nlink_t if missing.
90820         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
90822 2008-04-19  Bruno Haible  <bruno@clisp.org>
90824         Work around snprintf bug on Linux libc5.
90825         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
90826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
90827         gl_SNPRINTF_SIZE1.
90828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90829         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
90830         that test failed.
90831         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
90832         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
90833         * modules/snprintf (Files): Add m4/printf.m4.
90834         * modules/vsnprintf (Files): Likewise.
90835         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
90836         * doc/posix-functions/vsnprintf.texi: Likewise.
90838 2008-04-19  Bruno Haible  <bruno@clisp.org>
90840         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
90841         from 0.0058 to less than 10^-7.
90843 2008-04-19  Bruno Haible  <bruno@clisp.org>
90845         Fix rounding when a precision is given.
90846         * lib/vasnprintf.c (is_borderline): New function.
90847         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
90848         9...9x.
90849         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
90850         %e, %g.
90851         * tests/test-vasprintf-posix.c (test_function): Likewise.
90852         * tests/test-snprintf-posix.h (test_function): Likewise.
90853         * tests/test-sprintf-posix.h (test_function): Likewise.
90854         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
90855         * tests/test-printf-posix.h (test_function): Likewise.
90856         * tests/test-printf-posix.output: Update.
90857         Reported by John Darrington <john@darrington.wattle.id.au> via
90858         Ben Pfaff <blp@cs.stanford.edu>.
90860 2008-04-18  Simon Josefsson  <simon@josefsson.org>
90862         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
90863         Suggested by Bruno Haible <bruno@clisp.org>.
90865 2008-04-17  Bruno Haible  <bruno@clisp.org>
90867         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
90868         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
90869         implementation.
90870         Patch by Bruce Merry <bmerry@gmail.com>.
90872 2008-04-17  Simon Josefsson  <simon@josefsson.org>
90874         * doc/posix-functions/strftime.texi (strftime): Mention that %e
90875         doesn't work under Windows.
90877 2008-04-16  Bruno Haible  <bruno@clisp.org>
90879         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
90880         New macros.
90881         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
90882         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
90883         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
90884         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
90885         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
90886         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
90887         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
90888         macros.
90889         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
90890         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
90891         Northern Sotho, Uighur.
90893 2008-04-16  Bruno Haible  <bruno@clisp.org>
90895         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
90896         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
90897         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
90898         Reported by Daniel Bergström <daniel@octocode.com>.
90900 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
90901             Bruno Haible  <bruno@clisp.org>
90903         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
90904         function.
90905         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
90906         New functions, mostly extracted from gl_locale_name_default.
90907         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
90909 2008-04-16  Eric Blake  <ebb9@byu.net>
90911         Adjust strtod detection to catch glibc 2.7 bug.
90912         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
90913         Reported by John Gatewood Ham.
90915 2008-04-16  Bruno Haible  <bruno@clisp.org>
90917         Add tentative support for Linux libc5.
90918         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
90919         * lib/fpurge.c (fpurge): Likewise.
90920         * lib/freadable.c (freadable): Likewise.
90921         * lib/freadahead.c (freadahead): Likewise.
90922         * lib/freading.c (freading): Likewise.
90923         * lib/freadptr.c (freadptr): Likewise.
90924         * lib/freadseek.c (freadptrinc): Likewise.
90925         * lib/fseeko.c (rpl_fseeko): Likewise.
90926         * lib/fseterr.c (fseterr): Likewise.
90927         * lib/fwritable.c (fwritable): Likewise.
90928         * lib/fwriting.c (fwriting): Likewise.
90929         Reported by Alain Guibert <alguibert+bts@free.fr>.
90931 2008-04-15  Bruno Haible  <bruno@clisp.org>
90933         * modules/mathl (configure.ac): Define module indicator.
90935 2008-04-15  Bruno Haible  <bruno@clisp.org>
90937         * lib/logl.c (logl): Remove unused variables.
90939 2008-04-15  Bruno Haible  <bruno@clisp.org>
90941         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
90942         fails.
90944 2008-04-15  Bruno Haible  <bruno@clisp.org>
90946         * lib/trim.c (trim2): Fix argument of isspace() macro.
90948 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
90950         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
90951         to 0.
90952         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
90954 2008-04-14  Bruno Haible  <bruno@clisp.org>
90956         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
90957         AC_LANG_PROGRAM argument.
90958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
90959         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
90960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
90961         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
90962         * m4/math_h.m4 (gl_MATH_H): Likewise.
90963         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
90964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90965         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
90966         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
90967         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
90968         * m4/regex.m4 (gl_REGEX): Likewise.
90969         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
90970         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
90971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90972         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
90973         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90974         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
90978 2008-04-14  Jim Meyering  <meyering@redhat.com>
90980         test-strtod: fix typos: s/abs/fabs/
90981         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
90983 2008-04-13  Bruno Haible  <bruno@clisp.org>
90985         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
90986         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
90987         module is also used and while not building the reloc-wrapper.
90989 2008-04-13  Bruno Haible  <bruno@clisp.org>
90991         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
90993 2008-04-13  Bruno Haible  <bruno@clisp.org>
90995         Fix AIX compilation failure introduced on 2008-04-02.
90996         * tests/test-frexp.c (exp): Undefine before redefining.
90997         * tests/test-frexpl.c (exp): Likewise.
90999 2008-04-13  Bruno Haible  <bruno@clisp.org>
91001         Work around a HP-UX stdio bug.
91002         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91003         * tests/test-ftello.c (main): Likewise.
91004         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91005         * doc/posix-functions/ftello.texi: Likewise.
91007 2008-04-13  Bruno Haible  <bruno@clisp.org>
91009         Make test-signbit pass on HP-UX/hppa.
91010         * tests/test-signbit.c (minus_zerol): New variable.
91011         (test_signbitl): Use it.
91013 2008-04-13  Bruno Haible  <bruno@clisp.org>
91015         Make truncl work on OSF/1 4.0.
91016         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91017         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91018         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91020         HAVE_DECL_TRUNCL.
91021         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91022         HAVE_DECL_TRUNCL.
91023         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91025 2008-04-13  Bruno Haible  <bruno@clisp.org>
91027         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91029 2008-04-13  Bruno Haible  <bruno@clisp.org>
91031         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91032         expression, so as to avoid HP-UX 11 cc compiler bug.
91034 2008-04-13  Bruno Haible  <bruno@clisp.org>
91036         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91038 2008-04-13  Bruno Haible  <bruno@clisp.org>
91040         * lib/git-merge-changelog.c: Remove empty declaration outside of
91041         functions.
91043 2008-04-13  Bruno Haible  <bruno@clisp.org>
91045         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91047 2008-04-13  Bruno Haible  <bruno@clisp.org>
91049         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91050         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91052         also if it exists but lacks definitions of the SHUT_* macros.
91053         * modules/sys_socket (Description): Update.
91054         Reported by Elbert Pol <e.pol@chello.nl>.
91056 2008-04-13  Bruno Haible  <bruno@clisp.org>
91058         * lib/localcharset.c (OS2): Don't redefine if already defined.
91059         Reported by Elbert Pol <e.pol@chello.nl>.
91061 2008-04-13  Bruno Haible  <bruno@clisp.org>
91063         * lib/binary-io.h [__EMX__]: Include <io.h>.
91064         Reported by Elbert Pol <e.pol@chello.nl>.
91066 2008-04-12  Bruno Haible  <bruno@clisp.org>
91068         * lib/fpucw.h: Enable the definitions also for x86_64.
91069         Needed for NetBSD/x86_64.
91070         Reported by Thomas Klausner <tk@giga.or.at>.
91072 2008-04-12  Bruno Haible  <bruno@clisp.org>
91074         * tests/test-strtod.c: Include isnand.h.
91075         (main): Use isnand instead of isnan.
91076         Reported by Jim Meyering.
91078 2008-04-12  Bruno Haible  <bruno@clisp.org>
91080         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91081         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91083 2008-04-12  Jim Meyering  <meyering@redhat.com>
91085         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91087 2008-04-12  Bruno Haible  <bruno@clisp.org>
91089         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91090         Reported by Elbert Pol <e.pol@chello.nl>.
91092 2008-04-12  Eric Blake  <ebb9@byu.net>
91094         Work around Solaris 10 math.h bug.
91095         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91096         (gl_MATH_H_DEFAULTS): Set up default.
91097         * modules/math (Makefile.am): Replace new indicators.
91098         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91099         * tests/test-math.c (main): Test this.
91100         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91101         * doc/posix-headers/math.texi (math.h): Mention bug.
91102         Reported by Nelson H. F. Beebe and Jim Meyering.
91104 2008-04-11  Bruno Haible  <bruno@clisp.org>
91106         Adapt to future versions of Apple GCC.
91107         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91108         Reported by Peter O'Gorman <peter@pogma.com>.
91110 2008-04-11  Bruno Haible  <bruno@clisp.org>
91112         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91114 2008-04-11  Bruno Haible  <bruno@clisp.org>
91116         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91118         * modules/getaddrinfo-tests (Makefile.am): Define
91119         test_getaddrinfo_LDADD.
91121 2008-04-11  Bruno Haible  <bruno@clisp.org>
91123         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91124         (init): Fix syntax error.
91125         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91126         is declared.
91128 2008-04-11  Bruno Haible  <bruno@clisp.org>
91130         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91131         * modules/glob (Depends-on): Add stdbool.
91133 2008-04-11  Bruno Haible  <bruno@clisp.org>
91135         * lib/trim.c: Include <string.h>.
91137 2008-04-11  Eric Blake  <ebb9@byu.net>
91139         Avoid compile failure on OS/2.
91140         * lib/regex_internal.h (internal_function): Disable optimization
91141         on OS/2 (__EMX__), where it caused compiler error.
91142         Reported by Elbert Pol.
91144 2008-04-11  Bruno Haible  <bruno@clisp.org>
91146         Flush the standard error stream before aborting. Needed on mingw.
91147         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91148         * tests/test-array_list.c (ASSERT): Likewise.
91149         * tests/test-array_oset.c (ASSERT): Likewise.
91150         * tests/test-avltree_list.c (ASSERT): Likewise.
91151         * tests/test-avltree_oset.c (ASSERT): Likewise.
91152         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91153         * tests/test-binary-io.c (ASSERT): Likewise.
91154         * tests/test-byteswap.c (ASSERT): Likewise.
91155         * tests/test-c-ctype.c (ASSERT): Likewise.
91156         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91157         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91158         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91159         * tests/test-c-strstr.c (ASSERT): Likewise.
91160         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91161         * tests/test-canonicalize.c (ASSERT): Likewise.
91162         * tests/test-carray_list.c (ASSERT): Likewise.
91163         * tests/test-ceilf1.c (ASSERT): Likewise.
91164         * tests/test-ceilf2.c (ASSERT): Likewise.
91165         * tests/test-ceill.c (ASSERT): Likewise.
91166         * tests/test-count-one-bits.c (ASSERT): Likewise.
91167         * tests/test-fbufmode.c (ASSERT): Likewise.
91168         * tests/test-fflush2.c (ASSERT): Likewise.
91169         * tests/test-floorf1.c (ASSERT): Likewise.
91170         * tests/test-floorf2.c (ASSERT): Likewise.
91171         * tests/test-floorl.c (ASSERT): Likewise.
91172         * tests/test-fopen.c (ASSERT): Likewise.
91173         * tests/test-fpending.c (ASSERT): Likewise.
91174         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91175         * tests/test-fpurge.c (ASSERT): Likewise.
91176         * tests/test-freadable.c (ASSERT): Likewise.
91177         * tests/test-freadahead.c (ASSERT): Likewise.
91178         * tests/test-freading.c (ASSERT): Likewise.
91179         * tests/test-freadptr.c (ASSERT): Likewise.
91180         * tests/test-freadptr2.c (ASSERT): Likewise.
91181         * tests/test-freadseek.c (ASSERT): Likewise.
91182         * tests/test-freopen.c (ASSERT): Likewise.
91183         * tests/test-frexp.c (ASSERT): Likewise.
91184         * tests/test-frexpl.c (ASSERT): Likewise.
91185         * tests/test-fseek.c (ASSERT): Likewise.
91186         * tests/test-fseeko.c (ASSERT): Likewise.
91187         * tests/test-fstrcmp.c (ASSERT): Likewise.
91188         * tests/test-ftell.c (ASSERT): Likewise.
91189         * tests/test-ftello.c (ASSERT): Likewise.
91190         * tests/test-func.c (ASSERT): Likewise.
91191         * tests/test-fwritable.c (ASSERT): Likewise.
91192         * tests/test-fwriting.c (ASSERT): Likewise.
91193         * tests/test-getdelim.c (ASSERT): Likewise.
91194         * tests/test-getline.c (ASSERT): Likewise.
91195         * tests/test-i-ring.c (ASSERT): Likewise.
91196         * tests/test-iconv-utf.c (ASSERT): Likewise.
91197         * tests/test-iconv.c (ASSERT): Likewise.
91198         * tests/test-isfinite.c (ASSERT): Likewise.
91199         * tests/test-isnand.c (ASSERT): Likewise.
91200         * tests/test-isnanf.c (ASSERT): Likewise.
91201         * tests/test-isnanl.h (ASSERT): Likewise.
91202         * tests/test-ldexpl.c (ASSERT): Likewise.
91203         * tests/test-linked_list.c (ASSERT): Likewise.
91204         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91205         * tests/test-localename.c (ASSERT): Likewise.
91206         * tests/test-lseek.c (ASSERT): Likewise.
91207         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91208         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91209         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91210         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91211         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91212         * tests/test-mbschr.c (ASSERT): Likewise.
91213         * tests/test-mbscspn.c (ASSERT): Likewise.
91214         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91215         * tests/test-mbspbrk.c (ASSERT): Likewise.
91216         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91217         * tests/test-mbsrchr.c (ASSERT): Likewise.
91218         * tests/test-mbsspn.c (ASSERT): Likewise.
91219         * tests/test-mbsstr1.c (ASSERT): Likewise.
91220         * tests/test-mbsstr2.c (ASSERT): Likewise.
91221         * tests/test-mbsstr3.c (ASSERT): Likewise.
91222         * tests/test-memchr2.c (ASSERT): Likewise.
91223         * tests/test-memmem.c (ASSERT): Likewise.
91224         * tests/test-open.c (ASSERT): Likewise.
91225         * tests/test-printf-frexp.c (ASSERT): Likewise.
91226         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91227         * tests/test-printf-posix.c (ASSERT): Likewise.
91228         * tests/test-quotearg.c (ASSERT): Likewise.
91229         * tests/test-rbtree_list.c (ASSERT): Likewise.
91230         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91231         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91232         * tests/test-round1.c (ASSERT): Likewise.
91233         * tests/test-roundf1.c (ASSERT): Likewise.
91234         * tests/test-roundl.c (ASSERT): Likewise.
91235         * tests/test-signbit.c (ASSERT): Likewise.
91236         * tests/test-sleep.c (ASSERT): Likewise.
91237         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91238         * tests/test-snprintf.c (ASSERT): Likewise.
91239         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91240         * tests/test-stat-time.c (ASSERT): Likewise.
91241         * tests/test-strcasestr.c (ASSERT): Likewise.
91242         * tests/test-strerror.c (ASSERT): Likewise.
91243         * tests/test-striconv.c (ASSERT): Likewise.
91244         * tests/test-striconveh.c (ASSERT): Likewise.
91245         * tests/test-striconveha.c (ASSERT): Likewise.
91246         * tests/test-strsignal.c (ASSERT): Likewise.
91247         * tests/test-strstr.c (ASSERT): Likewise.
91248         * tests/test-strtod.c (ASSERT): Likewise.
91249         * tests/test-trunc1.c (ASSERT): Likewise.
91250         * tests/test-trunc2.c (ASSERT): Likewise.
91251         * tests/test-truncf1.c (ASSERT): Likewise.
91252         * tests/test-truncf2.c (ASSERT): Likewise.
91253         * tests/test-truncl.c (ASSERT): Likewise.
91254         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91255         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91256         * tests/test-vasnprintf.c (ASSERT): Likewise.
91257         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91258         * tests/test-vasprintf.c (ASSERT): Likewise.
91259         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91260         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91261         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91262         * tests/test-vsnprintf.c (ASSERT): Likewise.
91263         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91264         * tests/test-wcwidth.c (ASSERT): Likewise.
91265         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91266         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91267         * tests/test-xvasprintf.c (ASSERT): Likewise.
91268         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91269         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91270         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91271         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91272         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91273         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91274         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91275         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91276         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91277         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91278         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91279         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91280         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91281         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91282         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91283         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91284         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91285         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91286         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91287         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91288         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91289         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91290         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91291         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91292         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91293         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91294         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91295         * tests/unictype/test-combining.c (ASSERT): Likewise.
91296         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91297         * tests/unictype/test-digit.c (ASSERT): Likewise.
91298         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91299         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91300         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91301         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91302         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91303         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91304         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91305         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91306         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91307         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91308         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91309         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91310         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91311         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91312         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91313         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91314         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91315         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91316         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91317         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91318         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91319         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91320         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91321         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91322         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91323         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91324         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91325         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91326         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91327         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91328         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91329         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91330         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91331         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91332         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91333         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91334         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91335         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91336         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91337         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91338         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91339         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91340         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91341         Reported by Eric Blake.
91343 2008-04-11  Bruno Haible  <bruno@clisp.org>
91345         * lib/wchar.in.h: Tweak comment.
91347 2008-04-11  Bruno Haible  <bruno@clisp.org>
91349         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91350         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91351         gl_COMMON.
91352         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91354 2008-04-11  Bruno Haible  <bruno@clisp.org>
91356         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91358 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91360         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91361         of attempting to use non-existing /dev/*random.  Based on patch
91362         from Adam Strzelecki <ono@java.pl> in
91363         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91365 2008-04-08  Bruno Haible  <bruno@clisp.org>
91367         Add tentative support for emx+gcc.
91368         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91369         * lib/fpurge.c (fpurge): Likewise.
91370         * lib/freadable.c (freadable): Likewise.
91371         * lib/freadahead.c (freadahead): Likewise.
91372         * lib/freading.c (freading): Likewise.
91373         * lib/freadptr.c (freadptr): Likewise.
91374         * lib/freadseek.c (freadptrinc): Likewise.
91375         * lib/fseeko.c (rpl_fseeko): Likewise.
91376         * lib/fseterr.c (fseterr): Likewise.
91377         * lib/fwritable.c (fwritable): Likewise.
91378         * lib/fwriting.c (fwriting): Likewise.
91379         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91381 2008-04-09  Eric Blake  <ebb9@byu.net>
91383         Avoid some autoconf warnings.
91384         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91385         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91386         * m4/afs.m4 (gl_AFS): Likewise.
91387         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91388         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91390         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91391         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91392         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91393         (AC_CHECK_DECLS_ONCE): Likewise.
91394         Rename file...
91395         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91396         gnulib-tool requires autoconf 2.59 or better.
91397         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91399 2008-04-08  Eric Blake  <ebb9@byu.net>
91401         Use 'git describe --match' if present (added in git 1.5.5).
91402         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91403         if possible.
91405 2008-04-08  Bruno Haible  <bruno@clisp.org>
91407         Add tentative support for OpenServer.
91408         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91409         _ptr, _cnt.
91410         * lib/fpurge.c (fpurge): Likewise.
91411         * lib/freadable.c (freadable): Likewise.
91412         * lib/freadahead.c (freadahead): Likewise.
91413         * lib/freading.c (freading): Likewise.
91414         * lib/freadptr.c (freadptr): Likewise.
91415         * lib/freadseek.c (freadptrinc): Likewise.
91416         * lib/fseeko.c (rpl_fseeko): Likewise.
91417         * lib/fseterr.c (fseterr): Likewise.
91418         * lib/fwritable.c (fwritable): Likewise.
91419         * lib/fwriting.c (fwriting): Likewise.
91420         Reported by Roger Cornelius <rac@tenzing.org> and
91421         Brian K. White <brian@aljex.com>.
91423 2008-04-06  Jim Meyering  <meyering@redhat.com>
91425         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91427 2008-04-06  Bruno Haible  <bruno@clisp.org>
91429         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91430         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91431         * tests/test-printf-posix.sh: Likewise.
91432         * tests/test-vfprintf-posix.sh: Likewise.
91433         * tests/test-vprintf-posix.sh: Likewise.
91434         * tests/test-xprintf-posix.sh: Likewise.
91436 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91438         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91439         hide error from 'ls', needed on OS/2.
91440         Report by Elbert Pol <elbert.pol@gmail.com>.
91442 2008-04-04  Eric Blake  <ebb9@byu.net>
91444         Make test-fseeko.c failures meaningful.
91445         * tests/test-fseeko.c: Print line number on failure.
91446         * tests/test-fseek.c: Likewise.
91447         Reported by Nelson H. F. Beebe.
91449         Improve strtod bug detection check.
91450         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91451         required for Solaris 10.
91452         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91454 2008-04-04  Bruno Haible  <bruno@clisp.org>
91456         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91457         by m4/setenv.m4.
91459 2008-04-03  Eric Blake  <ebb9@byu.net>
91461         Ensure sane .version contents.
91462         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91463         version string.
91464         * build-aux/git-version-gen: Improve documentation.
91466         Make GNU make output nicer.
91467         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91468         MAKECMDGOALS to enforce message for all command line targets.  Set
91469         srcdir for use in maint.mk.
91471         Another maintainer tweak.
91472         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91473         a target that regenerates version.
91475 2008-04-03  Jim Meyering  <meyering@redhat.com>
91477         vc-list-files: don't cause coreutils "make po-check" failure
91478         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91480 2008-04-03  Eric Blake  <ebb9@byu.net>
91482         Allow VPATH usage of vc-list-files.
91483         * build-aux/vc-list-files (scriptversion): Add timestamp.
91484         (options): Add --help, --version, -C.
91485         (CVS): Support installed cvsu.
91487 2008-04-02  Bruno Haible  <bruno@clisp.org>
91489         Avoid some "statement with no effect" warnings from gcc.
91490         * tests/test-wctype.c (main): Explicitly ignore unused values.
91491         Reported by Jim Meyering.
91493 2008-04-02  Jim Meyering  <meyering@redhat.com>
91495         Avoid some warnings from "gcc -Wshadow".
91496         * tests/test-frexp.c (exp): Define to a different identifier.
91497         * tests/test-frexpl.c (exp): Likewise.
91499 2008-04-03  Jim Meyering  <meyering@redhat.com>
91501         bootstrap: remove dangling *.[ch] symlinks from lib
91502         * build-aux/bootstrap [dangling symlink removal]: Move find's
91503         -depth option to precede all others, to avoid a warning.
91504         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91506 2008-04-02  Bruno Haible  <bruno@clisp.org>
91508         Avoid some warnings from "gcc -Wshadow".
91509         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91510         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91511         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91512         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91513         Reported by Jim Meyering.
91515 2008-04-01  Bruno Haible  <bruno@clisp.org>
91517         Fix test to work on IRIX 6.5 with cc.
91518         * tests/test-math.c (numeric_equal): New function.
91519         (main): Use it.
91521 2008-04-01  Bruno Haible  <bruno@clisp.org>
91523         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91525 2008-04-01  Bruno Haible  <bruno@clisp.org>
91527         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91528         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91529         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91530         (Depends-on): Remove math.
91532         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91533         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91534         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91535         (Depends-on): Remove math.
91537         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91538         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91539         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91540         (Depends-on): Remove math.
91541         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91542         (Depends-on): Remove math.
91544         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91545         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91546         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91547         (Depends-on): Remove math.
91548         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91549         (Depends-on): Remove math.
91551         * tests/test-round1.c: Include nan.h.
91552         (main): Use NaNd instead of NAN.
91553         * modules/round-tests (Files): Add tests/nan.h.
91555         * tests/test-trunc1.c: Include nan.h.
91556         (main): Use NaNd instead of NAN.
91557         * modules/trunc-tests (Files): Add tests/nan.h.
91559         * tests/test-roundf1.c: Include nan.h.
91560         (main): Use NaNf instead of NAN.
91561         * modules/roundf-tests (Files): Add tests/nan.h.
91563         * tests/test-truncf1.c: Include nan.h.
91564         (main): Use NaNf instead of NAN.
91565         * modules/truncf-tests (Files): Add tests/nan.h.
91567         * tests/test-ceilf1.c: Include nan.h.
91568         (main): Use NaNf instead of NAN.
91569         * modules/ceilf-tests (Files): Add tests/nan.h.
91571         * tests/test-floorf1.c: Include nan.h.
91572         (main): Use NaNf instead of NAN.
91573         * modules/floorf-tests (Files): Add tests/nan.h.
91575         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91576         (main): Use NaNf instead of NAN.
91577         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91579         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91580         (main): Use NaNd instead of NAN.
91581         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91583         * tests/test-frexp.c: Include nan.h.
91584         (main): Use NaNd instead of NAN.
91585         * modules/frexp-tests (Files): Add tests/nan.h.
91587         * lib/isnan.c: Don't include <math.h>.
91588         (FUNC): Don't use NAN macro.
91589         * modules/isnand-nolibm (Depends-on): Remove math.
91590         * modules/isnanf-nolibm (Depends-on): Remove math.
91591         * modules/isnanl (Depends-on): Remove math.
91592         * modules/isnanl-nolibm (Depends-on): Remove math.
91594         * tests/nan.h: New file.
91596 2008-04-01  Eric Blake  <ebb9@byu.net>
91598         Fix typos.
91599         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
91600         values to be the right type.
91602         For now, cater to gnulib strtod inaccuracies.
91603         * tests/test-strtod.c (main): Allow 1-ulp error on expected
91604         fractional results.  While not as nice from a QoI perspective, it
91605         is a quicker patch than correctly implementing decimal to binary
91606         rounding.
91608 2008-03-31  Eric Blake  <ebb9@byu.net>
91610         Guarantee a definition of NAN.
91611         * lib/math.in.h (NAN): Define if missing.
91612         * tests/test-math.c (main): Test it.
91613         * doc/posix-headers/math.texi (math.h): Document this.
91614         * lib/isnan.c (rpl_isnand): Use it.
91615         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
91616         * tests/test-floorf1.c (NaN): Likewise.
91617         * tests/test-frexp.c (NaN): Likewise.
91618         * tests/test-isnand.c (NaN): Likewise.
91619         * tests/test-isnanf.c (NaN): Likewise.
91620         * tests/test-round1.c (NaN): Likewise.
91621         * tests/test-roundf1.c (NaN): Likewise.
91622         * tests/test-snprintf-posix.h (NaN): Likewise.
91623         * tests/test-sprintf-posix.h (NaN): Likewise.
91624         * tests/test-trunc1.c (NaN): Likewise.
91625         * tests/test-truncf1.c (NaN): Likewise.
91626         * tests/test-vasnprintf-posix.c (NaN): Likewise.
91627         * tests/test-vasprintf-posix.c (NaN): Likewise.
91628         * modules/isnand-nolibm (Depends-on): Add math.
91629         * modules/isnanf-nolibm (Depends-on): Likewise.
91630         * modules/isnanl (Depends-on): Likewise.
91631         * modules/isnanl-nolibm (Depends-on): Likewise.
91632         * modules/snprintf-posix-tests (Depends-on): Likewise.
91633         * modules/sprintf-posix-tests (Depends-on): Likewise.
91634         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
91635         * modules/vsprintf-posix-tests (Depends-on): Likewise.
91636         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
91637         * modules/vasprintf-posix-tests (Depends-on): Likewise.
91639 2008-03-31  Bruno Haible  <bruno@clisp.org>
91641         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
91642         * doc/posix-functions/strtod.texi: Likewise.
91644 2008-03-31  Bruno Haible  <bruno@clisp.org>
91646         * tests/test-strtod.c (main): Don't use C99 syntax.
91648 2008-03-31  Bruno Haible  <bruno@clisp.org>
91650         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
91651         Reported by Eric Blake.
91653 2008-03-31  Jim Meyering  <meyering@redhat.com>
91655         Don't compare actual signbit return values.
91656         * tests/test-strtod.c (main): Rather, compare only their
91657         zero/non-zero nature.
91659 2008-03-31  Eric Blake  <ebb9@byu.net>
91661         More strtod documentation.
91662         * doc/posix-functions/strtod.texi (strtod): Interpret more test
91663         failures as distinct bugs.
91665 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
91667         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
91668         Problem reported by Erik Benada in
91669         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
91671 2008-03-30  Bruno Haible  <bruno@clisp.org>
91673         * tests/test-strtod.c: Add comments about which assertion fails on which
91674         platform.
91675         * doc/posix-functions/strtod.texi: Add info about many more platforms.
91677 2008-03-30  Eric Blake  <ebb9@byu.net>
91679         Test signbit behavior on zeros.
91680         * tests/test-signbit.c (test_signbitf): Add tests for zero.
91681         (test_signbitd, test_signbitl): Likewise.
91683         More strtod touchups.
91684         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
91685         sign of negative underflow, for now.  Use .5, not .1.
91686         * doc/posix-functions/strtod.texi (strtod): Mention these
91687         limitations.
91688         Reported by Jim Meyering.
91690 2008-03-30  Bruno Haible  <bruno@clisp.org>
91692         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
91693         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
91695 2008-03-30  Bruno Haible  <bruno@clisp.org>
91697         Avoid failure when attempting to return empty iconv results on some
91698         platforms.
91699         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
91700         allocation, don't report ENOMEM when the resulting string is empty.
91702 2008-03-30  Bruno Haible  <bruno@clisp.org>
91704         Fix buffer overrun.
91705         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
91706         Don't consider the width for tmp_length. Check count against tmp_length
91707         before doing the padding. Ensure enough allocation during padding.
91709 2008-03-30  Eric Blake  <ebb9@byu.net>
91711         strtod touchups.
91712         * lib/strtod.c (strtod): Avoid compiler warnings.
91713         Reported by Jim Meyering.
91715 2008-03-30  Bruno Haible  <bruno@clisp.org>
91717         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
91718         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
91719         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
91720         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
91721         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
91722         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
91723         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
91724         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
91726         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
91727         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
91728         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
91729         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
91730         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
91731         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
91732         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
91733         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
91735         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
91736         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
91737         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
91738         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
91739         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
91740         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
91741         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
91742         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
91744         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
91745         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
91747         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
91748         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
91750         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
91751         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
91753         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
91754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
91755         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
91757         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
91758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
91759         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
91761         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
91762         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
91763         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
91765         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
91766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
91767         * modules/vasprintf (Depends-on): Add EOVERFLOW.
91769         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
91770         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
91771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
91772         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
91773         (Depends-on): Add EOVERFLOW.
91774         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
91775         (Depends-on): Add EOVERFLOW.
91776         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91777         (Depends-on): Add EOVERFLOW.
91778         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91779         (Depends-on): Add EOVERFLOW.
91780         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91781         (Depends-on): Add EOVERFLOW.
91782         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91783         (Depends-on): Add EOVERFLOW.
91784         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91785         (Depends-on): Add EOVERFLOW.
91786         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91787         (Depends-on): Add EOVERFLOW.
91789         * lib/sprintf.c (EOVERFLOW): Remove fallback.
91790         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
91791         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
91793         * lib/snprintf.c (EOVERFLOW): Remove fallback.
91794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
91795         * modules/snprintf (Depends-on): Add EOVERFLOW.
91797         * lib/poll.c (EOVERFLOW): Remove fallback.
91798         * modules/poll (Depends-on): Add EOVERFLOW.
91800         * lib/getugroups.c (EOVERFLOW): Remove fallback.
91801         * modules/getugroups (Depends-on): Add EOVERFLOW.
91803         * lib/getdelim.c (EOVERFLOW): Remove fallback.
91804         * modules/getdelim (Depends-on): Add EOVERFLOW.
91806         * lib/ftell.c (EOVERFLOW): Remove fallback.
91807         * modules/ftell (Depends-on): Add EOVERFLOW.
91809         * lib/fprintf.c (EOVERFLOW): Remove fallback.
91810         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
91811         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
91813         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
91815         * modules/EOVERFLOW-tests: New file.
91816         * tests/test-EOVERFLOW.c: New file.
91818         * modules/EOVERFLOW: New file.
91819         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
91821 2008-03-30  Bruno Haible  <bruno@clisp.org>
91823         Fix bug introduced on 2007-06-10.
91824         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
91825         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
91827 2008-03-30  Bruno Haible  <bruno@clisp.org>
91829         Improve freadseek's efficiency after ungetc.
91830         * lib/freadseek.c: Include freadahead.h.
91831         (freadptrinc): New function, extracted from freadseek.
91832         (freadseek): Use it in a loop. Use freadahead to determine the number
91833         of loop iterations.
91834         * modules/freadseek (Depends-on): Add freadahead.
91835         (configure.ac): Require AC_C_INLINE.
91837 2008-03-30  Bruno Haible  <bruno@clisp.org>
91839         * lib/freadseek.c (freadseek): Don't ignore the return value of
91840         freadptr.
91842 2008-03-29  Eric Blake  <ebb9@byu.net>
91844         Add hex float support.
91845         * modules/strtod (Depends-on): Add c-ctype.
91846         (Link): Mention POW_LIB.
91847         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
91848         whitespace between 'e' and exponent.
91849         * tests/test-strtod.c (main): Enable hex float tests.
91850         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
91851         now provides.
91853         Document various strtod bugs, with some fixes.
91854         * doc/posix-functions/strtod.texi (strtod): Document bugs with
91855         "-0x", "inf", "nan", and hex constants.
91856         * doc/posix-functions/atof.texi (atof): Likewise.
91857         * modules/stdlib (Makefile.am): Support strtod.
91858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
91859         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
91860         detect additional strtod bugs.
91861         * lib/stdlib.in.h (rpl_strtod): Add declarations.
91862         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
91863         bool where appropriate.  Parse 'inf' and 'nan'.
91864         * tests/test-strtod.c: New file.
91865         * modules/strtod (Depends-on): Add stdbool, stdlib.
91866         (configure.ac): Turn on module indicator.
91867         * modules/strtod-tests: New module.
91869 2008-03-29  Eric Blake  <ebb9@byu.net>
91871         Fix ftell on mingw.
91872         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
91873         * modules/ftell-tests (Depends-on): Add binary-io.
91874         * modules/ftello-tests (Depends-on): Likewise.
91875         * tests/test-ftell.c (main): Enhance test to cover behavior after
91876         ungetc.  Enforce binary mode.
91877         * tests/test-ftello.c (main): Likewise.
91879         Pass test-freadseek on cygwin.
91880         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
91881         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
91882         ungetc buffer.
91884         * tests/test-fflush2.c (main): Fix typo.
91886 2008-03-29  Bruno Haible  <bruno@clisp.org>
91888         * tests/test-fflush2.c (main): Temporarily disable the contents of
91889         this test.
91890         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
91891         Reported by Eric Blake.
91893 2008-03-28  Simon Josefsson  <simon@josefsson.org>
91895         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
91896         (GC_SHA224_DIGEST_SIZE): Add.
91898         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
91899         (gc_hash_digest_length): Likewise.
91900         (gc_hash_buffer): Likewise.
91902 2008-03-25  Bruno Haible  <bruno@clisp.org>
91904         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
91905         detail which gettext release to use.
91906         Reported by Simon Josefsson.
91908 2008-03-26  Jim Meyering  <meyering@redhat.com>
91910         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
91911         * modules/gnumakefile (clean-GNUmakefile): Also, use
91912         test ... && ... || : syntax rather than if-then ... fi.
91914         gnumakefile: Don't double-quote-expand $(VPATH) value.
91915         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
91917 2008-03-24  Eric Blake  <ebb9@byu.net>
91919         Alter GNUmakefile to install into top directory.
91920         * modules/maintainer-makefile: Split, and add dependency...
91921         * modules/gnumakefile: to this new module.
91922         * build-aux/GNUmakefile: Move...
91923         * top/GNUmakefile: ...here.
91924         * build-aux/maint.mk: Move...
91925         * top/maint.mk: ...here.
91926         * MODULES.html.sh (Support for maintaining...): Document new
91927         module.
91929 2008-03-23  Bruno Haible  <bruno@clisp.org>
91931         * gnulib-tool: New options --vc-files, --no-vc-files.
91932         (func_usage): Document them.
91933         (vc_files): New variable.
91934         (func_import): Consider vc_files.
91935         (func_create_testdir): Set vc_files to empty.
91936         Suggested by Jim Meyering and Karl Berry.
91938 2008-03-23  Bruno Haible  <bruno@clisp.org>
91940         Fix regex compilation error on HP-UX 11.
91941         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
91942         * modules/regex (Files): Add m4/mbstate_t.m4.
91943         Reported by Ton Voon <ton.voon@altinity.com>.
91945 2008-03-23  Bruno Haible  <bruno@clisp.org>
91947         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
91949 2008-03-23  Eric Blake  <ebb9@byu.net>
91950             Bruno Haible  <bruno@clisp.org>
91952         Install files from top/ in the destination directory.
91953         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
91954         augmentation also for the files from top/.
91955         (func_import, func_create_testdir): Rewrite file names:
91956         top/filename -> filename.
91958 2008-03-23  Bruno Haible  <bruno@clisp.org>
91960         Tweak "gnulib --version" output.
91961         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
91963 2008-03-23  Bruno Haible  <bruno@clisp.org>
91965         Tweak "gnulib --version" output.
91966         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
91967         rather than contents of ChangeLog, when possible.
91969 2008-03-21  Eric Blake  <ebb9@byu.net>
91971         More --version tweaks.
91972         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
91973         date of last ChangeLog entry.
91975 2008-03-21  Jim Meyering  <meyering@redhat.com>
91977         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
91979 2008-03-20  Eric Blake  <ebb9@byu.net>
91981         VPATH fix.
91982         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
91984 2008-03-20  Simon Josefsson  <simon@josefsson.org>
91986         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
91987         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
91989 2008-03-20  Eric Blake  <ebb9@byu.net>
91991         Sync GNUmakefile with coreutils.
91992         * build-aux/GNUmakefile (have-Makefile): Rename...
91993         (_have-Makefile): ...to this, for namespace consideration.
91994         (GNUmakefile.cfg): Include, if present.
91995         (_autoreconf): Define a default.
91996         (_is-dist-target): New rule for rebuilds to pick up intra-release
91997         version.
91998         (maint-cfg.mk): Rename...
91999         (cfg.mk): ...to this.
92001 2008-03-18  Jim Meyering  <meyering@redhat.com>
92003         New script and module: mktempd
92004         * MODULES.html.sh (maint+release support): Add mktempd.
92005         * build-aux/mktempd: New file.
92006         * modules/mktempd: New file.
92008 2008-03-15  Jim Meyering  <meyering@redhat.com>
92010         Undo last change.
92011         * lib/sha1.c, lib/md5.c: 63 != ~63.
92012         Reported by Andreas Schwab.
92014         sha1.c, md5.c: Hoist a redundant expression.
92015         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92016         "ctx->buflen" only once, before calling *_process_block.
92017         * lib/md5.c (md5_process_bytes): Likewise.
92019 2008-03-14  Eric Blake  <ebb9@byu.net>
92021         Bump copyright year in files generated by gnulib-tool.
92022         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92023         gnulib-tool, rather than hard-coding it.
92025         Fix 'gnulib-tool --version' output to work with git.
92026         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92027         (startup): ...here.
92028         (func_version): Use it to invoke git-version-gen, rather than
92029         relying on CVS keyword expansion.  Modernize wording.
92030         (cvsdatestamp, last_checkin_date, version): Kill unused
92031         variables.
92033 2008-03-12  Jim Meyering  <meyering@redhat.com>
92035         Recognize optional cast of the argument to free.
92036         * build-aux/useless-if-before-free: Update regexps.
92038         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92040 2008-03-11  Bruno Haible  <bruno@clisp.org>
92042         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92043         by a single package.
92044         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92045         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92046         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92047         Reported by Sam Steingold <sds@gnu.org>.
92049 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92051         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92052         repositories.
92054 2008-03-11  Bruno Haible  <bruno@clisp.org>
92056         Avoid conflicts between local macro definitions.
92057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92058         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92060 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92061             Bruno Haible  <bruno@clisp.org>
92063         Make va_copy work with some version of xlc on AIX 5.1.
92064         * lib/stdarg.in.h: New file.
92065         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92066         On AIX, use a <stdarg.h> file substitute.
92067         * modules/stdarg (Files): Add lib/stdarg.in.h.
92068         (Depends-on): Add include_next.
92069         (Makefile.am): Build a stdarg.h substitute if requested.
92070         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92072 2008-03-10  Bruno Haible  <bruno@clisp.org>
92074         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92076         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92078 2008-03-10  Bruno Haible  <bruno@clisp.org>
92080         * modules/stdlib (Depends-on): Add include_next, remove
92081         absolute-header.
92083 2008-03-09  Bruno Haible  <bruno@clisp.org>
92085         * lib/freadahead.h (freadahead): Document more precisely.
92086         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92087         the sum of both buffer sizes.
92088         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92089         * NEWS: Document the change.
92091 2008-03-09  Bruno Haible  <bruno@clisp.org>
92093         Extend freadptr to return also the buffer size.
92094         * lib/freadptr.h (freadptr): Add sizep argument.
92095         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92096         (freadptr): Add sizep argument. Determine buffer size like freadahead
92097         does.
92098         * tests/test-freadptr.c: Don't include freadahead.h.
92099         (main): Adapt for new calling convention of freadptr.
92100         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92101         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92102         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92103         tests/test-freadptr2.sh.
92104         (Depends): Remove freadahead.
92105         (TESTS): Add test-freadptr2.sh.
92106         (check_PROGRAMS): Add test-freadptr2.
92108 2008-03-09  Bruno Haible  <bruno@clisp.org>
92110         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92111         Report and solution by Simon Josefsson.
92113 2008-03-06  Bruno Haible  <bruno@clisp.org>
92115         Make fflush after ungetc work on BSD platforms.
92116         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92117         * tests/test-fflush2.c: New file.
92118         * tests/test-fflush2.sh: New file.
92119         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92120         tests/test-fflush2.c.
92121         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92122         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92124 2008-03-06  Eric Blake  <ebb9@byu.net>
92126         Likewise for ftello.
92127         * modules/ftello (Dependencies): Add extensions.
92128         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92130 2008-03-06  Bruno Haible  <bruno@clisp.org>
92132         * modules/fseeko (Dependencies): Add extensions.
92133         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92134         Needed on glibc systems.
92136 2008-03-06  Bruno Haible  <bruno@clisp.org>
92138         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92139         email address.
92140         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92142 2008-03-06  Bruno Haible  <bruno@clisp.org>
92144         * users.txt: Add libgnupdf.
92146 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92148         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92149         (Header File Substitutes, Function Substitutes,
92150         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92151         (Build robot for gnulib): Fix typo.
92153 2008-03-06  Bruno Haible  <bruno@clisp.org>
92155         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92156         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92158 2008-03-06  Bruno Haible  <bruno@clisp.org>
92160         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92161         * doc/gnulib.texi: Include it.
92163 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92165         * modules/func (License): Change license to unlimited; there was
92166         no LGPL parts in the module anyway.
92168 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92170         * modules/__func__: Renamed to modules/func.
92171         * modules/__func__-tests: Renamed to modules/func-tests.
92172         * tests/test-__func__.c: Renamed to tests/test-func.c.
92173         * m4/__func__.m4: Renamed to m4/func.m4.
92174         * doc/gnulib.texi (__func__): Section renamed to func.
92175         Suggested by Eric Blake <ebb9@byu.net>.
92177 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92179         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92180         about __func__.  Make example self-contained.  Suggested by Eric
92181         Blake <ebb9@byu.net>.
92183         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92184         Suggested by Eric Blake <ebb9@byu.net>.
92186 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92188         * modules/__func__: New file.
92189         * modules/__func__-tests: New file.
92190         * tests/test-__func__.c: New file.
92191         * m4/__func__.m4: New file.
92192         * doc/gnulib.texi (__func__): Document __func__ module.
92194 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92196         * modules/byteswap (License): Re-license as LGPLv2+.
92198 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92200         * doc/Makefile: Add pdf target.
92202 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92204         * modules/inline (License): Use 'unlimited', since there are only
92205         *.m4 files in this module.
92207 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92208             Bruno Haible  <bruno@clisp.org>
92210         Add support for HP C 7.1 on OpenVMS 8.3.
92211         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92213 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92215         Update VMS specifics.
92216         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92218 2008-03-02  Jim Meyering  <meyering@redhat.com>
92220         Remove the last dependency on the "free" module.
92221         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92222         Reported by Bob Proulx.
92224         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92226         Remove useless "if" tests before free.  Deprecate "free" module.
92227         * doc/posix-functions/free.texi: Mention that this
92228         module is no longer useful.
92229         * modules/free (Notice): Say this module is obsolete.
92230         * modules/readutmp (Depends-on): Remove free.
92231         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92232         * lib/putenv.c (putenv): Likewise.
92233         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92234         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92235         * tests/test-c-strcasestr.c (main): Likewise.
92236         * tests/test-c-strstr.c (main): Likewise.
92237         * tests/test-mbscasestr1.c (main): Likewise.
92238         * tests/test-mbscasestr2.c (main): Likewise.
92239         * tests/test-mbsstr1.c (main): Likewise.
92240         * tests/test-mbsstr2.c (main): Likewise.
92241         * tests/test-memmem.c (main): Likewise.
92242         * tests/test-strcasestr.c (main): Likewise.
92243         * tests/test-striconv.c (main): Likewise.
92244         * tests/test-striconveh.c (main): Likewise.
92245         * tests/test-striconveha.c (main): Likewise.
92246         * tests/test-strstr.c (main): Likewise.
92248         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92250         bootstrap: sync from coreutils again
92251         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92253 2008-03-01  Jim Meyering  <meyering@redhat.com>
92255         bootstrap: sync from coreutils
92256         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92257         also when the target doesn't exist.
92259 2008-03-01  Eric Blake  <ebb9@byu.net>
92261         Fix bugs in last patch.
92262         * lib/memchr2.c (memchr2): Fix typo.
92263         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92264         extension.
92265         Reported by Bruce Korb.
92267         New module 'memchr2'.
92268         * modules/memchr2: New file.
92269         * modules/memchr2-tests: Likewise.
92270         * lib/memchr2.h: Likewise.
92271         * lib/memchr2.c: Likewise, based on memchr.c.
92272         * tests/test-memchr2.c: New test.
92273         * MODULES.html.sh (String handling): Add memchr2.
92275 2008-02-29  Bruno Haible  <bruno@clisp.org>
92277         * modules/freadseek-tests: New file.
92278         * tests/test-freadseek.sh: New file.
92279         * tests/test-freadseek.c: New file.
92281         New module 'freadseek'.
92282         * modules/freadseek: New file.
92283         * lib/freadseek.h: New file.
92284         * lib/freadseek.c: New file.
92285         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92287 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92289         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92290         wydawca.
92292         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92293         program_invocation_name and program_invocation_short_name are
92294         present.
92296 2008-02-28  Bruno Haible  <bruno@clisp.org>
92298         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92299         * tests/test-freadptr.sh: Also test non-seekable stdin.
92301 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92303         * build-aux/bootstrap (source_base, m4_base)
92304         (doc_base, tests_base): New variables.
92305         (gnulib_tool_options): Do not hardcode base directories, use
92306         the above variables instead.
92308 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92310         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92312 2008-02-28  Bruno Haible  <bruno@clisp.org>
92314         * modules/freadptr-tests: New file.
92315         * tests/test-freadptr.sh: New file.
92316         * tests/test-freadptr.c: New file.
92318         New module 'freadptr'.
92319         * modules/freadptr: New file.
92320         * lib/freadptr.h: New file.
92321         * lib/freadptr.c: New file.
92322         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92324 2008-02-26  Karl Berry  <karl@freefriends.org>
92326         Sync from Libtool:
92327         * libltdl/argz.c (argz_add, argz_count): New functions.
92328         * libltdl/argz.in.h: Declare them.
92329         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92331 2008-02-22  Bruno Haible  <bruno@clisp.org>
92333         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92334         is a pointer type.  Needed for HP-UX 10.
92335         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92336         * doc/posix-functions/gmtime_r.texi: Likewise.
92337         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92339 2008-02-24  Bruno Haible  <bruno@clisp.org>
92341         * modules/environ-tests: New file.
92342         * tests/test-environ.c: New file.
92344         New module 'environ'.
92345         * modules/environ: New file.
92346         * lib/unistd.in.h (environ): New declaration.
92347         * m4/environ.m4: New file.
92348         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92349         after use.
92350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92351         HAVE_DECL_ENVIRON.
92352         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92353         HAVE_DECL_ENVIRON.
92354         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92355         wrong claim that 'environ' is missing on some systems.
92356         * modules/execute (Depends-on): Add environ.
92357         * lib/execute.c (environ): Remove fallback declaration.
92358         * modules/pipe (Depends-on): Add environ.
92359         * lib/pipe.c (environ): Remove fallback declaration.
92360         * modules/setenv (Depends-on): Add environ.
92361         * lib/setenv.c (environ): Remove fallback declaration.
92362         * modules/unsetenv (Depends-on): Add environ.
92363         * lib/unsetenv.c (environ): Remove fallback declaration.
92364         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92365         m4/environ.m4.
92366         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92367         (gl_PREREQ_UNSETENV): Likewise.
92369 2008-02-24  Bruno Haible  <bruno@clisp.org>
92371         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92373 2008-02-20  Bob Proulx  <bob@proulx.com>
92375         Enable use of older two part flavor 'git describe'.
92376         * build-aux/git-version-gen: If using the older two part flavor of
92377         git version then recreate the third part now present in the
92378         newer three part flavor of git describe.
92380 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92382         * lib/fts.c (fts_build): Typo correction to comment.
92384 2008-02-17  Bruno Haible  <bruno@clisp.org>
92386         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92387         generating no-op conflicts.
92389 2008-02-17  Bruno Haible  <bruno@clisp.org>
92391         Speed up by 10%.
92392         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92393         result_entries, rather than an index-based loop.
92395 2008-02-17  Bruno Haible  <bruno@clisp.org>
92397         Speed up by 25%.
92398         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92399         'hashcode_cached'.
92400         (entry_create): New function.
92401         (entry_hashcode): Use the cached hashcode if possible.
92402         (read_changelog_file, try_split_merged_entry): Use entry_create.
92404 2008-02-17  Bruno Haible  <bruno@clisp.org>
92406         Speed up from O(n^2) to O(n) for long ChangeLog files.
92407         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92408         (read_changelog_file): Change implementation of entries_reversed list
92409         to rbtreehash.
92410         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92412 2008-02-17  Bruno Haible  <bruno@clisp.org>
92414         New option --split-merged-entry.
92415         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92416         (find_paragraph_end, try_split_merged_entry): New functions.
92417         (long_options): Add option --split-merged-entry.
92418         (usage): Document option --split-merged-entry.
92419         (main): Implement option --split-merged-entry.
92420         Reported by Eric Blake.
92422 2008-02-17  Bruno Haible  <bruno@clisp.org>
92424         * lib/git-merge-changelog.c: Include c-strstr.h.
92425         (main): Support the "git pull --rebase" situation.
92426         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92427         Reported by Eric Blake.
92429 2008-02-16  Eric Blake  <ebb9@byu.net>
92431         Avoid doubling \ in common case of "c-maybe" quoting style.
92432         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92433         eliding outer quotes.
92434         * lib/quotearg.h: Document this.
92435         * tests/test-quotearg.c (result_strings, inputs, results_g)
92436         (flag_results, locale_results): Test it by adding a new string to
92437         each test group.
92438         (compare_strings): Test new string.
92440 2008-02-13  Eric Blake  <ebb9@byu.net>
92442         Avoid trigraph quoting in default output.
92443         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92444         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92445         unless explicitly requested.
92446         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92448 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92450         Don't rely on signed integer overflowing to negative value.
92451         * lib/getugroups.c (getugroups): Include <limits.h>.
92452         Instead, compare against INT_MAX, and increment only if the test passes.
92454 2008-02-13  Jim Meyering  <meyering@redhat.com>
92455         and Eric Blake  <ebb9@byu.net>
92457         Avoid shadowing warning and compile errors on Linux.
92458         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92459         forwarding macros on Linux.
92460         (dcgettext): Define a stub, for Linux.
92461         (results_g, main): Avoid warnings.
92463 2008-02-12  Eric Blake  <ebb9@byu.net>
92465         Silence warning in last patch.
92466         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92468         Quotearg part 4: add tests, fix c-maybe colon quoting.
92469         * lib/quotearg.h: Improve documentation.
92470         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92471         escapes when adding outer quotes.  When quoting trigraphs, use
92472         valid C notation.  When quoting NUL, omit extra characters if next
92473         character is not digit.  Alter prototype.
92474         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92475         callers.
92476         * modules/quotearg-tests: New module.
92477         * tests/test-quotearg.c: New test.
92479 2008-02-07  Eric Blake  <ebb9@byu.net>
92481         Quotearg part 3: add flag to control outer quote elision.
92482         * lib/quotearg.h (c_maybe_quoting_style): New style.
92483         (enum quoting_flags): Better documentation of flags.
92484         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92485         c-maybe style.
92486         (quotearg_buffer_restyled): Handle new flag to elide outer
92487         quotes.
92489         Quotearg part 2: add flag that can control NUL elision.
92490         * lib/quotearg.h (set_quoting_flags): New prototype.
92491         * lib/quotearg.c (struct quoting_options): Add flag field.
92492         (set_quoting_flags): New function.
92493         (quotearg_buffer_restyled): Add flags parameter.
92494         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92495         (quotearg_n_options): Set the flag, since length cannot be
92496         returned.
92497         (quoting_options_from_style): Default flags correctly.
92499         Quotearg part 1: more wrappers, restore quotearg_char state.
92500         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92501         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92502         (quotearg_colon_mem): New wrappers.
92503         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92504         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92505         functions.
92506         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92507         (quotearg_colon_mem): New functions.
92509 2008-02-11  Bruno Haible  <bruno@clisp.org>
92511         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92512         library in the current directory: it does not work with parallel make.
92513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92515 2008-02-11  Bruno Haible  <bruno@clisp.org>
92517         * .gitattributes: New file.
92519 2008-02-11  Jim Meyering  <meyering@redhat.com>
92521         useless-if-before-free: Fix reversed exit values.
92522         * build-aux/useless-if-before-free: Use correct values
92523         for EXIT_MATCH and EXIT_NO_MATCH.
92525         * build-aux/useless-if-before-free: Close stdout carefully.
92527 2008-02-10  Bruno Haible  <bruno@clisp.org>
92529         New module 'git-merge-changelog'.
92530         * modules/git-merge-changelog: New file.
92531         * lib/git-merge-changelog.c: New file.
92533 2008-02-10  Jim Meyering  <meyering@redhat.com>
92535         useless-if-before-free: New option: --list (-l).
92537         useless-if-before-free: Don't exit immediately upon open failure.
92538         * build-aux/useless-if-before-free: Exit 2 for errors.
92539         Upon failure to open a file, don't exit immediately.
92540         Rather, just warn and continue with any remaining files.
92542 2008-02-10  Bruno Haible  <bruno@clisp.org>
92544         New abstract list operation 'node_set_value'.
92545         * lib/gl_list.h (gl_list_node_set_value): New function.
92546         (struct gl_list_implementation): New field node_set_value.
92547         * lib/gl_list.c (gl_list_node_set_value): New function.
92548         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92549         (gl_array_list_implementation): Update.
92550         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92551         (gl_carray_list_implementation): Update.
92552         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92553         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92554         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92555         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92556         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92557         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92558         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92559         Update.
92560         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92561         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92562         (gl_sublist_list_implementation): Update.
92564 2008-02-10  Bruno Haible  <bruno@clisp.org>
92566         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92567         Needed when ELEMENT is #defined to 'some_type *'.
92569 2008-02-10  Jim Meyering  <meyering@redhat.com>
92571         New script and module: useless-if-before-free
92572         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92573         * build-aux/useless-if-before-free: New file.
92574         * modules/useless-if-before-free: New file.
92576         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92578         xstrtol_error: Fix typo.
92579         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92580         s/exit_failure/exit_status/.
92582 2008-02-09  Jim Meyering  <meyering@redhat.com>
92584         New script and module: gitlog-to-changelog
92585         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92586         * modules/gitlog-to-changelog: New file.
92587         * build-aux/gitlog-to-changelog: New file.
92589 2008-02-08  Jim Meyering  <meyering@redhat.com>
92591         Avoid two "parameter unused" warnings.
92592         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
92593         Mark "st" as used.
92595         Use "git COMMAND", not "git-COMMAND".
92596         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
92597         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
92598         * build-aux/git-version-gen: Use "git status", not "git-status".
92600 2008-02-07  Bruno Haible  <bruno@clisp.org>
92602         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
92603         Avoids a crash on Windows Vista.
92604         Reported by Adam Strzelecki <ono@java.pl> via
92605         Simon Josefsson <simon@josefsson.org>.
92607 2008-02-06  Bruno Haible  <bruno@clisp.org>
92609         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
92610         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
92611         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
92612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
92613         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
92614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
92615         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
92616         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
92617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
92618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
92620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
92621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
92622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
92624         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
92625         left-adjust flag.
92626         * tests/test-snprintf-posix.h (test_function): Likewise.
92627         * tests/test-sprintf-posix.h (test_function): Likewise.
92628         * tests/test-vasprintf-posix.c (test_function): Likewise.
92629         * doc/posix-functions/fprintf.texi: Update.
92630         * doc/posix-functions/printf.texi: Update.
92631         * doc/posix-functions/snprintf.texi: Update.
92632         * doc/posix-functions/sprintf.texi: Update.
92633         * doc/posix-functions/vfprintf.texi: Update.
92634         * doc/posix-functions/vprintf.texi: Update.
92635         * doc/posix-functions/vsnprintf.texi: Update.
92636         * doc/posix-functions/vsprintf.texi: Update.
92637         Reported by Peter Fales <psfales@alcatel-lucent.com>.
92639 2008-02-06  Bruno Haible  <bruno@clisp.org>
92641         Fix bug introduced on 2008-01-26.
92642         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
92644 2008-02-06  Bruno Haible  <bruno@clisp.org>
92646         Fix bug introduced on 2007-06-10.
92647         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
92648         !NEED_PRINTF_FLAG_ZERO.
92650 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
92652         getloadavg: use libperfstat on AIX5
92653         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
92655 2008-02-03  Bruno Haible  <bruno@clisp.org>
92657         * lib/diffseq.h: Add comments about required #includes.
92658         Reported by Michael Biggs <gnulib@doubleplum.net>.
92660 2008-02-01  Bruno Haible  <bruno@clisp.org>
92662         * users.txt: Add gnuit.
92664 2008-01-31  Bruno Haible  <bruno@clisp.org>
92666         * lib/md4.c (set_uint32): Mark as inline.
92667         * lib/md5.c (set_uint32): Likewise.
92668         * lib/sha1.c (set_uint32): Likewise.
92669         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
92670         * m4/md5.m4 (gl_MD5): Likewise.
92671         * m4/sha1.m4 (gl_SHA1): Likewise.
92673 2008-01-31  Jim Meyering  <meyering@redhat.com>
92675         Use "sizeof VAR", rather than a literal "4".
92676         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
92677         * lib/md4.c (md4_read_ctx): Likewise.
92678         * lib/sha1.c (sha1_read_ctx): Likewise.
92680 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92682         * tests/test-sha1.c: New file, based on test-md5.c.
92684         * modules/crypto/sha1-tests: New file.
92686 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92688         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
92690 2008-01-31  Jim Meyering  <meyering@redhat.com>
92692         Prefer "sizeof v" over the equivalent "4".
92693         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
92694         * lib/md5.c (set_uint32): Likewise.
92695         * lib/sha1.c (set_uint32): Likewise.
92697 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92699         * lib/sha1.c (set_uint32): Mark function as static.
92701 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92703         md2: clarify comments to say that alignment is not required.
92704         * lib/md2.h: Remove warning about alignment in comment.
92705         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
92706         never been required.
92708 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92710         md4: adapt alignment constraint fix from sha1.
92711         * lib/md4.c (set_uint32): New function, from sha1.c
92712         (md4_read_ctx): Use it.
92713         (md4_finish_ctx): Doc fix.
92714         * lib/md4.h: Doc fix.
92716 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92718         md5: adapt alignment constraint fix from sha1.
92719         * lib/md5.c (set_uint32): New function, from sha1.c
92720         (md5_read_ctx): Use it.
92721         (md5_finish_ctx): Doc fix.
92722         * lib/md5.h: Doc fix.
92724 2008-01-30  Peter Palfrader  <weasel@debian.org>
92726         sha1: remove the result buffer alignment constraint
92727         * lib/sha1.c (set_uint32): New function.
92728         (sha1_read_ctx): Rewrite to remove the result buffer alignment
92729         constraint.
92730         (sha1_finish_ctx): Remove comment warning about alignment constraint.
92731         * lib/sha1.h: Likewise.
92733 2008-01-30  Andreas Schwab  <schwab@suse.de>
92734             Bruno Haible  <bruno@clisp.org>
92736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
92737         correct definition of LDBL_MIN_EXP.
92739 2008-01-30  Karl Berry  <karl@gnu.org>
92741         * config/srclist-update: try to preserve x bit on updates.
92742         * config/srclistvars.sh: update for karl.
92744 2008-01-29  Jim Meyering  <meyering@redhat.com>
92746         vasnprintf.c: Avoid warning about unused label
92747         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
92748         "overflow" label definition and associated code with the
92749         same cpp condition that guards the sole use of that label.
92751 2008-01-26  Bruno Haible  <bruno@clisp.org>
92753         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
92754         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
92755         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
92756         * lib/isnanl-nolibm.h (isnanl): Likewise.
92757         Reported by Paul Eggert <eggert@cs.ucla.edu>.
92759 2008-01-26  Bruno Haible  <bruno@clisp.org>
92761         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
92762         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
92764 2008-01-26  Bruno Haible  <bruno@clisp.org>
92766         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
92767         GCC >= 4.0 built-in.
92768         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
92770 2008-01-26  Bruno Haible  <bruno@clisp.org>
92772         Rename isnan, applicable to 'double' only, to isnand.
92773         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
92774         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
92775         (configure.ac): Update.
92776         (Include): Replace "isnan.h" with "isnand.h".
92777         * m4/isnand.m4: Renamed from m4/isnan.m4.
92778         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
92779         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
92780         instead of isnan.c.
92781         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
92782         instead of HAVE_ISNAN_IN_LIBC.
92783         (isnand): Renamed from isnan.
92784         * lib/isnand.c: New file.
92785         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
92786         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
92787         (Makefile.am): Update.
92788         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
92789         Include isnand.h instead of isnan.h.
92790         (main): Test isnand instead of isnan.
92791         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
92792         isnan-nolibm.
92793         * modules/frexp (Depends-on): Likewise.
92794         * modules/frexp-tests (Depends-on): Likewise.
92795         * modules/frexp-nolibm (Depends-on): Likewise.
92796         * modules/frexp-nolibm-tests (Depends-on): Likewise.
92797         * modules/isfinite (Depends-on): Likewise.
92798         * modules/round-tests (Depends-on): Likewise.
92799         * modules/signbit (Depends-on): Likewise.
92800         * modules/signbit-tests (Depends-on): Likewise.
92801         * modules/snprintf-posix (Depends-on): Likewise.
92802         * modules/sprintf-posix (Depends-on): Likewise.
92803         * modules/trunc-tests (Depends-on): Likewise.
92804         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92805         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92806         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92811         * modules/vasnprintf-posix (Depends-on): Likewise.
92812         * modules/vasprintf-posix (Depends-on): Likewise.
92813         * modules/vfprintf-posix (Depends-on): Likewise.
92814         * modules/vsnprintf-posix (Depends-on): Likewise.
92815         * modules/vsprintf-posix (Depends-on): Likewise.
92816         * lib/frexp.c: Include isnand.h instead of isnan.h.
92817         (ISNAN): Set to isnand instead of isnan.
92818         * lib/isfinite.c: Include isnand.h instead of isnan.h.
92819         (gl_isfinited): Use isnand instead of isnan.
92820         * lib/signbitd.c: Include isnand.h instead of isnan.h.
92821         (gl_signbitd): Use isnand instead of isnan.
92822         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
92823         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
92824         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
92825         (main): Use isnand instead of isnan.
92826         * tests/test-round1.c: Include isnand.h.
92827         (main): Use isnand instead of isnan.
92828         * tests/test-round2.c: Include isnand.h instead of isnan.h.
92829         (ISNAN): Set to isnand instead of isnan.
92830         * tests/test-trunc1.c: Include isnand.h.
92831         (main): Use isnand instead of isnan.
92832         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
92833         (equal): Use isnand instead of isnan.
92834         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
92835         isnand-nolibm.
92836         * NEWS: Mention the change.
92838 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
92839             Bruno Haible  <bruno@clisp.org>
92841         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
92842         the GCC builtins for signbits are present and set
92843         REPLACE_SIGNBIT_USING_GCC if so.
92844         * lib/math.in.h (signbit): Define using GCC builtins if
92845         REPLACE_SIGNBIT_USING_GCC is set.
92846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
92847         REPLACE_SIGNBIT_USING_GCC.
92848         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
92850 2008-01-25  Jim Meyering  <meyering@redhat.com>
92852         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
92853         * lib/poll.c: Include <config.h>, not "config.h".
92854         * tests/test-getaddrinfo.c: Likewise.
92856 2008-01-25  Simon Josefsson  <simon@josefsson.org>
92858         * modules/sockets-tests: New file.
92860 2008-01-24  Simon Josefsson  <simon@josefsson.org>
92862         * modules/sockets: New module, can be used to call WSA_Startup and
92863         WSA_Cleanup when needed.
92865         * lib/sockets.h, lib/sockets.c: New files.
92867         * m4/sockets.m4: New file.
92869         * tests/test-sockets.c: New file.
92871 2008-01-19  Bruno Haible  <bruno@clisp.org>
92873         * doc/posix-headers: Renamed from doc/headers.
92874         * doc/posix-functions: Renamed from doc/functions.
92875         * doc/gnulib.texi: Update.
92877 2008-01-19  Bruno Haible  <bruno@clisp.org>
92879         * doc/glibc-functions/strcasestr.texi: Include contents of
92880         doc/functions/strcasestr.texi, fixing the list of platforms.
92881         * doc/functions/strcasestr.texi: Remove file.
92883 2008-01-19  Bruno Haible  <bruno@clisp.org>
92885         * doc/glibc-functions/memmem.texi: Include contents of
92886         doc/functions/memmem.texi.
92887         * doc/functions/memmem.texi: Remove file.
92889 2008-01-18  Bruno Haible  <bruno@clisp.org>
92891         * doc/glibc-functions/*.texi: New files.
92892         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
92893         to use the new files.
92895 2008-01-17  Bruno Haible  <bruno@clisp.org>
92897         * tests/test-gethostname.c (main): Fix printf statement.
92899 2008-01-17  Simon Josefsson  <simon@josefsson.org>
92901         * modules/gethostname-tests: New file.
92903         * tests/test-gethostname.c: New file.
92905 2008-01-17  Simon Josefsson  <simon@josefsson.org>
92907         * lib/gethostname.c: Include string.h unconditionally, strncpy is
92908         used by the UNAME case.  Reported by Bruno Haible
92909         <bruno@clisp.org>.
92911 2008-01-17  Eric Blake  <ebb9@byu.net>
92913         Convert c-strcasestr to be more efficient.
92914         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
92915         (Depends-on): Add c-strcase, remove malloca, strnlen.
92916         * tests/test-c-strcasestr.c (main): Enhance test.
92917         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
92919 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
92921         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
92922         Use it in creating po/Makevars.
92924 2008-01-15  Simon Josefsson  <simon@josefsson.org>
92926         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
92927         Applications that requires it should initialize libgcrypt
92928         manually.
92930 2008-01-16  Simon Josefsson  <simon@josefsson.org>
92932         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
92934 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
92936         Fix problem with getdate on mingw32 reported by Simon Josefsson
92937         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
92938         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
92939         tzname", when deciding whether to declare tzname.
92940         * lib/strftime.c (tzname): Likewise.
92942 2008-01-15  Bruno Haible  <bruno@clisp.org>
92944         Work around a MacOS X 10.5 bug in frexpl().
92945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
92946         * doc/functions/frexpl.texi: Document the bug.
92947         Reported by Elias Pipping <pipping@gentoo.org>.
92949 2008-01-14  Eric Blake  <ebb9@byu.net>
92951         Touch up previous patch.
92952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
92953         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
92955         Convert strcasestr module to use Two-Way algorithm.
92956         * modules/strcasestr-simple: New module, based on the old
92957         strcasestr, but with Two-Way rather than KMP.
92958         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
92959         * lib/string.in.h (rpl_strcasestr): Declare.
92960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
92961         performance.
92962         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
92963         * modules/string (Makefile.am): Support strcasestr.
92964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
92965         * modules/strcasestr-tests (Depends-on): Check for alarm.
92966         * tests/test-strcasestr.c: Augment test.
92967         * lib/str-two-way.h: Clean up stray macro.
92968         * NEWS: Document new module.
92969         * MODULES.html.sh (string handling): Likewise.
92970         * doc/functions/strcasestr.texi: New file.
92971         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
92972         here, since it is not a POSIX function.
92974 2008-01-14  Colin Watson  <cjwatson@debian.org>
92975             Bruno Haible  <bruno@clisp.org>
92977         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
92978         works fine; if not, set REPLACE_STRSIGNAL.
92979         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
92980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92981         REPLACE_STRSIGNAL.
92982         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
92983         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
92984         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
92986 2008-01-14  Bruno Haible  <bruno@clisp.org>
92988         * modules/strsignal (Include): Change to <string.h>.
92990 2008-01-14  Colin Watson  <cjwatson@debian.org>
92992         * modules/argp (Notice): Add a notice recommending to change
92993         XGETTEXT_OPTIONS.
92994         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
92996 2008-01-13  Colin Watson  <cjwatson@debian.org>
92998         * modules/strsignal-tests: New file.
92999         * tests/test-strsignal.c: New file.
93001         * lib/strsignal.c: New file, from glibc with modifications.
93002         * lib/siglist.h: New file, from glibc with modifications.
93003         * lib/string.in.h (strsignal): New declaration.
93004         * m4/strsignal.m4: New file.
93005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93006         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93007         * modules/strsignal: New file.
93008         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93009         HAVE_DECL_STRSIGNAL.
93011 2008-01-13  Bruno Haible  <bruno@clisp.org>
93013         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93014         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93018 2008-01-13  Bruno Haible  <bruno@clisp.org>
93020         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93021         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93022         * lib/argp.h (__attribute__): Likewise.
93023         * lib/c-stack.c (__attribute__): Likewise.
93024         * lib/error.h (__attribute__): Likewise.
93025         * lib/fts.c (__attribute__): Likewise.
93026         * lib/openat.h (__attribute__): Likewise.
93027         * lib/stdio.in.h (__attribute__): Likewise.
93028         * lib/string.in.h (__attribute__): Likewise.
93029         * lib/utimens.c (__attribute__): Likewise.
93030         * lib/vasnprintf.h (__attribute__): Likewise.
93031         * lib/xalloc.h (__attribute__): Likewise.
93032         * lib/xprintf.h (__attribute__): Likewise.
93033         * lib/xstrtol.h (__attribute__): Likewise.
93034         * lib/xvasprintf.h (__attribute__): Likewise.
93036 2008-01-12  Bruno Haible  <bruno@clisp.org>
93038         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93039         * doc/glibc-headers/a.out.texi: New file.
93040         * doc/glibc-headers/aliases.texi: New file.
93041         * doc/glibc-headers/alloca.texi: New file.
93042         * doc/glibc-headers/ar.texi: New file.
93043         * doc/glibc-headers/argp.texi: New file.
93044         * doc/glibc-headers/argz.texi: New file.
93045         * doc/glibc-headers/byteswap.texi: New file.
93046         * doc/glibc-headers/crypt.texi: New file.
93047         * doc/glibc-headers/endian.texi: New file.
93048         * doc/glibc-headers/envz.texi: New file.
93049         * doc/glibc-headers/err.texi: New file.
93050         * doc/glibc-headers/error.texi: New file.
93051         * doc/glibc-headers/execinfo.texi: New file.
93052         * doc/glibc-headers/fpu_control.texi: New file.
93053         * doc/glibc-headers/fstab.texi: New file.
93054         * doc/glibc-headers/fts.texi: New file.
93055         * doc/glibc-headers/getopt.texi: New file.
93056         * doc/glibc-headers/ieee754.texi: New file.
93057         * doc/glibc-headers/ifaddrs.texi: New file.
93058         * doc/glibc-headers/libintl.texi: New file.
93059         * doc/glibc-headers/mcheck.texi: New file.
93060         * doc/glibc-headers/mntent.texi: New file.
93061         * doc/glibc-headers/obstack.texi: New file.
93062         * doc/glibc-headers/paths.texi: New file.
93063         * doc/glibc-headers/printf.texi: New file.
93064         * doc/glibc-headers/pty.texi: New file.
93065         * doc/glibc-headers/resolv.texi: New file.
93066         * doc/glibc-headers/shadow.texi: New file.
93067         * doc/glibc-headers/sysexits.texi: New file.
93068         * doc/glibc-headers/ttyent.texi: New file.
93070 2008-01-12  Jim Meyering  <meyering@redhat.com>
93072         announce-gen: emit Gnulib's git-based version string.
93073         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93074         New option --gnulib-version=V, where V is expected to be
93075         the output of running git describe in the gnulib directory.
93076         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93077         not useful, and plan to stop publishing an xdelta file with each
93078         coreutils release.
93080         * build-aux/announce-gen: Also check for lzma-compressed files.
93082 2008-01-11  Bruno Haible  <bruno@clisp.org>
93084         * tests/test-memmem.c (main): Increase maximum allowed time.
93085         * tests/test-strstr.c (main): Likewise.
93087 2008-01-11  Bruno Haible  <bruno@clisp.org>
93089         * doc/functions/memmem.texi: Add more precisions about platforms.
93090         * doc/functions/strstr.texi: Likewise.
93092 2008-01-10  Eric Blake  <ebb9@byu.net>
93094         * m4/strstr.m4: Delete cruft from copy-n-paste.
93095         Reported by Bruno Haible.
93097 2008-01-10  Bruno Haible  <bruno@clisp.org>
93099         Make c-strstr rely on strstr.
93100         * lib/c-strstr.c: Don't include str-kmp.h.
93101         (c_strstr): Define in terms of strstr.
93102         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93103         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93105 2008-01-10  Bruno Haible  <bruno@clisp.org>
93107         * doc/gnulib.texi (String Functions in C Locale): New section.
93108         * doc/c-ctype.texi: New file.
93109         * doc/c-strcase.texi: New file.
93110         * doc/c-strcaseeq.texi: New file.
93111         * doc/c-strcasestr.texi: New file.
93112         * doc/c-strstr.texi: New file.
93113         * doc/c-strtod.texi: New file.
93114         * doc/c-strtold.texi: New file.
93116 2008-01-10  Eric Blake  <ebb9@byu.net>
93118         * lib/relocatable.h: Fix a comment.
93120 2008-01-10  Eric Blake  <ebb9@byu.net>
93122         Share two-way algorithm.
93123         * lib/str-two-way.h: New file, merged from...
93124         * lib/memmem.c: ...here...
93125         * lib/strstr.c: ...and here.
93126         * modules/memmem (Files): Use it.
93127         * modules/strstr (Files): Likewise.
93129         Avoid quadratic strstr implementations.
93130         * lib/strstr.c: New file.
93131         * m4/strstr.m4: Likewise.
93132         * modules/strstr: Likewise.
93133         * modules/strstr-tests: Likewise.
93134         * tests/test-strstr.c: Likewise.
93135         * lib/string.in.h (rpl_strstr): Declare.
93136         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93138         * modules/string (Makefile.am): Likewise.
93139         * MODULES.html.sh (string handling): Mention new module.
93140         * doc/functions/strstr.texi (strstr): Document the bug.
93142 2008-01-10  Bruno Haible  <bruno@clisp.org>
93144         * lib/relocatable.h (relocate): State whether result is freshly
93145         allocated or not.
93146         * lib/relocatable.c (relocate): Return a freshly allocated string
93147         instead of a pointer to a privately held string.
93148         Reported by Sylvain Beucler <beuc@gnu.org>.
93150 2008-01-10  Colin Watson  <cjwatson@debian.org>
93152         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93153         s/S_ISNLK/S_ISLNK/.
93155 2008-01-09  Bruno Haible  <bruno@clisp.org>
93157         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93158         and other files.
93159         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93160         if it's only a guess.
93161         * modules/memmem: Simplify by depending on memmem-simple.
93163 2008-01-09  Bruno Haible  <bruno@clisp.org>
93165         Work around OpenBSD 4.0 tdelete() bug.
93166         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93167         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93168         macros and don't redefine the enum values.
93169         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93170         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93171         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93173 2008-01-09  Bruno Haible  <bruno@clisp.org>
93175         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93176         (main): Don't perform the tests if setlocale did not install a UTF-8
93177         locale. Needed on OpenBSD 4.0.
93178         * modules/wcwidth-tests (Depends-on): Add localcharset.
93180 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93182         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93183         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93184         * NEWS: announce this.
93185         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93187 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93188         and Eric Blake  <ebb9@byu.net>
93190         Add memmem-simple module.
93191         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93192         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93193         * modules/memmem-simple: New file.
93194         * modules/memmem (Description): Tweak.
93195         * MODULES.html.sh (string handling): Mention new module.
93196         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93197         addressed by memmem-simple.
93198         * NEWS: Document the difference.
93200 2008-01-09  Eric Blake  <ebb9@byu.net>
93202         Give gcc some memmem optimization hints.
93203         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93204         (strcasestr): Declare as pure.
93205         * modules/memmem (Maintainer): Claim my implementation.
93207 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93209         Support AIX 6.1 and higher.
93210         * build-aux/config.libpath: Likewise.
93211         * build-aux/config.rpath: Likewise.
93213 2008-01-08  Jim Meyering  <meyering@redhat.com>
93214             Bruno Haible  <bruno@clisp.org>
93216         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93217         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93218         Reported by Peter Fales in
93219         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93221 2008-01-08  Bruno Haible  <bruno@clisp.org>
93223         * modules/unictype/category-of (Depends-on): Add
93224         unictype/category-none.
93225         * modules/unictype/category-and-tests (Depends-on): Add
93226         unictype/category-{L,N,Lu,Nd}.
93227         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93228         * modules/unictype/category-or-tests (Depends-on): Add
93229         unictype/category-{L,N}.
93230         * modules/unictype/category-name-tests (Depends-on): Add
93231         unictype/category-{Z,Nl}.
93232         Reported by Simon Josefsson.
93234 2008-01-08  Bruno Haible  <bruno@clisp.org>
93236         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93237         convention better.
93238         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93239         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93240         Reported by Peter Miller <millerp@canb.auug.org.au>.
93242 2008-01-08  Eric Blake  <ebb9@byu.net>
93244         Rewrite memmem to guarantee linear complexity without malloc.
93245         * lib/memmem.c (memmem): Use Two-Way rather than
93246         Knuth-Morris-Pratt, to allow O(1) space usage.
93247         (critical_factorization, two_way_short_needle)
93248         (two_way_long_needle): New functions.
93249         (knuth_morris_pratt): Delete.
93250         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93251         Add stdint.
93252         * tests/test-memmem.c (main): Add tests for periodic needle and
93253         sublinear performance.
93254         * doc/functions/memmem.texi (memmem): Document other deficiencies
93255         in cygwin and older glibc.
93257 2008-01-08  Bruno Haible  <bruno@clisp.org>
93259         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93260         augmentation.
93262 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93264         Add a configure time option: --disable-acl.
93265         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93266         AC_ARG_ENABLE(acl).
93268 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93270         * tests/test-localename.c: Don't include obsolete "setenv.h".
93272         * modules/localename-tests (Depends-on): Need unsetenv.
93274 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93276         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93278 2008-01-06  Colin Watson  <cjwatson@debian.org>
93280         * users.txt: Add man-db.
93282 2008-01-07  Bruno Haible  <bruno@clisp.org>
93284         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93285         previous section name.
93287 2008-01-07  Bruno Haible  <bruno@clisp.org>
93289         * lib/progname.c (set_program_name): Don't strip off a leading
93290         "lt-" prefix outside a .libs directory.
93291         Suggested by Paul Eggert.
93293 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93294             Bruno Haible  <bruno@clisp.org>
93296         Improve memory cleanup in 'relocatable' module.
93297         * lib/relocatable.h (compute_curr_prefix): Change return type to
93298         'char *'.
93299         * lib/relocatable.c (compute_curr_prefix): Change return type to
93300         'char *'. Free curr_installdir after use.
93301         (relocate): Free curr_prefix_better after use.
93302         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93304 2008-01-01  Bruno Haible  <bruno@clisp.org>
93306         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93307         failure on older glibc systems.
93308         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93310 2008-01-05  Eric Blake  <ebb9@byu.net>
93312         Avoid quadratic system memmem.
93313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93314         Reported by Ralf Wildenhues.
93316         Fix memmem test for mingw.
93317         * modules/memmem-tests (configure.ac): Check for alarm.
93318         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93319         it.
93320         * doc/functions/memmem.texi: New file.
93321         * doc/gnulib.texi (Function Substitutes): Add memmem.
93322         Reported by Bruno Haible.
93324 2008-01-04  Bruno Haible  <bruno@clisp.org>
93326         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93327         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93328         gl_HEADER_STRING_H_DEFAULTS.
93330 2008-01-04  Eric Blake  <ebb9@byu.net>
93332         Shorten duration of memmem test.
93333         * tests/test-memmem.c (main): Use alarm to declare failure if test
93334         is taking too long.
93335         Reported by Ralf Wildenhues.
93337 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93339         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93340         string, needed by strerror.
93342 2008-01-03  Colin Watson  <cjwatson@debian.org>
93343             Bruno Haible  <bruno@clisp.org>
93345         * doc/gnulib-tool.texi (Localization): New section.
93347 2008-01-02  Bruno Haible  <bruno@clisp.org>
93349         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93350         variables to 'unsigned char *' type.
93351         Reported by Paul Eggert.
93353 2008-01-02  Jim Meyering  <jim@meyering.net>
93355         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93357 2007-12-31  Jim Meyering  <jim@meyering.net>
93359         Avoid use of private FTS type name.
93360         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93362 2007-12-30  Karl Berry  <karl@gnu.org>
93364         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93365         work around defect in Texinfo and/or the standalone Info browser.
93367 2007-12-30  Bruno Haible  <bruno@clisp.org>
93369         Unify 5 copies of the KMP code.
93370         * lib/str-kmp.h: New file.
93371         * lib/c-strcasestr.c: Include str-kmp.h.
93372         (knuth_morris_pratt): Remove function.
93373         (c_strcasestr): Update.
93374         * lib/c-strstr.c: Include str-kmp.h.
93375         (knuth_morris_pratt): Remove function.
93376         (c_strcasestr): Update.
93377         * lib/mbscasestr.c: Include str-kmp.h.
93378         (knuth_morris_pratt_unibyte): Remove function.
93379         * lib/mbsstr.c: Include str-kmp.h.
93380         (knuth_morris_pratt_unibyte): Remove function.
93381         * lib/strcasestr.c: Include str-kmp.h.
93382         (knuth_morris_pratt): Remove function.
93383         (strcasestr): Update.
93384         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93385         * modules/c-strstr (Files): Likewise.
93386         * modules/mbscasestr (Files): Likewise.
93387         * modules/mbsstr (Files): Likewise.
93388         * modules/strcasestr (Files): Likewise.
93389         Suggested by Paul Eggert.
93391 2007-12-30  Bruno Haible  <bruno@clisp.org>
93393         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93394         defined.
93396 2007-12-30  Bruno Haible  <bruno@clisp.org>
93398         * lib/xmalloca.h: Include xalloc.h.
93399         (xnmalloca): New macro.
93401 2007-12-30  Bruno Haible  <bruno@clisp.org>
93403         * lib/malloca.h (nmalloca): New macro.
93404         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93405         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93406         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93407         knuth_morris_pratt_multibyte): Likewise.
93408         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93409         knuth_morris_pratt_multibyte): Likewise.
93410         * lib/memmem.c (knuth_morris_pratt): Likewise.
93411         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93413 2007-12-25  Bruno Haible  <bruno@clisp.org>
93415         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93416         * lib/glob.c: Don't include openat.h.
93417         (link_exists2_p): Add back the code that deals with the
93418         !GLOB_ALTDIRFUNC case.
93419         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93420         let it do the filename concatenation.
93421         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93422         * modules/glob (Depends-on): Remove openat.
93424 2007-12-31  Bruno Haible  <bruno@clisp.org>
93426         * modules/dirfd (License): Change to LGPLv2+.
93427         Approved by Jim Meyering.
93429 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93431         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93432         when multiplying M by sizeof (size_t).
93434 2007-12-10  Martin Lambers  <marlam@marlam.de>
93436         Override getpagesize on mingw.
93437         * lib/getpagesize.c: New file.
93438         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93439         * modules/getpagesize (Files): Add lib/getpagesize.c.
93440         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93442         REPLACE_GETPAGESIZE.
93443         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93445 2007-12-25  Bruno Haible  <bruno@clisp.org>
93447         * modules/localcharset (Notice): New field.
93448         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93449         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93451 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93452             Bruno Haible  <bruno@clisp.org>
93454         Avoid using the syntax symbol() in formatted documentation.
93455         * MODULES.html.sh (func_module): When replacing symbol() with a
93456         hyperlink, remove the parentheses. Show an error if some remain.
93457         Recognize and render the '...' syntax.
93458         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93459         Rework. Add paragraph about GCC's inlining.
93460         * doc/alloca.texi: Likewise.
93461         * doc/error.texi: Remove parentheses from symbol reference.
93462         * doc/gnulib-intro.texi: Likewise.
93463         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93464         * modules/fnmatch (Description): Reword to say "the ... function".
93465         * modules/full-read (Description): Likewise.
93466         * modules/full-write (Description): Likewise.
93467         * modules/safe-read (Description): Likewise.
93468         * modules/safe-write (Description): Likewise.
93469         * modules/strchrnul (Description): Likewise.
93470         * modules/trim (Description): Likewise.
93471         * modules/error (Description): Remove parentheses from symbol
93472         references.
93473         * modules/verror (Description): Likewise.
93474         Reported by Karl Berry.
93476 2007-12-25  Bruno Haible  <bruno@clisp.org>
93478         Fixup after 2007-10-16 commit.
93479         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93481 2007-12-24  Bruno Haible  <bruno@clisp.org>
93483         Make --enable-relocatable work with DESTDIR.
93484         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93485         to compute installdir from destprog.
93486         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93487         also set the RELOC_DESTDIR variable.
93488         Reported by Левашев Иван <octagram@bluebottle.com>.
93490 2007-12-24  Bruno Haible  <bruno@clisp.org>
93492         Fix link error due to xalloc_die().
93493         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93494         of xreadlink.
93495         * lib/relocwrapper.c: Update comments.
93496         * build-aux/install-reloc: Remove xreadlink.c from file list.
93497         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93498         xreadlink.c.
93499         Reported by Левашев Иван <octagram@bluebottle.com>.
93501 2007-12-24  Bruno Haible  <bruno@clisp.org>
93503         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93504         * lib/setenv.h: Remove file.
93505         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93506         lib/setenv.h.
93507         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93508         (Depends-on): Add stdlib.
93509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93510         gl_FUNC_UNSETENV.
93511         (Include): Replace setenv.h with <stdlib.h>.
93512         * modules/unsetenv: New file.
93513         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93514         * lib/unsetenv.c: Include <stdlib.h> first.
93515         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93516         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93517         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93518         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93519         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93520         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93522         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93523         * doc/functions/unsetenv.texi: Update.
93524         * modules/xsetenv (Depends-on): Add unsetenv.
93525         * modules/getdate (Depends-on): Likewise.
93526         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93527         * lib/xsetenv.c: Don't include setenv.h.
93528         * lib/getdate.y: Likewise.
93529         * lib/relocwrapper.c: Likewise.
93530         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93531         (Depends-on): Add stdlib.
93532         * NEWS: Mention the changes.
93533         Reported by Левашев Иван <octagram@bluebottle.com>.
93535 2007-12-23  Bruno Haible  <bruno@clisp.org>
93537         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93538         indentation.
93540 2007-12-23  Bruno Haible  <bruno@clisp.org>
93542         * lib/c-strcasestr.c: Add more comments.
93543         * lib/c-strstr.c: Likewise.
93544         * lib/mbscasestr.c: Likewise.
93545         * lib/mbsstr.c: Likewise.
93546         * lib/strcasestr.c: Likewise.
93547         * lib/memmem.c: Likewise.
93549 2007-12-23  Bruno Haible  <bruno@clisp.org>
93551         * tests/test-memmem.c: Include <string.h> first.
93553 2007-12-22  Bruno Haible  <bruno@clisp.org>
93555         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93556         the contents of $testsbase.
93557         Reported by Ralf Wildenhues.
93559 2007-12-22  Bruno Haible  <bruno@clisp.org>
93561         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93562         two variables local_ldadd_before, local_ldadd_last.
93564 2007-12-20  Eric Blake  <ebb9@byu.net>
93566         Work around circular library issue when cross-compiling.
93567         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93568         that progname.o does not need to pull in rpl_memcmp.
93570 2007-12-19  Eric Blake  <ebb9@byu.net>
93572         Fix memmem to avoid O(n^2) worst-case complexity.
93573         * lib/memmem.c (knuth_morris_pratt): New function.
93574         (memmem): Use it if first few naive iterations fail.
93575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93576         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93577         * modules/memchr (License): Likewise.
93578         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93579         malloca.
93580         * tests/test-memmem.c: Rewrite, borrowing ideas from
93581         test-mbsstr1.c; the old version wouldn't even compile!
93582         * modules/memmem-tests: New file.
93583         * lib/string.in.h (rpl_memmem): Add declaration.
93584         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93586         REPLACE_MEMMEM.
93588 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93590         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
93591         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
93592         before any system include files, and undef after them all.  This
93593         should fix a problem on VMS reported by John E. Malmberg in
93594         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
93596 2007-12-17  Eric Blake  <ebb9@byu.net>
93598         Revert addition of verify, for BSD/OS.
93599         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
93600         can't handle large files, for the sake of obsolete platforms.
93601         * modules/fseeko (Depends-on): Remove verify.
93602         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
93603         * doc/functions/ftello.texi (ftello): Likewise.
93604         * doc/functions/fgetpos.texi (fgetpos): Likewise.
93605         Reported by Larry Jones.
93607 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
93609         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
93610         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
93612 2007-12-17  Jim Meyering  <meyering@redhat.com>
93614         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
93615         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
93616         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
93617         * modules/getcwd (Depends-on): Add openat.
93618         Reported by Petr Salinger.
93620 2007-12-17  Bruno Haible  <bruno@clisp.org>
93622         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
93623         avoid a segmentation fault of the configure test on x86_64 systems.
93625 2007-12-15  Jim Meyering  <meyering@redhat.com>
93627         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
93629 2007-12-13  Eric Blake  <ebb9@byu.net>
93631         Another fseek test.
93632         * tests/test-fseek.c (main): Also test ungetc handling.
93633         * tests/test-fseeko.c (main): Likewise.
93634         * modules/fseeko (Depends-on): Add verify.
93635         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
93636         large.
93637         Reported by Larry Jones.
93639         Fix fseeko on mingw.
93640         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
93641         seek.
93643         Beef up fseek tests.
93644         * tests/test-fseek.c (main): Also test eof handling.
93645         * tests/test-fseeko.c (main): Likewise.
93646         Reported by Larry Jones.
93648 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
93650         Fix fseeko on BSD-based platforms.
93651         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
93652         successful seek.
93654 2007-12-12  Eric Blake  <ebb9@byu.net>
93656         Allow circular dependency of separate libtests.a
93657         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
93658         when use_libtests.
93660 2007-12-11  Eric Blake  <ebb9@byu.net>
93662         Fix bug with -0.0L in previous patch.
93663         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
93664         * tests/test-isnan.c (main): Also test on zeroes.
93665         * tests/test-isnanf.c (main): Likewise.
93666         * tests/test-isnanl.h (main): Likewise.
93668         Detect pseudo-denormals on x86 even when cross-compiling.
93669         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
93670         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
93671         invalid bit patterns that happen to satisfy ==.
93673         Avoid link failures with separate libtests.a.
93674         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
93675         last, to satisfy circular dependencies.
93677 2007-12-11  Eric Blake  <ebb9@byu.net>
93678         and Bruno Haible  <bruno@clisp.org>
93680         Fix OpenBSD 4.0 <float.h> handling of long double.
93681         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
93682         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
93683         * doc/headers/float.texi (float.h): Document OpenBSD bug.
93685 2007-12-11  Jim Meyering  <meyering@redhat.com>
93687         * users.txt: Add libvirt.
93689         Support versions of autoconf prior to 2.59c.
93690         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
93691         if it is not already defined.
93693 2007-12-09  Bruno Haible  <bruno@clisp.org>
93695         Let 'gnulib-tool --import' collect sources needed for the tests in
93696         tests/ rather than in lib/.
93697         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
93698         argument. If true, add rules to generate libtests.a, and put libtests.a
93699         into $(LDADD). Consider source files in subdirectories and set
93700         uses_subdirs.
93701         (func_emit_initmacro_start, func_emit_initmacro_end,
93702         func_emit_initmacro_done): Pass all arguments explicitly.
93703         (func_import): Determine two module lists main_modules,
93704         testsrelated_modules. Determine use_libtests. Determine two variables
93705         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
93706         instead of just sed_transform_lib_file. Determine two variables
93707         main_files and testsrelated_files. Compute 'files' as the union of
93708         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
93709         func_add_or_update. In the generated gnulib-comp.m4, collect the
93710         object files for tests/ in different variables than those for lib/.
93711         Substitute LIBTESTS_LIBDEPS.
93712         (func_create_testdir): Combine the uses_subdirs results from
93713         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
93715 2007-12-09  Bruno Haible  <bruno@clisp.org>
93717         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
93718         the build-aux directory.
93720 2007-12-09  Bruno Haible  <bruno@clisp.org>
93722         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
93723         introduced on 2006-09-09.
93725 2007-12-07  Jim Meyering  <meyering@redhat.com>
93727         Let these macros work also with autoconf-2.59.
93728         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
93729         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
93730         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93732 2007-12-06  Jim Meyering  <meyering@redhat.com>
93734         Avoid a configure-time syntax error in gl_FUNC_ACL.
93735         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
93736         function in each branch, before testing the cache variable.
93738 2007-12-04  Eric Blake  <ebb9@byu.net>
93740         Make scripts executable.
93741         * build-aux/config.guess: Add execute permissions.
93742         * build-aux/config.sub: Likewise.
93743         * build-aux/gendocs.sh: Likewise.
93745         Fix frexp on mingw.
93746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
93747         cross-compiling.
93748         * doc/functions/frexp.texi (frexp): Document the bug.
93750         Make cygwin fseeko check more reliable.
93751         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
93752         version numbers, rather than unrelated feature check.
93753         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
93754         * doc/functions/ftello.texi (ftello): Likewise.
93755         Reported by Bruno Haible.
93757         * m4/strerror.m4: Bump version number.
93759 2007-12-03  Bruno Haible  <bruno@clisp.org>
93761         * doc/functions/mprotect.texi: Mention the mingw problem.
93763 2007-12-03  Eric Blake  <ebb9@byu.net>
93765         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
93766         REPLACE_STRERROR is initialized before this macro.
93768 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
93770         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
93771         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
93772         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
93773         put -lsec in even for programs other than 'ls'.  This fixes a problem
93774         for gettext reported by Bruno Haible in
93775         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
93776         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
93777         Add support for Solaris 10.  This isn't efficient, but should get the
93778         job done for now.
93780 2007-12-03  James Youngman  <jay@gnu.org>
93782         * doc/regexprops-generic.texi: change "an close-group" to "a
93783         close-group" and "illegal" to "not allowed".
93785 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93787         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
93788         pr_byname.h. Needed for the rare case when the maintainer has done
93789         "make maintainer-clean" in the source directory and then attempts a
93790         build outside the source directory.
93791         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
93792         scripts_byname.h.
93794 2007-12-02  Martin Lambers  <marlam@marlam.de>
93795             Bruno Haible  <bruno@clisp.org>
93797         * lib/getpagesize.h: Remove file.
93798         * lib/unistd.in.h: Include declaration of getpagesize here.
93799         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
93800         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
93801         HAVE_SYS_PARAM_H.
93802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
93803         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93804         * modules/getpagesize (Files): Remove lib/getpagesize.h.
93805         (Depends-on): Add unistd.
93806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
93807         (Include): Use <unistd.h> instead of getpagesize.h.
93808         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
93809         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93810         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
93811         gl_GETPAGESIZE invocation, already handled by module dependency.
93812         * lib/pagealign_alloc.c: Don't include getpagesize.h.
93814 2007-12-02  Bruno Haible  <bruno@clisp.org>
93816         * modules/strings-tests: New file.
93817         * tests/test-strings.c: New file.
93819         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
93820         * lib/strings.in.h: New file.
93821         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
93822         * m4/strings_h.m4: New file.
93823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
93824         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
93825         * modules/strings: New file.
93826         * modules/string (Makefile.am): Update.
93827         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
93828         Reported by Karl Berry.
93830 2007-12-01  Eric Blake  <ebb9@byu.net>
93832         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
93833         accommodate fix in cygwin 1.5.25.
93835 2007-12-01  Jim Meyering  <meyering@redhat.com>
93837         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
93838         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
93839         that would inhibit utf8-optimization of a regexp containing line-
93840         or buffer-anchors, e.g., `^', `$'.
93842 2007-11-30  Bruno Haible  <bruno@clisp.org>
93844         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
93845         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
93846         glthread_recursive_lock_init.
93847         * lib/lock.c (glthread_recursive_lock_init)
93848         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
93849         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
93851 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
93853         New function qset_acl, like set_acl but with syscall semantics.
93854         * lib/acl.h (qset_acl): New decl.
93855         * lib/acl.c (qset_acl): New function.
93856         (set_acl): Use new function.  Use more-consistent diagnostics.
93858 2007-11-28  Jim Meyering  <meyering@redhat.com>
93860         * modules/physmem (License): Change from GPL to LGPLv2+.
93862 2007-11-26  Bruno Haible  <bruno@clisp.org>
93864         * lib/vasnprintf.c (decode_long_double): Don't abort if the
93865         'long double' type has excess precision.
93866         Reported by Jim Meyering in
93867         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
93869 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93871         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
93872         Sync from <http://gnu.org/licenses>.
93873         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
93874         with license text from same location.
93875         * doc/maintain.texi, doc/standards.texi:  Sync from
93876         <http://savannah.gnu.org/projects/gnustandards>.
93878 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
93879         and Jim Meyering  <meyering@redhat.com>
93881         Adjust getdate' grammar to accept a slightly more regular language.
93882         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
93883         Before, the former was rejected.
93884         * lib/getdate.y (digits_to_date_time): New function, factored
93885         out of ...
93886         (number): ...here.  Just call digits_to_date_time.
93887         (hybrid): New non-terminal to handle an <unsigned number,
93888         signed relative offset> sequence consistently.
93890 2007-11-18  Jim Meyering  <meyering@redhat.com>
93892         Pull my changes from coreutils:
93893         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
93894         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
93895         use of $gnulib_tool_option_extras, so that it's separated from the
93896         preceding argument.
93898         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
93899         * build-aux/bootstrap (cp_mark_as_generated): Create any required
93900         parent destination directories before copying a file into place.
93902 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93904         bootstrap: work also with 4-argument variant of AC_INIT
93905         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
93907 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
93909         Port test-getaddrinfo to Solaris.
93910         Problem reported by Bruno Haible in
93911         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
93912         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
93913         explanation of setting 'hints'.
93914         Don't reject an implementation merely because it returns EAI_SERVICE.
93915         (EAI_SERVICE): Define to 0 if not defined.
93917 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
93919         The license of gnu-make and posix-shell is now "GPLed build tool".
93920         * modules/gnu-make (License): Likewise.
93921         * modules/posix-shell (License): Likewise.
93923         New module posix-shell, for determining a POSIX shell
93924         or perhaps something that is close enough to a POSIX shell.
93925         * m4/posix-shell.m4: New file.
93926         * modules/posix-shell: New file.
93928         * MODULES.html.sh: Mention new module.
93930         New module gnu-make, for determining whether we're using GNU Make.
93931         * m4/gnu-make.m4: New file.
93932         * modules/gnu-make: New file.
93933         * MODULES.html.sh: Mention new module.
93935 2007-11-14  Jim Meyering  <meyering@redhat.com>
93937         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
93938         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
93939         use this macro to create a function _definition_.
93940         Remove useless "#undef ARGMATCH_DIE".
93942 2007-11-14  Bruno Haible  <bruno@clisp.org>
93944         * lib/config.charset: Update for OpenBSD 4.1.
93945         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
93947 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
93949         Document 64-bit #if problems in stdint.texi.
93950         * doc/headers/stdint.texi (stdint.h): Mention problems with
93951         64-bit-#if, and how to work around them.
93953         Don't insist on 'long long int' support in the preprocessor.  It
93954         breaks too many things.  For example, PRIdMAX still uses a 'long
93955         long int' format with the latest Sun compiler, even though
93956         HAVE_LONG_LONG_INT isn't defined due to that compiler's
93957         preprocessor problem.  This causes the latest coreutils to dump
93958         core on Solaris 10 sparc with the Sun C compiler.
93959         Instead, fix the 2007-10-16 problem in a different way, by evaluating
93960         the troublesome expressions at configure-time, not at #if-time.
93961         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
93962         preprocessor.
93963         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
93964         compile-time C checks, done at 'configure'-time.
93965         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
93966         * modules/inttypes (Makefile): Substitute the new symbols that
93967         gl_INTTYPES_H now generates.
93968         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
93970 2007-11-12  Bruno Haible  <bruno@clisp.org>
93972         Tests for Unicode character classification functions.
93974         * modules/unictype/bidicategory-byname-tests: New file.
93975         * modules/unictype/bidicategory-name-tests: New file.
93976         * modules/unictype/bidicategory-of-tests: New file.
93977         * modules/unictype/bidicategory-test-tests: New file.
93978         * modules/unictype/block-list-tests: New file.
93979         * modules/unictype/block-of-tests: New file.
93980         * modules/unictype/block-test-tests: New file.
93981         * modules/unictype/category-C-tests: New file.
93982         * modules/unictype/category-Cc-tests: New file.
93983         * modules/unictype/category-Cf-tests: New file.
93984         * modules/unictype/category-Cn-tests: New file.
93985         * modules/unictype/category-Co-tests: New file.
93986         * modules/unictype/category-Cs-tests: New file.
93987         * modules/unictype/category-L-tests: New file.
93988         * modules/unictype/category-Ll-tests: New file.
93989         * modules/unictype/category-Lm-tests: New file.
93990         * modules/unictype/category-Lo-tests: New file.
93991         * modules/unictype/category-Lt-tests: New file.
93992         * modules/unictype/category-Lu-tests: New file.
93993         * modules/unictype/category-M-tests: New file.
93994         * modules/unictype/category-Mc-tests: New file.
93995         * modules/unictype/category-Me-tests: New file.
93996         * modules/unictype/category-Mn-tests: New file.
93997         * modules/unictype/category-N-tests: New file.
93998         * modules/unictype/category-Nd-tests: New file.
93999         * modules/unictype/category-Nl-tests: New file.
94000         * modules/unictype/category-No-tests: New file.
94001         * modules/unictype/category-P-tests: New file.
94002         * modules/unictype/category-Pc-tests: New file.
94003         * modules/unictype/category-Pd-tests: New file.
94004         * modules/unictype/category-Pe-tests: New file.
94005         * modules/unictype/category-Pf-tests: New file.
94006         * modules/unictype/category-Pi-tests: New file.
94007         * modules/unictype/category-Po-tests: New file.
94008         * modules/unictype/category-Ps-tests: New file.
94009         * modules/unictype/category-S-tests: New file.
94010         * modules/unictype/category-Sc-tests: New file.
94011         * modules/unictype/category-Sk-tests: New file.
94012         * modules/unictype/category-Sm-tests: New file.
94013         * modules/unictype/category-So-tests: New file.
94014         * modules/unictype/category-Z-tests: New file.
94015         * modules/unictype/category-Zl-tests: New file.
94016         * modules/unictype/category-Zp-tests: New file.
94017         * modules/unictype/category-Zs-tests: New file.
94018         * modules/unictype/category-and-not-tests: New file.
94019         * modules/unictype/category-and-tests: New file.
94020         * modules/unictype/category-byname-tests: New file.
94021         * modules/unictype/category-name-tests: New file.
94022         * modules/unictype/category-none-tests: New file.
94023         * modules/unictype/category-of-tests: New file.
94024         * modules/unictype/category-or-tests: New file.
94025         * modules/unictype/category-test-withtable-tests: New file.
94026         * modules/unictype/combining-class-tests: New file.
94027         * modules/unictype/ctype-alnum-tests: New file.
94028         * modules/unictype/ctype-alpha-tests: New file.
94029         * modules/unictype/ctype-blank-tests: New file.
94030         * modules/unictype/ctype-cntrl-tests: New file.
94031         * modules/unictype/ctype-digit-tests: New file.
94032         * modules/unictype/ctype-graph-tests: New file.
94033         * modules/unictype/ctype-lower-tests: New file.
94034         * modules/unictype/ctype-print-tests: New file.
94035         * modules/unictype/ctype-punct-tests: New file.
94036         * modules/unictype/ctype-space-tests: New file.
94037         * modules/unictype/ctype-upper-tests: New file.
94038         * modules/unictype/ctype-xdigit-tests: New file.
94039         * modules/unictype/decimal-digit-tests: New file.
94040         * modules/unictype/digit-tests: New file.
94041         * modules/unictype/mirror-tests: New file.
94042         * modules/unictype/numeric-tests: New file.
94043         * modules/unictype/property-alphabetic-tests: New file.
94044         * modules/unictype/property-ascii-hex-digit-tests: New file.
94045         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94046         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94047         * modules/unictype/property-bidi-block-separator-tests: New file.
94048         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94049         * modules/unictype/property-bidi-common-separator-tests: New file.
94050         * modules/unictype/property-bidi-control-tests: New file.
94051         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94052         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94053         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94054         * modules/unictype/property-bidi-european-digit-tests: New file.
94055         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94056         * modules/unictype/property-bidi-left-to-right-tests: New file.
94057         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94058         * modules/unictype/property-bidi-other-neutral-tests: New file.
94059         * modules/unictype/property-bidi-pdf-tests: New file.
94060         * modules/unictype/property-bidi-segment-separator-tests: New file.
94061         * modules/unictype/property-bidi-whitespace-tests: New file.
94062         * modules/unictype/property-byname-tests: New file.
94063         * modules/unictype/property-combining-tests: New file.
94064         * modules/unictype/property-composite-tests: New file.
94065         * modules/unictype/property-currency-symbol-tests: New file.
94066         * modules/unictype/property-dash-tests: New file.
94067         * modules/unictype/property-decimal-digit-tests: New file.
94068         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94069         * modules/unictype/property-deprecated-tests: New file.
94070         * modules/unictype/property-diacritic-tests: New file.
94071         * modules/unictype/property-extender-tests: New file.
94072         * modules/unictype/property-format-control-tests: New file.
94073         * modules/unictype/property-grapheme-base-tests: New file.
94074         * modules/unictype/property-grapheme-extend-tests: New file.
94075         * modules/unictype/property-grapheme-link-tests: New file.
94076         * modules/unictype/property-hex-digit-tests: New file.
94077         * modules/unictype/property-hyphen-tests: New file.
94078         * modules/unictype/property-id-continue-tests: New file.
94079         * modules/unictype/property-id-start-tests: New file.
94080         * modules/unictype/property-ideographic-tests: New file.
94081         * modules/unictype/property-ids-binary-operator-tests: New file.
94082         * modules/unictype/property-ids-trinary-operator-tests: New file.
94083         * modules/unictype/property-ignorable-control-tests: New file.
94084         * modules/unictype/property-iso-control-tests: New file.
94085         * modules/unictype/property-join-control-tests: New file.
94086         * modules/unictype/property-left-of-pair-tests: New file.
94087         * modules/unictype/property-line-separator-tests: New file.
94088         * modules/unictype/property-logical-order-exception-tests: New file.
94089         * modules/unictype/property-lowercase-tests: New file.
94090         * modules/unictype/property-math-tests: New file.
94091         * modules/unictype/property-non-break-tests: New file.
94092         * modules/unictype/property-not-a-character-tests: New file.
94093         * modules/unictype/property-numeric-tests: New file.
94094         * modules/unictype/property-other-alphabetic-tests: New file.
94095         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94096         * modules/unictype/property-other-grapheme-extend-tests: New file.
94097         * modules/unictype/property-other-id-continue-tests: New file.
94098         * modules/unictype/property-other-id-start-tests: New file.
94099         * modules/unictype/property-other-lowercase-tests: New file.
94100         * modules/unictype/property-other-math-tests: New file.
94101         * modules/unictype/property-other-uppercase-tests: New file.
94102         * modules/unictype/property-paired-punctuation-tests: New file.
94103         * modules/unictype/property-paragraph-separator-tests: New file.
94104         * modules/unictype/property-pattern-syntax-tests: New file.
94105         * modules/unictype/property-pattern-white-space-tests: New file.
94106         * modules/unictype/property-private-use-tests: New file.
94107         * modules/unictype/property-punctuation-tests: New file.
94108         * modules/unictype/property-quotation-mark-tests: New file.
94109         * modules/unictype/property-radical-tests: New file.
94110         * modules/unictype/property-sentence-terminal-tests: New file.
94111         * modules/unictype/property-soft-dotted-tests: New file.
94112         * modules/unictype/property-space-tests: New file.
94113         * modules/unictype/property-terminal-punctuation-tests: New file.
94114         * modules/unictype/property-test-tests: New file.
94115         * modules/unictype/property-titlecase-tests: New file.
94116         * modules/unictype/property-unassigned-code-value-tests: New file.
94117         * modules/unictype/property-unified-ideograph-tests: New file.
94118         * modules/unictype/property-uppercase-tests: New file.
94119         * modules/unictype/property-variation-selector-tests: New file.
94120         * modules/unictype/property-white-space-tests: New file.
94121         * modules/unictype/property-xid-continue-tests: New file.
94122         * modules/unictype/property-xid-start-tests: New file.
94123         * modules/unictype/property-zero-width-tests: New file.
94124         * modules/unictype/scripts-tests: New file.
94125         * modules/unictype/syntax-c-ident-tests: New file.
94126         * modules/unictype/syntax-c-whitespace-tests: New file.
94127         * modules/unictype/syntax-java-ident-tests: New file.
94128         * modules/unictype/syntax-java-whitespace-tests: New file.
94129         * tests/unictype/test-bidi_byname.c: New file.
94130         * tests/unictype/test-bidi_name.c: New file.
94131         * tests/unictype/test-bidi_of.c: New file.
94132         * tests/unictype/test-bidi_test.c: New file.
94133         * tests/unictype/test-block_list.c: New file.
94134         * tests/unictype/test-block_of.c: New file.
94135         * tests/unictype/test-block_test.c: New file.
94136         * tests/unictype/test-categ_and.c: New file.
94137         * tests/unictype/test-categ_and_not.c: New file.
94138         * tests/unictype/test-categ_byname.c: New file.
94139         * tests/unictype/test-categ_name.c: New file.
94140         * tests/unictype/test-categ_none.c: New file.
94141         * tests/unictype/test-categ_of.c: New file.
94142         * tests/unictype/test-categ_or.c: New file.
94143         * tests/unictype/test-categ_test_withtable.c: New file.
94144         * tests/unictype/test-combining.c: New file.
94145         * tests/unictype/test-decdigit.c: New file.
94146         * tests/unictype/test-digit.c: New file.
94147         * tests/unictype/test-mirror.c: New file.
94148         * tests/unictype/test-numeric.c: New file.
94149         * tests/unictype/test-pr_byname.c: New file.
94150         * tests/unictype/test-pr_test.c: New file.
94151         * tests/unictype/test-predicate-part1.h: New file.
94152         * tests/unictype/test-predicate-part2.h: New file.
94153         * tests/unictype/test-scripts.c: New file.
94154         * tests/unictype/test-sy_c_ident.c: New file.
94155         * tests/unictype/test-sy_java_ident.c: New file.
94157         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94158         for Unicode 5.0.0.
94159         * tests/unictype/test-categ_Cc.c: Likewise.
94160         * tests/unictype/test-categ_Cf.c: Likewise.
94161         * tests/unictype/test-categ_Cn.c: Likewise.
94162         * tests/unictype/test-categ_Co.c: Likewise.
94163         * tests/unictype/test-categ_Cs.c: Likewise.
94164         * tests/unictype/test-categ_L.c: Likewise.
94165         * tests/unictype/test-categ_Ll.c: Likewise.
94166         * tests/unictype/test-categ_Lm.c: Likewise.
94167         * tests/unictype/test-categ_Lo.c: Likewise.
94168         * tests/unictype/test-categ_Lt.c: Likewise.
94169         * tests/unictype/test-categ_Lu.c: Likewise.
94170         * tests/unictype/test-categ_M.c: Likewise.
94171         * tests/unictype/test-categ_Mc.c: Likewise.
94172         * tests/unictype/test-categ_Me.c: Likewise.
94173         * tests/unictype/test-categ_Mn.c: Likewise.
94174         * tests/unictype/test-categ_N.c: Likewise.
94175         * tests/unictype/test-categ_Nd.c: Likewise.
94176         * tests/unictype/test-categ_Nl.c: Likewise.
94177         * tests/unictype/test-categ_No.c: Likewise.
94178         * tests/unictype/test-categ_P.c: Likewise.
94179         * tests/unictype/test-categ_Pc.c: Likewise.
94180         * tests/unictype/test-categ_Pd.c: Likewise.
94181         * tests/unictype/test-categ_Pe.c: Likewise.
94182         * tests/unictype/test-categ_Pf.c: Likewise.
94183         * tests/unictype/test-categ_Pi.c: Likewise.
94184         * tests/unictype/test-categ_Po.c: Likewise.
94185         * tests/unictype/test-categ_Ps.c: Likewise.
94186         * tests/unictype/test-categ_S.c: Likewise.
94187         * tests/unictype/test-categ_Sc.c: Likewise.
94188         * tests/unictype/test-categ_Sk.c: Likewise.
94189         * tests/unictype/test-categ_Sm.c: Likewise.
94190         * tests/unictype/test-categ_So.c: Likewise.
94191         * tests/unictype/test-categ_Z.c: Likewise.
94192         * tests/unictype/test-categ_Zl.c: Likewise.
94193         * tests/unictype/test-categ_Zp.c: Likewise.
94194         * tests/unictype/test-categ_Zs.c: Likewise.
94195         * tests/unictype/test-ctype_alnum.c: Likewise.
94196         * tests/unictype/test-ctype_alpha.c: Likewise.
94197         * tests/unictype/test-ctype_blank.c: Likewise.
94198         * tests/unictype/test-ctype_cntrl.c: Likewise.
94199         * tests/unictype/test-ctype_digit.c: Likewise.
94200         * tests/unictype/test-ctype_graph.c: Likewise.
94201         * tests/unictype/test-ctype_lower.c: Likewise.
94202         * tests/unictype/test-ctype_print.c: Likewise.
94203         * tests/unictype/test-ctype_punct.c: Likewise.
94204         * tests/unictype/test-ctype_space.c: Likewise.
94205         * tests/unictype/test-ctype_upper.c: Likewise.
94206         * tests/unictype/test-ctype_xdigit.c: Likewise.
94207         * tests/unictype/test-decdigit.h: Likewise.
94208         * tests/unictype/test-digit.h: Likewise.
94209         * tests/unictype/test-numeric.h: Likewise.
94210         * tests/unictype/test-pr_alphabetic.c: Likewise.
94211         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94212         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94213         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94214         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94215         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94216         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94217         * tests/unictype/test-pr_bidi_control.c: Likewise.
94218         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94219         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94220         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94221         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94222         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94223         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94224         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94225         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94226         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94227         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94228         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94229         * tests/unictype/test-pr_combining.c: Likewise.
94230         * tests/unictype/test-pr_composite.c: Likewise.
94231         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94232         * tests/unictype/test-pr_dash.c: Likewise.
94233         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94234         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94235         * tests/unictype/test-pr_deprecated.c: Likewise.
94236         * tests/unictype/test-pr_diacritic.c: Likewise.
94237         * tests/unictype/test-pr_extender.c: Likewise.
94238         * tests/unictype/test-pr_format_control.c: Likewise.
94239         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94240         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94241         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94242         * tests/unictype/test-pr_hex_digit.c: Likewise.
94243         * tests/unictype/test-pr_hyphen.c: Likewise.
94244         * tests/unictype/test-pr_id_continue.c: Likewise.
94245         * tests/unictype/test-pr_id_start.c: Likewise.
94246         * tests/unictype/test-pr_ideographic.c: Likewise.
94247         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94248         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94249         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94250         * tests/unictype/test-pr_iso_control.c: Likewise.
94251         * tests/unictype/test-pr_join_control.c: Likewise.
94252         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94253         * tests/unictype/test-pr_line_separator.c: Likewise.
94254         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94255         * tests/unictype/test-pr_lowercase.c: Likewise.
94256         * tests/unictype/test-pr_math.c: Likewise.
94257         * tests/unictype/test-pr_non_break.c: Likewise.
94258         * tests/unictype/test-pr_not_a_character.c: Likewise.
94259         * tests/unictype/test-pr_numeric.c: Likewise.
94260         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94261         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94262         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94263         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94264         * tests/unictype/test-pr_other_id_start.c: Likewise.
94265         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94266         * tests/unictype/test-pr_other_math.c: Likewise.
94267         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94268         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94269         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94270         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94271         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94272         * tests/unictype/test-pr_private_use.c: Likewise.
94273         * tests/unictype/test-pr_punctuation.c: Likewise.
94274         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94275         * tests/unictype/test-pr_radical.c: Likewise.
94276         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94277         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94278         * tests/unictype/test-pr_space.c: Likewise.
94279         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94280         * tests/unictype/test-pr_titlecase.c: Likewise.
94281         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94282         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94283         * tests/unictype/test-pr_uppercase.c: Likewise.
94284         * tests/unictype/test-pr_variation_selector.c: Likewise.
94285         * tests/unictype/test-pr_white_space.c: Likewise.
94286         * tests/unictype/test-pr_xid_continue.c: Likewise.
94287         * tests/unictype/test-pr_xid_start.c: Likewise.
94288         * tests/unictype/test-pr_zero_width.c: Likewise.
94289         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94290         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94292 2007-11-12  Bruno Haible  <bruno@clisp.org>
94294         Unicode character classification functions.
94295         * lib/unictype.h: New file.
94296         * modules/unictype/base: New file.
94297         * modules/unictype/category-L: New file.
94298         * modules/unictype/category-Lu: New file.
94299         * modules/unictype/category-Ll: New file.
94300         * modules/unictype/category-Lt: New file.
94301         * modules/unictype/category-Lm: New file.
94302         * modules/unictype/category-Lo: New file.
94303         * modules/unictype/category-M: New file.
94304         * modules/unictype/category-Mn: New file.
94305         * modules/unictype/category-Mc: New file.
94306         * modules/unictype/category-Me: New file.
94307         * modules/unictype/category-N: New file.
94308         * modules/unictype/category-Nd: New file.
94309         * modules/unictype/category-Nl: New file.
94310         * modules/unictype/category-No: New file.
94311         * modules/unictype/category-P: New file.
94312         * modules/unictype/category-Pc: New file.
94313         * modules/unictype/category-Pd: New file.
94314         * modules/unictype/category-Ps: New file.
94315         * modules/unictype/category-Pe: New file.
94316         * modules/unictype/category-Pi: New file.
94317         * modules/unictype/category-Pf: New file.
94318         * modules/unictype/category-Po: New file.
94319         * modules/unictype/category-S: New file.
94320         * modules/unictype/category-Sm: New file.
94321         * modules/unictype/category-Sc: New file.
94322         * modules/unictype/category-Sk: New file.
94323         * modules/unictype/category-So: New file.
94324         * modules/unictype/category-Z: New file.
94325         * modules/unictype/category-Zs: New file.
94326         * modules/unictype/category-Zl: New file.
94327         * modules/unictype/category-Zp: New file.
94328         * modules/unictype/category-C: New file.
94329         * modules/unictype/category-Cc: New file.
94330         * modules/unictype/category-Cf: New file.
94331         * modules/unictype/category-Cs: New file.
94332         * modules/unictype/category-Co: New file.
94333         * modules/unictype/category-Cn: New file.
94334         * modules/unictype/category-or: New file.
94335         * modules/unictype/category-of: New file.
94336         * modules/unictype/category-test: New file.
94337         * modules/unictype/category-test-withtable: New file.
94338         * modules/unictype/category-byname: New file.
94339         * modules/unictype/category-none: New file.
94340         * modules/unictype/category-and: New file.
94341         * modules/unictype/category-and-not: New file.
94342         * modules/unictype/category-name: New file.
94343         * modules/unictype/combining-class: New file.
94344         * modules/unictype/category-all: New file.
94345         * modules/unictype/bidicategory-all: New file.
94346         * modules/unictype/bidicategory-byname: New file.
94347         * modules/unictype/bidicategory-name: New file.
94348         * modules/unictype/bidicategory-of: New file.
94349         * modules/unictype/bidicategory-test: New file.
94350         * modules/unictype/decimal-digit: New file.
94351         * modules/unictype/digit: New file.
94352         * modules/unictype/numeric: New file.
94353         * modules/unictype/mirror: New file.
94354         * modules/unictype/property-white-space: New file.
94355         * modules/unictype/property-alphabetic: New file.
94356         * modules/unictype/property-other-alphabetic: New file.
94357         * modules/unictype/property-not-a-character: New file.
94358         * modules/unictype/property-default-ignorable-code-point: New file.
94359         * modules/unictype/property-other-default-ignorable-code-point: New
94360         file.
94361         * modules/unictype/property-deprecated: New file.
94362         * modules/unictype/property-logical-order-exception: New file.
94363         * modules/unictype/property-variation-selector: New file.
94364         * modules/unictype/property-private-use: New file.
94365         * modules/unictype/property-unassigned-code-value: New file.
94366         * modules/unictype/property-uppercase: New file.
94367         * modules/unictype/property-other-uppercase: New file.
94368         * modules/unictype/property-lowercase: New file.
94369         * modules/unictype/property-other-lowercase: New file.
94370         * modules/unictype/property-titlecase: New file.
94371         * modules/unictype/property-soft-dotted: New file.
94372         * modules/unictype/property-id-start: New file.
94373         * modules/unictype/property-other-id-start: New file.
94374         * modules/unictype/property-id-continue: New file.
94375         * modules/unictype/property-other-id-continue: New file.
94376         * modules/unictype/property-xid-start: New file.
94377         * modules/unictype/property-xid-continue: New file.
94378         * modules/unictype/property-pattern-white-space: New file.
94379         * modules/unictype/property-pattern-syntax: New file.
94380         * modules/unictype/property-join-control: New file.
94381         * modules/unictype/property-grapheme-base: New file.
94382         * modules/unictype/property-grapheme-extend: New file.
94383         * modules/unictype/property-other-grapheme-extend: New file.
94384         * modules/unictype/property-grapheme-link: New file.
94385         * modules/unictype/property-bidi-control: New file.
94386         * modules/unictype/property-bidi-left-to-right: New file.
94387         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94388         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94389         * modules/unictype/property-bidi-european-digit: New file.
94390         * modules/unictype/property-bidi-eur-num-separator: New file.
94391         * modules/unictype/property-bidi-eur-num-terminator: New file.
94392         * modules/unictype/property-bidi-arabic-digit: New file.
94393         * modules/unictype/property-bidi-common-separator: New file.
94394         * modules/unictype/property-bidi-block-separator: New file.
94395         * modules/unictype/property-bidi-segment-separator: New file.
94396         * modules/unictype/property-bidi-whitespace: New file.
94397         * modules/unictype/property-bidi-non-spacing-mark: New file.
94398         * modules/unictype/property-bidi-boundary-neutral: New file.
94399         * modules/unictype/property-bidi-pdf: New file.
94400         * modules/unictype/property-bidi-embedding-or-override: New file.
94401         * modules/unictype/property-bidi-other-neutral: New file.
94402         * modules/unictype/property-hex-digit: New file.
94403         * modules/unictype/property-ascii-hex-digit: New file.
94404         * modules/unictype/property-ideographic: New file.
94405         * modules/unictype/property-unified-ideograph: New file.
94406         * modules/unictype/property-radical: New file.
94407         * modules/unictype/property-ids-binary-operator: New file.
94408         * modules/unictype/property-ids-trinary-operator: New file.
94409         * modules/unictype/property-zero-width: New file.
94410         * modules/unictype/property-space: New file.
94411         * modules/unictype/property-non-break: New file.
94412         * modules/unictype/property-iso-control: New file.
94413         * modules/unictype/property-format-control: New file.
94414         * modules/unictype/property-dash: New file.
94415         * modules/unictype/property-hyphen: New file.
94416         * modules/unictype/property-punctuation: New file.
94417         * modules/unictype/property-line-separator: New file.
94418         * modules/unictype/property-paragraph-separator: New file.
94419         * modules/unictype/property-quotation-mark: New file.
94420         * modules/unictype/property-sentence-terminal: New file.
94421         * modules/unictype/property-terminal-punctuation: New file.
94422         * modules/unictype/property-currency-symbol: New file.
94423         * modules/unictype/property-math: New file.
94424         * modules/unictype/property-other-math: New file.
94425         * modules/unictype/property-paired-punctuation: New file.
94426         * modules/unictype/property-left-of-pair: New file.
94427         * modules/unictype/property-combining: New file.
94428         * modules/unictype/property-composite: New file.
94429         * modules/unictype/property-decimal-digit: New file.
94430         * modules/unictype/property-numeric: New file.
94431         * modules/unictype/property-diacritic: New file.
94432         * modules/unictype/property-extender: New file.
94433         * modules/unictype/property-ignorable-control: New file.
94434         * modules/unictype/property-test: New file.
94435         * modules/unictype/property-byname: New file.
94436         * modules/unictype/property-all: New file.
94437         * modules/unictype/scripts: New file.
94438         * modules/unictype/scripts-all: New file.
94439         * modules/unictype/block-of: New file.
94440         * modules/unictype/block-test: New file.
94441         * modules/unictype/block-list: New file.
94442         * modules/unictype/block-all: New file.
94443         * modules/unictype/syntax-c-whitespace: New file.
94444         * modules/unictype/syntax-java-whitespace: New file.
94445         * modules/unictype/syntax-c-ident: New file.
94446         * modules/unictype/syntax-java-ident: New file.
94447         * modules/unictype/ctype-alnum: New file.
94448         * modules/unictype/ctype-alpha: New file.
94449         * modules/unictype/ctype-cntrl: New file.
94450         * modules/unictype/ctype-digit: New file.
94451         * modules/unictype/ctype-graph: New file.
94452         * modules/unictype/ctype-lower: New file.
94453         * modules/unictype/ctype-print: New file.
94454         * modules/unictype/ctype-punct: New file.
94455         * modules/unictype/ctype-space: New file.
94456         * modules/unictype/ctype-upper: New file.
94457         * modules/unictype/ctype-xdigit: New file.
94458         * modules/unictype/ctype-blank: New file.
94459         * lib/unictype/bidi_byname.c: New file.
94460         * lib/unictype/bidi_name.c: New file.
94461         * lib/unictype/bidi_of.c: New file.
94462         * lib/unictype/bidi_test.c: New file.
94463         * lib/unictype/bitmap.h: New file.
94464         * lib/unictype/block_test.c: New file.
94465         * lib/unictype/blocks.c: New file.
94466         * lib/unictype/categ_C.c: New file.
94467         * lib/unictype/categ_Cc.c: New file.
94468         * lib/unictype/categ_Cf.c: New file.
94469         * lib/unictype/categ_Cn.c: New file.
94470         * lib/unictype/categ_Co.c: New file.
94471         * lib/unictype/categ_Cs.c: New file.
94472         * lib/unictype/categ_L.c: New file.
94473         * lib/unictype/categ_Ll.c: New file.
94474         * lib/unictype/categ_Lm.c: New file.
94475         * lib/unictype/categ_Lo.c: New file.
94476         * lib/unictype/categ_Lt.c: New file.
94477         * lib/unictype/categ_Lu.c: New file.
94478         * lib/unictype/categ_M.c: New file.
94479         * lib/unictype/categ_Mc.c: New file.
94480         * lib/unictype/categ_Me.c: New file.
94481         * lib/unictype/categ_Mn.c: New file.
94482         * lib/unictype/categ_N.c: New file.
94483         * lib/unictype/categ_Nd.c: New file.
94484         * lib/unictype/categ_Nl.c: New file.
94485         * lib/unictype/categ_No.c: New file.
94486         * lib/unictype/categ_P.c: New file.
94487         * lib/unictype/categ_Pc.c: New file.
94488         * lib/unictype/categ_Pd.c: New file.
94489         * lib/unictype/categ_Pe.c: New file.
94490         * lib/unictype/categ_Pf.c: New file.
94491         * lib/unictype/categ_Pi.c: New file.
94492         * lib/unictype/categ_Po.c: New file.
94493         * lib/unictype/categ_Ps.c: New file.
94494         * lib/unictype/categ_S.c: New file.
94495         * lib/unictype/categ_Sc.c: New file.
94496         * lib/unictype/categ_Sk.c: New file.
94497         * lib/unictype/categ_Sm.c: New file.
94498         * lib/unictype/categ_So.c: New file.
94499         * lib/unictype/categ_Z.c: New file.
94500         * lib/unictype/categ_Zl.c: New file.
94501         * lib/unictype/categ_Zp.c: New file.
94502         * lib/unictype/categ_Zs.c: New file.
94503         * lib/unictype/categ_and.c: New file.
94504         * lib/unictype/categ_and_not.c: New file.
94505         * lib/unictype/categ_byname.c: New file.
94506         * lib/unictype/categ_name.c: New file.
94507         * lib/unictype/categ_none.c: New file.
94508         * lib/unictype/categ_of.c: New file.
94509         * lib/unictype/categ_or.c: New file.
94510         * lib/unictype/categ_test.c: New file.
94511         * lib/unictype/combining.c: New file.
94512         * lib/unictype/ctype_alnum.c: New file.
94513         * lib/unictype/ctype_alpha.c: New file.
94514         * lib/unictype/ctype_blank.c: New file.
94515         * lib/unictype/ctype_cntrl.c: New file.
94516         * lib/unictype/ctype_digit.c: New file.
94517         * lib/unictype/ctype_graph.c: New file.
94518         * lib/unictype/ctype_lower.c: New file.
94519         * lib/unictype/ctype_print.c: New file.
94520         * lib/unictype/ctype_punct.c: New file.
94521         * lib/unictype/ctype_space.c: New file.
94522         * lib/unictype/ctype_upper.c: New file.
94523         * lib/unictype/ctype_xdigit.c: New file.
94524         * lib/unictype/decdigit.c: New file.
94525         * lib/unictype/digit.c: New file.
94526         * lib/unictype/identsyntaxmap.h: New file.
94527         * lib/unictype/mirror.c: New file.
94528         * lib/unictype/numeric.c: New file.
94529         * lib/unictype/pr_alphabetic.c: New file.
94530         * lib/unictype/pr_ascii_hex_digit.c: New file.
94531         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94532         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94533         * lib/unictype/pr_bidi_block_separator.c: New file.
94534         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94535         * lib/unictype/pr_bidi_common_separator.c: New file.
94536         * lib/unictype/pr_bidi_control.c: New file.
94537         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94538         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94539         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94540         * lib/unictype/pr_bidi_european_digit.c: New file.
94541         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94542         * lib/unictype/pr_bidi_left_to_right.c: New file.
94543         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94544         * lib/unictype/pr_bidi_other_neutral.c: New file.
94545         * lib/unictype/pr_bidi_pdf.c: New file.
94546         * lib/unictype/pr_bidi_segment_separator.c: New file.
94547         * lib/unictype/pr_bidi_whitespace.c: New file.
94548         * lib/unictype/pr_byname.c: New file.
94549         * lib/unictype/pr_byname.gperf: New file.
94550         * lib/unictype/pr_combining.c: New file.
94551         * lib/unictype/pr_composite.c: New file.
94552         * lib/unictype/pr_currency_symbol.c: New file.
94553         * lib/unictype/pr_dash.c: New file.
94554         * lib/unictype/pr_decimal_digit.c: New file.
94555         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94556         * lib/unictype/pr_deprecated.c: New file.
94557         * lib/unictype/pr_diacritic.c: New file.
94558         * lib/unictype/pr_extender.c: New file.
94559         * lib/unictype/pr_format_control.c: New file.
94560         * lib/unictype/pr_grapheme_base.c: New file.
94561         * lib/unictype/pr_grapheme_extend.c: New file.
94562         * lib/unictype/pr_grapheme_link.c: New file.
94563         * lib/unictype/pr_hex_digit.c: New file.
94564         * lib/unictype/pr_hyphen.c: New file.
94565         * lib/unictype/pr_id_continue.c: New file.
94566         * lib/unictype/pr_id_start.c: New file.
94567         * lib/unictype/pr_ideographic.c: New file.
94568         * lib/unictype/pr_ids_binary_operator.c: New file.
94569         * lib/unictype/pr_ids_trinary_operator.c: New file.
94570         * lib/unictype/pr_ignorable_control.c: New file.
94571         * lib/unictype/pr_iso_control.c: New file.
94572         * lib/unictype/pr_join_control.c: New file.
94573         * lib/unictype/pr_left_of_pair.c: New file.
94574         * lib/unictype/pr_line_separator.c: New file.
94575         * lib/unictype/pr_logical_order_exception.c: New file.
94576         * lib/unictype/pr_lowercase.c: New file.
94577         * lib/unictype/pr_math.c: New file.
94578         * lib/unictype/pr_non_break.c: New file.
94579         * lib/unictype/pr_not_a_character.c: New file.
94580         * lib/unictype/pr_numeric.c: New file.
94581         * lib/unictype/pr_other_alphabetic.c: New file.
94582         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94583         * lib/unictype/pr_other_grapheme_extend.c: New file.
94584         * lib/unictype/pr_other_id_continue.c: New file.
94585         * lib/unictype/pr_other_id_start.c: New file.
94586         * lib/unictype/pr_other_lowercase.c: New file.
94587         * lib/unictype/pr_other_math.c: New file.
94588         * lib/unictype/pr_other_uppercase.c: New file.
94589         * lib/unictype/pr_paired_punctuation.c: New file.
94590         * lib/unictype/pr_paragraph_separator.c: New file.
94591         * lib/unictype/pr_pattern_syntax.c: New file.
94592         * lib/unictype/pr_pattern_white_space.c: New file.
94593         * lib/unictype/pr_private_use.c: New file.
94594         * lib/unictype/pr_punctuation.c: New file.
94595         * lib/unictype/pr_quotation_mark.c: New file.
94596         * lib/unictype/pr_radical.c: New file.
94597         * lib/unictype/pr_sentence_terminal.c: New file.
94598         * lib/unictype/pr_soft_dotted.c: New file.
94599         * lib/unictype/pr_space.c: New file.
94600         * lib/unictype/pr_terminal_punctuation.c: New file.
94601         * lib/unictype/pr_test.c: New file.
94602         * lib/unictype/pr_titlecase.c: New file.
94603         * lib/unictype/pr_unassigned_code_value.c: New file.
94604         * lib/unictype/pr_unified_ideograph.c: New file.
94605         * lib/unictype/pr_uppercase.c: New file.
94606         * lib/unictype/pr_variation_selector.c: New file.
94607         * lib/unictype/pr_white_space.c: New file.
94608         * lib/unictype/pr_xid_continue.c: New file.
94609         * lib/unictype/pr_xid_start.c: New file.
94610         * lib/unictype/pr_zero_width.c: New file.
94611         * lib/unictype/scripts.c: New file.
94612         * lib/unictype/sy_c_ident.c: New file.
94613         * lib/unictype/sy_c_whitespace.c: New file.
94614         * lib/unictype/sy_java_ident.c: New file.
94615         * lib/unictype/sy_java_whitespace.c: New file.
94617         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
94618         Unicode 5.0.0.
94619         * lib/unictype/blocks.h: Likewise.
94620         * lib/unictype/categ_C.h: Likewise.
94621         * lib/unictype/categ_Cc.h: Likewise.
94622         * lib/unictype/categ_Cf.h: Likewise.
94623         * lib/unictype/categ_Cn.h: Likewise.
94624         * lib/unictype/categ_Co.h: Likewise.
94625         * lib/unictype/categ_Cs.h: Likewise.
94626         * lib/unictype/categ_L.h: Likewise.
94627         * lib/unictype/categ_Ll.h: Likewise.
94628         * lib/unictype/categ_Lm.h: Likewise.
94629         * lib/unictype/categ_Lo.h: Likewise.
94630         * lib/unictype/categ_Lt.h: Likewise.
94631         * lib/unictype/categ_Lu.h: Likewise.
94632         * lib/unictype/categ_M.h: Likewise.
94633         * lib/unictype/categ_Mc.h: Likewise.
94634         * lib/unictype/categ_Me.h: Likewise.
94635         * lib/unictype/categ_Mn.h: Likewise.
94636         * lib/unictype/categ_N.h: Likewise.
94637         * lib/unictype/categ_Nd.h: Likewise.
94638         * lib/unictype/categ_Nl.h: Likewise.
94639         * lib/unictype/categ_No.h: Likewise.
94640         * lib/unictype/categ_P.h: Likewise.
94641         * lib/unictype/categ_Pc.h: Likewise.
94642         * lib/unictype/categ_Pd.h: Likewise.
94643         * lib/unictype/categ_Pe.h: Likewise.
94644         * lib/unictype/categ_Pf.h: Likewise.
94645         * lib/unictype/categ_Pi.h: Likewise.
94646         * lib/unictype/categ_Po.h: Likewise.
94647         * lib/unictype/categ_Ps.h: Likewise.
94648         * lib/unictype/categ_S.h: Likewise.
94649         * lib/unictype/categ_Sc.h: Likewise.
94650         * lib/unictype/categ_Sk.h: Likewise.
94651         * lib/unictype/categ_Sm.h: Likewise.
94652         * lib/unictype/categ_So.h: Likewise.
94653         * lib/unictype/categ_Z.h: Likewise.
94654         * lib/unictype/categ_Zl.h: Likewise.
94655         * lib/unictype/categ_Zp.h: Likewise.
94656         * lib/unictype/categ_Zs.h: Likewise.
94657         * lib/unictype/categ_of.h: Likewise.
94658         * lib/unictype/combining.h: Likewise.
94659         * lib/unictype/ctype_alnum.h: Likewise.
94660         * lib/unictype/ctype_alpha.h: Likewise.
94661         * lib/unictype/ctype_blank.h: Likewise.
94662         * lib/unictype/ctype_cntrl.h: Likewise.
94663         * lib/unictype/ctype_digit.h: Likewise.
94664         * lib/unictype/ctype_graph.h: Likewise.
94665         * lib/unictype/ctype_lower.h: Likewise.
94666         * lib/unictype/ctype_print.h: Likewise.
94667         * lib/unictype/ctype_punct.h: Likewise.
94668         * lib/unictype/ctype_space.h: Likewise.
94669         * lib/unictype/ctype_upper.h: Likewise.
94670         * lib/unictype/ctype_xdigit.h: Likewise.
94671         * lib/unictype/decdigit.h: Likewise.
94672         * lib/unictype/digit.h: Likewise.
94673         * lib/unictype/mirror.h: Likewise.
94674         * lib/unictype/numeric.h: Likewise.
94675         * lib/unictype/pr_alphabetic.h: Likewise.
94676         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
94677         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
94678         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
94679         * lib/unictype/pr_bidi_block_separator.h: Likewise.
94680         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
94681         * lib/unictype/pr_bidi_common_separator.h: Likewise.
94682         * lib/unictype/pr_bidi_control.h: Likewise.
94683         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
94684         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
94685         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
94686         * lib/unictype/pr_bidi_european_digit.h: Likewise.
94687         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
94688         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
94689         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
94690         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
94691         * lib/unictype/pr_bidi_pdf.h: Likewise.
94692         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
94693         * lib/unictype/pr_bidi_whitespace.h: Likewise.
94694         * lib/unictype/pr_combining.h: Likewise.
94695         * lib/unictype/pr_composite.h: Likewise.
94696         * lib/unictype/pr_currency_symbol.h: Likewise.
94697         * lib/unictype/pr_dash.h: Likewise.
94698         * lib/unictype/pr_decimal_digit.h: Likewise.
94699         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
94700         * lib/unictype/pr_deprecated.h: Likewise.
94701         * lib/unictype/pr_diacritic.h: Likewise.
94702         * lib/unictype/pr_extender.h: Likewise.
94703         * lib/unictype/pr_format_control.h: Likewise.
94704         * lib/unictype/pr_grapheme_base.h: Likewise.
94705         * lib/unictype/pr_grapheme_extend.h: Likewise.
94706         * lib/unictype/pr_grapheme_link.h: Likewise.
94707         * lib/unictype/pr_hex_digit.h: Likewise.
94708         * lib/unictype/pr_hyphen.h: Likewise.
94709         * lib/unictype/pr_id_continue.h: Likewise.
94710         * lib/unictype/pr_id_start.h: Likewise.
94711         * lib/unictype/pr_ideographic.h: Likewise.
94712         * lib/unictype/pr_ids_binary_operator.h: Likewise.
94713         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
94714         * lib/unictype/pr_ignorable_control.h: Likewise.
94715         * lib/unictype/pr_iso_control.h: Likewise.
94716         * lib/unictype/pr_join_control.h: Likewise.
94717         * lib/unictype/pr_left_of_pair.h: Likewise.
94718         * lib/unictype/pr_line_separator.h: Likewise.
94719         * lib/unictype/pr_logical_order_exception.h: Likewise.
94720         * lib/unictype/pr_lowercase.h: Likewise.
94721         * lib/unictype/pr_math.h: Likewise.
94722         * lib/unictype/pr_non_break.h: Likewise.
94723         * lib/unictype/pr_not_a_character.h: Likewise.
94724         * lib/unictype/pr_numeric.h: Likewise.
94725         * lib/unictype/pr_other_alphabetic.h: Likewise.
94726         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
94727         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
94728         * lib/unictype/pr_other_id_continue.h: Likewise.
94729         * lib/unictype/pr_other_id_start.h: Likewise.
94730         * lib/unictype/pr_other_lowercase.h: Likewise.
94731         * lib/unictype/pr_other_math.h: Likewise.
94732         * lib/unictype/pr_other_uppercase.h: Likewise.
94733         * lib/unictype/pr_paired_punctuation.h: Likewise.
94734         * lib/unictype/pr_paragraph_separator.h: Likewise.
94735         * lib/unictype/pr_pattern_syntax.h: Likewise.
94736         * lib/unictype/pr_pattern_white_space.h: Likewise.
94737         * lib/unictype/pr_private_use.h: Likewise.
94738         * lib/unictype/pr_punctuation.h: Likewise.
94739         * lib/unictype/pr_quotation_mark.h: Likewise.
94740         * lib/unictype/pr_radical.h: Likewise.
94741         * lib/unictype/pr_sentence_terminal.h: Likewise.
94742         * lib/unictype/pr_soft_dotted.h: Likewise.
94743         * lib/unictype/pr_space.h: Likewise.
94744         * lib/unictype/pr_terminal_punctuation.h: Likewise.
94745         * lib/unictype/pr_titlecase.h: Likewise.
94746         * lib/unictype/pr_unassigned_code_value.h: Likewise.
94747         * lib/unictype/pr_unified_ideograph.h: Likewise.
94748         * lib/unictype/pr_uppercase.h: Likewise.
94749         * lib/unictype/pr_variation_selector.h: Likewise.
94750         * lib/unictype/pr_white_space.h: Likewise.
94751         * lib/unictype/pr_xid_continue.h: Likewise.
94752         * lib/unictype/pr_xid_start.h: Likewise.
94753         * lib/unictype/pr_zero_width.h: Likewise.
94754         * lib/unictype/scripts.h: Likewise.
94755         * lib/unictype/scripts_byname.gperf: Likewise.
94756         * lib/unictype/sy_c_ident.h: Likewise.
94757         * lib/unictype/sy_c_whitespace.h: Likewise.
94758         * lib/unictype/sy_java_ident.h: Likewise.
94759         * lib/unictype/sy_java_whitespace.h: Likewise.
94761         * lib/unictype/Makefile: New file.
94762         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
94763         glibc.
94764         * lib/unictype/3level.h: New file, copied from glibc.
94765         * lib/unictype/3levelbit.h: New file.
94767 2007-11-11  Bruno Haible  <bruno@clisp.org>
94769         * modules/gperf: New file.
94770         * modules/iconv_open (Depends-on): Add it.
94771         (Makefile.am): Remove the GPERF definition.
94773 2007-11-11  Bruno Haible  <bruno@clisp.org>
94775         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
94776         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
94778 2007-11-11  Bruno Haible  <bruno@clisp.org>
94780         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
94781         (usage): Remove function.
94783 2007-11-11  Bruno Haible  <bruno@clisp.org>
94785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
94786         gl_FUNC_CEILF_LIBS.
94787         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
94788         gl_FUNC_CEIL_LIBS.
94789         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
94790         gl_FUNC_CEILL_LIBS.
94791         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
94792         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
94793         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
94795 2007-11-11  Bruno Haible  <bruno@clisp.org>
94797         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
94798         roundf were declared but do not exist on functions.
94799         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
94800         roundl were declared but do not exist on functions.
94801         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
94802         HAVE_FLOORL_AND_CEILL, respectively.
94803         Needed for Sun C on Solaris 10.
94805 2007-11-11  Bruno Haible  <bruno@clisp.org>
94807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
94808         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
94809         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
94810         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
94811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
94812         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
94813         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
94814         HAVE_DECL_ROUNDF.
94815         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
94816         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
94817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
94818         of HAVE_DECL_ROUND*.
94819         * modules/math (Makefile.am): Update.
94821 2007-11-10  Bruno Haible  <bruno@clisp.org>
94823         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
94824         ptrdiff_t as m4/intl.m4.
94826 2007-11-10  Jim Meyering  <meyering@redhat.com>
94828         Avoid link failure for the argmatch test.
94829         * tests/test-argmatch.c (usage): Define function to avoid a link
94830         failure: argmatch_die requires a usage function.
94832 2007-11-09  Bruno Haible  <bruno@clisp.org>
94834         * doc/functions/snprintf.texi: Mention BeOS deficiency.
94835         * doc/functions/vsnprintf.texi: Likewise.
94836         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
94837         with a size argument < 2.
94839 2007-11-09  Bruno Haible  <bruno@clisp.org>
94841         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
94842         buffer. Fixes an inefficiency introduced on 2007-11-03.
94844 2007-11-09  Bruno Haible  <bruno@clisp.org>
94846         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
94847         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
94849 2007-11-08  Jim Meyering  <meyering@redhat.com>
94851         Change cache variable name prefix "jm_" to "gl_" everywhere.
94852         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
94853         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
94854         * m4/uptime.m4: s/gl_/jm_/
94856 2007-11-07  Bruno Haible  <bruno@clisp.org>
94858         Update to GNU gettext 0.17.
94859         * m4/intl.m4: Update to GNU gettext 0.17.
94860         * m4/po.m4: Likewise.
94861         * modules/gettext (Files): Remove m4/ulonglong.m4.
94862         (configure.ac): Require gettext infrastructure from version 0.17.
94864 2007-11-06  Bruno Haible  <bruno@clisp.org>
94866         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
94867         symbolic values are not defined in a public header.
94868         * lib/freadable.c (freadable) [QNX]: Likewise.
94869         * lib/freadahead.c (freadahead) [QNX]: Likewise.
94870         * lib/freading.c (freading) [QNX]: Likewise.
94871         * lib/fseterr.c (fseterr) [QNX]: Likewise.
94872         * lib/fwritable.c (fwritable) [QNX]: Likewise.
94873         * lib/fwriting.c (fwriting) [QNX]: Likewise.
94874         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
94875         Reported by Alain Magloire.
94877         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
94879 2007-11-05  Bruno Haible  <bruno@clisp.org>
94881         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
94882         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
94883         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
94884         Reported by Eric Blake.
94886 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94887             Bruno Haible  <bruno@clisp.org>
94889         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
94890         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
94891         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
94892         (malloc): Undefine also before including <stdlib.h>.
94893         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
94894         Needed on OSF/1 4.0.
94896 2007-11-05  Jim Meyering  <meyering@redhat.com>
94898         git-version-gen: sync from coreutils.
94899         * build-aux/git-version-gen: Add comments.
94900         Change the first '-' to '.' in the snapshot version string,
94901         e.g., 6.9-377-08144 -> 6.9.377-08144
94902         Remove first parameter.
94903         Don't declare a version "-dirty" merely because a time
94904         stamp has changed.
94906 2007-11-04  Bruno Haible  <bruno@clisp.org>
94908         * lib/lock.h: Protect all macro definitions containing an 'if'
94909         statement through a "do { ... } while (0)".
94910         * lib/tls.h: Likewise.
94912 2007-11-04  Bruno Haible  <bruno@clisp.org>
94914         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
94916 2007-11-04  Bruno Haible  <bruno@clisp.org>
94918         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
94919         * modules/fprintf-posix (Depends-on): Add nocrash.
94920         * modules/snprintf-posix (Depends-on): Likewise.
94921         * modules/sprintf-posix (Depends-on): Likewise.
94922         * modules/vasnprintf-posix (Depends-on): Likewise.
94923         * modules/vasprintf-posix (Depends-on): Likewise.
94924         * modules/vfprintf-posix (Depends-on): Likewise.
94925         * modules/vsnprintf-posix (Depends-on): Likewise.
94926         * modules/vsprintf-posix (Depends-on): Likewise.
94927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94935 2007-11-04  Bruno Haible  <bruno@clisp.org>
94937         * modules/nocrash: New file.
94938         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
94939         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
94941 2007-11-04  Bruno Haible  <bruno@clisp.org>
94943         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
94944         precision handling.
94945         * tests/test-vasprintf-posix.c (test_function): Likewise.
94946         * tests/test-snprintf-posix.h (test_function): Likewise.
94947         * tests/test-sprintf-posix.h (test_function): Likewise.
94949         Fix *printf behaviour for large precisions on mingw and BeOS.
94950         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
94951         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
94952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
94953         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
94954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94955         gl_PRINTF_PRECISION and test its result. Invoke
94956         gl_PREREQ_VASNPRINTF_PRECISION.
94957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94958         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94959         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94960         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94964         * doc/functions/fprintf.texi: Update.
94965         * doc/functions/printf.texi: Update.
94966         * doc/functions/snprintf.texi: Update.
94967         * doc/functions/sprintf.texi: Update.
94968         * doc/functions/vfprintf.texi: Update.
94969         * doc/functions/vprintf.texi: Update.
94970         * doc/functions/vsnprintf.texi: Update.
94971         * doc/functions/vsprintf.texi: Update.
94973 2007-11-04  Bruno Haible  <bruno@clisp.org>
94975         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
94977 2007-11-04  Bruno Haible  <bruno@clisp.org>
94979         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
94980         Reported by Sylvain Beucler <beuc@gnu.org>.
94982 2007-11-03  Bruno Haible  <bruno@clisp.org>
94984         * tests/test-fprintf-posix2.sh: New file.
94985         * tests/test-fprintf-posix2.c: New file.
94986         * modules/fprintf-posix-tests (Files): Add them.
94987         (TESTS): Add test-fprintf-posix2.sh.
94988         (configure.ac): Check for getrlimit and setrlimit.
94989         (check_PROGRAMS): Add test-fprintf-posix2.
94991         * tests/test-printf-posix2.sh: New file.
94992         * tests/test-printf-posix2.c: New file.
94993         * modules/printf-posix-tests (Files): Add them.
94994         (TESTS): Add test-printf-posix2.sh.
94995         (configure.ac): Check for getrlimit and setrlimit.
94996         (check_PROGRAMS): Add test-printf-posix2.
94998         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
94999         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95000         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95001         (decode_double): New function, copied from decode_long_double.
95002         (scale10_round_decimal_decoded): New function, extracted from
95003         scale10_round_decimal_long_double.
95004         (scale10_round_decimal_long_double): Use it.
95005         (scale10_round_decimal_double): New function.
95006         (floorlog10): New function.
95007         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95009         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95010         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95011         gl_PRINTF_ENOMEM and test its result. Invoke
95012         gl_PREREQ_VASNPRINTF_ENOMEM.
95013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95020         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95021         * modules/snprintf-posix (Depends-on): Likewise.
95022         * modules/sprintf-posix (Depends-on): Likewise.
95023         * modules/vasnprintf-posix (Depends-on): Likewise.
95024         * modules/vasprintf-posix (Depends-on): Likewise.
95025         * modules/vfprintf-posix (Depends-on): Likewise.
95026         * modules/vsnprintf-posix (Depends-on): Likewise.
95027         * modules/vsprintf-posix (Depends-on): Likewise.
95028         * doc/functions/fprintf.texi: Update.
95029         * doc/functions/printf.texi: Update.
95030         * doc/functions/snprintf.texi: Update.
95031         * doc/functions/sprintf.texi: Update.
95032         * doc/functions/vfprintf.texi: Update.
95033         * doc/functions/vprintf.texi: Update.
95034         * doc/functions/vsnprintf.texi: Update.
95035         * doc/functions/vsprintf.texi: Update.
95037 2007-11-03  Bruno Haible  <bruno@clisp.org>
95039         * modules/frexp-nolibm-tests: New file.
95041         * modules/frexp-nolibm: New file.
95042         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95044 2007-11-03  Bruno Haible  <bruno@clisp.org>
95046         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95047         value is C99 compliant.
95048         Needed for OSF/1 5.1.
95050 2007-11-03  Bruno Haible  <bruno@clisp.org>
95052         Fix out-of-memory handling of vasnprintf.
95053         * lib/printf-parse.c: Include <errno.h>.
95054         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95055         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95056         is already set.
95058 2007-11-02  Eric Blake  <ebb9@byu.net>
95060         Fix tests on cygwin.
95061         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95063 2007-11-01  Bruno Haible  <bruno@clisp.org>
95065         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95066         warning.
95067         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95068         needed for POSIX compatibility.
95070 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95072         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95073         for compatibility with GNU.
95075 2007-11-01  Bruno Haible  <bruno@clisp.org>
95077         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95078         (putenv): Renamed from rpl_putenv. Change argument type from
95079         'const char *' to 'char *'.
95080         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95081         of defining putenv in config.h, just set REPLACE_PUTENV.
95082         * modules/putenv (Depends-on): Add stdlib.
95083         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95084         (Include): Use <stdlib.h>.
95085         * lib/stdlib.in.h (putenv): New declaration.
95086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95087         REPLACE_PUTENV.
95088         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95089         REPLACE_PUTENV.
95090         Needed for MacOS X 10.5.0.
95091         Reported by Peter O'Gorman <peter@pogma.com>.
95093 2007-11-01  Jim Meyering  <meyering@redhat.com>
95095         Treat an empty date string exactly like "0".
95096         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95097         if the remaining date string (to be parsed) is empty, use "0".
95098         Reported by Mischa Molhoek and discussed in this thread:
95099         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95101 2007-10-31  Bruno Haible  <bruno@clisp.org>
95103         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95104         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95105         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95106         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95107         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95108         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95110 2007-10-31  Bruno Haible  <bruno@clisp.org>
95112         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95113         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95114         (AC_TYPE_LONG_LONG_INT): Use it.
95115         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95116         it as well.
95117         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95118         to m4/longlong.m4.
95119         * modules/stdint (Files): Remove m4/ulonglong.m4.
95120         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95121         m4/ulonglong.m4.
95122         * modules/strtoumax (Files): Likewise.
95124 2007-10-30  Bruno Haible  <bruno@clisp.org>
95126         * modules/xvasprintf-posix: New file.
95127         Suggested by Eric Blake.
95129 2007-10-30  Bruno Haible  <bruno@clisp.org>
95131         * modules/xprintf-posix-tests: New file.
95132         * tests/test-xprintf-posix.sh: New file.
95133         * tests/test-xprintf-posix.c: New file.
95134         * tests/test-xfprintf-posix.c: New file.
95136         * modules/xprintf-posix: New file.
95138 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95140         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95141         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95142         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95144 2007-10-29  Bruno Haible  <bruno@clisp.org>
95146         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95147         contain the special marker '_cv_'.
95148         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95149         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95150         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95151         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95152         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95153         Reported by Ralf Wildenhues.
95155 2007-10-29  Bruno Haible  <bruno@clisp.org>
95157         * gnulib-tool (func_import): When --lgpl is not specified, set
95158         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95159         GPLv3.
95160         Reported by Simon Josefsson.
95162 2007-10-28  Bruno Haible  <bruno@clisp.org>
95164         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95165         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95166         HAVE_DECL_ISFINITE.
95167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95168         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95169         HAVE_DECL_ISFINITE.
95171 2007-10-28  Bruno Haible  <bruno@clisp.org>
95173         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95174         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95176 2007-10-28  Bruno Haible  <bruno@clisp.org>
95178         Fix link errors with Sun C 5.0 on Solaris 10.
95179         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95180         function is declared but not present in the compiler's libm.
95181         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95182         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95183         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95184         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95185         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95186         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95187         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95189         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95190         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95191         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95192         HAVE_DECL_FLOORL.
95194 2007-10-28  Bruno Haible  <bruno@clisp.org>
95196         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95197         gl_FUNC_FLOORL. Cache the result.
95198         (gl_FUNC_FLOORL): Use it.
95199         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95200         gl_FUNC_CEILL. Cache the result.
95201         (gl_FUNC_CEILL): Use it.
95203         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95204         gl_FUNC_FLOOR. Cache the result.
95205         (gl_FUNC_FLOOR): Use it.
95206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95207         gl_FUNC_CEIL. Cache the result.
95208         (gl_FUNC_CEIL): Use it.
95210         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95211         gl_FUNC_FLOORF. Cache the result.
95212         (gl_FUNC_FLOORF): Use it.
95213         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95214         gl_FUNC_CEILF. Cache the result.
95215         (gl_FUNC_CEILF): Use it.
95217 2007-10-28  Bruno Haible  <bruno@clisp.org>
95219         * gnulib-tool: Allow specifying the LGPL version number through
95220         --lgpl=2 or --lgpl=3.
95221         (func_usage): Document --lgpl with argument.
95222         Handle --lgpl=... arguments.
95223         (func_import): Recognize also gl_LGPL calls with an argument. When
95224         --lgpl=2 is used and the module's license is just LGPL, report an
95225         error. Set sed_transform_lib_file according to the lgpl variable. In
95226         the generated files, use --lgpl or gl_LGPL invocations with argument,
95227         if necessary.
95228         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95229         an LGPv2+ license.
95230         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95231         gl_LGPL macro.
95233 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95234             Bruno Haible  <bruno@clisp.org>
95236         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95237         (u16_uctomb_aux): Likewise.
95238         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95239         !HAVE_INLINE.
95240         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95242 2007-10-28  Bruno Haible  <bruno@clisp.org>
95244         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95245         Invoke AM_GETTEXT_OPTION if it exists.
95246         * modules/vasprintf: Likewise.
95247         * modules/verror: Likewise.
95248         * modules/xprintf: Likewise.
95249         * modules/xvasprintf: Likewise.
95251 2007-10-27  Ben Pfaff  <blp@gnu.org>
95253         * lib/math.in.h: Define isfinite macro and prototypes for
95254         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95255         implementations.
95256         * m4/math_h.m4: New substitutions for isfinite module.
95257         * lib/isfinite.c: New file.
95258         * m4/isfinite.m4: New file.
95259         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95260         * modules/isfinite: New file.
95261         * modules/isfinite-tests: New file.
95262         * tests/tests-isfinite.c: New file.
95263         * doc/functions/isfinite.texi: Mention isfinite module.
95264         * MODULES.html.sh: Mention new module.
95266 2007-10-27  Ben Pfaff  <blp@gnu.org>
95268         Ralf Wildenhues reported that Tru64 4.0D declares the round
95269         functions but does not have definitions.
95270         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95271         cannot be found in any library, set the output variable to
95272         "missing" instead of "".
95273         * m4/round.m4: Also use our substitute if we cannot find round in
95274         any library, even if it is declared.
95275         * m4/roundf.m4: Likewise for roundf.
95276         * m4/roundl.m4: Likewise for roundl.
95277         * lib/math.in.h: Undefine roundf, round, roundl before defining
95278         their replacements, to allow for hypothetical systems where these
95279         may be defined as macros but not available in libraries.
95281 2007-10-27  Bruno Haible  <bruno@clisp.org>
95283         * doc/gnulib.texi: Invoke @firstparagraphindent.
95284         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95285         changes in gnulib.
95286         (Source changes): New section.
95288 2007-10-26  Bruno Haible  <bruno@clisp.org>
95290         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95291         borrowed from autoconf.
95293 2007-10-26  Bruno Haible  <bruno@clisp.org>
95295         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95296         strerror returned the empty string. Needed on HP-UX 11.00.
95298 2007-10-24  Micah Cowan  <micah@cowan.name>
95300         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95301         * build-aux/bootstrap: Remove support for now-unnecessary option,
95302         --cvs-user, and envvars CVS_USER, CVS_RSH.
95304 2007-10-24  Jim Meyering  <meyering@redhat.com>
95306         Avoid diagnostics from sha1sum when there is no cached checksum.
95307         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95308         if the po.s1 file hasn't been created yet.
95310         * build-aux/bootstrap: Sync from coreutils:
95311         2007-10-24  Jim Meyering  <meyering@redhat.com>
95312         Get gnulib from the git repository, not from an obsolete cvs one.
95313         * build-aux/bootstrap: Suggestion from Micah Cowan.
95314         2007-10-04  Jim Meyering  <jim@meyering.net>
95315         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95316         (update_po_files): Work also when there are no .po files in po/.
95318 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95320         * README: Append ".git" to git and cg examples.
95321         Problem reported by Benoit Sigoure.
95323 2007-10-23  Micah Cowan  <micah@cowan.name>
95325         * users.txt: Add wget.
95327 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95329         Fix linking of some unistdio tests on FreeBSD.
95330         * modules/unistdio/u16-vsnprintf-tests
95331         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95332         * modules/unistdio/u16-vsprintf-tests
95333         (test_u16_vsnprintf1_LDADD): Likewise.
95334         * modules/unistdio/u32-vsnprintf-tests
95335         (test_u32_vsnprintf1_LDADD): Likewise.
95336         * modules/unistdio/u32-vsprintf-tests
95337         (test_u32_vsprintf1_LDADD): Likewise.
95338         * modules/unistdio/u8-vsnprintf-tests
95339         (test_u8_vsnprintf1_LDADD): Likewise.
95340         * modules/unistdio/u8-vsprintf-tests
95341         (test_u8_vsprintf1_LDADD): Likewise.
95342         * modules/unistdio/ulc-vsnprintf-tests
95343         (test_ulc_vsnprintf1_LDADD): Likewise.
95344         * modules/unistdio/ulc-vsprintf-tests
95345         (test_ulc_vsprintf1_LDADD): Likewise.
95347         Fix linking of some uniconv tests on FreeBSD.
95348         * modules/uniconv/u16-conv-from-enc-tests
95349         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95350         * modules/uniconv/u16-conv-to-enc-tests
95351         (test_u16_conv_to_enc_LDADD): Likewise.
95352         * modules/uniconv/u16-strconv-from-enc-tests
95353         (test_u16_strconv_from_enc_LDADD): Likewise.
95354         * modules/uniconv/u16-strconv-to-enc-tests
95355         (test_u16_strconv_to_enc_LDADD): Likewise.
95356         * modules/uniconv/u32-conv-from-enc-tests
95357         (test_u32_conv_from_enc_LDADD): Likewise.
95358         * modules/uniconv/u32-conv-to-enc-tests
95359         (test_u32_conv_to_enc_LDADD): Likewise.
95360         * modules/uniconv/u32-strconv-from-enc-tests
95361         (test_u32_strconv_from_enc_LDADD): Likewise.
95362         * modules/uniconv/u32-strconv-to-enc-tests
95363         (test_u32_strconv_to_enc_LDADD): Likewise.
95364         * modules/uniconv/u8-conv-from-enc-tests
95365         (test_u8_conv_from_enc_LDADD): Likewise.
95366         * modules/uniconv/u8-conv-to-enc-tests
95367         (test_u8_conv_to_enc_LDADD): Likewise.
95368         * modules/uniconv/u8-strconv-from-enc-tests
95369         (test_u8_strconv_from_enc_LDADD): Likewise.
95370         * modules/uniconv/u8-strconv-to-enc-tests
95371         (test_u8_strconv_to_enc_LDADD): Likewise.
95373 2007-10-22  Bruno Haible  <bruno@clisp.org>
95375         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95376         size.
95378 2007-10-22  Eric Blake  <ebb9@byu.net>
95380         Tweak x*printf documentation.
95381         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95382         variable name and comments.
95383         Suggested by Bruno Haible.
95385 2007-10-22  Bruno Haible  <bruno@clisp.org>
95387         * lib/acl.c (copy_acl): Fix file name in comment.
95389 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95391         Fix Tru64 problem with stdbool.h.
95392         * lib/stdbool.in.h (false, true):
95393         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95394         Don't declare as an enum in this situation; it runs afoul of Tru64.
95395         Problem reported by Steven M. Schweda in
95396         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95398 2007-10-22  Eric Blake  <ebb9@byu.net>
95400         Also wrap vf?printf.
95401         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95402         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95403         (xvprintf, xvfprintf): New functions.
95405 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95407         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95408         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95410         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95411         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95413 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95415         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95416         by Bruno Haible.
95418 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95420         * lib/getloadavg.c
95421         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95422         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95424         * tests/test-i-ring.c: Work for C89.
95426 2007-10-22  Bruno Haible  <bruno@clisp.org>
95428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95429         -1u, in preprocessor expression, so that we don't test for the bug
95430         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95431         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95433 2007-10-22  Eric Blake  <ebb9@byu.net>
95435         * tests/test-yesno.sh: Silence stderr during test.
95437 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95439         * modules/crypto/gc-camellia: New file.
95441         * m4/gc-camellia.m4: New file.
95443         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95445         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95447 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95449         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95450         --help to stdout.  Reported by sms@antinode.org (Steven
95451         M. Schweda).
95453 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95455         * users.txt: Fix link to libksba.
95457 2007-10-21  Ben Pfaff  <blp@gnu.org>
95459         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95460         round.c roundf implementation that depends on floorf and ceilf to
95461         be tested unconditionally.
95463 2007-10-21  Ben Pfaff  <blp@gnu.org>
95465         * m4/check-libm-func.m4: Removed.
95466         * m4/check-math-lib.m4: New file.
95467         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95468         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95469         definition and lack of AC_LIBOBJ([roundf]).
95470         * m4/roundl.m4: Ditto, and similarly for roundl.
95471         * modules/round: Reference new m4 file.
95472         * modules/roundf: Ditto.
95473         * modules/roundl: Ditto.
95474         * tests/test-round2.c (main): Use ROUND instead of round.
95475         Bug report from Bruno Haible.
95477 2007-10-21  Bruno Haible  <bruno@clisp.org>
95479         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95480         context.
95482 2007-10-21  Bruno Haible  <bruno@clisp.org>
95484         * tests/test-wcwidth.c (main): Allow negative result for some control
95485         characters.
95487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95488         Needed on OSF/1 5.1.
95490 2007-10-21  Bruno Haible  <bruno@clisp.org>
95492         * tests/test-floorf1.c: Include isnanf.h.
95493         (main): Use isnanf() instead of isnan().
95494         * tests/test-ceilf1.c: Include isnanf.h.
95495         (main): Use isnanf() instead of isnan().
95496         * tests/test-truncf1.c: Include isnanf.h.
95497         (main): Use isnanf() instead of isnan().
95498         * tests/test-roundf1.c: Include isnanf.h.
95499         (main): Use isnanf() instead of isnan().
95501 2007-10-21  Eric Blake  <ebb9@byu.net>
95503         * users.txt: Update URL for m4.
95505 2007-10-21  Bruno Haible  <bruno@clisp.org>
95507         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95509 2007-10-21  Bruno Haible  <bruno@clisp.org>
95511         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95512         Git's management files if the CVS files are not present.
95514 2007-10-20  Bruno Haible  <bruno@clisp.org>
95516         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95517         gcc-3.4.x.
95519 2007-10-20  Ben Pfaff  <blp@gnu.org>
95521         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95522         implementations.
95523         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95524         * lib/round.c: New file.
95525         * lib/roundf.c: New file.
95526         * lib/roundl.c: New file.
95527         * m4/round.m4: New file.
95528         * m4/roundf.m4: New file.
95529         * m4/roundl.m4: New file.
95530         * m4/check-libm-func-m4: New file.
95531         * modules/math: Replace round, roundf, roundl related @VARS@ in
95532         math.in.h.
95533         * modules/round: New file.
95534         * modules/round-tests: New file.
95535         * modules/roundf: New file.
95536         * modules/roundf-tests: New file.
95537         * modules/roundl: New file.
95538         * modules/roundl-tests: New file.
95539         * tests/test-round1.c: New file.
95540         * tests/test-round2.c: New file.
95541         * tests/test-roundf1.c: New file.
95542         * tests/test-roundf2.c: New file.
95543         * tests/test-roundl.c: New file.
95544         * doc/functions/round.texi: Mention round module.
95545         * doc/functions/roundf.texi: Mention roundf module.
95546         * doc/functions/roundl.texi: Mention roundl module.
95547         * MODULES.html.sh: Mention new modules.
95548         Thanks to Bruno Haible for suggestions.
95550 2007-10-20  Jim Meyering  <meyering@redhat.com>
95552         * lib/xprintf.c: Include <config.h> unconditionally.
95554         Change xprintf's license to GPL.
95555         * modules/xprintf (License): s/LGPL/GPL/, since this module
95556         depends on modules (exit and exitfail) which are GPL.
95557         Suggestion from Bruno Haible.
95559         xprintf fixes.
95560         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95561         Use a clearer diagnostic.
95562         Patch from Bruno Haible.
95564 2007-10-20  Bruno Haible  <bruno@clisp.org>
95566         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95567         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95570 2007-10-20  Bruno Haible  <bruno@clisp.org>
95572         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95573         precision in the comparison result > x - 1 or similar.
95574         * tests/test-ceilf2.c (correct_result_p): Likewise.
95575         * tests/test-truncf2.c (correct_result_p): Likewise.
95576         * tests/test-trunc2.c (correct_result_p): Likewise.
95577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95579 2007-10-20  Bruno Haible  <bruno@clisp.org>
95581         * modules/ceil: New file.
95582         * m4/ceil.m4: New file.
95583         * doc/functions/ceil.texi: Mention the 'ceil' module.
95585 2007-10-20  Bruno Haible  <bruno@clisp.org>
95587         * modules/floor: New file.
95588         * m4/floor.m4: New file.
95589         * doc/functions/floor.texi: Mention the 'floor' module.
95591 2007-10-20  Bruno Haible  <bruno@clisp.org>
95593         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
95594         of %a.
95595         * modules/floorf-tests (Depends-on): Likewise.
95596         * modules/truncf-tests (Depends-on): Likewise.
95597         * modules/trunc-tests (Depends-on): Likewise.
95598         Reported by Ben Pfaff.
95600 2007-10-19  Jim Meyering  <meyering@redhat.com>
95602         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
95603         Don't bother testing specific errno values.  Just test ferror.
95605         New module: xprintf
95606         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
95608 2007-10-19  Bruno Haible  <bruno@clisp.org>
95610         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
95611         syntax.
95612         * modules/javaexec (Makefile.am): Likewise.
95613         * modules/relocatable-prog (Makefile.am): Likewise.
95614         Suggested by Jim Meyering.
95616 2007-10-18  Bruno Haible  <bruno@clisp.org>
95618         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
95619         Reported by Jim Meyering.
95621 2007-10-18  Eric Blake  <ebb9@byu.net>
95623         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
95625 2007-10-18  Bruno Haible  <bruno@clisp.org>
95627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
95628         the format string into writable memory. Needed in Fortify conditions.
95630 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
95631             Bruno Haible  <bruno@clisp.org>
95633         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
95634         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
95635         * modules/trim (Depends-on): Add mbchar.
95636         (configure.ac): Add gl_FUNC_MBRTOWC.
95637         (Makefile.am): Augment lib_SOURCES.
95639 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95641         Modify glob.c to use fstatat and dirfd, to simplify it.
95642         Suggested by Eric Blake.
95643         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
95644         Don't include <stdbool.h>; not used.
95645         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
95646         (link_exists_p): Simplify implementation, since we can now assume
95647         dirfd and fstatat.
95648         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
95650 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95652         * gnulib-tool (func_get_dependencies): Fix sed script to
95653         match only tests.
95655 2007-10-17  Bruno Haible  <bruno@clisp.org>
95657         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
95658         allow locale names without encoding suffix.
95659         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95660         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95662 2007-10-16  Bruno Haible  <bruno@clisp.org>
95664         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
95665         * lib/getgroups.c (getgroups): Likewise.
95666         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
95668 2007-10-16  Bruno Haible  <bruno@clisp.org>
95670         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
95671         * modules/malloc-posix (License): Likewise.
95672         * modules/realloc-posix (License): Likewise.
95673         * modules/calloc-posix (License): Likewise.
95674         * modules/intprops (License): Change from GPL to LGPL, with
95675         Paul Eggert's approval.
95677 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95679         Merge glibc changes into lib/glob.c.
95681         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
95682         2007-10-15 04:59:03 UTC.  Here are the changes:
95684         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
95686         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
95688         * lib/glob.c: Add some branch prediction throughout.
95690         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
95692         [BZ #5103]
95693         * lib/glob.c (glob): Recognize patterns starting \/.
95695         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
95697         [BZ #3996]
95698         * lib/glob.c (attribute_hidden): Define if not defined.
95699         (glob): Unescape dirname, filename or username when needed and not
95700         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
95701         is NULL.  Handle unescaped [ in pattern without closing ].
95702         Don't pass GLOB_CHECK down to recursive glob for directories.
95703         (__glob_pattern_type): New function.
95704         (__glob_pattern_p): Implement using __glob_pattern_type.
95705         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
95706         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
95707         Remove unreachable code.
95709         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
95711         * lib/glob.c (glob_in_dir): Add some comments and asserts to
95712         explain why there are no leaks.
95714         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
95716         [BZ #3253]
95717         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
95718         time, rather allocate increasingly bigger arrays of pointers, if
95719         possible with alloca, if too large with malloc.
95721 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95723         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
95724         Problem reported by H.Merijn Brand in
95725         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
95726         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
95727         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
95729 2007-10-15  Bruno Haible  <bruno@clisp.org>
95731         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
95732         with explicit rpl_ prefix.
95733         * lib/fopen.c (fopen): Likewise.
95734         * lib/freopen.c (freopen): Likewise.
95735         * lib/iconv.c (iconv): Likewise.
95736         * lib/iconv_close.c (iconv_close): Likewise.
95738 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95740         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
95742 2007-10-15  Bruno Haible  <bruno@clisp.org>
95744         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
95745         <stddef.h> instead of <stdlib.h> since we only need NULL.
95746         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95748 2007-10-15  Bruno Haible  <bruno@clisp.org>
95750         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
95751         Replace paragraph talking about LIBOBJS.
95752         Reported by Colin Watson <cjwatson@debian.org>.
95754 2007-10-15  Bruno Haible  <bruno@clisp.org>
95756         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
95757         <stdlib.h> before using NULL.
95759 2007-10-15  Simon Josefsson  <simon@josefsson.org>
95761         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
95762         Reported by Albert Chin <china@thewrittenword.com>.
95764 2007-10-14  Bruno Haible  <bruno@clisp.org>
95766         * modules/iconv_open-utf-tests: New file.
95767         * tests/test-iconv-utf.c: New file.
95769         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
95770         * modules/iconv_open-utf: New file.
95771         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
95772         (iconv, iconv_close): New declarations.
95773         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
95774         be defined.
95775         (iconv_open): Add special handling of conversion between UTF-8 and
95776         UTF-{16,32}{BE,LE}.
95777         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
95778         * lib/iconv_close.c: New file.
95779         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
95780         gl_FUNC_ICONV_OPEN.
95781         (gl_FUNC_ICONV_OPEN): Use it.
95782         (gl_FUNC_ICONV_OPEN_UTF): New macro.
95783         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
95784         and REPLACE_ICONV_UTF.
95785         * modules/iconv_open (Depends-on): Add c-strcase.
95786         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
95787         ICONV_CONST.
95788         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
95790 2007-10-13  Albert Chin  <china@thewrittenword.com>
95791             Bruno Haible  <bruno@clisp.org>
95793         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
95794         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
95796 2007-10-13  Bruno Haible  <bruno@clisp.org>
95798         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
95799         defined, use the ISO C99 inline semantics.
95800         * lib/argp.h (ARGP_EI): Likewise.
95802 2007-10-13  Bruno Haible  <bruno@clisp.org>
95804         Handle 'inline' change in gcc 4.3.0.
95805         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
95806         argp_fmtstream_write, argp_fmtstream_set_lmargin,
95807         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
95808         argp_fmtstream_point): Disable 'extern' declaration if the function
95809         definition is going to be provided inline.
95810         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
95811         semantics, not the ISO C99 inline semantics.
95812         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
95813         'extern' declaration if the function definition is going to be provided
95814         inline.
95815         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
95816         the GNU C inline semantics, not the ISO C99 inline semantics. With
95817         GCC 4.2, avoid a warning.
95819 2007-10-13  Bruno Haible  <bruno@clisp.org>
95821         * lib/freading.h (freading): Enable the use of __freading for
95822         glibc >= 2.7.
95823         * lib/freading.c (freading): Likewise.
95825 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95827         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
95828         "warning: C99 inline functions are not supported; using GNU89".
95830 2007-10-12  Bruno Haible  <bruno@clisp.org>
95832         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
95833         of 2.
95834         * tests/test-ceilf2.c: New file.
95835         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
95837         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
95838         * modules/ceilf-tests: Update.
95840 2007-10-12  Bruno Haible  <bruno@clisp.org>
95842         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
95843         of 2.
95844         * tests/test-floorf2.c: New file.
95845         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
95847         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
95848         * modules/floorf-tests: Update.
95850 2007-10-12  Bruno Haible  <bruno@clisp.org>
95852         * tests/test-trunc2.c: New file.
95853         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
95855         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
95856         * modules/trunc-tests: Update.
95858 2007-10-12  Bruno Haible  <bruno@clisp.org>
95860         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
95861         of 2.
95862         * tests/test-truncf2.c: New file.
95863         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
95865         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
95866         * modules/truncf-tests: Update.
95868 2007-10-11  Eric Blake  <ebb9@byu.net>
95870         Don't claim strerror is broken on Interix.
95871         * doc/functions/strerror.texi (strerror): Known broken systems are
95872         now Solaris 8, and not Interix.
95873         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
95874         Interix on cross-compile.
95875         Reported by Martin Koeppe in
95876         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
95878 2007-10-11  Bruno Haible  <bruno@clisp.org>
95880         * modules/i-ring-tests: New file.
95881         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
95882         instead of assert.
95884 2007-10-11  Bruno Haible  <bruno@clisp.org>
95886         * modules/filenamecat-tests: New file.
95887         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
95888         * lib/filenamecat.c: Remove test code.
95890 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95892         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
95894         * lib/strerror.c: Include <string.h> always, to test interface,
95895         and to remove the need for the dummy.
95896         Include intprops.h to compute width instead of doing it ourselves
95897         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
95898         (strerror): Define it to return NULL if there's no system strerror.
95899         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
95900         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
95901         ancient pre-strerror Unix systems well any more.  Saying "unknown
95902         system error" is enough.
95903         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
95904         simpler strerror.c implementation.
95905         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
95906         Simplify the tests to reflect the simpler strerror implementation.
95907         * modules/strerror (Depends-on): Add intprops.
95909 2007-10-09  Eric Blake  <ebb9@byu.net>
95911         Silence test-fpending.
95912         * modules/fpending-tests (Files): Add wrapper script.
95913         * tests/test-fpending.sh: New file.
95915 2007-10-09  Bruno Haible  <bruno@clisp.org>
95917         * MODULES.html.sh (func_module): Don't create a hyperlink for
95918         function names like 'printf_frexp'.
95919         (Misc): Add crc, memxor.
95920         (Characteristics of floating types): New section.
95921         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
95922         isnanf-nolibm, signbit, trunc, truncf, truncl.
95923         (Enhancements for ISO C 99 functions): New subsection Input/output.
95924         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
95925         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
95926         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
95927         (Compatibility checks for POSIX:2001 functions): Add clock-time.
95928         (Enhancements for POSIX:2001 functions): Add chdir-long.
95929         (File system functions): Add areadlink, chdir-safer, read-file.
95930         Remove cycle-check.
95931         (File system as inode set): New section.
95932         (Date and time): Add gethrxtime.
95933         (Multithreading): Add openmp.
95934         (Internationalization functions): Add localename.
95935         (Unicode string functions): Add unistr/u*-mbsnlen.
95936         (Support for maintaining and releasing projects): Add git-version-gen.
95937         (Lone files): Remove directories.
95939 2007-10-08  Ben Pfaff  <blp@gnu.org>
95941         * lib/xmalloca.h: Fix typo in comment.
95943 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
95945         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
95946         when avoiding problems with integer overflow.  Use a portable test
95947         instead.
95949 2007-10-08  Simon Josefsson  <simon@josefsson.org>
95951         * modules/dummy (License): Change to LGPLv2+.
95952         * modules/float (License): Likewise
95953         * modules/realloc (License): Likewise
95954         * modules/stdlib (License): Likewise
95956 2007-10-07  Bruno Haible  <bruno@clisp.org>
95958         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
95959         * floor.c (TWO_MANT_DIG): Likewise.
95960         * ceil.c (TWO_MANT_DIG): Likewise.
95961         Reported by Ben Pfaff.
95963 2007-10-07  Bruno Haible  <bruno@clisp.org>
95965         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
95966         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
95967         * lib/frexp.c (FUNC): Likewise.
95968         * lib/printf-frexp.h (printf_frexp): Likewise.
95969         * lib/printf-frexpl.h (printf_frexpl): Likewise.
95970         * lib/printf-frexp.c (FUNC): Likewise.
95971         Suggested by Jim Meyering.
95973 2007-10-07  Jim Meyering  <meyering@redhat.com>
95975         Make xnanosleep's integer overflow test more robust.
95976         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
95977         so that gcc-4.3.0 doesn't optimize away this test for overflow.
95979 2007-10-07  Bruno Haible  <bruno@clisp.org>
95981         * NEWS: Mention the license change.
95983         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
95984         abbreviations in the modules files.
95986         Change copyright notice from GPLv2+ to GPLv3+.
95987         * README: Change copyright notice.
95988         * MODULES.html.sh: Likewise.
95989         * build-aux/bootstrap.conf: Likewise.
95990         * build-aux/config.libpath: Likewise.
95991         * build-aux/csharpcomp.sh.in: Likewise.
95992         * build-aux/csharpexec.sh.in: Likewise.
95993         * build-aux/install-reloc: Likewise.
95994         * build-aux/javacomp.sh.in: Likewise.
95995         * build-aux/javaexec.sh.in: Likewise.
95996         * build-aux/ldd.sh.in: Likewise.
95997         * build-aux/reloc-ldflags: Likewise.
95998         * build-aux/relocatable.sh.in: Likewise.
95999         * build-aux/x-to-1.in: Likewise.
96000         * check-module: Likewise.
96001         * config/srclistvars.sh: Likewise.
96002         * gnulib-tool: Likewise.
96003         * lib/acl-internal.h: Likewise.
96004         * lib/acl.c: Likewise.
96005         * lib/acl.h: Likewise.
96006         * lib/acl_entries.c: Likewise.
96007         * lib/areadlink-with-size.c: Likewise.
96008         * lib/areadlink.c: Likewise.
96009         * lib/areadlink.h: Likewise.
96010         * lib/argmatch.c: Likewise.
96011         * lib/argmatch.h: Likewise.
96012         * lib/argp-ba.c: Likewise.
96013         * lib/argp-eexst.c: Likewise.
96014         * lib/argp-fmtstream.c: Likewise.
96015         * lib/argp-fmtstream.h: Likewise.
96016         * lib/argp-fs-xinl.c: Likewise.
96017         * lib/argp-help.c: Likewise.
96018         * lib/argp-namefrob.h: Likewise.
96019         * lib/argp-parse.c: Likewise.
96020         * lib/argp-pin.c: Likewise.
96021         * lib/argp-pv.c: Likewise.
96022         * lib/argp-pvh.c: Likewise.
96023         * lib/argp-xinl.c: Likewise.
96024         * lib/argp.h: Likewise.
96025         * lib/at-func.c: Likewise.
96026         * lib/atanl.c: Likewise.
96027         * lib/backupfile.c: Likewise.
96028         * lib/backupfile.h: Likewise.
96029         * lib/basename.c: Likewise.
96030         * lib/binary-io.h: Likewise.
96031         * lib/byteswap.in.h: Likewise.
96032         * lib/c-stack.c: Likewise.
96033         * lib/c-stack.h: Likewise.
96034         * lib/c-strcasestr.c: Likewise.
96035         * lib/c-strcasestr.h: Likewise.
96036         * lib/c-strstr.c: Likewise.
96037         * lib/c-strstr.h: Likewise.
96038         * lib/c-strtod.c: Likewise.
96039         * lib/calloc.c: Likewise.
96040         * lib/canon-host.c: Likewise.
96041         * lib/canon-host.h: Likewise.
96042         * lib/canonicalize-lgpl.c: Likewise.
96043         * lib/canonicalize.c: Likewise.
96044         * lib/canonicalize.h: Likewise.
96045         * lib/ceil.c: Likewise.
96046         * lib/ceilf.c: Likewise.
96047         * lib/ceill.c: Likewise.
96048         * lib/chdir-long.c: Likewise.
96049         * lib/chdir-long.h: Likewise.
96050         * lib/chdir-safer.c: Likewise.
96051         * lib/chdir-safer.h: Likewise.
96052         * lib/chown.c: Likewise.
96053         * lib/classpath.c: Likewise.
96054         * lib/classpath.h: Likewise.
96055         * lib/clean-temp.c: Likewise.
96056         * lib/clean-temp.h: Likewise.
96057         * lib/cloexec.c: Likewise.
96058         * lib/close-stream.c: Likewise.
96059         * lib/closein.c: Likewise.
96060         * lib/closein.h: Likewise.
96061         * lib/closeout.c: Likewise.
96062         * lib/closeout.h: Likewise.
96063         * lib/concat-filename.c: Likewise.
96064         * lib/copy-file.c: Likewise.
96065         * lib/copy-file.h: Likewise.
96066         * lib/count-one-bits.h: Likewise.
96067         * lib/crc.c: Likewise.
96068         * lib/crc.h: Likewise.
96069         * lib/creat-safer.c: Likewise.
96070         * lib/csharpcomp.c: Likewise.
96071         * lib/csharpcomp.h: Likewise.
96072         * lib/csharpexec.c: Likewise.
96073         * lib/csharpexec.h: Likewise.
96074         * lib/cycle-check.c: Likewise.
96075         * lib/cycle-check.h: Likewise.
96076         * lib/diacrit.c: Likewise.
96077         * lib/diacrit.h: Likewise.
96078         * lib/diffseq.h: Likewise.
96079         * lib/dirchownmod.c: Likewise.
96080         * lib/dirent.in.h: Likewise.
96081         * lib/dirfd.c: Likewise.
96082         * lib/dirfd.h: Likewise.
96083         * lib/dirname.c: Likewise.
96084         * lib/dirname.h: Likewise.
96085         * lib/dummy.c: Likewise.
96086         * lib/dup-safer.c: Likewise.
96087         * lib/dup2.c: Likewise.
96088         * lib/eealloc.h: Likewise.
96089         * lib/error.c: Likewise.
96090         * lib/error.h: Likewise.
96091         * lib/euidaccess.c: Likewise.
96092         * lib/exclude.c: Likewise.
96093         * lib/exclude.h: Likewise.
96094         * lib/execute.c: Likewise.
96095         * lib/execute.h: Likewise.
96096         * lib/exitfail.c: Likewise.
96097         * lib/exitfail.h: Likewise.
96098         * lib/expl.c: Likewise.
96099         * lib/fatal-signal.c: Likewise.
96100         * lib/fatal-signal.h: Likewise.
96101         * lib/fbufmode.c: Likewise.
96102         * lib/fbufmode.h: Likewise.
96103         * lib/fchdir.c: Likewise.
96104         * lib/fchmodat.c: Likewise.
96105         * lib/fchownat.c: Likewise.
96106         * lib/fcntl--.h: Likewise.
96107         * lib/fcntl-safer.h: Likewise.
96108         * lib/fcntl.in.h: Likewise.
96109         * lib/fd-safer.c: Likewise.
96110         * lib/fflush.c: Likewise.
96111         * lib/file-has-acl.c: Likewise.
96112         * lib/file-set.c: Likewise.
96113         * lib/file-type.c: Likewise.
96114         * lib/file-type.h: Likewise.
96115         * lib/fileblocks.c: Likewise.
96116         * lib/filemode.c: Likewise.
96117         * lib/filemode.h: Likewise.
96118         * lib/filename.h: Likewise.
96119         * lib/filenamecat.c: Likewise.
96120         * lib/filenamecat.h: Likewise.
96121         * lib/findprog.c: Likewise.
96122         * lib/findprog.h: Likewise.
96123         * lib/float.in.h: Likewise.
96124         * lib/floor.c: Likewise.
96125         * lib/floorf.c: Likewise.
96126         * lib/floorl.c: Likewise.
96127         * lib/fopen-safer.c: Likewise.
96128         * lib/fopen.c: Likewise.
96129         * lib/fpending.c: Likewise.
96130         * lib/fpending.h: Likewise.
96131         * lib/fprintf.c: Likewise.
96132         * lib/fprintftime.h: Likewise.
96133         * lib/fpucw.h: Likewise.
96134         * lib/fpurge.c: Likewise.
96135         * lib/fpurge.h: Likewise.
96136         * lib/freadable.c: Likewise.
96137         * lib/freadable.h: Likewise.
96138         * lib/freadahead.c: Likewise.
96139         * lib/freadahead.h: Likewise.
96140         * lib/freading.c: Likewise.
96141         * lib/freading.h: Likewise.
96142         * lib/free.c: Likewise.
96143         * lib/freopen.c: Likewise.
96144         * lib/frexp.c: Likewise.
96145         * lib/frexpl.c: Likewise.
96146         * lib/fseek.c: Likewise.
96147         * lib/fseterr.c: Likewise.
96148         * lib/fseterr.h: Likewise.
96149         * lib/fstatat.c: Likewise.
96150         * lib/fstrcmp.c: Likewise.
96151         * lib/fstrcmp.h: Likewise.
96152         * lib/fsusage.c: Likewise.
96153         * lib/fsusage.h: Likewise.
96154         * lib/ftell.c: Likewise.
96155         * lib/ftello.c: Likewise.
96156         * lib/fts-cycle.c: Likewise.
96157         * lib/fts.c: Likewise.
96158         * lib/fts_.h: Likewise.
96159         * lib/full-read.c: Likewise.
96160         * lib/full-read.h: Likewise.
96161         * lib/full-write.c: Likewise.
96162         * lib/full-write.h: Likewise.
96163         * lib/fwritable.c: Likewise.
96164         * lib/fwritable.h: Likewise.
96165         * lib/fwriteerror.c: Likewise.
96166         * lib/fwriteerror.h: Likewise.
96167         * lib/fwriting.c: Likewise.
96168         * lib/fwriting.h: Likewise.
96169         * lib/gcd.c: Likewise.
96170         * lib/gcd.h: Likewise.
96171         * lib/getcwd.c: Likewise.
96172         * lib/getdate.h: Likewise.
96173         * lib/getdate.y: Likewise.
96174         * lib/getdomainname.c: Likewise.
96175         * lib/getdomainname.h: Likewise.
96176         * lib/getgroups.c: Likewise.
96177         * lib/gethostname.c: Likewise.
96178         * lib/gethrxtime.c: Likewise.
96179         * lib/gethrxtime.h: Likewise.
96180         * lib/getloadavg.c: Likewise.
96181         * lib/getndelim2.c: Likewise.
96182         * lib/getndelim2.h: Likewise.
96183         * lib/getnline.c: Likewise.
96184         * lib/getnline.h: Likewise.
96185         * lib/getopt.c: Likewise.
96186         * lib/getopt.in.h: Likewise.
96187         * lib/getopt1.c: Likewise.
96188         * lib/getopt_int.h: Likewise.
96189         * lib/getpagesize.h: Likewise.
96190         * lib/getsubopt.c: Likewise.
96191         * lib/gettime.c: Likewise.
96192         * lib/getugroups.c: Likewise.
96193         * lib/getugroups.h: Likewise.
96194         * lib/getusershell.c: Likewise.
96195         * lib/gl_anyavltree_list1.h: Likewise.
96196         * lib/gl_anyavltree_list2.h: Likewise.
96197         * lib/gl_anyhash_list1.h: Likewise.
96198         * lib/gl_anyhash_list2.h: Likewise.
96199         * lib/gl_anylinked_list1.h: Likewise.
96200         * lib/gl_anylinked_list2.h: Likewise.
96201         * lib/gl_anyrbtree_list1.h: Likewise.
96202         * lib/gl_anyrbtree_list2.h: Likewise.
96203         * lib/gl_anytree_list1.h: Likewise.
96204         * lib/gl_anytree_list2.h: Likewise.
96205         * lib/gl_anytree_oset.h: Likewise.
96206         * lib/gl_anytreehash_list1.h: Likewise.
96207         * lib/gl_anytreehash_list2.h: Likewise.
96208         * lib/gl_array_list.c: Likewise.
96209         * lib/gl_array_list.h: Likewise.
96210         * lib/gl_array_oset.c: Likewise.
96211         * lib/gl_array_oset.h: Likewise.
96212         * lib/gl_avltree_list.c: Likewise.
96213         * lib/gl_avltree_list.h: Likewise.
96214         * lib/gl_avltree_oset.c: Likewise.
96215         * lib/gl_avltree_oset.h: Likewise.
96216         * lib/gl_avltreehash_list.c: Likewise.
96217         * lib/gl_avltreehash_list.h: Likewise.
96218         * lib/gl_carray_list.c: Likewise.
96219         * lib/gl_carray_list.h: Likewise.
96220         * lib/gl_linked_list.c: Likewise.
96221         * lib/gl_linked_list.h: Likewise.
96222         * lib/gl_linkedhash_list.c: Likewise.
96223         * lib/gl_linkedhash_list.h: Likewise.
96224         * lib/gl_list.c: Likewise.
96225         * lib/gl_list.h: Likewise.
96226         * lib/gl_oset.c: Likewise.
96227         * lib/gl_oset.h: Likewise.
96228         * lib/gl_rbtree_list.c: Likewise.
96229         * lib/gl_rbtree_list.h: Likewise.
96230         * lib/gl_rbtree_oset.c: Likewise.
96231         * lib/gl_rbtree_oset.h: Likewise.
96232         * lib/gl_rbtreehash_list.c: Likewise.
96233         * lib/gl_rbtreehash_list.h: Likewise.
96234         * lib/gl_sublist.c: Likewise.
96235         * lib/gl_sublist.h: Likewise.
96236         * lib/group-member.c: Likewise.
96237         * lib/group-member.h: Likewise.
96238         * lib/hard-locale.c: Likewise.
96239         * lib/hard-locale.h: Likewise.
96240         * lib/hash-pjw.c: Likewise.
96241         * lib/hash-pjw.h: Likewise.
96242         * lib/hash-triple.c: Likewise.
96243         * lib/hash.c: Likewise.
96244         * lib/hash.h: Likewise.
96245         * lib/human.c: Likewise.
96246         * lib/human.h: Likewise.
96247         * lib/i-ring.c: Likewise.
96248         * lib/i-ring.h: Likewise.
96249         * lib/idcache.c: Likewise.
96250         * lib/imaxabs.c: Likewise.
96251         * lib/imaxdiv.c: Likewise.
96252         * lib/inet_pton.c: Likewise.
96253         * lib/inet_pton.h: Likewise.
96254         * lib/intprops.h: Likewise.
96255         * lib/inttostr.c: Likewise.
96256         * lib/inttostr.h: Likewise.
96257         * lib/inttypes.in.h: Likewise.
96258         * lib/isapipe.c: Likewise.
96259         * lib/isdir.c: Likewise.
96260         * lib/isnan.c: Likewise.
96261         * lib/isnan.h: Likewise.
96262         * lib/isnanf.c: Likewise.
96263         * lib/isnanf.h: Likewise.
96264         * lib/isnanl-nolibm.h: Likewise.
96265         * lib/isnanl.c: Likewise.
96266         * lib/isnanl.h: Likewise.
96267         * lib/javacomp.c: Likewise.
96268         * lib/javacomp.h: Likewise.
96269         * lib/javaexec.c: Likewise.
96270         * lib/javaexec.h: Likewise.
96271         * lib/javaversion.c: Likewise.
96272         * lib/javaversion.h: Likewise.
96273         * lib/javaversion.java: Likewise.
96274         * lib/lbrkprop.h: Likewise.
96275         * lib/lchmod.h: Likewise.
96276         * lib/lchown.c: Likewise.
96277         * lib/ldexpl.c: Likewise.
96278         * lib/linebreak.c: Likewise.
96279         * lib/linebreak.h: Likewise.
96280         * lib/linebuffer.c: Likewise.
96281         * lib/linebuffer.h: Likewise.
96282         * lib/locale.in.h: Likewise.
96283         * lib/logl.c: Likewise.
96284         * lib/long-options.c: Likewise.
96285         * lib/long-options.h: Likewise.
96286         * lib/lstat.c: Likewise.
96287         * lib/lstat.h: Likewise.
96288         * lib/math.in.h: Likewise.
96289         * lib/mbchar.c: Likewise.
96290         * lib/mbchar.h: Likewise.
96291         * lib/mbfile.h: Likewise.
96292         * lib/mbiter.h: Likewise.
96293         * lib/mbscasecmp.c: Likewise.
96294         * lib/mbscasestr.c: Likewise.
96295         * lib/mbschr.c: Likewise.
96296         * lib/mbscspn.c: Likewise.
96297         * lib/mbslen.c: Likewise.
96298         * lib/mbsncasecmp.c: Likewise.
96299         * lib/mbsnlen.c: Likewise.
96300         * lib/mbspbrk.c: Likewise.
96301         * lib/mbspcasecmp.c: Likewise.
96302         * lib/mbsrchr.c: Likewise.
96303         * lib/mbssep.c: Likewise.
96304         * lib/mbsspn.c: Likewise.
96305         * lib/mbsstr.c: Likewise.
96306         * lib/mbstok_r.c: Likewise.
96307         * lib/mbswidth.c: Likewise.
96308         * lib/mbswidth.h: Likewise.
96309         * lib/mbuiter.h: Likewise.
96310         * lib/memcasecmp.c: Likewise.
96311         * lib/memcasecmp.h: Likewise.
96312         * lib/memchr.c: Likewise.
96313         * lib/memcmp.c: Likewise.
96314         * lib/memcoll.c: Likewise.
96315         * lib/memcoll.h: Likewise.
96316         * lib/memcpy.c: Likewise.
96317         * lib/memrchr.c: Likewise.
96318         * lib/mkancesdirs.c: Likewise.
96319         * lib/mkdir-p.c: Likewise.
96320         * lib/mkdir-p.h: Likewise.
96321         * lib/mkdir.c: Likewise.
96322         * lib/mkdirat.c: Likewise.
96323         * lib/mkdtemp.c: Likewise.
96324         * lib/mkstemp-safer.c: Likewise.
96325         * lib/mkstemp.c: Likewise.
96326         * lib/modechange.c: Likewise.
96327         * lib/modechange.h: Likewise.
96328         * lib/mountlist.c: Likewise.
96329         * lib/mountlist.h: Likewise.
96330         * lib/mpsort.c: Likewise.
96331         * lib/nanosleep.c: Likewise.
96332         * lib/obstack.c: Likewise.
96333         * lib/obstack.h: Likewise.
96334         * lib/open-safer.c: Likewise.
96335         * lib/open.c: Likewise.
96336         * lib/openat-die.c: Likewise.
96337         * lib/openat-priv.h: Likewise.
96338         * lib/openat-proc.c: Likewise.
96339         * lib/openat.c: Likewise.
96340         * lib/openat.h: Likewise.
96341         * lib/pagealign_alloc.c: Likewise.
96342         * lib/pagealign_alloc.h: Likewise.
96343         * lib/physmem.c: Likewise.
96344         * lib/physmem.h: Likewise.
96345         * lib/pipe-safer.c: Likewise.
96346         * lib/pipe.c: Likewise.
96347         * lib/pipe.h: Likewise.
96348         * lib/posixtm.c: Likewise.
96349         * lib/posixtm.h: Likewise.
96350         * lib/posixver.c: Likewise.
96351         * lib/printf-frexp.c: Likewise.
96352         * lib/printf-frexp.h: Likewise.
96353         * lib/printf-frexpl.c: Likewise.
96354         * lib/printf-frexpl.h: Likewise.
96355         * lib/printf.c: Likewise.
96356         * lib/progname.c: Likewise.
96357         * lib/progname.h: Likewise.
96358         * lib/progreloc.c: Likewise.
96359         * lib/putenv.c: Likewise.
96360         * lib/quote.c: Likewise.
96361         * lib/quote.h: Likewise.
96362         * lib/quotearg.c: Likewise.
96363         * lib/quotearg.h: Likewise.
96364         * lib/raise.c: Likewise.
96365         * lib/readline.c: Likewise.
96366         * lib/readline.h: Likewise.
96367         * lib/readlink.c: Likewise.
96368         * lib/readtokens.c: Likewise.
96369         * lib/readtokens.h: Likewise.
96370         * lib/readtokens0.c: Likewise.
96371         * lib/readtokens0.h: Likewise.
96372         * lib/readutmp.c: Likewise.
96373         * lib/readutmp.h: Likewise.
96374         * lib/realloc.c: Likewise.
96375         * lib/relocwrapper.c: Likewise.
96376         * lib/rename-dest-slash.c: Likewise.
96377         * lib/rename.c: Likewise.
96378         * lib/rmdir.c: Likewise.
96379         * lib/rpmatch.c: Likewise.
96380         * lib/safe-read.c: Likewise.
96381         * lib/safe-read.h: Likewise.
96382         * lib/safe-write.c: Likewise.
96383         * lib/safe-write.h: Likewise.
96384         * lib/same-inode.h: Likewise.
96385         * lib/same.c: Likewise.
96386         * lib/same.h: Likewise.
96387         * lib/save-cwd.c: Likewise.
96388         * lib/save-cwd.h: Likewise.
96389         * lib/savedir.c: Likewise.
96390         * lib/savedir.h: Likewise.
96391         * lib/savewd.c: Likewise.
96392         * lib/savewd.h: Likewise.
96393         * lib/search.in.h: Likewise.
96394         * lib/setenv.c: Likewise.
96395         * lib/setenv.h: Likewise.
96396         * lib/settime.c: Likewise.
96397         * lib/sh-quote.c: Likewise.
96398         * lib/sh-quote.h: Likewise.
96399         * lib/sig2str.c: Likewise.
96400         * lib/sig2str.h: Likewise.
96401         * lib/signal.in.h: Likewise.
96402         * lib/signbitd.c: Likewise.
96403         * lib/signbitf.c: Likewise.
96404         * lib/signbitl.c: Likewise.
96405         * lib/sigprocmask.c: Likewise.
96406         * lib/sincosl.c: Likewise.
96407         * lib/sleep.c: Likewise.
96408         * lib/sprintf.c: Likewise.
96409         * lib/sqrtl.c: Likewise.
96410         * lib/stat-time.h: Likewise.
96411         * lib/stdio--.h: Likewise.
96412         * lib/stdio-safer.h: Likewise.
96413         * lib/stdlib--.h: Likewise.
96414         * lib/stdlib-safer.h: Likewise.
96415         * lib/stdlib.in.h: Likewise.
96416         * lib/stpcpy.c: Likewise.
96417         * lib/stpncpy.c: Likewise.
96418         * lib/strchrnul.c: Likewise.
96419         * lib/strcspn.c: Likewise.
96420         * lib/strerror.c: Likewise.
96421         * lib/strftime.c: Likewise.
96422         * lib/strftime.h: Likewise.
96423         * lib/striconveh.c: Likewise.
96424         * lib/striconveh.h: Likewise.
96425         * lib/striconveha.c: Likewise.
96426         * lib/striconveha.h: Likewise.
96427         * lib/stripslash.c: Likewise.
96428         * lib/strnlen1.c: Likewise.
96429         * lib/strnlen1.h: Likewise.
96430         * lib/strtod.c: Likewise.
96431         * lib/strtoimax.c: Likewise.
96432         * lib/strtok_r.c: Likewise.
96433         * lib/strtol.c: Likewise.
96434         * lib/strtoll.c: Likewise.
96435         * lib/strtoul.c: Likewise.
96436         * lib/strtoull.c: Likewise.
96437         * lib/sysexits.in.h: Likewise.
96438         * lib/tempname.c: Likewise.
96439         * lib/tempname.h: Likewise.
96440         * lib/timespec.h: Likewise.
96441         * lib/tls.c: Likewise.
96442         * lib/tls.h: Likewise.
96443         * lib/tmpdir.c: Likewise.
96444         * lib/tmpdir.h: Likewise.
96445         * lib/tmpfile-safer.c: Likewise.
96446         * lib/tmpfile.c: Likewise.
96447         * lib/trigl.c: Likewise.
96448         * lib/trigl.h: Likewise.
96449         * lib/trim.c: Likewise.
96450         * lib/trim.h: Likewise.
96451         * lib/trunc.c: Likewise.
96452         * lib/truncf.c: Likewise.
96453         * lib/truncl.c: Likewise.
96454         * lib/tsearch.c: Likewise.
96455         * lib/unicodeio.c: Likewise.
96456         * lib/unicodeio.h: Likewise.
96457         * lib/unistd--.h: Likewise.
96458         * lib/unistd-safer.h: Likewise.
96459         * lib/unistdio/ulc-fprintf.c: Likewise.
96460         * lib/unistdio/ulc-vfprintf.c: Likewise.
96461         * lib/unlinkdir.c: Likewise.
96462         * lib/unlinkdir.h: Likewise.
96463         * lib/unlocked-io.h: Likewise.
96464         * lib/unsetenv.c: Likewise.
96465         * lib/userspec.c: Likewise.
96466         * lib/utime.c: Likewise.
96467         * lib/utimecmp.c: Likewise.
96468         * lib/utimecmp.h: Likewise.
96469         * lib/utimens.c: Likewise.
96470         * lib/verify.h: Likewise.
96471         * lib/verror.c: Likewise.
96472         * lib/verror.h: Likewise.
96473         * lib/version-etc-fsf.c: Likewise.
96474         * lib/version-etc.c: Likewise.
96475         * lib/version-etc.h: Likewise.
96476         * lib/vfprintf.c: Likewise.
96477         * lib/vprintf.c: Likewise.
96478         * lib/vsprintf.c: Likewise.
96479         * lib/w32spawn.h: Likewise.
96480         * lib/wait-process.c: Likewise.
96481         * lib/wait-process.h: Likewise.
96482         * lib/wcwidth.c: Likewise.
96483         * lib/write-any-file.c: Likewise.
96484         * lib/xalloc-die.c: Likewise.
96485         * lib/xalloc.h: Likewise.
96486         * lib/xasprintf.c: Likewise.
96487         * lib/xgetcwd.c: Likewise.
96488         * lib/xgetcwd.h: Likewise.
96489         * lib/xgetdomainname.c: Likewise.
96490         * lib/xgetdomainname.h: Likewise.
96491         * lib/xgethostname.c: Likewise.
96492         * lib/xmalloc.c: Likewise.
96493         * lib/xmalloca.c: Likewise.
96494         * lib/xmalloca.h: Likewise.
96495         * lib/xmemcoll.c: Likewise.
96496         * lib/xnanosleep.c: Likewise.
96497         * lib/xreadlink.c: Likewise.
96498         * lib/xreadlink.h: Likewise.
96499         * lib/xsetenv.c: Likewise.
96500         * lib/xsetenv.h: Likewise.
96501         * lib/xstriconv.c: Likewise.
96502         * lib/xstriconv.h: Likewise.
96503         * lib/xstrndup.c: Likewise.
96504         * lib/xstrndup.h: Likewise.
96505         * lib/xstrtod.c: Likewise.
96506         * lib/xstrtod.h: Likewise.
96507         * lib/xstrtol-error.c: Likewise.
96508         * lib/xstrtol.c: Likewise.
96509         * lib/xstrtol.h: Likewise.
96510         * lib/xtime.h: Likewise.
96511         * lib/xvasprintf.c: Likewise.
96512         * lib/xvasprintf.h: Likewise.
96513         * lib/yesno.c: Likewise.
96514         * lib/yesno.h: Likewise.
96515         * posix-modules: Likewise.
96516         * tests/test-alloca-opt.c: Likewise.
96517         * tests/test-arcfour.c: Likewise.
96518         * tests/test-arctwo.c: Likewise.
96519         * tests/test-argmatch.c: Likewise.
96520         * tests/test-argp-2.sh: Likewise.
96521         * tests/test-argp.c: Likewise.
96522         * tests/test-arpa_inet.c: Likewise.
96523         * tests/test-array_list.c: Likewise.
96524         * tests/test-array_oset.c: Likewise.
96525         * tests/test-atexit.c: Likewise.
96526         * tests/test-avltree_list.c: Likewise.
96527         * tests/test-avltree_oset.c: Likewise.
96528         * tests/test-avltreehash_list.c: Likewise.
96529         * tests/test-base64.c: Likewise.
96530         * tests/test-binary-io.c: Likewise.
96531         * tests/test-byteswap.c: Likewise.
96532         * tests/test-c-ctype.c: Likewise.
96533         * tests/test-c-strcasecmp.c: Likewise.
96534         * tests/test-c-strcasestr.c: Likewise.
96535         * tests/test-c-strncasecmp.c: Likewise.
96536         * tests/test-c-strstr.c: Likewise.
96537         * tests/test-canonicalize-lgpl.c: Likewise.
96538         * tests/test-canonicalize.c: Likewise.
96539         * tests/test-carray_list.c: Likewise.
96540         * tests/test-ceilf.c: Likewise.
96541         * tests/test-ceill.c: Likewise.
96542         * tests/test-count-one-bits.c: Likewise.
96543         * tests/test-crc.c: Likewise.
96544         * tests/test-dirname.c: Likewise.
96545         * tests/test-fbufmode.c: Likewise.
96546         * tests/test-fcntl.c: Likewise.
96547         * tests/test-fflush.c: Likewise.
96548         * tests/test-floorf.c: Likewise.
96549         * tests/test-floorl.c: Likewise.
96550         * tests/test-fopen.c: Likewise.
96551         * tests/test-fprintf-posix.c: Likewise.
96552         * tests/test-fprintf-posix.h: Likewise.
96553         * tests/test-fpurge.c: Likewise.
96554         * tests/test-freadable.c: Likewise.
96555         * tests/test-freadahead.c: Likewise.
96556         * tests/test-freading.c: Likewise.
96557         * tests/test-freopen.c: Likewise.
96558         * tests/test-frexp.c: Likewise.
96559         * tests/test-frexpl.c: Likewise.
96560         * tests/test-fseek.c: Likewise.
96561         * tests/test-fseeko.c: Likewise.
96562         * tests/test-fseterr.c: Likewise.
96563         * tests/test-fstrcmp.c: Likewise.
96564         * tests/test-ftell.c: Likewise.
96565         * tests/test-ftello.c: Likewise.
96566         * tests/test-fwritable.c: Likewise.
96567         * tests/test-fwriting.c: Likewise.
96568         * tests/test-getaddrinfo.c: Likewise.
96569         * tests/test-getpass.c: Likewise.
96570         * tests/test-gettimeofday.c: Likewise.
96571         * tests/test-hmac-md5.c: Likewise.
96572         * tests/test-hmac-sha1.c: Likewise.
96573         * tests/test-iconv.c: Likewise.
96574         * tests/test-iconvme.c: Likewise.
96575         * tests/test-inttypes.c: Likewise.
96576         * tests/test-isnan.c: Likewise.
96577         * tests/test-isnanf.c: Likewise.
96578         * tests/test-isnanl-nolibm.c: Likewise.
96579         * tests/test-isnanl.c: Likewise.
96580         * tests/test-isnanl.h: Likewise.
96581         * tests/test-ldexpl.c: Likewise.
96582         * tests/test-linked_list.c: Likewise.
96583         * tests/test-linkedhash_list.c: Likewise.
96584         * tests/test-locale.c: Likewise.
96585         * tests/test-localename.c: Likewise.
96586         * tests/test-lock.c: Likewise.
96587         * tests/test-lseek.c: Likewise.
96588         * tests/test-malloca.c: Likewise.
96589         * tests/test-math.c: Likewise.
96590         * tests/test-mbscasecmp.c: Likewise.
96591         * tests/test-mbscasestr1.c: Likewise.
96592         * tests/test-mbscasestr2.c: Likewise.
96593         * tests/test-mbscasestr3.c: Likewise.
96594         * tests/test-mbscasestr4.c: Likewise.
96595         * tests/test-mbschr.c: Likewise.
96596         * tests/test-mbscspn.c: Likewise.
96597         * tests/test-mbsncasecmp.c: Likewise.
96598         * tests/test-mbspbrk.c: Likewise.
96599         * tests/test-mbspcasecmp.c: Likewise.
96600         * tests/test-mbsrchr.c: Likewise.
96601         * tests/test-mbsspn.c: Likewise.
96602         * tests/test-mbsstr1.c: Likewise.
96603         * tests/test-mbsstr2.c: Likewise.
96604         * tests/test-mbsstr3.c: Likewise.
96605         * tests/test-md5.c: Likewise.
96606         * tests/test-memmem.c: Likewise.
96607         * tests/test-netinet_in.c: Likewise.
96608         * tests/test-open.c: Likewise.
96609         * tests/test-printf-frexp.c: Likewise.
96610         * tests/test-printf-frexpl.c: Likewise.
96611         * tests/test-printf-posix.c: Likewise.
96612         * tests/test-printf-posix.h: Likewise.
96613         * tests/test-rbtree_list.c: Likewise.
96614         * tests/test-rbtree_oset.c: Likewise.
96615         * tests/test-rbtreehash_list.c: Likewise.
96616         * tests/test-read-file.c: Likewise.
96617         * tests/test-rijndael.c: Likewise.
96618         * tests/test-search.c: Likewise.
96619         * tests/test-signbit.c: Likewise.
96620         * tests/test-sleep.c: Likewise.
96621         * tests/test-snprintf-posix.c: Likewise.
96622         * tests/test-snprintf-posix.h: Likewise.
96623         * tests/test-snprintf.c: Likewise.
96624         * tests/test-sprintf-posix.c: Likewise.
96625         * tests/test-sprintf-posix.h: Likewise.
96626         * tests/test-stat-time.c: Likewise.
96627         * tests/test-stdbool.c: Likewise.
96628         * tests/test-stdint.c: Likewise.
96629         * tests/test-stdio.c: Likewise.
96630         * tests/test-stdlib.c: Likewise.
96631         * tests/test-stpncpy.c: Likewise.
96632         * tests/test-strcasestr.c: Likewise.
96633         * tests/test-striconv.c: Likewise.
96634         * tests/test-striconveh.c: Likewise.
96635         * tests/test-striconveha.c: Likewise.
96636         * tests/test-string.c: Likewise.
96637         * tests/test-sys_select.c: Likewise.
96638         * tests/test-sys_socket.c: Likewise.
96639         * tests/test-sys_stat.c: Likewise.
96640         * tests/test-sys_time.c: Likewise.
96641         * tests/test-sysexits.c: Likewise.
96642         * tests/test-time.c: Likewise.
96643         * tests/test-tls.c: Likewise.
96644         * tests/test-trunc.c: Likewise.
96645         * tests/test-truncf.c: Likewise.
96646         * tests/test-truncl.c: Likewise.
96647         * tests/test-unistd.c: Likewise.
96648         * tests/test-vasnprintf-posix.c: Likewise.
96649         * tests/test-vasnprintf-posix2.c: Likewise.
96650         * tests/test-vasnprintf.c: Likewise.
96651         * tests/test-vasprintf-posix.c: Likewise.
96652         * tests/test-vasprintf.c: Likewise.
96653         * tests/test-verify.c: Likewise.
96654         * tests/test-vfprintf-posix.c: Likewise.
96655         * tests/test-vprintf-posix.c: Likewise.
96656         * tests/test-vsnprintf-posix.c: Likewise.
96657         * tests/test-vsnprintf.c: Likewise.
96658         * tests/test-vsprintf-posix.c: Likewise.
96659         * tests/test-wchar.c: Likewise.
96660         * tests/test-wctype.c: Likewise.
96661         * tests/test-wcwidth.c: Likewise.
96662         * tests/test-xstrtol.c: Likewise.
96663         * tests/test-xvasprintf.c: Likewise.
96664         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
96665         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
96666         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
96667         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
96668         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
96669         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
96670         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
96671         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
96672         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
96673         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
96674         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
96675         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
96676         * tests/uniname/test-uninames.c: Likewise.
96677         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
96678         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
96679         * tests/unistdio/test-u16-printf1.h: Likewise.
96680         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
96681         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
96682         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
96683         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
96684         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
96685         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
96686         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
96687         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
96688         * tests/unistdio/test-u32-printf1.h: Likewise.
96689         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
96690         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
96691         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
96692         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
96693         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
96694         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
96695         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
96696         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
96697         * tests/unistdio/test-u8-printf1.h: Likewise.
96698         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
96699         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
96700         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
96701         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
96702         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
96703         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
96704         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
96705         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
96706         * tests/unistdio/test-ulc-printf1.h: Likewise.
96707         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
96708         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
96709         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
96710         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
96711         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
96712         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
96713         * tests/uniwidth/test-u16-strwidth.c: Likewise.
96714         * tests/uniwidth/test-u16-width.c: Likewise.
96715         * tests/uniwidth/test-u32-strwidth.c: Likewise.
96716         * tests/uniwidth/test-u32-width.c: Likewise.
96717         * tests/uniwidth/test-u8-strwidth.c: Likewise.
96718         * tests/uniwidth/test-u8-width.c: Likewise.
96719         * tests/uniwidth/test-uc_width.c: Likewise.
96720         * config/srclist-update: Likewise.
96721         (fixlicense): Update to GPLv3+.
96723         Change copyright notice from LGPLv2.1+ to LGPLv3+.
96724         * tests/test-tsearch.c: Change copyright notice.
96726         Change copyright notice from LGPLv2.0+ to LGPLv3+.
96727         * lib/c-strcaseeq.h: Change copyright notice.
96728         * lib/streq.h: Likewise.
96729         * lib/uniconv.h: Likewise.
96730         * lib/uniconv/u-conv-from-enc.h: Likewise.
96731         * lib/uniconv/u-conv-to-enc.h: Likewise.
96732         * lib/uniconv/u-strconv-from-enc.h: Likewise.
96733         * lib/uniconv/u-strconv-to-enc.h: Likewise.
96734         * lib/uniconv/u16-conv-from-enc.c: Likewise.
96735         * lib/uniconv/u16-conv-to-enc.c: Likewise.
96736         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
96737         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
96738         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
96739         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
96740         * lib/uniconv/u32-conv-from-enc.c: Likewise.
96741         * lib/uniconv/u32-conv-to-enc.c: Likewise.
96742         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
96743         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
96744         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
96745         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
96746         * lib/uniconv/u8-conv-from-enc.c: Likewise.
96747         * lib/uniconv/u8-conv-to-enc.c: Likewise.
96748         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
96749         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
96750         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
96751         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
96752         * lib/uniname.h: Likewise.
96753         * lib/uniname/uniname.c: Likewise.
96754         * lib/unistdio.h: Likewise.
96755         * lib/unistdio/u-asnprintf.h: Likewise.
96756         * lib/unistdio/u-asprintf.h: Likewise.
96757         * lib/unistdio/u-printf-args.c: Likewise.
96758         * lib/unistdio/u-printf-args.h: Likewise.
96759         * lib/unistdio/u-printf-parse.h: Likewise.
96760         * lib/unistdio/u-snprintf.h: Likewise.
96761         * lib/unistdio/u-sprintf.h: Likewise.
96762         * lib/unistdio/u-vasprintf.h: Likewise.
96763         * lib/unistdio/u-vsnprintf.h: Likewise.
96764         * lib/unistdio/u-vsprintf.h: Likewise.
96765         * lib/unistdio/u16-asnprintf.c: Likewise.
96766         * lib/unistdio/u16-asprintf.c: Likewise.
96767         * lib/unistdio/u16-printf-parse.c: Likewise.
96768         * lib/unistdio/u16-snprintf.c: Likewise.
96769         * lib/unistdio/u16-sprintf.c: Likewise.
96770         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
96771         * lib/unistdio/u16-u16-asprintf.c: Likewise.
96772         * lib/unistdio/u16-u16-snprintf.c: Likewise.
96773         * lib/unistdio/u16-u16-sprintf.c: Likewise.
96774         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
96775         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
96776         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
96777         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
96778         * lib/unistdio/u16-vasnprintf.c: Likewise.
96779         * lib/unistdio/u16-vasprintf.c: Likewise.
96780         * lib/unistdio/u16-vsnprintf.c: Likewise.
96781         * lib/unistdio/u16-vsprintf.c: Likewise.
96782         * lib/unistdio/u32-asnprintf.c: Likewise.
96783         * lib/unistdio/u32-asprintf.c: Likewise.
96784         * lib/unistdio/u32-printf-parse.c: Likewise.
96785         * lib/unistdio/u32-snprintf.c: Likewise.
96786         * lib/unistdio/u32-sprintf.c: Likewise.
96787         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
96788         * lib/unistdio/u32-u32-asprintf.c: Likewise.
96789         * lib/unistdio/u32-u32-snprintf.c: Likewise.
96790         * lib/unistdio/u32-u32-sprintf.c: Likewise.
96791         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
96792         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
96793         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
96794         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
96795         * lib/unistdio/u32-vasnprintf.c: Likewise.
96796         * lib/unistdio/u32-vasprintf.c: Likewise.
96797         * lib/unistdio/u32-vsnprintf.c: Likewise.
96798         * lib/unistdio/u32-vsprintf.c: Likewise.
96799         * lib/unistdio/u8-asnprintf.c: Likewise.
96800         * lib/unistdio/u8-asprintf.c: Likewise.
96801         * lib/unistdio/u8-printf-parse.c: Likewise.
96802         * lib/unistdio/u8-snprintf.c: Likewise.
96803         * lib/unistdio/u8-sprintf.c: Likewise.
96804         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
96805         * lib/unistdio/u8-u8-asprintf.c: Likewise.
96806         * lib/unistdio/u8-u8-snprintf.c: Likewise.
96807         * lib/unistdio/u8-u8-sprintf.c: Likewise.
96808         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
96809         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
96810         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
96811         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
96812         * lib/unistdio/u8-vasnprintf.c: Likewise.
96813         * lib/unistdio/u8-vasprintf.c: Likewise.
96814         * lib/unistdio/u8-vsnprintf.c: Likewise.
96815         * lib/unistdio/u8-vsprintf.c: Likewise.
96816         * lib/unistdio/ulc-asnprintf.c: Likewise.
96817         * lib/unistdio/ulc-asprintf.c: Likewise.
96818         * lib/unistdio/ulc-printf-parse.c: Likewise.
96819         * lib/unistdio/ulc-snprintf.c: Likewise.
96820         * lib/unistdio/ulc-sprintf.c: Likewise.
96821         * lib/unistdio/ulc-vasnprintf.c: Likewise.
96822         * lib/unistdio/ulc-vasprintf.c: Likewise.
96823         * lib/unistdio/ulc-vsnprintf.c: Likewise.
96824         * lib/unistdio/ulc-vsprintf.c: Likewise.
96825         * lib/unistr.h: Likewise.
96826         * lib/unistr/u-cpy-alloc.h: Likewise.
96827         * lib/unistr/u-cpy.h: Likewise.
96828         * lib/unistr/u-endswith.h: Likewise.
96829         * lib/unistr/u-move.h: Likewise.
96830         * lib/unistr/u-set.h: Likewise.
96831         * lib/unistr/u-startswith.h: Likewise.
96832         * lib/unistr/u-stpcpy.h: Likewise.
96833         * lib/unistr/u-stpncpy.h: Likewise.
96834         * lib/unistr/u-strcat.h: Likewise.
96835         * lib/unistr/u-strcpy.h: Likewise.
96836         * lib/unistr/u-strcspn.h: Likewise.
96837         * lib/unistr/u-strdup.h: Likewise.
96838         * lib/unistr/u-strlen.h: Likewise.
96839         * lib/unistr/u-strncat.h: Likewise.
96840         * lib/unistr/u-strncpy.h: Likewise.
96841         * lib/unistr/u-strnlen.h: Likewise.
96842         * lib/unistr/u-strpbrk.h: Likewise.
96843         * lib/unistr/u-strspn.h: Likewise.
96844         * lib/unistr/u-strstr.h: Likewise.
96845         * lib/unistr/u-strtok.h: Likewise.
96846         * lib/unistr/u16-check.c: Likewise.
96847         * lib/unistr/u16-chr.c: Likewise.
96848         * lib/unistr/u16-cmp.c: Likewise.
96849         * lib/unistr/u16-cpy-alloc.c: Likewise.
96850         * lib/unistr/u16-cpy.c: Likewise.
96851         * lib/unistr/u16-endswith.c: Likewise.
96852         * lib/unistr/u16-mblen.c: Likewise.
96853         * lib/unistr/u16-mbsnlen.c: Likewise.
96854         * lib/unistr/u16-mbtouc-aux.c: Likewise.
96855         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
96856         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
96857         * lib/unistr/u16-mbtouc.c: Likewise.
96858         * lib/unistr/u16-mbtoucr.c: Likewise.
96859         * lib/unistr/u16-move.c: Likewise.
96860         * lib/unistr/u16-next.c: Likewise.
96861         * lib/unistr/u16-prev.c: Likewise.
96862         * lib/unistr/u16-set.c: Likewise.
96863         * lib/unistr/u16-startswith.c: Likewise.
96864         * lib/unistr/u16-stpcpy.c: Likewise.
96865         * lib/unistr/u16-stpncpy.c: Likewise.
96866         * lib/unistr/u16-strcat.c: Likewise.
96867         * lib/unistr/u16-strchr.c: Likewise.
96868         * lib/unistr/u16-strcmp.c: Likewise.
96869         * lib/unistr/u16-strcpy.c: Likewise.
96870         * lib/unistr/u16-strcspn.c: Likewise.
96871         * lib/unistr/u16-strdup.c: Likewise.
96872         * lib/unistr/u16-strlen.c: Likewise.
96873         * lib/unistr/u16-strmblen.c: Likewise.
96874         * lib/unistr/u16-strmbtouc.c: Likewise.
96875         * lib/unistr/u16-strncat.c: Likewise.
96876         * lib/unistr/u16-strncmp.c: Likewise.
96877         * lib/unistr/u16-strncpy.c: Likewise.
96878         * lib/unistr/u16-strnlen.c: Likewise.
96879         * lib/unistr/u16-strpbrk.c: Likewise.
96880         * lib/unistr/u16-strrchr.c: Likewise.
96881         * lib/unistr/u16-strspn.c: Likewise.
96882         * lib/unistr/u16-strstr.c: Likewise.
96883         * lib/unistr/u16-strtok.c: Likewise.
96884         * lib/unistr/u16-to-u32.c: Likewise.
96885         * lib/unistr/u16-to-u8.c: Likewise.
96886         * lib/unistr/u16-uctomb-aux.c: Likewise.
96887         * lib/unistr/u16-uctomb.c: Likewise.
96888         * lib/unistr/u32-check.c: Likewise.
96889         * lib/unistr/u32-chr.c: Likewise.
96890         * lib/unistr/u32-cmp.c: Likewise.
96891         * lib/unistr/u32-cpy-alloc.c: Likewise.
96892         * lib/unistr/u32-cpy.c: Likewise.
96893         * lib/unistr/u32-endswith.c: Likewise.
96894         * lib/unistr/u32-mblen.c: Likewise.
96895         * lib/unistr/u32-mbsnlen.c: Likewise.
96896         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
96897         * lib/unistr/u32-mbtouc.c: Likewise.
96898         * lib/unistr/u32-mbtoucr.c: Likewise.
96899         * lib/unistr/u32-move.c: Likewise.
96900         * lib/unistr/u32-next.c: Likewise.
96901         * lib/unistr/u32-prev.c: Likewise.
96902         * lib/unistr/u32-set.c: Likewise.
96903         * lib/unistr/u32-startswith.c: Likewise.
96904         * lib/unistr/u32-stpcpy.c: Likewise.
96905         * lib/unistr/u32-stpncpy.c: Likewise.
96906         * lib/unistr/u32-strcat.c: Likewise.
96907         * lib/unistr/u32-strchr.c: Likewise.
96908         * lib/unistr/u32-strcmp.c: Likewise.
96909         * lib/unistr/u32-strcpy.c: Likewise.
96910         * lib/unistr/u32-strcspn.c: Likewise.
96911         * lib/unistr/u32-strdup.c: Likewise.
96912         * lib/unistr/u32-strlen.c: Likewise.
96913         * lib/unistr/u32-strmblen.c: Likewise.
96914         * lib/unistr/u32-strmbtouc.c: Likewise.
96915         * lib/unistr/u32-strncat.c: Likewise.
96916         * lib/unistr/u32-strncmp.c: Likewise.
96917         * lib/unistr/u32-strncpy.c: Likewise.
96918         * lib/unistr/u32-strnlen.c: Likewise.
96919         * lib/unistr/u32-strpbrk.c: Likewise.
96920         * lib/unistr/u32-strrchr.c: Likewise.
96921         * lib/unistr/u32-strspn.c: Likewise.
96922         * lib/unistr/u32-strstr.c: Likewise.
96923         * lib/unistr/u32-strtok.c: Likewise.
96924         * lib/unistr/u32-to-u16.c: Likewise.
96925         * lib/unistr/u32-to-u8.c: Likewise.
96926         * lib/unistr/u32-uctomb.c: Likewise.
96927         * lib/unistr/u8-check.c: Likewise.
96928         * lib/unistr/u8-chr.c: Likewise.
96929         * lib/unistr/u8-cmp.c: Likewise.
96930         * lib/unistr/u8-cpy-alloc.c: Likewise.
96931         * lib/unistr/u8-cpy.c: Likewise.
96932         * lib/unistr/u8-endswith.c: Likewise.
96933         * lib/unistr/u8-mblen.c: Likewise.
96934         * lib/unistr/u8-mbsnlen.c: Likewise.
96935         * lib/unistr/u8-mbtouc-aux.c: Likewise.
96936         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
96937         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
96938         * lib/unistr/u8-mbtouc.c: Likewise.
96939         * lib/unistr/u8-mbtoucr.c: Likewise.
96940         * lib/unistr/u8-move.c: Likewise.
96941         * lib/unistr/u8-next.c: Likewise.
96942         * lib/unistr/u8-prev.c: Likewise.
96943         * lib/unistr/u8-set.c: Likewise.
96944         * lib/unistr/u8-startswith.c: Likewise.
96945         * lib/unistr/u8-stpcpy.c: Likewise.
96946         * lib/unistr/u8-stpncpy.c: Likewise.
96947         * lib/unistr/u8-strcat.c: Likewise.
96948         * lib/unistr/u8-strchr.c: Likewise.
96949         * lib/unistr/u8-strcmp.c: Likewise.
96950         * lib/unistr/u8-strcpy.c: Likewise.
96951         * lib/unistr/u8-strcspn.c: Likewise.
96952         * lib/unistr/u8-strdup.c: Likewise.
96953         * lib/unistr/u8-strlen.c: Likewise.
96954         * lib/unistr/u8-strmblen.c: Likewise.
96955         * lib/unistr/u8-strmbtouc.c: Likewise.
96956         * lib/unistr/u8-strncat.c: Likewise.
96957         * lib/unistr/u8-strncmp.c: Likewise.
96958         * lib/unistr/u8-strncpy.c: Likewise.
96959         * lib/unistr/u8-strnlen.c: Likewise.
96960         * lib/unistr/u8-strpbrk.c: Likewise.
96961         * lib/unistr/u8-strrchr.c: Likewise.
96962         * lib/unistr/u8-strspn.c: Likewise.
96963         * lib/unistr/u8-strstr.c: Likewise.
96964         * lib/unistr/u8-strtok.c: Likewise.
96965         * lib/unistr/u8-to-u16.c: Likewise.
96966         * lib/unistr/u8-to-u32.c: Likewise.
96967         * lib/unistr/u8-uctomb-aux.c: Likewise.
96968         * lib/unistr/u8-uctomb.c: Likewise.
96969         * lib/unitypes.h: Likewise.
96970         * lib/uniwidth.h: Likewise.
96971         * lib/uniwidth/cjk.h: Likewise.
96972         * lib/uniwidth/u16-strwidth.c: Likewise.
96973         * lib/uniwidth/u16-width.c: Likewise.
96974         * lib/uniwidth/u32-strwidth.c: Likewise.
96975         * lib/uniwidth/u32-width.c: Likewise.
96976         * lib/uniwidth/u8-strwidth.c: Likewise.
96977         * lib/uniwidth/u8-width.c: Likewise.
96978         * lib/uniwidth/width.c: Likewise.
96980 2007-10-07  Bruno Haible  <bruno@clisp.org>
96982         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
96983         The file is still under LGPL (see modules/inttypes).
96985 2007-10-06  Bruno Haible  <bruno@clisp.org>
96987         * modules/trunc (Dependencies): Add 'extensions'.
96988         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
96989         Reported by Ben Pfaff <blp@gnu.org>.
96991 2007-10-06  Bruno Haible  <bruno@clisp.org>
96993         * modules/freopen-tests: New file.
96994         * tests/test-freopen.c: New file.
96996         * modules/fopen-tests: New file.
96997         * tests/test-fopen.c: New file.
96999         * modules/fopen: New file.
97000         * lib/fopen.c: New file.
97001         * m4/fopen.m4: New file.
97002         * modules/freopen: New file.
97003         * lib/freopen.c: New file.
97004         * m4/freopen.m4: New file.
97005         * lib/stdio.in.h (fopen, freopen): New declarations.
97006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97007         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97008         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97009         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97010         * doc/functions/fopen.texi: Mention the 'fopen' module.
97011         * doc/functions/freopen.texi: Mention the 'freopen' module.
97013 2007-10-06  Bruno Haible  <bruno@clisp.org>
97015         * modules/open-tests: New file.
97016         * tests/test-open.c: New file.
97018         * modules/open: New file.
97019         * lib/open.c: New file.
97020         * m4/open.m4: New file.
97021         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97022         lib/open.c does.
97023         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97024         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97025         macros.
97026         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97027         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97028         REPLACE_OPEN.
97029         * doc/functions/open.texi: Mention the 'open' module.
97031 2007-10-04  Bruno Haible  <bruno@clisp.org>
97033         * modules/ceill-tests: New file.
97034         * tests/test-ceill.c: New file.
97036         * modules/ceill: New file.
97037         * lib/ceill.c: Replace entire file.
97038         * m4/ceill.m4: New file.
97039         * lib/math.in.h (ceill): Replace declaration.
97040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97041         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97042         * doc/functions/ceill.texi: Mention the 'ceill' module.
97043         * modules/mathl (Files): Remove lib/ceill.c.
97044         (Depends-on): Add ceill.
97046 2007-10-04  Bruno Haible  <bruno@clisp.org>
97048         * modules/ceilf-tests: New file.
97049         * tests/test-ceilf.c: New file.
97051         * modules/ceilf: New file.
97052         * lib/ceil.c: New file.
97053         * lib/ceilf.c: New file.
97054         * m4/ceilf.m4: New file.
97055         * lib/math.in.h (ceilf): New declaration.
97056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97057         HAVE_DECL_CEILF.
97058         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97059         HAVE_DECL_CEILF.
97060         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97062 2007-10-04  Bruno Haible  <bruno@clisp.org>
97064         * modules/floorl-tests: New file.
97065         * tests/test-floorl.c: New file.
97067         * modules/floorl: New file.
97068         * lib/floorl.c: Replace entire file.
97069         * m4/floorl.m4: New file.
97070         * lib/math.in.h (floorl): Replace declaration.
97071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97072         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97073         * doc/functions/floorl.texi: Mention the 'floorl' module.
97074         * modules/mathl (Files): Remove lib/floorl.c.
97075         (Depends-on): Add floorl.
97077 2007-10-04  Bruno Haible  <bruno@clisp.org>
97079         * modules/floorf-tests: New file.
97080         * tests/test-floorf.c: New file.
97082         * modules/floorf: New file.
97083         * lib/floor.c: New file.
97084         * lib/floorf.c: New file.
97085         * m4/floorf.m4: New file.
97086         * lib/math.in.h (floorf): New declaration.
97087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97088         HAVE_DECL_FLOORF.
97089         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97090         HAVE_DECL_FLOORF.
97091         * doc/functions/floorf.texi: Mention the 'floorf' module.
97093 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97094             Bruno Haible  <bruno@clisp.org>
97096         Advertise for the Git server instead of the CVS server.
97097         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97098         repository instead of the CVS one.
97099         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97100         about all VCS systems generically.
97101         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97103 2007-10-04  Bruno Haible  <bruno@clisp.org>
97105         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97106         means.
97107         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97109 2007-10-04  Bruno Haible  <bruno@clisp.org>
97111         * modules/truncl-tests: New file.
97112         * tests/test-truncl.c: New file.
97114         * modules/truncl: New file.
97115         * lib/truncl.c: New file.
97116         * m4/truncl.m4: New file.
97117         * lib/math.in.h (truncl): New declaration.
97118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97119         HAVE_DECL_TRUNCL.
97120         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97121         HAVE_DECL_TRUNCL.
97122         * doc/functions/truncl.texi: Mention the 'truncl' module.
97124 2007-10-04  Bruno Haible  <bruno@clisp.org>
97126         * modules/truncf-tests: New file.
97127         * tests/test-truncf.c: New file.
97129         * modules/truncf: New file.
97130         * lib/trunc.c: Make paramerizable through USE_* macros.
97131         * lib/truncf.c: New file.
97132         * m4/truncf.m4: New file.
97133         * lib/math.in.h (truncf): New declaration.
97134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97135         HAVE_DECL_TRUNCF.
97136         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97137         HAVE_DECL_TRUNCF.
97138         * doc/functions/truncf.texi: Mention the 'truncf' module.
97140 2007-10-03  Bruno Haible  <bruno@clisp.org>
97142         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97143         augmentation also for tests modules.
97144         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97145         * modules/atexit-tests (Makefile.am): Likewise.
97146         * modules/binary-io-tests (Makefile.am): Likewise.
97147         * modules/c-strcase-tests (Makefile.am): Likewise.
97148         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97149         * modules/canonicalize-tests (Makefile.am): Likewise.
97150         * modules/closein-tests (Makefile.am): Likewise.
97151         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97152         * modules/freadahead-tests (Makefile.am): Likewise.
97153         * modules/fseek-tests (Makefile.am): Likewise.
97154         * modules/fseeko-tests (Makefile.am): Likewise.
97155         * modules/ftell-tests (Makefile.am): Likewise.
97156         * modules/ftello-tests (Makefile.am): Likewise.
97157         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97158         * modules/isnanl-tests (Makefile.am): Likewise.
97159         * modules/lseek-tests (Makefile.am): Likewise.
97160         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97161         * modules/mbscasestr-tests (Makefile.am): Likewise.
97162         * modules/mbschr-tests (Makefile.am): Likewise.
97163         * modules/mbscspn-tests (Makefile.am): Likewise.
97164         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97165         * modules/mbspbrk-tests (Makefile.am): Likewise.
97166         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97167         * modules/mbsrchr-tests (Makefile.am): Likewise.
97168         * modules/mbsspn-tests (Makefile.am): Likewise.
97169         * modules/mbsstr-tests (Makefile.am): Likewise.
97170         * modules/printf-posix-tests (Makefile.am): Likewise.
97171         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97172         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97173         * modules/tsearch-tests (Makefile.am): Likewise.
97174         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97175         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97176         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97177         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97178         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97179         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97180         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97181         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97182         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97183         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97184         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97185         * modules/xstrtol-tests (Makefile.am): Likewise.
97186         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97187         * modules/yesno-tests (Makefile.am): Likewise.
97189 2007-10-03  Bruno Haible  <bruno@clisp.org>
97191         * modules/trunc-tests: New file.
97192         * tests/test-trunc.c: New file.
97194         * modules/trunc: New file.
97195         * lib/trunc.c: New file.
97196         * m4/trunc.m4: New file.
97197         * lib/math.in.h (trunc): New declaration.
97198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97199         HAVE_DECL_TRUNC.
97200         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97201         HAVE_DECL_TRUNC.
97202         * doc/functions/trunc.texi: Mention the 'trunc' module.
97204 2007-10-03  Bruno Haible  <bruno@clisp.org>
97206         * tests/test-fpending.c: New file, mostly copied
97207         from coreutils/lib/t-fpending.c.
97208         * modules/fpending-tests: New file.
97210 2007-10-03  Bruno Haible  <bruno@clisp.org>
97212         Port the stdio extensions to QNX (untested).
97213         * lib/fseterr.c (fseterr): Add support for QNX.
97214         * lib/fbufmode.c (fbufmode): Likewise.
97215         * lib/freadable.c (freadable): Likewise.
97216         * lib/fwritable.c (fwritable): Likewise.
97217         * lib/freading.c (freading): Likewise.
97218         * lib/fwriting.c (fwriting): Likewise.
97219         * lib/freadahead.c (freadahed): Likewise.
97220         * lib/fpurge.c (fpurge): Likewise.
97221         * lib/fseeko.c (rpl_fseeko): Likewise.
97223 2007-10-03  Bruno Haible  <bruno@clisp.org>
97224             Jim Meyering  <jim@meyering.net>
97225             Eric Blake  <ebb9@byu.net>
97227         * doc/relocatable.texi: Use @command instead of @program.
97229 2007-10-02  Jim Meyering  <jim@meyering.net>
97231         Perform one more "_.h" -> ".in.h" substitution.
97232         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97233         instead of unistd_.h here, too.
97235 2007-10-01  Bruno Haible  <bruno@clisp.org>
97237         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97238         Needed for the alloca-opt module.
97240 2007-09-30  Bruno Haible  <bruno@clisp.org>
97242         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97243         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97244         alloca_.h.
97245         * lib/argz.in.h: Renamed from lib/argz_.h.
97246         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97247         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97248         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97249         byteswap_.h.
97250         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97251         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97252         dirent_.h.
97253         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97254         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97255         fcntl_.h.
97256         * lib/float.in.h: Renamed from lib/float_.h.
97257         * modules/float (Files, Makefile.am): Use float.in.h instead of
97258         float_.h.
97259         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97260         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97261         fnmatch_.h.
97262         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97263         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97264         getopt_.h.
97265         * lib/glob.in.h: Renamed from lib/glob_.h.
97266         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97267         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97268         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97269         iconv_.h.
97270         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97271         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97272         inttypes_.h.
97273         * lib/locale.in.h: Renamed from lib/locale_.h.
97274         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97275         locale_.h.
97276         * lib/math.in.h: Renamed from lib/math_.h.
97277         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97278         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97279         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97280         of netinet_in_.h. Add dependency.
97281         * lib/poll.in.h: Renamed from lib/poll_.h.
97282         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97283         * lib/search.in.h: Renamed from lib/search_.h.
97284         * modules/search (Files, Makefile.am): Use search.in.h instead of
97285         search_.h.
97286         * lib/signal.in.h: Renamed from lib/signal_.h.
97287         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97288         _signal.h.
97289         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97290         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97291         stdbool_.h.
97292         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97293         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97294         stdint_.h.
97295         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97296         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97297         stdio_.h.
97298         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97299         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97300         stdlib_.h.
97301         * lib/string.in.h: Renamed from lib/string_.h.
97302         * modules/string (Files, Makefile.am): Use string.in.h instead of
97303         string_.h.
97304         * doc/gnulib-tool.texi (Initial import): Update.
97305         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97306         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97307         of sys_select_.h. Add dependency.
97308         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97309         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97310         of sys_socket_.h.
97311         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97312         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97313         sys_stat_.h.
97314         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97315         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97316         sys_time_.h.
97317         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97318         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97319         sysexits_.h.
97320         * lib/time.in.h: Renamed from lib/time_.h.
97321         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97322         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97323         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97324         unistd_.h.
97325         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97326         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97327         wchar_.h.
97328         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97329         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97330         wctype_.h.
97331         * build-aux/bootstrap (slurp): Update.
97332         * lib/.cppi-disable: Update.
97334 2007-09-30  Bruno Haible  <bruno@clisp.org>
97336         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97337         Needed on BeOS.
97339 2007-09-30  Bruno Haible  <bruno@clisp.org>
97341         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97343 2007-09-29  Bruno Haible  <bruno@clisp.org>
97345         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97347 2007-09-29  Bruno Haible  <bruno@clisp.org>
97349         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97350         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97351         * build-aux/install-reloc: Compile also areadlink.c.
97352         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97354 2007-09-29  Bruno Haible  <bruno@clisp.org>
97356         * gnulib-tool (func_emit_initmacro_done): Indentation.
97358 2007-09-29  Bruno Haible  <bruno@clisp.org>
97360         * README: Add CVS checkout update instructions.
97361         Info from Bob Proulx <bob@proulx.com>.
97363 2007-09-28  Eric Blake  <ebb9@byu.net>
97365         Provide move-if-change.
97366         * build-aux/move-if-change: New file, based on best practice
97367         rather than any canonical upstream location.
97369 2007-09-28  Jim Meyering  <jim@meyering.net>
97371         Fix canonicalize loop-detection corner case.
97372         Do not attempt to stat the symlink values stored via seen_triple.
97373         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97374         on linux-2.6.18, (but not 2.6.22).
97375         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97376         triple_compare.  The former compares dev,ino,filename, while the latter
97377         would actually stat dirname(filename) when dev and ino were equal.
97378         * lib/hash-triple.c: Install <string.h>.
97379         (STREQ): Define.
97380         (triple_compare_ino_str): New function.
97381         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97383 2007-09-28  Eric Blake  <ebb9@byu.net>
97385         Enforce that AC_REPLACE_FUNCS files exist.
97386         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97387         override check for typos.
97389         Fix test-closein on Solaris 10.
97390         * tests/test-closein.c (main): Don't assume stdin can be inherited
97391         closed on all systems.
97392         * tests/test-closein.sh: Likewise.
97393         Reported by Piotr Tarnowski.
97395 2007-09-28  Jim Meyering  <jim@meyering.net>
97397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97399 2007-09-27  Jim Meyering  <jim@meyering.net>
97401         canonicalize: Avoid a false-positive cycle failure.
97402         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97403         Sort.  Remove cycle-check.
97404         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97405         not cycle-check.h.
97406         (seen_triple): New function.
97407         (canonicalize_filename_mode): Use it instead of cycle-check.
97408         * tests/test-canonicalize.c: Add a test for this bug.
97409         * tests/test-canonicalize.sh: Set up and run the test.
97411         New module, file-set, from coreutils.
97412         * modules/file-set: Define it.
97413         * lib/file-set.c, lib/file-set.h: Implement.
97415         New module, hash-triple, from coreutils.
97416         * modules/hash-triple: Define it.
97417         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97419 2007-09-25  Eric Blake  <ebb9@byu.net>
97421         Fix strerror on Interix.
97422         * lib/string_.h (strerror): Declare replacement.
97423         * doc/functions/strerror.texi (strerror): Document the Interix
97424         shortcoming.
97425         * modules/string (Makefile.am): Support new hooks.
97426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97427         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97428         gl_FUNC_STRERROR_SEPARATE.
97429         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97430         * lib/strerror.c (rpl_strerror): Provide replacement.
97431         * modules/strerror (Depends-on): Add string.
97432         (configure.ac): Detect use of module.
97433         * tests/test-strerror.c: New file.
97434         * modules/strerror-tests: New test module.
97435         * modules/argp (Depends-on): Add strerror.
97436         * modules/error (Depends-on): Likewise.
97437         Reported by Martin Koeppe.
97439 2007-09-24  Bruno Haible  <bruno@clisp.org>
97441         * README: Update git instructions.
97443 2007-09-24  Eric Blake  <ebb9@byu.net>
97445         Revert fpending breakage from 2007-09-08.
97446         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97447         __fpending.c.
97449 2007-09-24  Jim Meyering  <jim@meyering.net>
97451         filenamecat.c: Add a test.
97452         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97453         showing how the function works when DIR is the empty string.
97455 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97457         * tests/test-canonicalize.sh: Turn on executable bit.
97459 2007-09-19  Eric Blake  <ebb9@byu.net>
97461         * README: Update CVS instructions.
97463 2007-09-18  Bruno Haible  <bruno@clisp.org>
97465         * modules/areadlink: New file.
97466         * lib/areadlink.h (areadlink): New declaration.
97467         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97469 2007-09-17  Jim Meyering  <jim@meyering.net>
97471         * lib/savewd.c (ESTALE) [!defined]: Define.
97472         Reported to be required on Interix by Martin Koeppe.
97474 2007-09-17  Bruno Haible  <bruno@clisp.org>
97476         * gnulib-tool (func_version): Use $version.
97478 2007-09-16  Bruno Haible  <bruno@clisp.org>
97480         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97481         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97482         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97483         Reported by Greg Schafer <gschafer@zip.com.au>.
97485 2007-09-15  Bruno Haible  <bruno@clisp.org>
97487         * gnulib-tool (sed): Try a little harder to make bash understand the
97488         alias.
97489         Reported by Bruce Korb <bruce.korb@gmail.com>.
97491 2007-09-13  Eric Blake  <ebb9@byu.net>
97493         * ChangeLog: Remove conflict markers.
97495 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97497         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97498         Reported by Bruno Haible <bruno@clisp.org>.
97500 2007-09-12  Bruno Haible  <bruno@clisp.org>
97502         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97503         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97504         is not defined.
97506 2007-09-12  Eric Blake  <ebb9@byu.net>
97508         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97510         Autoconf definition.
97511         * modules/euidaccess (Depends-on): Add extensions, for
97512         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97513         * modules/fnmatch (Depends-on): Likewise.
97514         * modules/getaddrinfo (Depends-on): Likewise.
97515         * modules/getdelim (Depends-on): Likewise.
97516         * modules/getline (Depends-on): Likewise.
97517         * modules/getsubopt (Depends-on): Likewise.
97518         * modules/gettext (Depends-on): Likewise.
97519         * modules/group-member (Depends-on): Likewise.
97520         * modules/mbchar (Depends-on): Likewise.
97521         * modules/memmem (Depends-on): Likewise.
97522         * modules/mempcpy (Depends-on): Likewise.
97523         * modules/memrchr (Depends-on): Likewise.
97524         * modules/pagealign_alloc (Depends-on): Likewise.
97525         * modules/readutmp (Depends-on): Likewise.
97526         * modules/stpcpy (Depends-on): Likewise.
97527         * modules/stpncpy (Depends-on): Likewise.
97528         * modules/strchrnul (Depends-on): Likewise.
97529         * modules/strndup (Depends-on): Likewise.
97530         * modules/strsep (Depends-on): Likewise.
97531         * modules/strverscmp (Depends-on): Likewise.
97532         * modules/vasprintf (Depends-on): Likewise.
97533         * modules/wcwidth (Depends-on): Likewise.
97534         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97535         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97536         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97539         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97540         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97541         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97542         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97543         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97545         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97546         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97547         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97548         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97549         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97550         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97551         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97553         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97554         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97555         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97556         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97557         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97558         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97560         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97561         so that lock.m4 can be used in gettext without extensions module.
97563 2007-09-11  Bruno Haible  <bruno@clisp.org>
97565         * m4/isc-posix.m4: Remove file.
97566         Suggested by Eric Blake.
97568 2007-09-11  Eric Blake  <ebb9@byu.net>
97570         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97572 2007-09-10  Bruno Haible  <bruno@clisp.org>
97574         * posix-modules: Fix typo in error message.
97575         Reported by Matt <mkraai@beckman.com>.
97577 2007-09-09  Bruno Haible  <bruno@clisp.org>
97579         * doc/functions/getdelim.texi: Update list of platforms lacking the
97580         function.
97581         * doc/functions/getline.texi: Likewise.
97583 2007-09-09  Jim Meyering  <jim@meyering.net>
97585         * lib/hash.c (hash_initialize): Detect calloc failure.
97586         Reported by Bruno Haible.
97588 2007-09-09  Bruno Haible  <bruno@clisp.org>
97590         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
97591         malloc or realloc fails.
97593 2007-09-09  Bruno Haible  <bruno@clisp.org>
97595         * modules/getcwd (Depends-on): Add malloc-posix.
97596         * modules/glob (Depends-on): Likewise.
97597         * modules/putenv (Depends-on): Likewise.
97598         * modules/strdup (Depends-on): Likewise.
97599         * modules/getdelim (Depends-on): Add realloc-posix.
97600         * modules/read-file (Depends-on): Likewise.
97602 2007-09-09  Bruno Haible  <bruno@clisp.org>
97604         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
97605         (gl_FUNC_MALLOC_POSIX): Require it.
97606         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
97607         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
97608         * modules/realloc (Files): Add m4/malloc.m4.
97609         * modules/calloc (Files): Likewise.
97611 2007-09-09  Bruno Haible  <bruno@clisp.org>
97613         * modules/malloc-posix: New file.
97614         * modules/malloc (Depends-on): Add malloc-posix.
97615         * lib/malloc.c: Include errno.h.
97616         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
97617         and a POSIX-compatible malloc into a single function. Set ENOMEM
97618         when returning NULL.
97619         * m4/malloc.m4: New file.
97620         * doc/functions/malloc.texi: Mention the malloc-posix module.
97621         * lib/stdlib_.h (malloc): New declaration.
97622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97623         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
97624         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
97625         and HAVE_MALLOC_POSIX.
97627 2007-09-09  Bruno Haible  <bruno@clisp.org>
97629         * modules/realloc-posix: New file.
97630         * modules/realloc (Depends-on): Add realloc-posix.
97631         * lib/realloc.c: Include errno.h.
97632         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
97633         and a POSIX-compatible realloc into a single function. Set ENOMEM
97634         when returning NULL.
97635         * m4/realloc.m4: New file.
97636         * doc/functions/realloc.texi: Mention the realloc-posix module.
97637         * lib/stdlib_.h (realloc): New declaration.
97638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97639         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
97640         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
97641         and HAVE_REALLOC_POSIX.
97643 2007-09-09  Bruno Haible  <bruno@clisp.org>
97645         * modules/calloc-posix: New file.
97646         * modules/calloc (Depends-on): Add calloc-posix.
97647         * lib/calloc.c: Include errno.h.
97648         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
97649         and a POSIX-compatible calloc into a single function. Set ENOMEM
97650         when returning NULL.
97651         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
97652         * doc/functions/calloc.texi: Mention the calloc-posix module.
97653         * lib/stdlib_.h (calloc): New declaration.
97654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97655         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
97656         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
97657         and HAVE_CALLOC_POSIX.
97659 2007-09-09  Bruno Haible  <bruno@clisp.org>
97661         Allow for modules to show an arbitrary notice.
97662         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
97663         * gnulib-tool: New option --extract-notice.
97664         (func_usage): Document it.
97665         (sed_extract_prog): Update.
97666         (func_get_notice): New function.
97667         (func_modules_notice): New function.
97668         (func_import, func_create_testdir): Invoke it.
97669         Suggested by Jim Meyering.
97671 2007-09-09  Bruno Haible  <bruno@clisp.org>
97673         * gnulib-tool: New options --verbose, --quiet.
97674         (func_usage): Document them.
97675         (verbose): New variable.
97676         (func_execute_command): New function.
97677         (func_import): Don't show the module list and the file list if
97678         $verbose < 0.
97679         (func_create_testdir): Likewise. Use func_execute_command.
97680         (func_create_megatestdir): Use func_execute_command.
97682 2007-09-08  Bruno Haible  <bruno@clisp.org>
97684         * gnulib-tool (func_import): Prefer rsync over wget when available,
97685         for fetching the PO files.
97687 2007-09-08  Bruno Haible  <bruno@clisp.org>
97689         * posix-modules: New file. Portions copied from gnulib-tool.
97690         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
97692 2007-09-08  Jim Meyering  <jim@meyering.net>
97694         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
97695         * lib/fpending.h: Rename from __fpending.h.
97696         * lib/fpending.c: Rename from __fpending.c.
97697         Include "fpending.h", not "__fpending.h".
97698         * lib/__fpending.h, lib/__fpending.c: Remove files.
97699         * modules/fpending (Files): Reflect new file names.
97700         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
97702 2007-09-08  Bruno Haible  <bruno@clisp.org>
97704         * m4/inttypes-h.m4: Remove stub file.
97706 2007-09-07  Simon Josefsson  <simon@josefsson.org>
97708         * doc/headers/stdint.texi: Discuss #include_next issue.
97710 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97712         * build-aux/bootstrap: Remove obsolete comment about wget --help.
97714 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97716         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
97717         in variable name.
97719 2007-09-03  Jim Meyering  <jim@meyering.net>
97721         New module: git-version-gen.
97722         * modules/git-version-gen: New file.
97724         Import changes from coreutils for bootstrap script.
97726         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
97728         bootstrap: uses rsync to download the .po files
97729         * build-aux/bootstrap (po_download_command_format): New global.
97730         (download_po_files): Use rsync.
97731         (update_po_files): Don't remove .po files after download,
97732         so future rsync runs can take advantage of the copies.
97734         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
97736         Solve the unnecessary-.po-file-regeneration problem once and for all.
97737         * build-aux/bootstrap (download_po_files): New function, renamed from
97738         get_translations.  Now, downloads, but doesn't update LINGUAS.
97739         (update_po_files): New function.
97741         bootstrap: Ignore more.
97742         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
97743         uniwidth to e.g., lib/.gitignore.
97744         (slurp): Handle the sys_stat_.h -> sys mapping, too.
97746         * build-aux/bootstrap: New setting: vc_ignore.
97747         (insert_sorted_if_absent): Create $file if absent.
97748         Adapt to new, possibly empty, list: $vc_ignore.
97750         bootstrap: generate more ignorable names
97751         * build-aux/bootstrap (slurp): When generating ignorable names,
97752         also map .sin to .sed, .gperf to .c, and .y to .c.
97754 2007-09-03  Jim Meyering  <jim@meyering.net>
97756         * build-aux/git-version-gen: New file, from coreutils.  For details, see
97757         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
97759 2007-09-02  Bruno Haible  <bruno@clisp.org>
97761         Fix mis-recognition of 'mcs' on QNX 6.
97762         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
97763         output contains the string "Mono".
97764         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
97765         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
97767 2007-09-01  Bruno Haible  <bruno@clisp.org>
97769         Fix collision between uniwidth/* and linebreak modules.
97770         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
97771         u32_width): Remove declarations.
97772         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
97773         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
97774         streq3, streq2, streq1, streq0): Remove functions.
97775         (STREQ): Remove macro.
97776         (is_cjk_encoding): Remove function.
97777         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
97778         (uc_width, u8_width, u16_width, u32_width): Remove functions.
97779         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
97780         * NEWS: Document the change.
97782 2007-09-01  Bruno Haible  <bruno@clisp.org>
97784         * lib/streq.h: Add double-inclusion guard.
97786 2007-09-01  Karl Berry  <karl@gnu.org>
97788         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
97790 2007-08-28  Jim Meyering  <jim@meyering.net>
97792         Rename mreadlink_with_size to areadlink_with_size.
97793         * NEWS: Document the change.
97794         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
97795         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
97796         * lib/mreadlink.h: Rename this to...
97797         * lib/areadlink.h: ...this.
97798         * modules/mreadlink-with-size: Rename this to...
97799         * modules/areadlink-with-size: ...this.
97800         * lib/canonicalize.c: Reflect the renaming.
97801         * modules/canonicalize: Likewise.
97803 2007-08-26  Bruno Haible  <bruno@clisp.org>
97805         * gnulib-tool (func_import): When deciding which files to remove,
97806         consider also dangling symbolic links.
97807         Reported by Eric Blake.
97809 2007-08-26  Bruno Haible  <bruno@clisp.org>
97811         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
97813 2007-08-23  Simon Josefsson  <simon@josefsson.org>
97815         * lib/readline.c: Don't include getline.h, the prototype is now
97816         found in stdio.h.
97818 2007-08-23  Jim Meyering  <jim@meyering.net>
97820         Getdelim touchup.
97821         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
97822         around the funlockfile call, since funlockfile never sets errno.
97823         Don't set errno upon failed realloc.
97825 2007-08-22  Eric Blake  <ebb9@byu.net>
97827         Getline touchups.
97828         * lib/getdelim.c (getdelim): Revert regression that required *n to
97829         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
97830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
97831         getdelim, rather than whether implementation is missing.
97832         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
97833         * lib/stdio_.h (getline): Also declare if replacement is
97834         required.
97835         * doc/functions/getdelim.texi: New file.
97836         * doc/functions/getline.texi: Likewise.
97837         * doc/gnulib.texi (Function Substitutes): Add new files.
97838         Reported by Bruno Haible.
97840 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
97842         * users.txt: Add Guile.
97844 2007-08-22  Eric Blake  <ebb9@byu.net>
97846         * tests/test-getdelim.c (main): Use remove, not unlink.
97847         * tests/test-getline.c (main): Likewise.
97849         Move getline and getdelim into stdio.h, per POSIX 200x.
97850         * modules/getline (Files): Remove getline.h.
97851         (Depends-on): Add stdio.
97852         (configure.ac): Add module indicator.
97853         * modules/getdelim (Files): Remove getdelim.h.
97854         (Depends-on): Add stdio.
97855         (configure.ac): Add module indicator.
97856         * modules/stdio (Makefile.am): Work with new indicators.
97857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
97858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
97859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97860         * lib/getdelim.h: Delete.
97861         * lib/getline.h: Delete.
97862         * lib/stdio_.h (getdelim, getline): Declare.
97863         * modules/getdelim-tests: New module.
97864         * modules/getline-tests: Likewise.
97865         * tests/test-getdelim.c: New file.
97866         * tests/test-getline.c: Likewise.
97867         * NEWS: Document the change.
97868         * lib/getline.c: Update choice of header.
97869         * lib/csharpcomp.c: Likewise.
97870         * lib/getpass.c: Likewise.
97871         * lib/javacomp.c: Likewise.
97872         * lib/javaversion.c: Likewise.
97873         * lib/yesno.c: Likewise.
97874         * lib/getdelim.c: Likewise.
97875         (getdelim): Set errno on failure, and avoid memory leak.
97877 2007-08-19  Bruno Haible  <bruno@clisp.org>
97879         * modules/closein (Depends-on): Add freadahead.
97880         * lib/closein.c: Include freadahead.h.
97881         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
97882         is zero.
97884 2007-08-19  Bruno Haible  <bruno@clisp.org>
97886         * modules/freadahead-tests: New file.
97887         * tests/test-freadahead.sh: New file.
97888         * tests/test-freadahead.c: New file.
97890         * modules/freadahead: New file.
97891         * lib/freadahead.h: New file.
97892         * lib/freadahead.c: New file.
97893         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
97894         fbufmode, fpurge, freadable, fwritable.
97896 2007-08-19  Eric Blake  <ebb9@byu.net>
97898         Test yesno in combination with closein.
97899         * lib/yesno.c (yesno): Document use of stdin.
97900         * modules/yesno-tests (Files): New module.
97901         * tests/test-yesno.c (main): New file.
97902         * tests/test-yesno.sh: Likewise.
97904 2007-08-19  Bruno Haible  <bruno@clisp.org>
97906         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
97907         * lib/fseeko.c (rpl_fseeko): Likewise.
97908         * lib/fseterr.c (fseterr): Likewise.
97910 2007-08-19  Bruno Haible  <bruno@clisp.org>
97912         * tests/test-lseek.c (main): Disable a test for BeOS.
97913         * doc/functions/lseek.texi: Document the BeOS bug.
97915 2007-08-19  Bruno Haible  <bruno@clisp.org>
97916             Eric Blake  <ebb9@byu.net>
97918         * lib/lseek.c: Include <sys/stat.h>.
97919         (rpl_lseek): Add workaround code also for Unix platforms.
97920         Needed for BeOS.
97921         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
97922         * doc/functions/lseek.texi: Document BeOS definiency.
97924 2007-08-18  Bruno Haible  <bruno@clisp.org>
97926         * modules/fstrcmp-tests: New file.
97927         * tests/test-fstrcmp.c: New file.
97929 2007-08-18  Bruno Haible  <bruno@clisp.org>
97931         * modules/fstrcmp: New file, from GNU gettext with modifications.
97932         * lib/fstrcmp.h: New file, from GNU gettext.
97933         * lib/fstrcmp.c: New file, from GNU gettext.
97934         * MODULES.html.sh (String handling): Add fstrcmp.
97936 2007-08-18  Bruno Haible  <bruno@clisp.org>
97938         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
97939         'bool'.
97940         (diag, compareseq): Remove const from the ctxt argument.
97941         (USE_HEURISTIC): Undefine at the end.
97943 2007-08-18  Jim Meyering  <jim@meyering.net>
97945         New file: lib/idcache.h
97946         * NEWS: Mention the addition.
97947         * modules/idcache (Files): Add lib/idcache.h
97948         * lib/idcache.c: Include "idcache.h".
97949         Don't include <sys/types.h>.
97950         Add a FIXME comment.
97951         Move file-scoped "static" declarations to the top.
97952         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
97954 2007-08-17  Bruno Haible  <bruno@clisp.org>
97955         and Paul Eggert  <eggert@cs.ucla.edu>
97957         * MODULES.html.sh: Add diffseq.
97958         * modules/diffseq: New file.
97959         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
97960         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
97962 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97964         Import changes from coreutils for bootstrap script.
97966         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
97968         * build-aux/bootstrap (slurp): Work even in environments where
97969         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
97970         current code does not slurp files whose names start with ".", and
97971         this looks like it might be a troublesome area.
97973         2007-07-11  Jim Meyering  <jim@meyering.net>
97975         If there's a GPL vN copyright comment, require that N == 3.
97977         2007-07-08  Jim Meyering  <jim@meyering.net>
97979         Run the coreutils-specific code only if tests/Makefile.am.in exists.
97980         * build-aux/bootstrap (mam_template): Move definition out of loop.
97982         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
97984         * build-aux/bootstrap (symlink_to_dir): Rename function from
97985         symlink_to_gnulib.  Add a directory parameter.  Update all
97986         callers.
97987         (cp_mark_as_generated): Also check for -- and link to -- files in
97988         gl/.
97990         2007-07-08  Jim Meyering  <jim@meyering.net>
97992         Adapt to deeper hierarchy in gnulib.
97993         * build-aux/bootstrap (symlink_to_dir): If the destination
97994         directory doesn't exist, create it. This is required at least for
97995         "lib/uniwidth/cjk.h".
97997         2007-05-15  Jim Meyering  <jim@meyering.net>
97999         * build-aux/bootstrap: Now that generated Makefile.am files
98000         are no longer under version control, they must be created at
98001         bootstrap time.
98003 2007-08-14  Ben Pfaff  <blp@gnu.org>
98005         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98007 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98009         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98010         given the changes below.
98011         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98012         even on hosts that have padding bits beyond the supported 64.
98014 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98016         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98017         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98018         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98019         depends on it.
98020         (xstrtol_error): Remove.
98021         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98022         but with a different signature.
98023         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98024         * lib/xstrtol-error.c: Include exitfail.h.
98025         (xstrtol_fatal): New function, with a different signature from the
98026         old xstrtol_error, so that the caller need not worry about passing
98027         in an exit status, or about storage management of the option argument.
98028         (xstrtol_error): Now a static function.  Redo signature to
98029         implement xstrtol_fatal.  Output the correct number of hyphens in
98030         front of the option so that the caller need not worry about
98031         storage management.
98032         (N_): New macro.
98033         (_): Remove; not used now.
98034         * modules/xstrtol: Depend on getopt.
98035         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98036         of old STRTOL_FATAL_ERROR macro.
98037         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98038         of test program.
98039         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98040         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98042 2007-08-08  Eric Blake  <ebb9@byu.net>
98044         * lib/xstrtol-error.c: Add missing include.
98046         Move xstrtol messages into gnulib domain, when --pobase is used.
98047         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98048         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98049         * modules/xstrtol (Files): Distribute new file.
98050         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98051         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98052         * tests/test-xstrtol.c: ...into new file.
98053         * tests/test-xstrtoul.c: Also test xstrtoul.
98054         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98055         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98056         * tests/test-xstrtol.sh: Drive the tests.
98057         * tests/test-xstrtoimax.sh: Likewise.
98058         * tests/test-xstrtoumax.sh: Likewise.
98059         * modules/xstrtol-tests: New module.
98060         * modules/xstrtoimax-tests: Likewise.
98061         * modules/xstrtoumax-tests: Likewise.
98063 2007-08-08  Jim Meyering  <jim@meyering.net>
98065         New function: mfile_name_concat.
98066         * lib/filenamecat.c (mfile_name_concat): New function, just like
98067         file_name_concat, but return NULL upon failure rather than exiting
98068         with a diagnostic.
98069         * lib/filenamecat.h: Declare it.
98071 2007-08-07  Bruno Haible  <bruno@clisp.org>
98073         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98074         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98075         warning from gcc.
98076         Reported by Eric Blake.
98078 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98080         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98081         * modules/crypto/arcfour (License): Likewise.
98082         * modules/crypto/des-tests (License): Likewise.
98083         * modules/crypto/gc-arctwo-tests (License): Likewise.
98084         * modules/crypto/gc-des-tests (License): Likewise.
98085         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98086         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98087         * modules/crypto/gc-md2-tests (License): Likewise.
98088         * modules/crypto/gc-md4-tests (License): Likewise.
98089         * modules/crypto/gc-md5-tests (License): Likewise.
98090         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98091         * modules/crypto/gc-rijndael-tests (License): Likewise.
98092         * modules/crypto/gc-sha1-tests (License): Likewise.
98093         * modules/crypto/gc-tests (License): Likewise.
98094         * modules/crypto/hmac-md5 (License): Likewise.
98095         * modules/crypto/hmac-sha1 (License): Likewise.
98096         * modules/crypto/md2-tests (License): Likewise.
98097         * modules/crypto/md4-tests (License): Likewise.
98098         * modules/crypto/md5 (License): Likewise.
98099         * modules/crypto/rijndael (License): Likewise.
98100         * modules/crypto/sha1 (License): Likewise.
98101         * modules/memxor (License): Likewise.
98103 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98104         and Bruno Haible  <bruno@clisp.org>
98106         * NEWS: Describe interface changes to human, xstrtol.
98107         * lib/human.h: Include <xstrtol.h>.
98108         (human_options): Return enum strtol_error, not int.  Remove
98109         bool arg; take int * instead.
98110         * lib/human.c: Don't include "gettext.h".
98111         (_): Remove; no longer used.
98112         Don't include <xstrtol.h>, since human.h does it.
98113         (human_options): Adjust to abovementioned interface changes.
98114         Do not report error to stderr; that's now the caller's
98115         responsibility.
98116         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98117         interface change.
98118         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98119         Str, Argument_type_string.  All uses changed.  Put " argument"
98120         in diagnostics to make them clearer.  Change wording of suffix
98121         message for clarity.
98122         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98123         Argument_type_string.
98124         (STRTOL_FATAL_WARN): Remove; no longer used.
98125         * modules/human (Depends-on): Remove gettext-h.
98127 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98129         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98131 2007-07-31  Bruno Haible  <bruno@clisp.org>
98133         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98134         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98135         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98137 2007-07-31  Bruno Haible  <bruno@clisp.org>
98139         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98140         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98142 2007-07-30  Bruno Haible  <bruno@clisp.org>
98144         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98145         * modules/c-ctype (License): Likewise.
98146         * modules/c-strcase (License): Likewise.
98147         * modules/check-version (License): Likewise.
98148         * modules/iconv (License): Likewise.
98149         * modules/iconv_open (License): Likewise.
98150         * modules/read-file (License): Likewise.
98151         * modules/striconv (License): Likewise.
98152         * modules/strverscmp (License): Likewise.
98153         * modules/vasprintf (License): Likewise.
98154         * modules/crypto/des (License): Likewise.
98155         * modules/crypto/gc (License): Likewise.
98156         * modules/crypto/gc-arcfour (License): Likewise.
98157         * modules/crypto/gc-arctwo (License): Likewise.
98158         * modules/crypto/gc-des (License): Likewise.
98159         * modules/crypto/gc-hmac-md5 (License): Likewise.
98160         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98161         * modules/crypto/gc-md2 (License): Likewise.
98162         * modules/crypto/gc-md4 (License): Likewise.
98163         * modules/crypto/gc-md5 (License): Likewise.
98164         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98165         * modules/crypto/gc-random (License): Likewise.
98166         * modules/crypto/gc-rijndael (License): Likewise.
98167         * modules/crypto/gc-sha1 (License): Likewise.
98168         * modules/crypto/md2 (License): Likewise.
98169         * modules/crypto/md4 (License): Likewise.
98171 2007-07-30  Jim Meyering  <jim@meyering.net>
98173         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98174         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98175         it has valid stat data.  This bug would cause du not to count the
98176         sizes of inaccessible directories.
98177         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98178         in <http://bugzilla.redhat.com/250077>.
98180 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98181             Bruno Haible  <bruno@clisp.org>
98183         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98184         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98185         #include_next, gives a diagnostic about it, but reports no error in
98186         the exit code.
98187         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98189 2007-07-24  Ben Pfaff  <blp@gnu.org>
98191         Improve name: "count-one-bits" is better than "popcount".
98192         * MODULES.html.sh: Update name.
98193         * lib/popcount.h: Renamed lib/count-one-bits.h.
98194         (popcount): Renamed count_one_bits.
98195         (popcountl): Renamed count_one_bits_l.
98196         (popcountll): Renamed count_one_bits_ll.
98197         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98198         * modules/popcount: Renamed module/count-one-bits.
98199         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98200         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98202 2007-07-23  Ben Pfaff  <blp@gnu.org>
98204         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98205         better code generation, and add U to large constants to avoid
98206         warnings, in non-GCC case.
98207         Suggested by Bruno Haible.
98209 2007-07-23  Ben Pfaff  <blp@gnu.org>
98211         * lib/popcount.h: Use verify_true instead of if...abort.
98212         * modules/popcount: Depend on verify module.
98213         Suggested by Jim Meyering.
98215 2007-07-23  Bruno Haible  <bruno@clisp.org>
98217         * gnulib-tool (func_import): Create a .cvsignore file also when the
98218         directory is not yet in CVS but the toplevel directory is. When
98219         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98220         Reported by Karl Berry.
98222 2007-07-22  Ben Pfaff  <blp@gnu.org>
98224         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98225         case.
98226         Suggested by Eric Blake.
98228 2007-07-22  Ben Pfaff  <blp@gnu.org>
98230         New module: popcount.
98231         * MODULES.html.sh: Add popcount.
98232         * modules/popcount: New file.
98233         * modules/popcount-tests: New file.
98234         * tests/test-popcount.c: New file.
98235         * lib/popcount.h: New file.
98236         * m4/popcount.m4: New file.
98238 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98240         * build-aux/announce-gen: Update to GPLv3.
98242         * build-aux/config.guess: Update from config.
98244 2007-07-21  Bruno Haible  <bruno@clisp.org>
98246         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98247         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98249 2007-07-20  Jim Meyering  <jim@meyering.net>
98251         * check-module: Diagnose a self-dependency.
98253 2007-07-19  Bruno Haible  <bruno@clisp.org>
98255         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98256         empty.
98257         Reported by Eric Blake.
98259 2007-07-18  Bruno Haible  <bruno@clisp.org>
98261         * gnulib-tool: New options --po-base, --po-domain.
98262         (func_usage): Document them.
98263         (pobase, po_domain): New variables.
98264         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98265         DEFAULT_TEXT_DOMAIN.
98266         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98267         (func_import): Consider pobase and po_domain. Create a po/ directory.
98268         (func_create_testdir): Set pobase and po_domain to empty.
98269         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98270         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98272 2007-07-18  Bruno Haible  <bruno@clisp.org>
98274         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98275         EXTRA_DIST augmentation for files in build-aux/.
98277 2007-07-16  Bruno Haible  <bruno@clisp.org>
98279         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98280         * modules/getdelim (License): Likewise.
98282 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98284         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98285         * modules/d-type (License): Likewise.
98286         * modules/extensions (License): Likewise.
98287         * modules/fnmatch (License): Likewise.
98288         * modules/fseeko (License): Likewise.
98289         * modules/getaddrinfo (License): Likewise.
98290         * modules/getline (License): Likewise.
98291         * modules/getlogin_r (License): Likewise.
98292         * modules/getpass (License): Likewise.
98293         * modules/gettimeofday (License): Likewise.
98294         * modules/glob (License): Likewise.
98295         * modules/inet_ntop (License): Likewise.
98296         * modules/malloc (License): Likewise.
98297         * modules/malloca (License): Likewise.
98298         * modules/memmem (License): Likewise.
98299         * modules/mempcpy (License): Likewise.
98300         * modules/memset (License): Likewise.
98301         * modules/minmax (License): Likewise.
98302         * modules/mktime (License): Likewise.
98303         * modules/netinet_in (License): Likewise.
98304         * modules/pathmax (License): Likewise.
98305         * modules/poll (License): Likewise.
98306         * modules/regex (License): Likewise.
98307         * modules/snprintf (License): Likewise.
98308         * modules/stdbool (License): Likewise.
98309         * modules/stdint (License): Likewise.
98310         * modules/stdio (License): Likewise.
98311         * modules/strcase (License): Likewise.
98312         * modules/strcasestr (License): Likewise.
98313         * modules/strdup (License): Likewise.
98314         * modules/string (License): Likewise.
98315         * modules/strndup (License): Likewise.
98316         * modules/strnlen (License): Likewise.
98317         * modules/strpbrk (License): Likewise.
98318         * modules/strptime (License): Likewise.
98319         * modules/strsep (License): Likewise.
98320         * modules/sys_select (License): Likewise.
98321         * modules/sys_socket (License): Likewise.
98322         * modules/sys_stat (License): Likewise.
98323         * modules/sys_time (License): Likewise.
98324         * modules/time (License): Likewise.
98325         * modules/time_r (License): Likewise.
98326         * modules/timegm (License): Likewise.
98327         * modules/unistd (License): Likewise.
98328         * modules/vsnprintf (License): Likewise.
98329         * modules/wctype (License): Likewise.
98331 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98333         * modules/argz (License): LGPLv2+.
98335 2007-07-15  Karl Berry  <karl@gnu.org>
98337         * doc/gnulib.texi: revise node structure per new fdl.texi.
98339 2007-07-14  Bruno Haible  <bruno@clisp.org>
98341         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98342         the output file.
98343         * lib/uniname/uninames.h: Regenerated.
98345 2007-07-14  Karl Berry  <karl@gnu.org>
98347         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98348         omitting sectioning and index commands.
98350 2007-07-13  Bruno Haible  <bruno@clisp.org>
98352         New gnulib-tool option --more-symlinks.
98353         * gnulib-tool (func_usage): Document --more-symlinks.
98354         (do_copyrights): New variable.
98355         Recognize option --more-symlinks.
98356         (func_import): Don't add a copyright notice transform to
98357         sed_transform_lib_file if do_copyrights is empty.
98359 2007-07-13  Bruno Haible  <bruno@clisp.org>
98361         * lib/vasnprintf.c (decimal_point_char): Define also if
98362         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98363         && !NEED_PRINTF_DIRECTIVE_A.
98364         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98365         Gary V. Vaughan <gary@gnu.org>.
98367 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98369         * lib/inttypes_.h: Undo previous change, since it was fixed
98370         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98372 2007-07-13  Bruno Haible  <bruno@clisp.org>
98374         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98375         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98377 2007-07-13  Jim Meyering  <jim@meyering.net>
98379         df: Don't fail for Tru64's "file-on-file mount".
98380         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98381         so we fall through and use statfs instead.  Details here:
98382         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98383         Reported by Albert Chin.
98385 2007-07-13  Bruno Haible  <bruno@clisp.org>
98387         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98388         * modules/configmake (License): Likewise.
98389         * modules/gettext (License): Likewise.
98390         * modules/gettext-h (License): Likewise.
98391         * modules/include_next (License): Likewise.
98392         * modules/link-warning (License): Likewise.
98393         * modules/localcharset (License): Likewise.
98394         * modules/localename (License): Likewise.
98395         * modules/lock (License): Likewise.
98396         * modules/relocatable-lib-lgpl (License): Likewise.
98397         * modules/size_max (License): Likewise.
98398         * modules/vasnprintf (License): Likewise.
98399         * modules/wchar (License): Likewise.
98400         * modules/xsize (License): Likewise.
98402 2007-07-13  Bruno Haible  <bruno@clisp.org>
98404         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98405         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98407 2007-07-12  Bruno Haible  <bruno@clisp.org>
98409         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98410         in the modules files.
98412 2007-07-11  Karl Berry  <karl@gnu.org>
98414         * MODULES.html.sh (func_module): use
98415          sed -e '\|^'"${includefile}"'$|d'
98416          instead of /.../d, to avoid errors on $includefile's containing /.
98418 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98420         * gnulib-tool (func_import): Avoid duplication of --avoid
98421         statements
98422         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98423         names to `_' in variable names.
98425 2007-07-10  Eric Blake  <ebb9@byu.net>
98427         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98428         * NEWS: Document this change.
98430 2007-07-08  Bruno Haible  <bruno@clisp.org>
98432         Update to Unicode 5.0.
98433         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98434         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98435         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98436         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98437         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98438         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98439         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98440         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98441         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98442         U+10A3F, U+1D242..U+1D244.
98443         (nonspacing_table_ind): Update.
98444         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98445         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98447 2007-07-08  Bruno Haible  <bruno@clisp.org>
98449         Update to Unicode 5.0.
98450         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98451         code transform. Extend the name index field of unicode_name_to_code and
98452         unicode_code_to_name from 16 to 24 bits.
98453         * lib/uniname/uniname.c (unicode_character_name,
98454         unicode_name_character): Add the range 0x12xxx to the code transform.
98455         * lib/uniname/uninames.h: Regenerated.
98456         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98458 2007-07-07  Bruno Haible  <bruno@clisp.org>
98460         * modules/wcwidth-tests: New file.
98461         * tests/test-wcwidth.c: New file.
98463         Work around MacOS X wcwidth() bug.
98464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98465         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98466         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98467         original wcwidth in non-UTF-8 locales.
98468         * modules/wcwidth (Depends-on): Add localcharset, streq,
98469         uniwidth/width.
98470         * doc/functions/wcwidth.texi: Update.
98472 2007-07-07  Bruno Haible  <bruno@clisp.org>
98474         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98475         (wcwidth): New declaration.
98476         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98477         macros.
98478         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98479         here. Prepare for creating <wchar.h> unconditionally.
98480         * modules/wchar (Depends-on): Add link-warning.
98481         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98482         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98483         * lib/wcwidth.h: Remove file.
98484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98485         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98486         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98487         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98488         (Include): Replace wcwidth.h with <wchar.h>.
98489         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98490         * lib/mbchar.h: Don't include wcwidth.h.
98491         * lib/mbswidth.c: Likewise.
98492         * NEWS: Mention the change.
98494 2007-07-07  Bruno Haible  <bruno@clisp.org>
98496         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98497         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98498         definition with an external declaration.
98499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98500         defined as a function. Remove AC_C_INLINE requirement.
98501         * modules/wcwidth (Files): Add lib/wcwidth.c.
98502         (Makefile.am): Remove redundant statement.
98504 2007-07-07  Bruno Haible  <bruno@clisp.org>
98506         * MODULES.html.sh (Unicode string functions): Add the new modules.
98508         * tests/uniwidth/test-u32-strwidth.c: New file.
98509         * modules/uniwidth/u32-strwidth-tests: New file.
98511         * lib/uniwidth/u32-strwidth.c: New file.
98512         * modules/uniwidth/u32-strwidth: New file.
98514         * tests/uniwidth/test-u16-strwidth.c: New file.
98515         * modules/uniwidth/u16-strwidth-tests: New file.
98517         * lib/uniwidth/u16-strwidth.c: New file.
98518         * modules/uniwidth/u16-strwidth: New file.
98520         * tests/uniwidth/test-u8-strwidth.c: New file.
98521         * modules/uniwidth/u8-strwidth-tests: New file.
98523         * lib/uniwidth/u8-strwidth.c: New file.
98524         * modules/uniwidth/u8-strwidth: New file.
98526         * tests/uniwidth/test-u32-width.c: New file.
98527         * modules/uniwidth/u32-width-tests: New file.
98529         * lib/uniwidth/u32-width.c: New file.
98530         * modules/uniwidth/u32-width: New file.
98532         * tests/uniwidth/test-u16-width.c: New file.
98533         * modules/uniwidth/u16-width-tests: New file.
98535         * lib/uniwidth/u16-width.c: New file.
98536         * modules/uniwidth/u16-width: New file.
98538         * tests/uniwidth/test-u8-width.c: New file.
98539         * modules/uniwidth/u8-width-tests: New file.
98541         * lib/uniwidth/u8-width.c: New file.
98542         * modules/uniwidth/u8-width: New file.
98544         * tests/uniwidth/test-uc_width.c: New file.
98545         * modules/uniwidth/width-tests: New file.
98547         * lib/uniwidth/width.c: New file, from GNU libiconv.
98548         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98549         * modules/uniwidth/width: New file.
98551         * lib/uniwidth.h: New file, from GNU libiconv.
98552         * modules/uniwidth/base: New file.
98554 2007-07-07  Bruno Haible  <bruno@clisp.org>
98556         * lib/uniname.h: New file, from GNU gettext.
98557         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98558         * lib/uniname/uninames.h: New file, from GNU gettext.
98559         * lib/uniname/uniname.c: New file, from GNU gettext.
98560         * tests/uniname/test-uninames.sh: New file.
98561         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98562         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98563         * modules/uniname/base: New file.
98564         * modules/uniname/uniname: New file.
98565         * modules/uniname/uniname-tests: New file.
98566         * MODULES.html.sh (Unicode string functions): Add the new modules.
98568 2007-07-06  Bruno Haible  <bruno@clisp.org>
98570         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98572 2007-07-06  Bruno Haible  <bruno@clisp.org>
98574         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98575         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98576         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98577         include <sys/time.h>.
98578         Reported by Eric Blake.
98580 2007-07-06  Eric Blake  <ebb9@byu.net>
98582         Fix testing canonicalize on cygwin.
98583         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98584         Revert patch from 2007-06-19.
98585         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98586         canonicalize module is also in use.
98587         * tests/test-canonicalize.c: New file.
98588         * tests/test-canonicalize.sh: Likewise.
98589         * modules/canonicalize-tests: Likewise.
98591 2007-07-06  Jim Meyering  <jim@meyering.net>
98593         * lib/getugroups.c (getugroups): Detect getgrent failure.
98594         Adjust comment to reflect reality: this function may return -1.
98596 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
98598         * build-aux/bootstrap (TP_URL,get_translations): Update to use
98599         the new TP address.
98600         (usage): Fix typo
98601         (gnulib_mk): New variable.
98603 2007-07-05  Jim Meyering  <jim@meyering.net>
98605         Don't let endgrent clobber errno, no matter how improbable.
98606         * lib/getugroups.c (getugroups): Save and restore errno around
98607         endgrent call.
98609         Close the group DB even when failing with 2^31 or more members.
98610         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
98612 2007-07-04  Jim Meyering  <jim@meyering.net>
98614         * lib/getugroups.h: New file.
98615         * lib/getugroups.c: Include "getugroups.h".
98616         Remove uses of "register" keyword.
98617         Move local variable, "cp", down into scope where used.
98618         Give "username" parameter the "const" attribute.
98619         * modules/getugroups (Files): Add lib/getugroups.h
98621 2007-07-04  Karl Berry  <karl@gnu.org>
98623         * MODULES.html.sh (func_all_modules): Complete rename of
98624         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
98626 2007-07-02  Bruno Haible  <bruno@clisp.org>
98628         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
98629         mode, when inttypes.h comes from gnulib.
98630         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98632 2007-07-02  Simon Josefsson  <simon@josefsson.org>
98634         * NEWS: Mention lgpl module name change.
98636         * modules/lgpl-2.1: Renamed from lgpl.
98638         * NEWS: Mention gpl module name change.
98640         * modules/gpl-3.0: New file, based on gpl-2.0.
98642         * modules/gpl-2.0: Renamed from gpl.
98644         * modules/gpl: Fix filename, doc/gpl.texi is now found at
98645         doc/gpl-2.0.texi.
98647 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98649         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
98650         #define __STDC_LIMIT_MACROS temporarily while including
98651         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
98652         Problem reported by Joel E. Denny in
98653         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
98655 2007-07-01  Bruno Haible  <bruno@clisp.org>
98657         * lib/unistdio.h: New file.
98658         * lib/unistdio/u-asnprintf.h: New file.
98659         * lib/unistdio/u-asprintf.h: New file.
98660         * lib/unistdio/u-printf-args.c: New file.
98661         * lib/unistdio/u-printf-args.h: New file.
98662         * lib/unistdio/u-printf-parse.h: New file.
98663         * lib/unistdio/u-snprintf.h: New file.
98664         * lib/unistdio/u-sprintf.h: New file.
98665         * lib/unistdio/u-vasprintf.h: New file.
98666         * lib/unistdio/u-vsnprintf.h: New file.
98667         * lib/unistdio/u-vsprintf.h: New file.
98668         * lib/unistdio/ulc-asnprintf.c: New file.
98669         * lib/unistdio/ulc-asprintf.c: New file.
98670         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
98671         * lib/unistdio/ulc-printf-parse.c: New file.
98672         * lib/unistdio/ulc-snprintf.c: New file.
98673         * lib/unistdio/ulc-sprintf.c: New file.
98674         * lib/unistdio/ulc-vasnprintf.c: New file.
98675         * lib/unistdio/ulc-vasprintf.c: New file.
98676         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
98677         * lib/unistdio/ulc-vsnprintf.c: New file.
98678         * lib/unistdio/ulc-vsprintf.c: New file.
98679         * lib/unistdio/u8-asnprintf.c: New file.
98680         * lib/unistdio/u8-asprintf.c: New file.
98681         * lib/unistdio/u8-printf-parse.c: New file.
98682         * lib/unistdio/u8-snprintf.c: New file.
98683         * lib/unistdio/u8-sprintf.c: New file.
98684         * lib/unistdio/u8-vasnprintf.c: New file.
98685         * lib/unistdio/u8-vasprintf.c: New file.
98686         * lib/unistdio/u8-vsnprintf.c: New file.
98687         * lib/unistdio/u8-vsprintf.c: New file.
98688         * lib/unistdio/u8-u8-asnprintf.c: New file.
98689         * lib/unistdio/u8-u8-asprintf.c: New file.
98690         * lib/unistdio/u8-u8-snprintf.c: New file.
98691         * lib/unistdio/u8-u8-sprintf.c: New file.
98692         * lib/unistdio/u8-u8-vasnprintf.c: New file.
98693         * lib/unistdio/u8-u8-vasprintf.c: New file.
98694         * lib/unistdio/u8-u8-vsnprintf.c: New file.
98695         * lib/unistdio/u8-u8-vsprintf.c: New file.
98696         * lib/unistdio/u16-asnprintf.c: New file.
98697         * lib/unistdio/u16-asprintf.c: New file.
98698         * lib/unistdio/u16-printf-parse.c: New file.
98699         * lib/unistdio/u16-snprintf.c: New file.
98700         * lib/unistdio/u16-sprintf.c: New file.
98701         * lib/unistdio/u16-vasnprintf.c: New file.
98702         * lib/unistdio/u16-vasprintf.c: New file.
98703         * lib/unistdio/u16-vsnprintf.c: New file.
98704         * lib/unistdio/u16-vsprintf.c: New file.
98705         * lib/unistdio/u16-u16-asnprintf.c: New file.
98706         * lib/unistdio/u16-u16-asprintf.c: New file.
98707         * lib/unistdio/u16-u16-snprintf.c: New file.
98708         * lib/unistdio/u16-u16-sprintf.c: New file.
98709         * lib/unistdio/u16-u16-vasnprintf.c: New file.
98710         * lib/unistdio/u16-u16-vasprintf.c: New file.
98711         * lib/unistdio/u16-u16-vsnprintf.c: New file.
98712         * lib/unistdio/u16-u16-vsprintf.c: New file.
98713         * lib/unistdio/u32-asnprintf.c: New file.
98714         * lib/unistdio/u32-asprintf.c: New file.
98715         * lib/unistdio/u32-printf-parse.c: New file.
98716         * lib/unistdio/u32-snprintf.c: New file.
98717         * lib/unistdio/u32-sprintf.c: New file.
98718         * lib/unistdio/u32-vasnprintf.c: New file.
98719         * lib/unistdio/u32-vasprintf.c: New file.
98720         * lib/unistdio/u32-vsnprintf.c: New file.
98721         * lib/unistdio/u32-vsprintf.c: New file.
98722         * lib/unistdio/u32-u32-asnprintf.c: New file.
98723         * lib/unistdio/u32-u32-asprintf.c: New file.
98724         * lib/unistdio/u32-u32-snprintf.c: New file.
98725         * lib/unistdio/u32-u32-sprintf.c: New file.
98726         * lib/unistdio/u32-u32-vasnprintf.c: New file.
98727         * lib/unistdio/u32-u32-vasprintf.c: New file.
98728         * lib/unistdio/u32-u32-vsnprintf.c: New file.
98729         * lib/unistdio/u32-u32-vsprintf.c: New file.
98730         * tests/unistdio/test-ulc-asnprintf1.c: New file.
98731         * tests/unistdio/test-ulc-asnprintf1.h: New file.
98732         * tests/unistdio/test-ulc-printf1.h: New file.
98733         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
98734         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
98735         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
98736         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
98737         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
98738         * tests/unistdio/test-ulc-vasprintf1.c: New file.
98739         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
98740         * tests/unistdio/test-ulc-vsprintf1.c: New file.
98741         * tests/unistdio/test-u8-asnprintf1.c: New file.
98742         * tests/unistdio/test-u8-asnprintf1.h: New file.
98743         * tests/unistdio/test-u8-printf1.h: New file.
98744         * tests/unistdio/test-u8-vasnprintf1.c: New file.
98745         * tests/unistdio/test-u8-vasnprintf2.c: New file.
98746         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
98747         * tests/unistdio/test-u8-vasnprintf3.c: New file.
98748         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
98749         * tests/unistdio/test-u8-vasprintf1.c: New file.
98750         * tests/unistdio/test-u8-vsnprintf1.c: New file.
98751         * tests/unistdio/test-u8-vsprintf1.c: New file.
98752         * tests/unistdio/test-u16-asnprintf1.c: New file.
98753         * tests/unistdio/test-u16-asnprintf1.h: New file.
98754         * tests/unistdio/test-u16-printf1.h: New file.
98755         * tests/unistdio/test-u16-vasnprintf1.c: New file.
98756         * tests/unistdio/test-u16-vasnprintf2.c: New file.
98757         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
98758         * tests/unistdio/test-u16-vasnprintf3.c: New file.
98759         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
98760         * tests/unistdio/test-u16-vasprintf1.c: New file.
98761         * tests/unistdio/test-u16-vsnprintf1.c: New file.
98762         * tests/unistdio/test-u16-vsprintf1.c: New file.
98763         * tests/unistdio/test-u32-asnprintf1.c: New file.
98764         * tests/unistdio/test-u32-asnprintf1.h: New file.
98765         * tests/unistdio/test-u32-printf1.h: New file.
98766         * tests/unistdio/test-u32-vasnprintf1.c: New file.
98767         * tests/unistdio/test-u32-vasnprintf2.c: New file.
98768         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
98769         * tests/unistdio/test-u32-vasnprintf3.c: New file.
98770         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
98771         * tests/unistdio/test-u32-vasprintf1.c: New file.
98772         * tests/unistdio/test-u32-vsnprintf1.c: New file.
98773         * tests/unistdio/test-u32-vsprintf1.c: New file.
98774         * modules/unistdio/base: New file.
98775         * modules/unistdio/u-printf-args: New file.
98776         * modules/unistdio/ulc-asnprintf: New file.
98777         * modules/unistdio/ulc-asprintf: New file.
98778         * modules/unistdio/ulc-fprintf: New file.
98779         * modules/unistdio/ulc-printf-parse: New file.
98780         * modules/unistdio/ulc-snprintf: New file.
98781         * modules/unistdio/ulc-sprintf: New file.
98782         * modules/unistdio/ulc-vasnprintf: New file.
98783         * modules/unistdio/ulc-vasprintf: New file.
98784         * modules/unistdio/ulc-vfprintf: New file.
98785         * modules/unistdio/ulc-vsnprintf: New file.
98786         * modules/unistdio/ulc-vsprintf: New file.
98787         * modules/unistdio/u8-asnprintf: New file.
98788         * modules/unistdio/u8-asprintf: New file.
98789         * modules/unistdio/u8-printf-parse: New file.
98790         * modules/unistdio/u8-snprintf: New file.
98791         * modules/unistdio/u8-sprintf: New file.
98792         * modules/unistdio/u8-vasnprintf: New file.
98793         * modules/unistdio/u8-vasprintf: New file.
98794         * modules/unistdio/u8-vsnprintf: New file.
98795         * modules/unistdio/u8-vsprintf: New file.
98796         * modules/unistdio/u8-u8-asnprintf: New file.
98797         * modules/unistdio/u8-u8-asprintf: New file.
98798         * modules/unistdio/u8-u8-snprintf: New file.
98799         * modules/unistdio/u8-u8-sprintf: New file.
98800         * modules/unistdio/u8-u8-vasnprintf: New file.
98801         * modules/unistdio/u8-u8-vasprintf: New file.
98802         * modules/unistdio/u8-u8-vsnprintf: New file.
98803         * modules/unistdio/u8-u8-vsprintf: New file.
98804         * modules/unistdio/u16-asnprintf: New file.
98805         * modules/unistdio/u16-asprintf: New file.
98806         * modules/unistdio/u16-printf-parse: New file.
98807         * modules/unistdio/u16-snprintf: New file.
98808         * modules/unistdio/u16-sprintf: New file.
98809         * modules/unistdio/u16-vasnprintf: New file.
98810         * modules/unistdio/u16-vasprintf: New file.
98811         * modules/unistdio/u16-vsnprintf: New file.
98812         * modules/unistdio/u16-vsprintf: New file.
98813         * modules/unistdio/u16-u16-asnprintf: New file.
98814         * modules/unistdio/u16-u16-asprintf: New file.
98815         * modules/unistdio/u16-u16-snprintf: New file.
98816         * modules/unistdio/u16-u16-sprintf: New file.
98817         * modules/unistdio/u16-u16-vasnprintf: New file.
98818         * modules/unistdio/u16-u16-vasprintf: New file.
98819         * modules/unistdio/u16-u16-vsnprintf: New file.
98820         * modules/unistdio/u16-u16-vsprintf: New file.
98821         * modules/unistdio/u32-asnprintf: New file.
98822         * modules/unistdio/u32-asprintf: New file.
98823         * modules/unistdio/u32-printf-parse: New file.
98824         * modules/unistdio/u32-snprintf: New file.
98825         * modules/unistdio/u32-sprintf: New file.
98826         * modules/unistdio/u32-vasnprintf: New file.
98827         * modules/unistdio/u32-vasprintf: New file.
98828         * modules/unistdio/u32-vsnprintf: New file.
98829         * modules/unistdio/u32-vsprintf: New file.
98830         * modules/unistdio/u32-u32-asnprintf: New file.
98831         * modules/unistdio/u32-u32-asprintf: New file.
98832         * modules/unistdio/u32-u32-snprintf: New file.
98833         * modules/unistdio/u32-u32-sprintf: New file.
98834         * modules/unistdio/u32-u32-vasnprintf: New file.
98835         * modules/unistdio/u32-u32-vasprintf: New file.
98836         * modules/unistdio/u32-u32-vsnprintf: New file.
98837         * modules/unistdio/u32-u32-vsprintf: New file.
98838         * modules/unistdio/ulc-asnprintf-tests: New file.
98839         * modules/unistdio/ulc-vasnprintf-tests: New file.
98840         * modules/unistdio/ulc-vasprintf-tests: New file.
98841         * modules/unistdio/ulc-vsnprintf-tests: New file.
98842         * modules/unistdio/ulc-vsprintf-tests: New file.
98843         * modules/unistdio/u8-asnprintf-tests: New file.
98844         * modules/unistdio/u8-vasnprintf-tests: New file.
98845         * modules/unistdio/u8-vasprintf-tests: New file.
98846         * modules/unistdio/u8-vsnprintf-tests: New file.
98847         * modules/unistdio/u8-vsprintf-tests: New file.
98848         * modules/unistdio/u16-asnprintf-tests: New file.
98849         * modules/unistdio/u16-vasnprintf-tests: New file.
98850         * modules/unistdio/u16-vasprintf-tests: New file.
98851         * modules/unistdio/u16-vsnprintf-tests: New file.
98852         * modules/unistdio/u16-vsprintf-tests: New file.
98853         * modules/unistdio/u32-asnprintf-tests: New file.
98854         * modules/unistdio/u32-vasnprintf-tests: New file.
98855         * modules/unistdio/u32-vasprintf-tests: New file.
98856         * modules/unistdio/u32-vsnprintf-tests: New file.
98857         * modules/unistdio/u32-vsprintf-tests: New file.
98858         * MODULES.html.sh (Unicode string functions): Add the new modules.
98860 2007-07-01  Bruno Haible  <bruno@clisp.org>
98862         * lib/sprintf.c (sprintf): Limit the available length estimation,
98863         to avoid address wraparound.
98864         * lib/vsprintf.c (vsprintf): Likewise.
98865         * modules/sprintf-posix (Dependencies): Add stdint.
98866         * modules/vsprintf-posix (Dependencies): Likewise.
98868 2007-07-01  Bruno Haible  <bruno@clisp.org>
98870         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
98871         Windows PATH as well. Conservative double-quoting. Comments.
98873 2007-07-01  Bruno Haible  <bruno@clisp.org>
98874             Eric Blake  <ebb9@byu.net>
98875             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98877         * gnulib-tool (self_abspathname): Fix algorithm to cope with
98878         empty components in $PATH, denoting '.'.
98880 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98882         * gnulib-tool: Fix indentation.
98883         (func_create_megatestdir): Likewise.
98884         Report by Bruno Haible.
98886 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98888         Sync from Automake.
98889         * build-aux/gnupload: Fix shell portability issues with for loops.
98890         Report by Karl Berry.
98892 2007-06-29  Simon Josefsson  <simon@josefsson.org>
98894         * build-aux/maint.mk (POURL): Use translationproject.org.
98896 2007-06-27  Simon Josefsson  <simon@josefsson.org>
98897             Bruno Haible  <bruno@clisp.org>
98899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
98900         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
98901         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
98902         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
98903         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
98905 2007-06-27  Bruno Haible  <bruno@clisp.org>
98907         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
98908         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
98910 2007-06-26  Karl Berry  <karl@gnu.org>
98912         * MODULES.html.sh: remove xreadlink-with-size.
98914 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98916         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
98917         method that I hope also handles the double-include problem noted
98918         by Bruno Haible in
98919         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
98921 2007-06-23  Bruno Haible  <bruno@clisp.org>
98923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98924         Don't let the 'mostlyclean' target fail if the last subdirectory could
98925         not be removed.
98926         Reported by Karl Berry.
98928 2007-06-23  Bruno Haible  <bruno@clisp.org>
98930         * gnulib-tool (echo): Add a speedier workaround for ksh.
98931         * tests/test-echo.sh: Likewise.
98933 2007-06-23  Bruno Haible  <bruno@clisp.org>
98935         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
98936         * tests/test-echo.sh: Likewise.
98938 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98940         * gnulib-tool (IFS): Initialize early, so we don't set it to
98941         empty later.
98942         (self_abspathname): Rewrite algorithm to set it, reindent.
98943         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
98944         (func_create_megatestdir): Merge some sed scripts.
98946 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98948         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
98949         exposed by Sun Studio 11 cc on Solaris 8.
98951 2007-06-22  Bruno Haible  <bruno@clisp.org>
98953         * gnulib-tool (echo): Ensure the echo primitive does not interpret
98954         backslashes.
98955         * tests/test-echo.sh: New file.
98957 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98959         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
98960         simplify `sed_replace_build_aux' scripts, they are portable but
98961         echoing them with `echo' is not.
98962         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
98964 2007-06-21  Karl Berry  <karl@gnu.org>
98966         * config/srclist.txt: guess we can't handle the licenses via
98967         srclist at the moment.
98969 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98971         * MODULES.html.sh: Add include_next.
98972         * modules/include_next: New file.
98974 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98976         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
98977         INCLUDE_NEXT.
98978         (gl_CHECK_NEXT_HEADERS): New macro.
98979         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
98980         the obsolescent gl_ABSOLUTE_HEADER.
98981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
98982         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
98983         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
98984         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
98985         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
98986         * m4/math_h.m4 (gl_MATH_H): Likewise.
98987         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
98988         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
98989         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
98990         * m4/stdint.m4 (gl_STDINT_H): Likewise.
98991         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
98992         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
98993         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
98994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
98995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
98996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
98997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
98998         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
98999         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99000         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99001         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99002         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99003         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99004         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99005         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99006         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99007         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99008         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99009         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99010         * lib/float_.h: Likewise.
99011         * lib/inttypes_.h: Likewise.
99012         * lib/math_.h: Likewise.
99013         * lib/search_.h: Likewise.
99014         * lib/signal_.h: Likewise.
99015         * lib/stdint_.h: Likewise.
99016         * lib/stdio_.h: Likewise.
99017         * lib/stdlib_.h: Likewise.
99018         * lib/string_.h: Likewise.
99019         * lib/sys_stat_.h: Likewise.
99020         * lib/sys_time_.h: Likewise.
99021         * lib/time_.h: Likewise.
99022         * lib/unistd_.h: Likewise.
99023         * lib/wchar_.h: Likewise.
99024         * lib/wctype_.h: Likewise.
99025         * lib/dirent_.h: Likewise.
99026         * lib/iconv_.h: Likewise.
99027         * lib/locale_.h: Likewise.
99028         * lib/netinet_in_.h: Likewise.
99029         * lib/sys_select_.h: Likewise.
99030         * lib/sys_socket_.h: Likewise.
99031         * lib/sysexits_.h: Likewise.
99032         * modules/fcntl (Depends-on): Depend on include_next, not
99033         absolute_header.
99034         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99035         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99036         * modules/fchdir: Likewise.
99037         * modules/float: Likewise.
99038         * modules/iconv_open: Likewise.
99039         * modules/inttypes: Likewise.
99040         * modules/locale: Likewise.
99041         * modules/math: Likewise.
99042         * modules/netinet_in: Likewise.
99043         * modules/search: Likewise.
99044         * modules/signal: Likewise.
99045         * modules/stdint: Likewise.
99046         * modules/stdio: Likewise.
99047         * modules/stdlib: Likewise.
99048         * modules/string: Likewise.
99049         * modules/sys_select: Likewise.
99050         * modules/sys_socket: Likewise.
99051         * modules/sys_stat: Likewise.
99052         * modules/sys_time: Likewise.
99053         * modules/sysexits: Likewise.
99054         * modules/time: Likewise.
99055         * modules/unistd: Likewise.
99056         * modules/wchar: Likewise.
99057         * modules/wctype: Likewise.
99058         * modules/sys_stat: Change maintainer to "all".
99059         * modules/unistd: Likewise.
99061 2007-06-20  Karl Berry  <karl@gnu.org>
99063         * config/srclist.txt: track www changes in license files.
99065 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99067         * build-aux/bootstrap: Remove stray dot.
99068         Make sure build_aux settings are honored when linking
99069         gnulib_extra_files.
99071 2007-06-19  Eric Blake  <ebb9@byu.net>
99073         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99074         Allow compilation on cygwin.
99076 2007-06-19  Jim Meyering  <jim@meyering.net>
99078         xreadlink-with-size: Remove module.  No longer used.
99079         Ex-callers now use xreadlink or mreadlink-with-size.
99080         * modules/xreadlink-with-size: Remove module.
99081         * lib/xreadlink-with-size.c: Remove file.
99082         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99083         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99084         just before the function definition *is* accurate.
99086         Eliminate one way canonicalize_filename_mode could exit.
99087         * lib/canonicalize.c (canonicalize_filename_mode):
99088         Use mreadlink_with_size, not xreadlink_with_size.
99090 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99092         Detect porting problems to FreeBSD/arm, which has time_t wider than
99093         long int.  Original problem reported for GNU diff by Xin Li in
99094         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99095         * modules/getdate (Depends-on): Add intprops, verify.
99096         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99097         is an integer type no wider than long int.
99099 2007-06-18  Jim Meyering  <jim@meyering.net>
99101         New module: mreadlink-with-size.
99102         * MODULES.html.sh: Add mreadlink-with-size.
99103         * modules/mreadlink-with-size: New module
99104         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99105         not xreadlink-with-size.
99106         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99108 2007-06-16  Bruno Haible  <bruno@clisp.org>
99110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99111         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99112         Reported by Gary V. Vaughan <gary@gnu.org>.
99114 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99116         Revamp lchown so that it lives in unistd.h where it belongs.
99117         * lib/lchown.h: Remove.
99118         * lib/dirchownmod.c: Don't include lib/lchown.h.
99119         * lib/fchownat.c: Likewise.
99120         * lib/openat.c: Likewise.
99121         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99122         does not follow symlinks.
99123         (EOPNOTSUPP): Define if not defined.
99124         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99125         is defined to 0.
99126         (lchown): New decl.
99127         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99128         Do not check for lchown decl.
99129         Set REPLACE_LCHOWN.
99130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99131         REPLACE_LCHOWN.
99132         * modules/chown: Make it clear it follows symlinks.
99133         * modules/lchown: Make it clear it doesn't follow symlinks.
99134         (Files): Remove lib/lchown.h
99135         (Depends-on): Add unistd.
99136         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99137         (Include): Include <unistd.h>, not "lchown.h".
99138         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99139         REPLACE_LCHOWN.
99141 2007-06-15  Jim Meyering  <jim@meyering.net>
99143         Change license (GPL to LGPL) of fsusage and dependents.
99144         * modules/fsusage (License): Change to LGPL.
99145         * modules/full-read (License): Likewise.
99146         * modules/full-write (License): Likewise.
99147         * modules/safe-read (License): Likewise.
99148         * modules/safe-write (License): Likewise.
99150 2007-06-14  Ben Pfaff  <blp@gnu.org>
99152         Missing part of allocsa -> malloca transition.
99153         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99154         gl_MALLOCA.
99156 2007-06-12  Bruno Haible  <bruno@clisp.org>
99158         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99159         to ia64, x86_64, i386.
99160         Reported by Eric Blake.
99162 2007-06-12  Bruno Haible  <bruno@clisp.org>
99164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99165         cross-compiling to x86_64.
99167 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99169         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99170         glitch reported by Ralf Wildenhues in
99171         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99173         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99174         Vin Shelton.
99176 2007-06-11  Bruno Haible  <bruno@clisp.org>
99178         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99179         replacement string.
99180         Reported by Eric Blake.
99182 2007-06-10  Bruno Haible  <bruno@clisp.org>
99184         Prepare vasnprintf code for use with Unicode strings.
99185         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99186         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99187         TYPE_U32_STRING.
99188         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99189         a_u32_string variants.
99190         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99191         * lib/printf-args.c: Don't include config.h and the specification
99192         header if PRINTF_FETCHARGS is already defined.
99193         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99194         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99195         TYPE_U16_STRING, TYPE_U32_STRING.
99196         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99197         u16_directive, u16_directives, u32_directive, u32_directives): New
99198         types.
99199         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99200         New declarations.
99201         * lib/printf-parse.c: Don't include config.h and the specification
99202         header if PRINTF_PARSE is already defined. Eliminate the set of
99203         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99204         them now. Include c-ctype.h.
99205         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99206         directive and CHAR_T_ONLY_ASCII.
99207         * lib/vasnprintf.c: Don't include config.h and the specification header
99208         if VASNPRINTF is already defined.
99209         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99210         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99211         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99212         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99213         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99214         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99215         code accordingly.
99216         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99217         pad_ourselves also in this case, with the 'c' and 's' directives, and
99218         with a different notion of "width".
99219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99221 2007-06-10  Bruno Haible  <bruno@clisp.org>
99223         * modules/unistr/u32-mbsnlen: New file.
99224         * lib/unistr/u32-mbsnlen.c: New file.
99226         * modules/unistr/u16-mbsnlen: New file.
99227         * lib/unistr/u16-mbsnlen.c: New file.
99229         * modules/unistr/u8-mbsnlen: New file.
99230         * lib/unistr/u8-mbsnlen.c: New file.
99232         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99233         declarations.
99235 2007-06-10  Bruno Haible  <bruno@clisp.org>
99237         * lib/string_.h (mbsnlen): New declaration.
99238         * lib/mbsnlen.c: New file.
99239         * m4/mbsnlen.m4: New file.
99240         * modules/mbsnlen: New file.
99241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99242         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99243         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99245 2007-06-10  Bruno Haible  <bruno@clisp.org>
99247         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99249 2007-06-10  Bruno Haible  <bruno@clisp.org>
99251         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99252         * lib/mbuiter.h: Likewise.
99254 2007-06-10  Bruno Haible  <bruno@clisp.org>
99256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99257         declaration.
99259 2007-06-10  Karl Berry  <karl@gnu.org>
99261         * config/srclist.txt: remove gettext entries, Bruno prefers
99262         to update individually.
99264 2007-06-10  Bruno Haible  <bruno@clisp.org>
99266         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99267         'maxlen'. Ensure only length + width bytes are allocated, not
99268         length + 1 + width.
99270 2007-06-09  Bruno Haible  <bruno@clisp.org>
99272         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99273         (CHAR_T): Remove macro.
99274         (VASNPRINTF): Update.
99276 2007-06-09  Bruno Haible  <bruno@clisp.org>
99278         * MODULES.html.sh (Unicode string functions): Add the new modules.
99280         * modules/uniconv/u32-conv-to-enc: New file.
99281         * lib/uniconv/u32-conv-to-enc.c: New file.
99282         * modules/uniconv/u32-conv-to-enc-tests: New file.
99283         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99285         * modules/uniconv/u16-conv-to-enc: New file.
99286         * lib/uniconv/u16-conv-to-enc.c: New file.
99287         * lib/uniconv/u-conv-to-enc.h: New file.
99288         * modules/uniconv/u16-conv-to-enc-tests: New file.
99289         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99291         * modules/uniconv/u8-conv-to-enc: New file.
99292         * lib/uniconv/u8-conv-to-enc.c: New file.
99293         * modules/uniconv/u8-conv-to-enc-tests: New file.
99294         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99296         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99297         u32_conv_to_encoding): New declarations.
99299 2007-06-09  Bruno Haible  <bruno@clisp.org>
99301         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99303 2007-06-09  Bruno Haible  <bruno@clisp.org>
99305         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99306         * modules/malloca: Renamed from modules/allocsa, updated.
99307         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99308         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99309         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99310         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99311         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99312         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99313         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99314         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99315         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99316         * modules/c-strcasestr (Depends-on): Update.
99317         * lib/c-strcasestr.c: Update.
99318         * modules/c-strstr (Depends-on): Update.
99319         * lib/c-strstr.c: Update.
99320         * modules/canonicalize-lgpl (Depends-on): Update.
99321         * lib/canonicalize-lgpl.c: Update.
99322         * modules/clean-temp (Depends-on): Update.
99323         * lib/clean-temp.c: Update.
99324         * modules/csharpcomp (Depends-on): Update.
99325         * lib/csharpcomp.c: Update.
99326         * modules/csharpexec (Depends-on): Update.
99327         * lib/csharpexec.c: Update.
99328         * modules/javacomp (Depends-on): Update.
99329         * lib/javacomp.c: Update.
99330         * modules/javaexec (Depends-on): Update.
99331         * lib/javaexec.c: Update.
99332         * modules/mbscasestr (Depends-on): Update.
99333         * lib/mbscasestr.c: Update.
99334         * modules/mbsstr (Depends-on): Update.
99335         * lib/mbsstr.c: Update.
99336         * modules/setenv (Depends-on): Update.
99337         * lib/setenv.c: Update.
99338         * modules/strcasestr (Depends-on): Update.
99339         * lib/strcasestr.c: Update.
99340         * modules/striconveha (Depends-on): Update.
99341         * lib/striconveha.c: Update.
99342         * modules/relocatable-prog-wrapper (Files): Update.
99343         * lib/relocwrapper.c: Update.
99344         * build-aux/install-reloc: Update.
99345         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99347 2007-06-08  Bruno Haible  <bruno@clisp.org>
99349         Port to uClibc.
99350         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99351         * lib/fpurge.c (fpurge): Likewise.
99352         * lib/freading.c (freading): Likewise.
99353         * lib/fseeko.c (rpl_fseeko): Likewise.
99354         * lib/fseterr.c (fseterr): Likewise.
99355         * lib/fwriting.c (fwriting): Likewise.
99356         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99358 2007-06-08  Bruno Haible  <bruno@clisp.org>
99360         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99361         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99362         * modules/gettext (Files): Add m4/intlmacosx.m4.
99364 2007-06-07  Bruno Haible  <bruno@clisp.org>
99366         * modules/localename-tests: New file.
99367         * tests/test-localename.c: New file.
99369         New module 'localename'.
99370         * lib/localename.h: New file.
99371         * lib/localename.c: New file, from GNU gettext.
99372         * m4/localename.m4: New file.
99373         * modules/localename: New file.
99375 2007-06-07  Bruno Haible  <bruno@clisp.org>
99377         Work around the lack of <wchar.h> on some builds of uClibc.
99378         * doc/headers/wchar.texi: Update.
99379         * lib/wchar_.h: Include <wchar.h> only if it exists.
99380         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99381         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99382         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99383         doesn't exist.
99384         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99385         * modules/mbfile (Depends-on): Add wchar.
99386         * modules/mbiter (Depends-on): Likewise.
99387         * modules/mbuiter (Depends-on): Likewise.
99388         Reported by Simon Josefsson.
99390 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99392         Work around problem reported by Steven M. Schweda in
99393         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99394         Tru64 5.1B with the Compaq compiler environment installed declares
99395         an 'isblank' function but does not define it in the C library.
99396         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99397         * lib/regex_internal.h (isblank): Likewise.
99398         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99401 2007-06-05  Bruno Haible  <bruno@clisp.org>
99403         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99404         ia64.
99405         * modules/printf-safe: New file.
99406         * modules/fprintf-posix (Depends-on): Add printf-safe.
99407         * modules/printf-posix (Depends-on): Likewise.
99408         * modules/snprintf-posix (Depends-on): Likewise.
99409         * modules/sprintf-posix (Depends-on): Likewise.
99410         * modules/vasnprintf-posix (Depends-on): Likewise.
99411         * modules/vasprintf-posix (Depends-on): Likewise.
99412         * modules/vfprintf-posix (Depends-on): Likewise.
99413         * modules/vprintf-posix (Depends-on): Likewise.
99414         * modules/vsnprintf-posix (Depends-on): Likewise.
99415         * modules/vsprintf-posix (Depends-on): Likewise.
99416         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99417         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99418         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99419         "no" on i386, x86_64, ia64.
99420         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99421         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99422         on i386, x86_64, ia64.
99423         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99424         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99425         on i386, x86_64, ia64.
99426         * tests/test-vasnprintf-posix.c: Include float.h.
99427         (LDBL80_WORDS): New macro.
99428         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99429         on i386, x86_64, ia64.
99430         * tests/test-vasprintf-posix.c: Include float.h.
99431         (LDBL80_WORDS): New macro.
99432         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99433         on i386, x86_64, ia64.
99434         * tests/test-snprintf-posix.c: Include float.h.
99435         * tests/test-sprintf-posix.c: Likewise.
99436         * tests/test-vsnprintf-posix.c: Likewise.
99437         * tests/test-vsprintf-posix.c: Likewise.
99439 2007-06-05  Bruno Haible  <bruno@clisp.org>
99441         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99442         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99443         non-IEEE numbers on i386, x86_64, ia64.
99444         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99445         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99446         * tests/test-isnanl.h: Include float.h.
99447         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99449 2007-06-05  Bruno Haible  <bruno@clisp.org>
99451         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99452         also the %a / %A. Handle the %a / %A code before this extra handling.
99454 2007-06-05  Bruno Haible  <bruno@clisp.org>
99456         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99457         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99459 2007-06-05  Bruno Haible  <bruno@clisp.org>
99461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99462         typo in variable name.
99464 2007-06-05  Eric Blake  <ebb9@byu.net>
99466         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99467         Reported by Simon Josefsson.
99469 2007-06-04  Bruno Haible  <bruno@clisp.org>
99471         Avoid test failures on some PowerPC platforms.
99472         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99473         Define differently for PowerPC.
99474         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99475         Reported by Gary V. Vaughan <gary@gnu.org>.
99477 2007-06-02  Bruno Haible  <bruno@clisp.org>
99479         Fix test-stdint failure on FreeBSD/ia64.
99480         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99481         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99482         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99483         * doc/headers/stdint.texi: Update.
99485 2007-06-01  Bruno Haible  <bruno@clisp.org>
99487         * tests/test-binary-io.c (main): Pass a third argument to open().
99488         Reported by Gary V. Vaughan <gary@gnu.org>.
99490 2007-06-01  Bruno Haible  <bruno@clisp.org>
99492         * doc/functions/frexpl.texi: Update for mingw.
99494 2007-06-01  Bruno Haible  <bruno@clisp.org>
99496         * tests/test-lseek.c (main): Disable test of errno for invalid third
99497         argument.
99498         * doc/functions/lseek.texi: Update.
99499         Reported by Gary V. Vaughan <gary@gnu.org>.
99501 2007-05-28  Bruno Haible  <bruno@clisp.org>
99503         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99505 2007-05-31  Eric Blake  <ebb9@byu.net>
99507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99508         cross compiling.
99510 2007-05-30  Eric Blake  <ebb9@byu.net>
99511         and Bruno Haible  <bruno@clisp.org>
99513         Work around mingw test failures exposed by m4-1.4.9b.
99514         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99515         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99516         moment.
99518 2007-05-30  Bruno Haible  <bruno@clisp.org>
99520         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99521         assuming that they are closed. Needed on HP-UX 11.
99523 2007-05-29  Bruno Haible  <bruno@clisp.org>
99525         Fix a problem with #include_next.
99526         * lib/dirent_.h: Split the double-inclusion guard.
99527         * lib/fcntl_.h: Likewise.
99528         * lib/float_.h: Likewise.
99529         * lib/iconv_.h: Likewise.
99530         * lib/inttypes_.h: Likewise.
99531         * lib/locale_.h: Likewise.
99532         * lib/math_.h: Likewise.
99533         * lib/netinet_in_.h: Likewise.
99534         * lib/search_.h: Likewise.
99535         * lib/signal_.h: Likewise.
99536         * lib/stdint_.h: Likewise.
99537         * lib/stdio_.h: Likewise.
99538         * lib/stdlib_.h: Likewise.
99539         * lib/string_.h: Likewise.
99540         * lib/sys_select_.h: Likewise.
99541         * lib/sys_socket_.h: Likewise.
99542         * lib/sys_stat_.h: Likewise.
99543         * lib/sys_time_.h: Likewise.
99544         * lib/sysexits_.h: Likewise.
99545         * lib/time_.h: Likewise.
99546         * lib/unistd_.h: Likewise.
99547         * lib/wchar_.h: Likewise.
99548         * lib/wctype_.h: Likewise.
99550 2007-05-29  Bruno Haible  <bruno@clisp.org>
99552         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99553         for the moment.
99555 2007-05-29  Bruno Haible  <bruno@clisp.org>
99557         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99558         invocation.
99559         Reported by Eric Blake.
99561 2007-05-29  Bruno Haible  <bruno@clisp.org>
99563         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99564         compiling case.
99566 2007-05-29  Eric Blake  <ebb9@byu.net>
99567             Bruno Haible  <bruno@clisp.org>
99569         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99570         cross compiles.
99572 2007-05-28  Eric Blake  <ebb9@byu.net>
99574         * modules/closein-tests (test_closein_LDADD): Support test on
99575         cygwin with libtool.
99577 2007-05-28  Bruno Haible  <bruno@clisp.org>
99579         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99580         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99581         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99582         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99583         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99584         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99585         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99586         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99587         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99589 2007-05-28  Eric Blake  <ebb9@byu.net>
99591         Unconditionally include <config.h> in unit tests.
99592         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
99593         * tests/test-allocsa.c, tests/test-arcfour.c,
99594         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
99595         tests/test-array_list.c, tests/test-array_oset.c,
99596         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
99597         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
99598         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
99599         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
99600         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
99601         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
99602         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
99603         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
99604         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
99605         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
99606         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
99607         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
99608         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
99609         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
99610         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
99611         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
99612         test-md5.c, test-memmem.c, test-printf-posix.c,
99613         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
99614         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
99615         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
99616         test-strcasestr.c, test-striconv.c, test-striconveh.c,
99617         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
99618         test-vasnprintf-posix2.c, test-vasnprintf.c,
99619         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
99620         test-vfprintf-posix.c, test-vprintf-posix.c,
99621         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
99622         test-xvasprintf.c: Likewise.
99624 2007-05-28  Bruno Haible  <bruno@clisp.org>
99626         * gnulib-tool (func_import): Remember the --with-tests command-line
99627         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
99628         Reported by Eric Blake.
99630 2007-05-28  Bruno Haible  <bruno@clisp.org>
99632         * modules/ftell-tests: New file.
99633         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
99634         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
99636         * lib/ftell.c: New file.
99637         * modules/ftell: New file.
99638         * m4/ftell.m4: New file.
99639         * doc/functions/ftell.texi: Update.
99640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
99641         REPLACE_FTELL.
99642         * lib/stdio_.h (rpl_ftell): New declaration.
99643         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
99644         REPLACE_FTELL.
99646 2007-05-28  Eric Blake  <ebb9@byu.net>
99648         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
99650 2007-05-28  Bruno Haible  <bruno@clisp.org>
99652         * modules/fseek-tests: New file.
99653         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
99654         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
99656         * lib/fseek.c: New file.
99657         * modules/fseek: New file.
99658         * m4/fseek.m4: New file.
99659         * doc/functions/fseek.texi: Update.
99660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
99661         REPLACE_FSEEK.
99662         * lib/stdio_.h (rpl_fseek): New declaration.
99663         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
99664         REPLACE_FSEEK.
99666 2007-05-28  Bruno Haible  <bruno@clisp.org>
99668         * lib/stdio_.h (fflush): More comments.
99670 2007-05-28  Bruno Haible  <bruno@clisp.org>
99672         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
99673         runtime test.
99675 2007-05-28  Eric Blake  <ebb9@byu.net>
99677         Improve lseek module.
99678         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
99679         * lib/unistd_.h (lseek): Scale back link warning message.
99680         * tests/test-lseek.c: Beef up test.
99681         * tests/test-lseek.sh: Exercise more facets of lseek.
99682         Reported by Bruno Haible.
99684 2007-05-28  Bruno Haible  <bruno@clisp.org>
99686         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
99687         to define.
99689 2007-05-27  Bruno Haible  <bruno@clisp.org>
99691         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
99693 2007-05-27  Bruno Haible  <bruno@clisp.org>
99695         * modules/openmp: New file.
99696         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
99697         Noah Misch.
99699 2007-05-26  Bruno Haible  <bruno@clisp.org>
99701         * modules/chdir-long (Depends-on): Add fchdir.
99702         * modules/chdir-safer (Depends-on): Likewise.
99703         * modules/fts (Depends-on): Likewise.
99704         * modules/fts-lgpl (Depends-on): Likewise.
99705         * modules/openat (Depends-on): Likewise.
99706         * modules/savewd (Depends-on): Likewise.
99708 2007-05-24  Eric Blake  <ebb9@byu.net>
99710         Fix lseek on mingw.
99711         * modules/lseek: New module.
99712         * m4/lseek.m4: New file.
99713         * lib/lseek.c: New file.
99714         * modules/lseek-tests: New file.
99715         * tests/test-lseek.c: New file.
99716         * tests/test-lseek.sh: New file.
99717         * MODULES.html.sh: Document lseek module.
99718         * modules/fflush (Depends-on): Add lseek, fseeko.
99719         * modules/fseeko (Depends-on): Likewise.
99720         * modules/ftello (Depends-on): Likewise.
99721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
99722         broken.
99723         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
99724         broken.
99725         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
99726         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
99727         * lib/ftello.c (rpl_ftello): Likewise.
99728         * tests/test-fseeko.c (main): Test this.
99729         * tests/test-fseeko.sh: Likewise.
99730         * tests/test-ftello.c (main): Likewise.
99731         * tests/test-ftello.sh: Likewise.
99732         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
99733         implies replacing fseek.
99734         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
99735         HAVE_FTELLO.
99736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
99737         * modules/unistd (Makefile.am): Likewise.
99738         * lib/unistd_.h (lseek): Declare a replacement.
99739         * doc/functions/lseek.texi (lseek): Document this fix.
99740         * doc/functions/fseek.texi (fseek): Likewise.
99741         * doc/functions/ftell.texi (ftell): Likewise.
99743 2007-05-24  Bruno Haible  <bruno@clisp.org>
99745         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
99746         in the printed representation of a NaN.
99747         * tests/test-vasprintf-posix.c (test_function): Likewise.
99748         * tests/test-snprintf-posix.h (test_function): Likewise.
99749         * tests/test-sprintf-posix.h (test_function): Likewise.
99750         Reported by Eric Blake.
99752 2007-05-23  Eric Blake  <ebb9@byu.net>
99754         Fix fseeko/ftello on cygwin 1.5.24.
99755         * doc/functions/fseeko.texi (fseeko): Document the fix.
99756         * doc/functions/ftello.texi (ftello): Document the fix.
99757         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
99758         * doc/functions/stdout.text (stdout): New file.
99759         * doc/functions/stderr.text (stderr): New file.
99760         * doc/gnulib.texi (Function Substitutes): Use new files.
99761         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
99762         prior to 1.7.0.
99763         * tests/test-ftello.c (main): Likewise for ftello.
99764         * tests/test-fseeko.sh: New file.
99765         * tests/test-ftello.sh: New file.
99766         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
99767         with seekable stdin.
99768         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
99769         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
99770         (gl_REPLACE_FSEEKO): New macro.
99771         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
99772         * modules/fseeko (Files): Distribute fseeko.c.
99773         * modules/ftello (Files): Distribute ftello.c.
99774         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
99775         mode.
99776         * lib/ftello.c (rpl_ftello): New file.
99777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
99778         fseeko, ftello.
99779         (gl_STDIN_LARGE_OFFSET): New macro.
99780         * modules/stdio (Makefile.am): Perform the replacement.
99781         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
99783 2007-05-23  Bruno Haible  <bruno@clisp.org>
99785         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
99786         GNULIB_POSIXCHECK is defined.
99788 2007-05-21  Bruno Haible  <bruno@clisp.org>
99790         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
99791         Check also the output for NaN arguments. When cross-compiling, guess
99792         no on IRIX.
99793         * lib/vasnprintf.c: Update comments.
99794         * tests/test-vasnprintf-posix.c (strisnan): New function.
99795         (test_function): Use it.
99796         * tests/test-vasprintf-posix.c (strisnan): New function.
99797         (test_function): Use it.
99798         * tests/test-snprintf-posix.h (strisnan): New function.
99799         (test_function): Use it.
99800         * tests/test-sprintf-posix.h (strisnan): New function.
99801         (test_function): Use it.
99802         Reported by Eric Blake.
99804 2007-05-20  Bruno Haible  <bruno@clisp.org>
99806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
99807         numbers that fails on BeOS.
99808         * doc/functions/frexpl.texi: Update.
99810 2007-05-20  Jim Meyering  <jim@meyering.net>
99812         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
99813         forced upon us by glibc-2.6.
99815 2007-05-20  Bruno Haible  <bruno@clisp.org>
99817         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
99818         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
99819         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
99820         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
99821         NEED_PRINTF_INFINITE.
99822         (is_infinitel): New function.
99823         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
99824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
99825         gl_PREREQ_VASNPRINTF_INFINITE.
99826         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
99827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99828         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
99829         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
99830         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
99831         gl_PREREQ_VASNPRINTF_INFINITE.
99832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99839         * doc/functions/fprintf.texi: Update.
99840         * doc/functions/printf.texi: Update.
99841         * doc/functions/snprintf.texi: Update.
99842         * doc/functions/sprintf.texi: Update.
99843         * doc/functions/vfprintf.texi: Update.
99844         * doc/functions/vprintf.texi: Update.
99845         * doc/functions/vsnprintf.texi: Update.
99846         * doc/functions/vsprintf.texi: Update.
99848 2007-05-20  Bruno Haible  <bruno@clisp.org>
99850         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
99851         was not found in libc.
99852         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
99854 2007-05-20  Bruno Haible  <bruno@clisp.org>
99856         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
99857         printed as "-nan" instead of "nan".
99858         * tests/test-vasprintf-posix.c (test_function): Likewise.
99859         * tests/test-snprintf-posix.h (test_function): Likewise.
99860         * tests/test-sprintf-posix.h (test_function): Likewise.
99861         Needed for HP-UX 11.
99863 2007-05-20  Jim Meyering  <jim@meyering.net>
99865         Fix buggy test for the fchownat-deref bug.
99866         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
99867         symlink required for the run-test.  Without it, this test would
99868         always declare that fchownat doesn't work, and client code would
99869         unnecessarily use the replacement function with fixed libc.
99870         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
99871         Reported by Greg Schafer.
99873 2007-05-19  Bruno Haible  <bruno@clisp.org>
99875         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
99876         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
99877         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
99878         Needed for IRIX 6.5 and Solaris 2.5.1.
99880 2007-05-19  Bruno Haible  <bruno@clisp.org>
99882         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
99883         (test_function): Skip tests involving -0.0 on platforms where
99884         -0.0 = 0.0.
99885         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
99886         (test_function): Skip tests involving -0.0 on platforms where
99887         -0.0 = 0.0.
99888         * tests/test-snprintf-posix.h (have_minus_zero): New function.
99889         (test_function): Skip tests involving -0.0 on platforms where
99890         -0.0 = 0.0.
99891         * tests/test-sprintf-posix.h (have_minus_zero): New function.
99892         (test_function): Skip tests involving -0.0 on platforms where
99893         -0.0 = 0.0.
99894         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
99895         tests.
99896         * tests/test-printf-posix.h (test_function): Likewise.
99897         * tests/test-printf-posix.output: Remove all -0.0 related results.
99898         Needed for IRIX 6.5.
99900 2007-05-19  Bruno Haible  <bruno@clisp.org>
99902         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
99903         printed as "nan0x7fffffff" instead of "nan".
99904         * tests/test-vasprintf-posix.c (test_function): Likewise.
99905         * tests/test-snprintf-posix.h (test_function): Likewise.
99906         * tests/test-sprintf-posix.h (test_function): Likewise.
99907         * tests/test-fprintf-posix.h (NaN): Remove macro.
99908         (test_function): Remove all NaN related tests.
99909         * tests/test-printf-posix.h (NaN): Remove macro.
99910         (test_function): Remove all NaN related tests.
99911         * tests/test-printf-posix.output: Remove all NaN related results.
99912         Needed for IRIX 6.5.
99914 2007-05-19  Bruno Haible  <bruno@clisp.org>
99916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
99917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
99919 2007-05-19  Bruno Haible  <bruno@clisp.org>
99921         * lib/float_.h: New file.
99922         * m4/float_h.m4: New file.
99923         * modules/float: New file.
99924         * modules/isnanl (Dependencies): Add float.
99925         * modules/isnanl-nolibm (Dependencies): Likewise.
99926         * modules/mathl (Dependencies): Likewise.
99927         * modules/printf-frexpl (Dependencies): Likewise.
99928         * modules/signbit (Dependencies): Likewise.
99929         * modules/vasnprintf (Dependencies): Likewise.
99930         * doc/headers/float.texi: Update.
99932 2007-05-19  Jim Meyering  <jim@meyering.net>
99934         * lib/utimens.c (gl_futimens): Rename from futimens,
99935         now that glibc-2.6 declares futimens.
99936         * lib/utimens.h: Likewise.
99938 2007-05-19  Bruno Haible  <bruno@clisp.org>
99940         Avoid test failures on mingw.
99941         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
99942         * tests/test-printf-posix.sh: Likewise.
99943         * tests/test-vfprintf-posix.sh: Likewise.
99944         * tests/test-vprintf-posix.sh: Likewise.
99946 2007-05-19  Bruno Haible  <bruno@clisp.org>
99948         Fix *printf result for NaN, Inf, -0.0 on mingw.
99949         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
99950         * lib/vasnprintf.c: Include math.h and isnan.h.
99951         (is_infinite_or_zero): New function.
99952         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
99953         values in the %f, %F, %e, %E, %g, %G directives.
99954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
99955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99956         gl_PRINTF_INFINITE and test its result. Invoke
99957         gl_PREREQ_VASNPRINTF_INFINITE.
99958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99962         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99963         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99965         * doc/functions/fprintf.texi: Update.
99966         * doc/functions/printf.texi: Update.
99967         * doc/functions/snprintf.texi: Update.
99968         * doc/functions/sprintf.texi: Update.
99969         * doc/functions/vfprintf.texi: Update.
99970         * doc/functions/vprintf.texi: Update.
99971         * doc/functions/vsnprintf.texi: Update.
99972         * doc/functions/vsprintf.texi: Update.
99974 2007-05-19  Bruno Haible  <bruno@clisp.org>
99976         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
99977         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
99978         Instead of multiplying with 10^k, set extra_zeroes to k.
99979         (scale10_round_long_double): Remove function.
99981 2007-05-18  Bruno Haible  <bruno@clisp.org>
99983         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
99984         introduced on 2007-05-06.
99986 2007-05-18  Bruno Haible  <bruno@clisp.org>
99988         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
99989         %g directives.
99990         * tests/test-vasprintf-posix.c (test_function): Likewise.
99991         * tests/test-snprintf-posix.h (test_function): Likewise.
99992         * tests/test-sprintf-posix.h (test_function): Likewise.
99994 2007-05-18  Bruno Haible  <bruno@clisp.org>
99996         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
99997         (strmatch): New function.
99998         (test_function): Test the %f directive on numbers of various exponents.
99999         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100000         (strmatch): New function.
100001         (test_function): Test the %f directive on numbers of various exponents.
100002         * tests/test-snprintf-posix.h (strmatch): New function.
100003         (test_function): Test the %f directive on numbers of various exponents.
100004         * tests/test-sprintf-posix.h (strmatch): New function.
100005         (test_function): Test the %f directive on numbers of various exponents.
100006         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100007         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100008         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100009         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100011 2007-05-18  Bruno Haible  <bruno@clisp.org>
100013         Add support for 'long double' number output.
100014         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100015         * lib/vasnprintf.c: Include math.h and float+.h.
100016         (mp_limb_t): New type.
100017         (GMP_LIMB_BITS): New macro.
100018         (mp_twolimb_t): New type.
100019         (GMP_TWOLIMB_BITS): New macro.
100020         (mpn_t): New type.
100021         (multiply, divide, convert_to_decimal, decode_long_double,
100022         scale10_round_long_double, scale10_round_decimal_long_double,
100023         floorlog10l): New functions.
100024         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100025         for the %f, %F, %e, %E, %g, %G directives.
100026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100028         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100029         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100037         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100038         * modules/snprintf-posix (Depends-on): Likewise.
100039         * modules/sprintf-posix (Depends-on): Likewise.
100040         * modules/vasnprintf-posix (Depends-on): Likewise.
100041         * modules/vasprintf-posix (Depends-on): Likewise.
100042         * modules/vfprintf-posix (Depends-on): Likewise.
100043         * modules/vsnprintf-posix (Depends-on): Likewise.
100044         * modules/vsprintf-posix (Depends-on): Likewise.
100045         * modules/vasnprintf (Files): Add lib/float+.h.
100046         * doc/functions/fprintf.texi: Update.
100047         * doc/functions/printf.texi: Update.
100048         * doc/functions/snprintf.texi: Update.
100049         * doc/functions/sprintf.texi: Update.
100050         * doc/functions/vfprintf.texi: Update.
100051         * doc/functions/vprintf.texi: Update.
100052         * doc/functions/vsnprintf.texi: Update.
100053         * doc/functions/vsprintf.texi: Update.
100055 2007-05-18  Bruno Haible  <bruno@clisp.org>
100057         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100059 2007-05-18  Bruno Haible  <bruno@clisp.org>
100061         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100062         for printing 64-bit integers. Needed for mingw.
100064 2007-05-18  Bruno Haible  <bruno@clisp.org>
100066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100067         gl_FUNC_FREXPL_WORKS.
100068         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100070 2007-05-18  Bruno Haible  <bruno@clisp.org>
100072         * modules/frexpl-nolibm-tests: New file.
100074         * modules/frexpl-nolibm: New file.
100075         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100077 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100079         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100080         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100081         GCC 4.2, which otherwise issues a lot of warnings.
100082         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100083         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100084         Likewise.
100085         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100086         * modules/iconv_open (iconv.h): Likewise.
100087         * modules/locale (locale.h): Likewise.
100088         * modules/netinet_in (netinet/in.h): Likewise.
100089         * modules/sys_select (sys_select.h): Likewise.
100090         * modules/sys_socket (sys/socket.h): Likewise.
100091         * modules/sys_stat (sys/stat.h): Likewise.
100092         * modules/sysexits (sysexits.h): Likewise.
100093         * modules/unistd (unistd.h): Likewise.
100095 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100097         * modules/closein-tests (Makefile.am): Distribute
100098         `test-closein.sh'.
100100 2007-05-17  Bruno Haible  <bruno@clisp.org>
100102         * tests/test-printf-posix.output: Renamed from
100103         tests/test-fprintf-posix.out.
100104         * modules/fprintf-posix-tests: Update.
100105         * modules/printf-posix-tests: Update.
100106         * modules/vfprintf-posix-tests: Update.
100107         * modules/vprintf-posix-tests: Update.
100108         * tests/test-fprintf-posix.sh: Update.
100109         * tests/test-printf-posix.sh: Update.
100110         * tests/test-vfprintf-posix.sh: Update.
100111         * tests/test-vprintf-posix.sh: Update.
100112         Reported by Ralf Wildenhues.
100114 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100116         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100117         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100118         GCC 4.2, which otherwise issues a lot of warnings.
100119         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100120         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100121         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100122         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100123         it should no longer be needed.
100124         * lib/string_.h: Likewise.
100125         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100126         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100127         * modules/inttypes (inttypes.h): Likewise.
100128         * modules/math (math.h): Likewise.
100129         * modules/search (search.h): Likewise.
100130         * modules/signal (signal.h): Likewise.
100131         * modules/stdint (stdint.h): Likewise.
100132         * modules/stdio (stdio.h): Likewise.
100133         * modules/stdlib (stdlib.h): Likewise.
100134         * modules/string (string.h): Likewise.
100135         * modules/sys_time (sys/time.h): Likewise.
100136         * modules/time (time.h): Likewise.
100137         * modules/wchar (wchar.h): Likewise.
100138         * modules/wctype (wtype.h): Likewise.
100140 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100142         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100144 2007-05-13  Bruno Haible  <bruno@clisp.org>
100146         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100147         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100148         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100149         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100150         (gl_PREREQ_STRTOK_R): Don't require it here.
100152 2007-05-13  Bruno Haible  <bruno@clisp.org>
100154         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100155         when used in C++ mode.
100157 2007-05-12  Bruno Haible  <bruno@clisp.org>
100159         * lib/linebuffer.h: Tweak doc.
100160         * lib/linebuffer.c: Likewise.
100162 2007-05-12  James Youngman  <jay@gnu.org>
100164         * lib/linebuffer.c (readlinebuffer_delim): New function,
100165         like readlinebuffer, but use a caller-specified delimiter.
100166         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100167         as the delimiter.
100168         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100170 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100172         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100173         * modules/openat (Files): Remove openat-die.c.
100174         (Depends-on): Add openat-die.
100175         * modules/openat-die: New module.
100177 2007-05-06  Bruno Haible  <bruno@clisp.org>
100179         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100180         Update with info about Cygwin.
100181         * doc/functions/fprintf.texi: Update.
100182         * doc/functions/printf.texi: Update.
100183         * doc/functions/snprintf.texi: Update.
100184         * doc/functions/sprintf.texi: Update.
100185         * doc/functions/vfprintf.texi: Update.
100186         * doc/functions/vprintf.texi: Update.
100187         * doc/functions/vsnprintf.texi: Update.
100188         * doc/functions/vsprintf.texi: Update.
100189         Reported by Eric Blake.
100191 2007-05-06  Bruno Haible  <bruno@clisp.org>
100193         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100194         padding ourselves for the floating-point directives.
100195         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100198         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100199         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100203         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100207         * tests/test-snprintf-posix.h (test_function): Also check the width
100208         and some flags in the %f directive.
100209         * tests/test-sprintf-posix.h (test_function): Likewise.
100210         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100211         * tests/test-vasprintf-posix.c (test_function): Likewise.
100212         * doc/functions/fprintf.texi: Update.
100213         * doc/functions/printf.texi: Update.
100214         * doc/functions/snprintf.texi: Update.
100215         * doc/functions/sprintf.texi: Update.
100216         * doc/functions/vfprintf.texi: Update.
100217         * doc/functions/vprintf.texi: Update.
100218         * doc/functions/vsnprintf.texi: Update.
100219         * doc/functions/vsprintf.texi: Update.
100221 2007-05-06  Bruno Haible  <bruno@clisp.org>
100223         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100224         pass the ' flag character to sprintf or snprintf.
100225         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100228         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100229         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100230         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100237         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100238         flag.
100239         * tests/test-sprintf-posix.h (test_function): Likewise.
100240         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100241         * tests/test-vasprintf-posix.c (test_function): Likewise.
100242         * doc/functions/fprintf.texi: Update.
100243         * doc/functions/printf.texi: Update.
100244         * doc/functions/snprintf.texi: Update.
100245         * doc/functions/sprintf.texi: Update.
100246         * doc/functions/vfprintf.texi: Update.
100247         * doc/functions/vprintf.texi: Update.
100248         * doc/functions/vsnprintf.texi: Update.
100249         * doc/functions/vsprintf.texi: Update.
100251 2007-05-01  Bruno Haible  <bruno@clisp.org>
100253         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100255 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100258         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100260 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100262         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100263         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100264         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100266 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100268         * lib/argp-help.c (struct hol_entry): New member `ord'.
100269         (HOL_ENTRY_PTRCMP): Use ord for comparison
100270         (hol_sort): Initialize ord.
100272 2007-05-01  Bruno Haible  <bruno@clisp.org>
100274         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100275         Reported by Eric Blake.
100276         * doc/gnulib.texi (Function Substitutes): Update.
100278 2007-05-01  Bruno Haible  <bruno@clisp.org>
100280         * doc/functions.texi: Remove file, now redundant through
100281         doc/functions/*.texi.
100283 2007-05-01  Bruno Haible  <bruno@clisp.org>
100285         * modules/argp (Depends-on): Add sleep.
100287 2007-05-01  Bruno Haible  <bruno@clisp.org>
100289         * modules/sleep-tests: New file.
100290         * tests/test-sleep.c: New file.
100292         * modules/sleep: New file.
100293         * lib/sleep.c: New file.
100294         * m4/sleep.m4: New file.
100295         * lib/unistd_.h (sleep): New declaration.
100296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100297         HAVE_SLEEP.
100298         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100299         * doc/functions/sleep.texi: Document the sleep module.
100301 2007-05-01  Bruno Haible  <bruno@clisp.org>
100303         * lib/sigprocmask.h: Remove file.
100304         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100305         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100307         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100308         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100309         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100310         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100311         HAVE_SIGSET_T as a shell variable.
100312         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100313         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100314         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100315         (Depends-on): Add signal. Remove verify.
100316         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100317         (Include): Mention <signal.h> instead of sigprocmask.h.
100318         * NEWS: Mention the change.
100319         * lib/fatal-signal.c: Don't include sigprocmask.h.
100321 2007-05-01  Bruno Haible  <bruno@clisp.org>
100323         * modules/signal: New file.
100324         * lib/signal_.h: New file.
100325         * m4/signal_h.m4: New file.
100327 2007-05-01  Bruno Haible  <bruno@clisp.org>
100329         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100330         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100331         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100332         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100334 2007-05-01  Bruno Haible  <bruno@clisp.org>
100336         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100337         configure time.
100338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100339         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100340         * modules/sys_stat (Makefile.am): Substitute their values into
100341         sys/stat.h.
100343 2007-05-01  Bruno Haible  <bruno@clisp.org>
100345         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100346         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100347         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100349 2007-05-01  Bruno Haible  <bruno@clisp.org>
100351         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100352         'assert' module here.
100354 2007-05-01  Bruno Haible  <bruno@clisp.org>
100356         * doc/functions/*.texi: New files.
100357         * doc/functions/google-ranking.txt: New file.
100358         * doc/gnulib.texi (Function Substitutes): New chapter.
100359         (ctime, inet_ntoa): Remove sections.
100360         * doc/ctime.texi: Remove file.
100361         * doc/inet_ntoa.texi: Remove file.
100362         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100363         dependencies.
100364         (%.info): New rule, specifying a --reference-limit.
100366 2007-05-01  Bruno Haible  <bruno@clisp.org>
100368         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100370 2007-05-01  Bruno Haible  <bruno@clisp.org>
100372         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100373         the portability of 'mkdir' to mingw systems.
100375 2007-05-01  Bruno Haible  <bruno@clisp.org>
100377         * doc/headers/google-ranking.txt: New file.
100379 2007-04-30  Eric Blake  <ebb9@byu.net>
100381         Prefer fseeko to fseek.
100382         * modules/getpass (Depends-on): Add fseeko.
100383         * lib/getpass.c (getpass): Use fseeko, not fseek.
100385 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100387         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100388         assumes the sorting is stable, while most qsort implementations
100389         are not.  Use argument addresses to ensure they never compare as
100390         equal.
100392         * tests/test-argp-2.sh (usage-indent test): Fix output
100393         (func_compare): Restore diff options
100394         * tests/test-argp.c: Restore #include "progname.h"
100396 2007-04-29  Bruno Haible  <bruno@clisp.org>
100398         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100400         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100401         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100402         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100403         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100404         (TESTS, check_PROGRAMS): Add test-snprintf.
100405         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100406         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100407         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100408         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100409         assertions that fail on HP-UX, OSF/1, or IRIX.
100410         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100412 2007-04-29  Bruno Haible  <bruno@clisp.org>
100414         * MODULES.html.sh (posix_functions): Remove 'contents'.
100416 2007-04-29  Karl Berry  <karl@gnu.org>
100418         * config/srclist.txt (gendocs_template_min): new entry.
100420 2007-04-29  Bruno Haible  <bruno@clisp.org>
100422         Work around fpurge bug on BSD systems.
100423         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100424         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100425         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100426         fpurge to rpl_fpurge if the system already has this function.
100427         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100428         the case where the system already has this function. Correct invariants
100429         on BSD systems.
100430         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100431         BSD systems.
100433 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100435         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100436         proposed by Sven Verdoolaege.
100438         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100439         options.
100440         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100441         (usage and help tests): Update
100443 2007-04-29  Bruno Haible  <bruno@clisp.org>
100445         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100446         Print more information in case of failure. Disable a test on BeOS.
100448 2007-04-29  Bruno Haible  <bruno@clisp.org>
100450         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100451         This helps debugging on systems on which no gdb is available.
100453 2007-04-29  Bruno Haible  <bruno@clisp.org>
100455         * lib/freading.h: Improve comments.
100456         * lib/fwriting.h: Likewise.
100457         * tests/test-freading.c (main): Don't check freading immediately after
100458         repositioning. Needed for glibc.
100460 2007-04-29  Bruno Haible  <bruno@clisp.org>
100462         * lib/freading.c (freading): Trivial simplification.
100464 2007-04-28  Bruno Haible  <bruno@clisp.org>
100466         * tests/test-fwriting.c (main): Also test the interaction between
100467         fflush and fwriting.
100468         * modules/fwriting-tests (Depends-on): Add fflush.
100470         * tests/test-freading.c (main): Also test the interaction between
100471         fflush and freading.
100472         * modules/freading-tests (Depends-on): Add fflush.
100474 2007-04-28  Bruno Haible  <bruno@clisp.org>
100476         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100477         fseeko and ftello.
100478         Suggested by Eric Blake.
100480 2007-04-28  Jim Meyering  <jim@meyering.net>
100482         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100483         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100484         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100486 2007-04-27  Eric Blake  <ebb9@byu.net>
100488         * doc/headers/assert.texi (assert.h): Document assert module use.
100490 2007-04-27  Bruno Haible  <bruno@clisp.org>
100492         * doc/headers/*.texi: New files.
100493         * doc/gnulib.texi (Header File Substitutes): New chapter.
100494         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100495         dependencies.
100496         (standards.info ,standards.html, standards.dvi): Update dependencies.
100497         (mostlyclean, clean): New targets.
100499 2007-04-27  Bruno Haible  <bruno@clisp.org>
100501         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100502         * modules/sysexits (Files, Makefile.am): Update.
100504         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100505         * modules/sys_socket (Files, Makefile.am): Update.
100507         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100508         * modules/sys_stat (Files, Makefile.am): Update.
100510 2007-04-27  Eric Blake  <ebb9@byu.net>
100512         * lib/freading.h: Improve comments.
100513         * lib/fwriting.h: Likewise.
100514         * lib/fflush.c: Likewise.
100516         Fix closein for mingw.
100517         * modules/closein-tests: Add tests for closein.
100518         * tests/test-closein.c: New file.
100519         * tests/test-closein.sh: Likewise.
100520         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100521         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100523 2007-04-27  Bruno Haible  <bruno@clisp.org>
100525         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100526         version is < 6.
100527         * lib/math_.h [__DECC]: Likewise.
100528         * lib/stdio_.h [__DECC]: Likewise.
100529         * lib/stdlib_.h [__DECC]: Likewise.
100530         * lib/string_.h [__DECC]: Likewise.
100531         * lib/time_.h [__DECC]: Likewise.
100532         * lib/wchar_.h [__DECC]: Likewise.
100533         * lib/wctype_.h [__DECC]: Likewise.
100535 2007-04-27  Bruno Haible  <bruno@clisp.org>
100537         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100539 2007-04-27  Bruno Haible  <bruno@clisp.org>
100541         * lib/fflush.c: Add comments.
100542         * modules/fpurge-tests (Depends-on): Add fflush.
100543         * modules/freadable-tests (Depends-on): Likewise.
100544         * modules/fwritable-tests (Depends-on): Likewise.
100546 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100548         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100549         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100550         Report by Bruno Haible <bruno@clisp.org>.
100552 2007-04-26  Eric Blake  <ebb9@byu.net>
100554         Fix fflush on mingw.
100555         * modules/fflush (Depends-on): Add freading.
100556         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100557         but unread data.
100559 2007-04-26  Eric Blake  <ebb9@byu.net>
100560         and Bruno Haible  <bruno@clisp.org>
100562         Implement freading and fwriting.
100563         * lib/freading.c: New file.
100564         * lib/freading.h: Likewise.
100565         * m4/freading.m4: Likewise.
100566         * modules/freading: Likewise.
100567         * modules/freading-tests: Likewise.
100568         * tests/test-freading.c: Likewise.
100569         * lib/fwriting.c: New file.
100570         * lib/fwriting.h: Likewise.
100571         * m4/fwriting.m4: Likewise.
100572         * modules/fwriting: Likewise.
100573         * modules/fwriting-tests: Likewise.
100574         * tests/test-fwriting.c: Likewise.
100575         * MODULES.html.sh (File stream based Input/Output): Mention them.
100577 2007-04-26  Bruno Haible  <bruno@clisp.org>
100579         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100580         'long' when we assume it.
100581         Suggested by Eric Blake.
100583 2007-04-26  Bruno Haible  <bruno@clisp.org>
100585         Ensure fseeko, ftello are declared on glibc systems.
100586         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
100587         * modules/fseeko (configure.ac-early): Likewise.
100588         * modules/ftello (configure.ac-early): Likewise.
100589         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
100590         AC_FUNC_FSEEKO for this.
100591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
100592         (gl_CHECK_FSEEKO): Remove macro.
100594 2007-04-26  Bruno Haible  <bruno@clisp.org>
100596         * tests/test-fflush.c (main): Also check the ftell result after
100597         fflush and fseek/fseeko.
100598         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
100599         file descriptor position cache in the stream.
100600         * lib/fseeko.c (rpl_fseeko): Likewise.
100602 2007-04-26  Bruno Haible  <bruno@clisp.org>
100604         * modules/fflush-tests (Depends-on): Add fseeko.
100606 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
100607             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100609         * lib/argz_.h: ensure error_t definition is obtained in same
100610         mechanism system argz.h would have.
100611         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
100612         argz facilities are known bad.  Err on the side of caution if
100613         cross-compiling.
100615 2007-04-25  Eric Blake  <ebb9@byu.net>
100617         * lib/fpurge.c (includes): Use stdlib.h for free.
100618         * tests/test-fflush.c (main): Also test fflush-fseeko.
100620 2007-04-25  Bruno Haible  <bruno@clisp.org>
100622         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
100623         * lib/fseeko.c: New file.
100624         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
100625         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
100626         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
100627         gl_FUNC_FSEEKO.
100628         (gl_FUNC_FSEEKO): Invoke it.
100629         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
100630         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
100631         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
100633 2007-04-25  Bruno Haible  <bruno@clisp.org>
100635         * modules/fflush (Depends-on): Add ftello.
100637 2007-04-25  Bruno Haible  <bruno@clisp.org>
100639         * modules/ftello-tests: New file.
100640         * tests/test-ftello.c: New file.
100642         * modules/ftello: New file.
100643         * m4/ftello.m4: New file.
100644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
100645         HAVE_FTELLO.
100646         * lib/stdio_.h (ftello): New declaration.
100647         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
100648         HAVE_FTELLO.
100650 2007-04-25  Bruno Haible  <bruno@clisp.org>
100652         * modules/fseeko-tests: New file.
100653         * tests/test-fseeko.c: New file.
100655         * modules/fseeko: New file.
100656         * m4/fseeko.m4: New file.
100657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
100658         HAVE_FSEEKO.
100659         * lib/stdio_.h (fseeko): New declaration.
100660         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
100661         HAVE_FSEEKO.
100663 2007-04-25  Bruno Haible  <bruno@clisp.org>
100665         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
100667 2007-04-25  Bruno Haible  <bruno@clisp.org>
100669         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
100670         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
100671         * tests/test-unistd.c: Likewise.
100672         * tests/test-fcntl.c: Likewise.
100674 2007-04-23  Eric Blake  <ebb9@byu.net>
100676         * lib/fflush.c: Fix missing include.
100677         Reported by Bruno Haible.
100679 2007-04-23  Bruno Haible  <bruno@clisp.org>
100681         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100682         Reported by Eric Blake.
100684 2007-04-23  Bruno Haible  <bruno@clisp.org>
100686         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
100688 2007-04-23  Bruno Haible  <bruno@clisp.org>
100690         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
100692 2007-04-23  Bruno Haible  <bruno@clisp.org>
100694         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
100695         Needed on HP-UX 11.
100697 2007-04-16  Eric Blake  <ebb9@byu.net>
100699         Make fflush rely on fpurge.
100700         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
100701         open coding all variants.
100702         * modules/fflush (Depends-on): Add fpurge and unistd.
100703         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
100704         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
100706         Fix --with-tests compilation on cygwin.
100707         * modules/argmatch-tests (Makefile.am): List gnulib library first
100708         in LDADD.
100709         * modules/argp-tests (Makefile.am): Likewise.
100710         * modules/array-list-tests (Makefile.am): Likewise.
100711         * modules/array-oset-tests (Makefile.am): Likewise.
100712         * modules/avltree-list-tests (Makefile.am): Likewise.
100713         * modules/avltree-oset-tests (Makefile.am): Likewise.
100714         * modules/avltreehash-list-tests (Makefile.am): Likewise.
100715         * modules/carray-list-tests (Makefile.am): Likewise.
100716         * modules/dirname-tests (Makefile.am): Likewise.
100717         * modules/frexp-tests (Makefile.am): Likewise.
100718         * modules/isnanl-tests (Makefile.am): Likewise.
100719         * modules/linked-list-tests (Makefile.am): Likewise.
100720         * modules/linkedhash-list-tests (Makefile.am): Likewise.
100721         * modules/lock-tests (Makefile.am): Likewise.
100722         * modules/rbtree-list-tests (Makefile.am): Likewise.
100723         * modules/rbtree-oset-tests (Makefile.am): Likewise.
100724         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
100725         * modules/tls-tests (Makefile.am): Likewise.
100726         * modules/tsearch-tests (Makefile.am): Likewise.
100727         * modules/xvasprintf-tests (Makefile.am): Likewise.
100729         Fix fpurge for cygwin.
100730         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
100731         value.
100732         * modules/fpurge-tests (Depends-on): Clean up trash.
100734 2007-04-16  Simon Josefsson  <simon@josefsson.org>
100736         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
100738         * m4/autobuild.m4: Re-indent.
100740 2007-04-13  Bruno Haible  <bruno@clisp.org>
100742         * modules/fpurge-tests: New file.
100743         * tests/test-fpurge.c: New file.
100745         * modules/fpurge: New file.
100746         * lib/fpurge.h: New file.
100747         * lib/fpurge.c: New file.
100748         * m4/fpurge.m4: New file.
100750 2007-04-13  Bruno Haible  <bruno@clisp.org>
100752         * modules/fbufmode-tests: New file.
100753         * tests/test-fbufmode.c: New file.
100755         * modules/fbufmode: New file.
100756         * lib/fbufmode.h: New file.
100757         * lib/fbufmode.c: New file.
100758         * m4/fbufmode.m4: New file.
100760 2007-04-13  Bruno Haible  <bruno@clisp.org>
100762         * modules/fwritable-tests: New file.
100763         * tests/test-fwritable.c: New file.
100765         * modules/fwritable: New file.
100766         * lib/fwritable.h: New file.
100767         * lib/fwritable.c: New file.
100768         * m4/fwritable.m4: New file.
100770 2007-04-13  Bruno Haible  <bruno@clisp.org>
100772         * modules/freadable-tests: New file.
100773         * tests/test-freadable.c: New file.
100775         * modules/freadable: New file.
100776         * lib/freadable.h: New file.
100777         * lib/freadable.c: New file.
100778         * m4/freadable.m4: New file.
100780 2007-04-13  Bruno Haible  <bruno@clisp.org>
100782         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
100783         MOSTLYCLEANFILES.
100785 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100787         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
100788         gzip bootstrap.conf to avoid dragging in i18n machinery.
100789         (gnulib_tool_option): Use it.
100791 2007-04-13  Bruno Haible  <bruno@clisp.org>
100793         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
100794         %F directives.
100795         * tests/test-vasprintf-posix.c (test_function): Likewise.
100796         * tests/test-snprintf-posix.h (test_function): Likewise.
100797         * tests/test-sprintf-posix.h (test_function): Likewise.
100798         * tests/test-fprintf-posix.h (test_function): Likewise.
100799         * tests/test-printf-posix.h (test_function): Likewise.
100800         * tests/test-fprintf-posix.out: Likewise.
100802 2007-04-13  Bruno Haible  <bruno@clisp.org>
100804         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
100805         * modules/tls-tests (configure.ac): Likewise.
100806         Reported by Arto C. Nirkko <anirkko@insel.ch>.
100808 2007-04-13  Bruno Haible  <bruno@clisp.org>
100810         * lib/tls.c (glthread_tls_get): Fix return type.
100811         Patch by Arto C. Nirkko <anirkko@insel.ch>.
100813 2007-04-12  Eric Blake  <ebb9@byu.net>
100815         * modules/gettime (Depends-on): Remove gettime.
100816         Reported by Dmitry V. Levin.
100818 2007-04-12  Bruno Haible  <bruno@clisp.org>
100820         * modules/fflush (Include): Mention <stdio.h>.
100821         * modules/strtoimax (Include): Mention <inttypes.h>.
100822         * modules/strtoumax (Include): Likewise.
100824 2007-04-12  Eric Blake  <ebb9@byu.net>
100826         * .cvsignore: New file.
100827         * .gitignore: Likewise.
100829 2007-04-12  Bruno Haible  <bruno@clisp.org>
100831         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
100832         not before, since $(LDADD) often contains libgnu.a.
100833         * modules/striconv-tests (test_striconv_LDADD): Likewise.
100834         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
100835         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
100836         Needed on Cygwin.
100838 2007-04-12  Eric Blake  <ebb9@byu.net>
100840         Work around glibc's failure to flush stdin on fclose.
100841         * lib/closein.c (close_stdin): Flush stdin before closing.
100843         Work around glibc's failure to reset seekable stdin on exit.
100844         * modules/closein: New module.
100845         * lib/closein.c: New file.
100846         * lib/closein.h: Likewise.
100847         * m4/closein.m4: Likewise.
100848         * MODULES.html.sh (File stream based Input/Output): Document it.
100850 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100852         * gnulib-tool: Rename generated 'autobuild' script to
100853         'do-autobuild' in --create-megatestdir output.
100855         * doc/gnulib.texi (Build robot for gnulib): Fix.
100857 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100859         * modules/sysexits (Depends-on): Add absolute-header.
100861 2007-04-12  Eric Blake  <ebb9@byu.net>
100863         No need to preserve errno on success.
100864         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
100865         Reported by Bruno Haible.
100867 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100869         * MODULES.html.sh (Support for maintaining and releasing
100870         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
100872 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100874         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
100876 2007-04-12  Simon Josefsson  <simon@josefsson.org>
100878         * modules/autobuild: New module.
100880         * m4/autobuild.m4: New file.
100882 2007-04-11  Bruno Haible  <bruno@clisp.org>
100884         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
100885         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
100886         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
100887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
100888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
100895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
100898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
100901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
100904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
100907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
100910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
100911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
100912         Reported by Eric Blake.
100914 2007-04-11  Bruno Haible  <bruno@clisp.org>
100916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
100918 2007-04-10  Bruno Haible  <bruno@clisp.org>
100920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
100921         for NaN and Infinity. Needed on FreeBSD 6.1.
100922         * tests/test-vasnprintf-posix.c (test_function): Undo last change
100923         regarding results for "%010a" of Infinity and NaN.
100924         * tests/test-vasprintf-posix.c (test_function): Likewise.
100925         * tests/test-snprintf-posix.h (test_function): Likewise.
100926         * tests/test-sprintf-posix.h (test_function): Likewise.
100927         * tests/test-fprintf-posix.h (test_function): Likewise.
100928         * tests/test-printf-posix.h (test_function): Likewise.
100929         * tests/test-fprintf-posix.out: Likewise.
100931 2007-04-10  Bruno Haible  <bruno@clisp.org>
100933         * modules/locale-tests: New file.
100934         * tests/test-locale.c: New file.
100936         * modules/locale: New file.
100937         * lib/locale_.h: New file.
100938         * m4/locale_h.m4: New file.
100940 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
100941             Bruno Haible  <bruno@clisp.org>
100943         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
100944         be determined, test for availability of the copysignf, copysign,
100945         copysignl functions.
100946         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
100947         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
100948         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
100950 2007-04-09  Eric Blake  <ebb9@byu.net>
100952         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
100953         * modules/stdio (Makefile.am): Support fflush.
100954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
100955         * modules/fflush: New file.
100956         * lib/fflush.c: Likewise.
100957         * m4/fflush.m4: Likewise.
100958         * modules/fflush-tests: New test.
100959         * tests/test-fflush.c: Likewise.
100960         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
100962 2007-04-06  Bruno Haible  <bruno@clisp.org>
100964         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
100965         (VASNPRINTF): Use signbit for faster determination whether to print a
100966         minus sign.
100967         * modules/vasnprintf (Files): Remove lib/float+.h.
100968         * modules/fprintf-posix (Depends-on): Add signbit.
100969         * modules/snprintf-posix (Depends-on): Likewise.
100970         * modules/sprintf-posix (Depends-on): Likewise.
100971         * modules/vasnprintf-posix (Depends-on): Likewise.
100972         * modules/vasprintf-posix (Depends-on): Likewise.
100973         * modules/vfprintf-posix (Depends-on): Likewise.
100974         * modules/vsnprintf-posix (Depends-on): Likewise.
100975         * modules/vsprintf-posix (Depends-on): Likewise.
100977 2007-04-06  Bruno Haible  <bruno@clisp.org>
100979         * tests/test-frexp.c (main): Test also the sign bit of zero results.
100980         * tests/test-frexpl.c (main): Likewise.
100981         * tests/test-ldexpl.c (main): Likewise.
100982         * modules/frexp-tests (Depends-on): Add signbit.
100983         * modules/frexpl-tests (Depdends-on): Likewise.
100984         * modules/ldexpl-tests (Depdends-on): Likewise.
100986 2007-04-06  Bruno Haible  <bruno@clisp.org>
100988         * modules/signbit-tests: New file.
100989         * tests/test-signbit.c: New file.
100991         * modules/signbit: New file.
100992         * lib/signbitf.c: New file.
100993         * lib/signbitd.c: New file.
100994         * lib/signbitl.c: New file.
100995         * m4/signbit.m4: New file.
100996         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
100997         (signbit): New macro.
100998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
100999         REPLACE_SIGNBIT.
101000         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101001         REPLACE_FREXPL into math.h.
101003 2007-04-06  Bruno Haible  <bruno@clisp.org>
101005         * modules/isnanf-nolibm-tests: New file.
101006         * tests/test-isnanf.c: New file.
101008         * modules/isnanf-nolibm: New file.
101009         * lib/isnanf.h: New file.
101010         * lib/isnanf.c: New file.
101011         * lib/isnan.c: Consider the USE_FLOAT macro.
101012         * m4/isnanf.m4: New file.
101014 2007-04-06  Bruno Haible  <bruno@clisp.org>
101016         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101017         (Link): New section.
101019         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101021 2007-04-06  Bruno Haible  <bruno@clisp.org>
101023         Assume the 'long double' type.
101024         * m4/longdouble.m4: Remove file.
101025         * config/srclist.txt: Don't mention longdouble.m4.
101026         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101027         * lib/float+.h: Likewise.
101028         * lib/frexp.c: Likewise.
101029         * lib/printf-args.h: Likewise.
101030         * lib/printf-args.c: Likewise.
101031         * lib/printf-frexp.c: Likewise.
101032         * lib/printf-parse.c: Likewise.
101033         * lib/vasnprintf.c: Likewise.
101034         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101035         * m4/intl.m4: Likewise.
101036         * m4/isnanl.m4: Likewise.
101037         * m4/printf.m4: Likewise.
101038         * m4/printf-frexpl.m4: Likewise.
101039         * m4/vasnprintf.m4: Likewise.
101040         * modules/allocsa (Files): Remove m4/longdouble.m4.
101041         * modules/gettext (Files): Likewise.
101042         * modules/relocatable-prog-wrapper (Files): Likewise.
101043         * modules/vasnprintf (Files): Likewise.
101044         * modules/isnanl (Files): Likewise.
101045         (Include): Simplify.
101046         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101047         (Include): Simplify.
101048         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101049         (Include): Simplify.
101050         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101052         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101054         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101056         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101057         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101058         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101059         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101060         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101061         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101062         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101063         * tests/test-isnanl.c: Likewise.
101064         * tests/test-snprintf-posix.h: Likewise.
101065         * tests/test-sprintf-posix.h: Likewise.
101066         * tests/test-vasnprintf-posix.c: Likewise.
101067         * tests/test-vasnprintf-posix2.c: Likewise.
101068         * tests/test-vasprintf-posix.c: Likewise.
101070 2007-04-06  Bruno Haible  <bruno@clisp.org>
101072         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101073         * lib/math_.h [__DECC]: Include the overridden include file through
101074         #include_next, outside the double-inclusion guard.
101075         * lib/stdio_.h [__DECC]: Likewise.
101076         * lib/stdlib_.h [__DECC]: Likewise.
101077         * lib/string_.h [__DECC]: Likewise.
101078         * lib/time_.h [__DECC]: Likewise.
101079         * lib/wchar_.h [__DECC]: Likewise.
101080         * lib/wctype_.h [__DECC]: Likewise.
101081         * lib/inttypes_.h [__DECC]: Likewise.
101082         Reported by Albert Chin <china@thewrittenword.com> in
101083         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101085 2007-04-04  Eric Blake  <ebb9@byu.net>
101087         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101088         1.5.x.
101090 2007-04-04  Bruno Haible  <bruno@clisp.org>
101092         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101093         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101095 2007-04-04  Bruno Haible  <bruno@clisp.org>
101097         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101098         results for "%010a" of Infinity and NaN.
101099         * tests/test-vasprintf-posix.c (test_function): Likewise.
101100         * tests/test-snprintf-posix.h (test_function): Likewise.
101101         * tests/test-sprintf-posix.h (test_function): Likewise.
101102         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101103         * tests/test-printf-posix.h (test_function): Likewise.
101104         * tests/test-fprintf-posix.out: Update.
101105         Needed for FreeBSD 6.1.
101107 2007-04-04  Bruno Haible  <bruno@clisp.org>
101109         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101110         directly used by the gnulib modules nor by gnulib-tool.
101112 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101114         * DEPENDENCIES: Give overall description of version dependency
101115         desirability.  Use more-typical names for apps.
101116         Add shell, coreutils, diffutils, grep, tar, gzip.
101118 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101120         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101122 2007-04-04  Karl Berry  <karl@gnu.org>
101124         * MODULES.html.sh (func_module): missing '.
101126 2007-04-03  Bruno Haible  <bruno@clisp.org>
101128         * modules/argmatch-tests (Makefile.am): New variable
101129         test_argmatch_LDADD.
101130         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101131         * modules/array-list-tests (Makefile.am): New variable
101132         test_array_list_LDADD.
101133         * modules/array-oset-tests (Makefile.am): New variable
101134         test_array_oset_LDADD.
101135         * modules/avltree-list-tests (Makefile.am): New variable
101136         test_avltree_list_LDADD.
101137         * modules/avltree-oset-tests (Makefile.am): New variable
101138         test_avltree_oset_LDADD.
101139         * modules/avltreehash-list-tests (Makefile.am): New variable
101140         test_avltreehash_list_LDADD.
101141         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101142         test_canonicalize_lgpl_LDADD.
101143         * modules/carray-list-tests (Makefile.am): New variable
101144         test_carray_list_LDADD.
101145         * modules/dirname-tests (Makefile.am): New variable
101146         test_dirname_LDADD.
101147         * modules/linked-list-tests (Makefile.am): New variable
101148         test_linked_list_LDADD.
101149         * modules/linkedhash-list-tests (Makefile.am): New variable
101150         test_linkedhash_list_LDADD.
101151         * modules/rbtree-list-tests (Makefile.am): New variable
101152         test_rbtree_list_LDADD.
101153         * modules/rbtree-oset-tests (Makefile.am): New variable
101154         test_rbtree_oset_LDADD.
101155         * modules/rbtreehash-list-tests (Makefile.am): New variable
101156         test_rbtreehash_list_LDADD.
101157         * modules/xvasprintf-tests (Makefile.am): New variable
101158         test_xvasprintf_LDADD.
101159         Reported by Eric Blake.
101161 2007-04-03  Eric Blake  <ebb9@byu.net>
101163         * DEPENDENCIES: Weaken m4 requirements.
101165 2007-04-03  Bruno Haible  <bruno@clisp.org>
101167         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101168         * modules/isnanl-tests (configure.ac): Likewise.
101170 2007-04-03  Ben Pfaff  <blp@gnu.org>
101172         * modules/iconv_open: Add $(srcdir)/ to source directory
101173         references in Makefile fragments that call gperf, to fix VPATH
101174         builds.
101176 2007-04-03  Bruno Haible  <bruno@clisp.org>
101178         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101179         * lib/ldexpl.c: Undo last change.
101181 2007-04-03  Bruno Haible  <bruno@clisp.org>
101183         * modules/printf-frexpl (Depends-on): Undo last change.
101184         (Files): Add m4/ldexpl.m4.
101186 2007-04-03  Bruno Haible  <bruno@clisp.org>
101188         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101189         * modules/isnanl (Link): New section.
101191         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101192         * modules/frexp (Link): New section.
101194         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101195         * modules/frexpl (Link): New section.
101197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101198         * modules/ldexpl (Link): New section.
101200 2007-04-03  Bruno Haible  <bruno@clisp.org>
101202         * modules/TEMPLATE-EXTENDED: New file.
101203         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101205 2007-04-03  Bruno Haible  <bruno@clisp.org>
101207         * DEPENDENCIES: New file.
101208         Suggested by Simon Josefsson.
101210 2007-04-03  Bruno Haible  <bruno@clisp.org>
101212         * doc/gnulib.texi: Escape @.
101214 2007-04-03  James Youngman  <jay@gnu.org>
101215         and Paul Eggert  <eggert@cs.ucla.edu>
101217         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101218         birthtime on all systems that have birthtime, not just those which
101219         use st_birthtimensec rather than st_birthtim.  Putting zero in
101220         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101221         that the birth time is not available for files on an NFS mount.
101223 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101225         * modules/memxor: Move back from crypto/, suggested by Bruno.
101226         * modules/crypto/hmac-sha1: Fix memxor dependency.
101228         * modules/crypto/gc: Moved from ../.
101230 2007-04-02  Eric Blake  <ebb9@byu.net>
101232         * lib/ldexpl.c (includes): Avoid libm.
101234         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101236 2007-04-02  Bruno Haible  <bruno@clisp.org>
101238         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101239         on IRIX.
101241 2007-04-02  Bruno Haible  <bruno@clisp.org>
101243         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101244         x86 or x86_64 platforms running MacOS X.
101245         Reported by Ryan Schmidt <@ryandesign.com>.
101247 2007-04-02  Bruno Haible  <bruno@clisp.org>
101249         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101250         i386.
101252 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101254         * modules/crypto/arcfour: Moved from ../.
101255         * modules/crypto/arcfour-tests: Moved from ../.
101256         * modules/crypto/arctwo: Moved from ../.
101257         * modules/crypto/arctwo-tests: Moved from ../.
101258         * modules/crypto/des: Moved from ../.
101259         * modules/crypto/des-tests: Moved from ../.
101260         * modules/crypto/gc-arcfour: Moved from ../.
101261         * modules/crypto/gc-arcfour-tests: Moved from ../.
101262         * modules/crypto/gc-arctwo: Moved from ../.
101263         * modules/crypto/gc-arctwo-tests: Moved from ../.
101264         * modules/crypto/gc-des: Moved from ../.
101265         * modules/crypto/gc-des-tests: Moved from ../.
101266         * modules/crypto/gc-hmac-md5: Moved from ../.
101267         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101268         * modules/crypto/gc-hmac-sha1: Moved from ../.
101269         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101270         * modules/crypto/gc-md2: Moved from ../.
101271         * modules/crypto/gc-md2-tests: Moved from ../.
101272         * modules/crypto/gc-md4: Moved from ../.
101273         * modules/crypto/gc-md4-tests: Moved from ../.
101274         * modules/crypto/gc-md5: Moved from ../.
101275         * modules/crypto/gc-md5-tests: Moved from ../.
101276         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101277         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101278         * modules/crypto/gc-random: Moved from ../.
101279         * modules/crypto/gc-rijndael: Moved from ../.
101280         * modules/crypto/gc-rijndael-tests: Moved from ../.
101281         * modules/crypto/gc-sha1: Moved from ../.
101282         * modules/crypto/gc-sha1-tests: Moved from ../.
101283         * modules/crypto/gc-tests: Moved from ../.
101284         * modules/crypto/hmac-md5: Moved from ../.
101285         * modules/crypto/hmac-md5-tests: Moved from ../.
101286         * modules/crypto/hmac-sha1: Moved from ../.
101287         * modules/crypto/hmac-sha1-tests: Moved from ../.
101288         * modules/crypto/md2: Moved from ../.
101289         * modules/crypto/md2-tests: Moved from ../.
101290         * modules/crypto/md4: Moved from ../.
101291         * modules/crypto/md4-tests: Moved from ../.
101292         * modules/crypto/md5: Moved from ../.
101293         * modules/crypto/md5-tests: Moved from ../.
101294         * modules/crypto/memxor: Moved from ../.
101295         * modules/crypto/rijndael: Moved from ../.
101296         * modules/crypto/rijndael-tests: Moved from ../.
101297         * modules/crypto/sha1: Moved from ../.
101299 2007-03-30  James Youngman  <jay@gnu.org>
101301         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101302         rename() to change the ctime of a file (because ctime is unaffected
101303         by rename on jfs2 on AIX 5.1).
101304         (main): Start by doing cleanup, in case a previous run failed leaving
101305         test files behind.
101307 2007-03-31  Bruno Haible  <bruno@clisp.org>
101309         Support old proprietary implementations of iconv.
101310         * modules/iconv_open: New file.
101311         * lib/iconv_.h: New file.
101312         * m4/iconv_h.m4: New file.
101313         * lib/iconv_open.c: New file.
101314         * lib/iconv_open-aix.gperf: New file.
101315         * lib/iconv_open-hpux.gperf: New file.
101316         * lib/iconv_open-irix.gperf: New file.
101317         * lib/iconv_open-osf.gperf: New file.
101318         * m4/iconv_open.m4: New file.
101319         * modules/linebreak (Depends-on): Add iconv_open.
101320         * modules/striconv (Depends-on): Likewise.
101321         * modules/striconveh (Depends-on): Likewise.
101322         * modules/unicodeio (Depends-on): Likewise.
101323         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101324         (iconv_t)(-1).
101325         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101326         conversion if cd is (iconv_t)(-1).
101327         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101328         is not possible.
101330 2007-03-31  Bruno Haible  <bruno@clisp.org>
101332         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101333         work on Solaris either. Protect also second use of "autodetect_jp".
101335 2007-03-31  Bruno Haible  <bruno@clisp.org>
101337         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101338         the function is not present.
101340 2007-03-31  Bruno Haible  <bruno@clisp.org>
101342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101343         the function is not present.
101345 2007-03-31  Bruno Haible  <bruno@clisp.org>
101347         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101348         a bug in HP-UX iconv_open().
101350 2007-03-31  Bruno Haible  <bruno@clisp.org>
101352         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101353         (Mathematics <math.h>): New section, add fpieee.
101354         (Input/output <stdio.h>): Add fseterr.
101355         (Mathematics <math.h>): New section, add printf-frexp.
101356         (Container data structures): Add sublist.
101357         (Core language properties): Add fpucw, inline.
101358         (Functions for greatest-width integer types <inttypes.h>): Add
101359         imaxabs, imaxdiv, inttypes.
101360         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101361         isnanl-nolibm, ldexp.
101362         (Mathematics <math.h>): New section, add printf-frexpl.
101363         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101364         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101365         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101366         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101367         (Unicode string functions): Add unistr/u*-mbtoucr.
101368         (Java): Add javacomp-script, javaexec-script.
101369         (C#): Add csharpcomp-script, csharpexec-script.
101370         (Support for building libraries and executables): Add havelib,
101371         relocatable-*.
101372         (Support for maintaining and releasing projects): Renamed from
101373         'Support for maintaining and release projects'. Add announce-gen.
101375 2007-03-31  Bruno Haible  <bruno@clisp.org>
101377         * README: Talk primarily about git.
101378         (git and CVS): Renamed from CVS.
101379         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101380         gnulib is available through git.
101381         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101383 2007-03-30  Bruno Haible  <bruno@clisp.org>
101385         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101386         * lib/poll_.h: Likewise.
101387         * lib/stat_.h: Likewise.
101388         * lib/sys_time_.h: Likewise.
101389         * lib/sysexit_.h: Likewise.
101390         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101391         * lib/stdbool_.h: Likewise.
101392         * lib/byteswap_.h: Add double-inclusion guard.
101394 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101396         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101398 2007-03-30  Karl Berry  <karl@gnu.org>
101400         * config/srclist-update: double space after USA in the license
101401         substitution, since that's how it's usually (?) written.
101403 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101405         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101406         reported by Bruno Haible.
101408 2007-03-29  Bruno Haible  <bruno@clisp.org>
101410         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101411         a bug in AIX iconv().
101413 2007-03-29  Bruno Haible  <bruno@clisp.org>
101415         * modules/ldexpl-tests: New file.
101416         * tests/test-ldexpl.c: New file.
101418 2007-03-29  Bruno Haible  <bruno@clisp.org>
101420         * lib/ldexpl.c: Include fpucw.h.
101421         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101422         multiplication.
101423         * modules/ldexpl (Depends-on): Add fpucw.
101425 2007-03-29  Bruno Haible  <bruno@clisp.org>
101427         * modules/ldexpl: New file.
101428         * m4/ldexpl.m4: New file.
101429         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101430         set.
101431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101432         REPLACE_LDEXPL.
101433         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101434         REPLACE_LDEXPL.
101435         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101436         gl_FUNC_LDEXPL_WORKS.
101437         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101438         * modules/mathl (Files): Remove lib/ldexpl.c.
101439         (Depends-on): Add ldexpl.
101441 2007-03-29  Bruno Haible  <bruno@clisp.org>
101443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101445 2007-03-29  Bruno Haible  <bruno@clisp.org>
101447         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101448         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101449         and possibly also HP-UX.
101450         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101451         work on AIX, IRIX, HP-UX, OSF/1.
101452         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101453         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101454         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101455         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101456         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101457         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101459 2007-03-29  Bruno Haible  <bruno@clisp.org>
101461         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101463 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101465         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101466         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101468 2007-03-29  Eric Blake  <ebb9@byu.net>
101470         * lib/acl-internal.h: Remove redundant include.
101471         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101472         Cygwin when a file is locked.
101474 2007-03-29  Bruno Haible  <bruno@clisp.org>
101476         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101477         file.
101478         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101480 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101482         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101483         try to remove a parent directory if the child couldn't be removed
101484         (except for the first rmdir, which could fail because the child
101485         doesn't exist).  Problem reported by Jeff Blaine in
101486         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101488 2007-03-28  Bruno Haible  <bruno@clisp.org>
101490         * lib/striconveh.c (utf8conv_carefully): New function.
101491         (mem_cd_iconveh_internal): Invoke it.
101493 2007-03-28  Bruno Haible  <bruno@clisp.org>
101495         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101496         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101497         input.
101498         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101499         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101500         unistr/u8-uctomb.
101502 2007-03-28  Bruno Haible  <bruno@clisp.org>
101504         * modules/unistr/u8-mbtoucr: New file.
101505         * lib/unistr/u8-mbtoucr.c: New file.
101506         * modules/unistr/u16-mbtoucr: New file.
101507         * lib/unistr/u16-mbtoucr.c: New file.
101508         * modules/unistr/u16-mbtoucr: New file.
101509         * lib/unistr/u16-mbtoucr.c: New file.
101510         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101512 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101513             Bruno Haible  <bruno@clisp.org>
101515         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101516         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101517         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101519         * m4/stdio_h.m4: Add stubs for vasprintf too.
101521         * modules/stdio: Support vasprintf in sed command.
101523         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101524         vasprintf.h.  Add stdio module indicator.
101526         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101527         vasprintf.h.
101529         * lib/vasprintf.h: File removed.
101531         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101532         * lib/vasprintf.c: Ditto.
101533         * lib/xvasprintf.c: Ditto.
101534         * tests/test-vasprintf-posix.c: Ditto.
101535         * tests/test-vasprintf.c: Ditto.
101537 2007-03-27  Bruno Haible  <bruno@clisp.org>
101539         Make vasnprintf multithread-safe.
101540         * lib/vasnprintf.c (decimal_point_char): New function.
101541         (VASNPRINTF): Use it.
101542         Suggested by Simon Josefsson.
101544 2007-03-27  Eric Blake  <ebb9@byu.net>
101546         Support sub-second birthtime on cygwin.
101547         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101548         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101549         (get_stat_birthtime): Also work with st_birthtim.
101551 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101553         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101554         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101555         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101556         (get_stat_birthtime_ns): Simplify compile-time tests.
101557         (get_stat_birthtime): Change the API to look like
101558         get_stat_mtime etc., except return a negative tv_nsec on error.
101559         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101560         Don't check for "spare" fields.
101561         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101562         or for struct stat.st_birthtime, as these tests aren't used.
101563         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101565 2007-03-27  Bruno Haible  <bruno@clisp.org>
101567         * lib/stat-time.h: Include <sys/stat.h>.
101569 2007-03-27  James Youngman  <jay@gnu.org>
101571         * lib/stat-time.h (get_stat_birthtime): New function for
101572           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101573         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101574           and its variants.
101575         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101576         * modules/stat-time-test: New file.
101577         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101579 2007-03-26  Bruno Haible  <bruno@clisp.org>
101581         Better support of signalling NaNs.
101582         * lib/atanl.c: Include isnanl.h.
101583         (atanl): Perform test for NaN at the beginning of the function and
101584         through a call to isnanl.
101585         * lib/cosl.c: Include isnanl.h.
101586         (cosl): Perform test for NaN at the beginning of the function and
101587         through a call to isnanl.
101588         * lib/ldexpl.c: Include isnanl.h.
101589         (ldexpl): Perform test for NaN through a call to isnanl.
101590         * lib/logl.c: Include isnanl.h.
101591         (logl): Perform test for NaN at the beginning of the function and
101592         through a call to isnanl.
101593         * lib/sinl.c: Include isnanl.h.
101594         (sinl): Perform test for NaN at the beginning of the function and
101595         through a call to isnanl.
101596         * lib/sqrtl.c: Include isnanl.h.
101597         (sqrtl): Perform test for NaN at the beginning of the function and
101598         through a call to isnanl.
101599         * lib/tanl.c: Include isnanl.h.
101600         (tanl): Perform test for NaN at the beginning of the function and
101601         through a call to isnanl.
101602         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
101603         * modules/mathl (Depends-on): Add isnanl.
101605 2007-03-26  Eric Blake  <ebb9@byu.net>
101607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
101608         regression in logic sense of previous patch.
101610 2007-03-26  Bruno Haible  <bruno@clisp.org>
101612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
101613         unportable shell command "if ! ...".
101614         Reported by Ralf Wildenhues.
101616 2007-03-25  Bruno Haible  <bruno@clisp.org>
101618         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
101619         <sysexits.h> file, and only add EX_CONFIG.
101620         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
101621         absolute file name and whether it is sufficient. Substitute also
101622         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
101623         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
101624         ABSOLUTE_SYSEXITS_H into sysexits.h.
101626 2007-03-25  Bruno Haible  <bruno@clisp.org>
101628         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
101629         hints is NULL.
101631 2007-03-25  Bruno Haible  <bruno@clisp.org>
101633         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
101634         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
101636 2007-03-25  Bruno Haible  <bruno@clisp.org>
101638         * lib/vasnprintf.c: Include langinfo.h.
101639         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
101640         multithread-safe.
101641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
101642         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
101643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
101649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101650         Reported by Simon Josefsson.
101652 2007-03-25  Bruno Haible  <bruno@clisp.org>
101654         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
101655         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
101656         * modules/vasnprintf (Depends-on): Add stdint.
101658 2007-03-25  Bruno Haible  <bruno@clisp.org>
101660         * modules/fpieee: New file.
101661         * m4/fpieee.m4: New file.
101662         * modules/isnan-nolibm (Depends-on): Add fpieee.
101663         * modules/isnanl-nolibm (Depends-on): Add fpieee.
101664         * modules/isnanl (Depends-on): Add fpieee.
101666 2007-03-25  Bruno Haible  <bruno@clisp.org>
101668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
101670 2007-03-25  Bruno Haible  <bruno@clisp.org>
101672         Avoid test failures on IRIX 6.5.
101673         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
101674         (main): Use it.
101675         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
101676         macros.
101677         (main): Use them.
101679 2007-03-25  Bruno Haible  <bruno@clisp.org>
101681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
101682         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
101683         exists but doesn't work.
101684         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
101685         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
101686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
101687         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
101688         math.h.
101690 2007-03-25  Bruno Haible  <bruno@clisp.org>
101692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
101693         returns inf. Needed on IRIX 6.5.
101695 2007-03-25  Bruno Haible  <bruno@clisp.org>
101697         * tests/test-frexpl.c: Include isnanl-nolibm.h.
101698         (main): Use isnanl instead of x != x idiom.
101699         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
101701         * tests/test-frexp.c: Include isnan.h.
101702         (main): Use isnan instead of x != x idiom.
101703         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
101705 2007-03-25  Bruno Haible  <bruno@clisp.org>
101707         * tests/test-frexp.c (NaN): New function/macro.
101708         (main): Use it instead of 0.0 / 0.0.
101709         * tests/test-isnan.c (NaN): New function/macro.
101710         (main): Use it instead of 0.0 / 0.0.
101711         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
101712         (test_function): Use it instead of 0.0 / 0.0.
101713         * tests/test-vasprintf-posix.c (NaN): New function/macro.
101714         (test_function): Use it instead of 0.0 / 0.0.
101715         * tests/test-snprintf-posix.h (NaN): New function/macro.
101716         (test_function): Use it instead of 0.0 / 0.0.
101717         * tests/test-sprintf-posix.h (NaN): New function/macro.
101718         (test_function): Use it instead of 0.0 / 0.0.
101719         * tests/test-fprintf-posix.h (NaN): New function/macro.
101720         (test_function): Use it instead of 0.0 / 0.0.
101721         * tests/test-printf-posix.h (NaN): New function/macro.
101722         (test_function): Use it instead of 0.0 / 0.0.
101724         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
101726 2007-03-25  Bruno Haible  <bruno@clisp.org>
101728         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
101730 2007-03-25  Bruno Haible  <bruno@clisp.org>
101732         * lib/regexec.c (merge_state_with_log): Make static.
101734 2007-03-25  Bruno Haible  <bruno@clisp.org>
101736         * lib/trigl.c (kernel_rem_pio2): Make static.
101738 2007-03-25  Bruno Haible  <bruno@clisp.org>
101740         * lib/sincosl.c (sincosl_table): Make static.
101742 2007-03-25  Bruno Haible  <bruno@clisp.org>
101744         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
101745         if the compiler does not support C99.
101747 2007-03-25  Bruno Haible  <bruno@clisp.org>
101749         * modules/time (Makefile.am): Ensure all rule action lines start with a
101750         tab.
101752 2007-03-24  Bruno Haible  <bruno@clisp.org>
101754         * modules/tsearch-tests: New file.
101755         * tests/test-tsearch.sh: New file.
101756         * tests/test-tsearch.c: New file, mostly copied from glibc.
101758         * modules/search-tests: New file.
101759         * tests/test-search.c: New file.
101761         * modules/search: New file.
101762         * lib/search_.h: New file, incorporating lib/tsearch.h.
101763         * m4/search_h.m4: New file.
101764         * lib/tsearch.h: Remove file.
101765         * lib/tsearch.c: Include search.h instead of tsearch.h.
101766         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
101767         HAVE_TSEARCH.
101768         * modules/tsearch (Files): Remove lib/tsearch.h.
101769         (Depends-on): Add search.
101770         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
101771         (Include): Change tsearch.h into search.h.
101773 2007-03-24  Bruno Haible  <bruno@clisp.org>
101775         * modules/fpucw: New file.
101776         * lib/fpucw.h: New file.
101777         * lib/frexp.c: Include fpucw.h.
101778         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101779         (FUNC): Use them.
101780         * lib/printf-frexp.c: Include fpucw.h.
101781         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101782         (FUNC): Use them.
101783         * lib/vasnprintf.c: Include fpucw.h.
101784         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
101785         'long double' calculations.
101786         * tests/test-frexpl.c: Include fpucw.h.
101787         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101788         * tests/test-printf-frexpl.c: Include fpucw.h.
101789         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101790         * modules/frexpl (Depends-on): Add fpucw.
101791         * modules/printf-frexpl (Depends-on): Likewise.
101792         * modules/fprintf-posix (Depends-on): Likewise.
101793         * modules/snprintf-posix (Depends-on): Likewise.
101794         * modules/sprintf-posix (Depends-on): Likewise.
101795         * modules/vasnprintf-posix (Depends-on): Likewise.
101796         * modules/vasprintf-posix (Depends-on): Likewise.
101797         * modules/vfprintf-posix (Depends-on): Likewise.
101798         * modules/vsnprintf-posix (Depends-on): Likewise.
101799         * modules/vsprintf-posix (Depends-on): Likewise.
101800         * modules/frexpl-tests (Depends-on): Likewise.
101801         * modules/printf-frexpl-tests (Depends-on): Likewise.
101803 2007-03-24  Bruno Haible  <bruno@clisp.org>
101805         * lib/float+.h: New file.
101806         * lib/isnan.c: Include float+.h.
101807         (SIZE): New macro.
101808         (FUNC): Compare only SIZE bytes of the value.
101809         * lib/vasnprintf.c: Include float+.h.
101810         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
101811         SIZEOF_LDBL or SIZEOF_DBL bytes.
101812         * modules/isnan-nolibm (Files): Add lib/float+.h.
101813         * modules/isnanl-nolibm (Files): Add lib/float+.h.
101814         * modules/isnanl (Files): Add lib/float+.h.
101815         * modules/vasnprintf (Files): Add lib/float+.h.
101817 2007-03-24  Bruno Haible  <bruno@clisp.org>
101819         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
101820         include isnanl-nolibm.h.
101822 2007-03-24  Bruno Haible  <bruno@clisp.org>
101824         * tests/test-read-file.c (main): Don't produce spurious output for
101825         expected situations. Make the test fail if it encountered unexpected
101826         results.
101828 2007-03-24  Bruno Haible  <bruno@clisp.org>
101830         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
101831         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
101833 2007-03-24  Bruno Haible  <bruno@clisp.org>
101835         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
101837 2007-03-24  Bruno Haible  <bruno@clisp.org>
101839         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
101840         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
101842         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
101843         * modules/utf8-ucs4: Turn into a symbolic link to module
101844         unistr/u8-mbtouc.
101846         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
101847         utf8-ucs4-unsafe.
101848         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
101849         unistr/u8-mbtouc-unsafe.
101851         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
101852         * modules/utf16-ucs4: Turn into a symbolic link to module
101853         unistr/u16-mbtouc.
101855         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
101856         utf16-ucs4-unsafe.
101857         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
101858         unistr/u16-mbtouc-unsafe.
101860         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
101861         * modules/ucs4-utf8: Turn into a symbolic link to module
101862         unistr/u8-ubtomb.
101864         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
101865         * modules/ucs4-utf16: Turn into a symbolic link to module
101866         unistr/u16-ubtomb.
101868 2007-03-24  Bruno Haible  <bruno@clisp.org>
101870         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
101871         Enable the function only if HAVE_INLINE.
101872         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
101873         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
101874         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
101875         Enable the function only if HAVE_INLINE.
101876         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
101877         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
101878         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
101879         Enable the function only if HAVE_INLINE.
101880         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
101881         Enable the function only if HAVE_INLINE.
101882         * modules/utf8-ucs4: Update.
101883         * modules/utf8-ucs4-unsafe: Update.
101884         * modules/utf16-ucs4: Update.
101885         * modules/utf16-ucs4-unsafe: Update.
101886         * modules/ucs4-utf8: Update.
101887         * modules/ucs4-utf16: Update.
101889 2007-03-24  Bruno Haible  <bruno@clisp.org>
101891         * lib/utf8-ucs4.h: Remove file.
101892         * lib/utf8-ucs4-unsafe.h: Remove file.
101893         * lib/utf16-ucs4.h: Remove file.
101894         * lib/utf16-ucs4-unsafe.h: Remove file.
101895         * lib/ucs4-utf8.h: Remove file.
101896         * lib/ucs4-utf16.h: Remove file.
101897         * lib/unistr.h: Include their previous contents.
101898         * m4/utf-ucs4.m4: Remove file.
101899         * m4/ucs4-utf.m4: Remove file.
101900         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
101901         (Depends-on): Add unistr/base.
101902         (configure.ac): Remove gl_UTF_UCS4.
101903         (Makefile.am): Update.
101904         (Include): Change to unistr.h.
101905         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
101906         (Depends-on): Add unistr/base.
101907         (configure.ac): Remove gl_UTF_UCS4.
101908         (Makefile.am): Update.
101909         (Include): Change to unistr.h.
101910         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
101911         (Depends-on): Add unistr/base.
101912         (configure.ac): Remove gl_UTF_UCS4.
101913         (Makefile.am): Update.
101914         (Include): Change to unistr.h.
101915         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
101916         (Depends-on): Add unistr/base.
101917         (configure.ac): Remove gl_UTF_UCS4.
101918         (Makefile.am): Update.
101919         (Include): Change to unistr.h.
101920         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
101921         (Depends-on): Add unistr/base.
101922         (configure.ac): Remove gl_UCS4_UTF.
101923         (Makefile.am): Update.
101924         (Include): Change to unistr.h.
101925         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
101926         (Depends-on): Add unistr/base.
101927         (configure.ac): Remove gl_UCS4_UTF.
101928         (Makefile.am): Update.
101929         (Include): Change to unistr.h.
101930         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
101931         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
101932         utf8-ucs4-unsafe.h.
101933         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
101934         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
101935         utf16-ucs4-unsafe.h.
101936         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
101937         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
101938         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
101939         * lib/unistr/u8-strchr.c: Likewise.
101940         * lib/unistr/u8-strrchr.c: Likewise.
101941         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
101942         * lib/unistr/u16-strchr.c: Likewise.
101943         * lib/unistr/u16-strrchr.c: Likewise.
101944         * lib/striconveh.c: Update.
101945         * lib/linebreak.c: Update.
101947 2007-03-24  Bruno Haible  <bruno@clisp.org>
101949         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
101950         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
101952 2007-03-22  Bruno Haible  <bruno@clisp.org>
101954         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
101956 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
101958         * MODULES.html.sh (File system functions): New module write-any-file.
101959         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
101960         * m4/write-any-file.m4: New files.
101962 2007-03-23  Eric Blake  <ebb9@byu.net>
101964         * gnulib-tool: Rearrange space-tab sequences, since some editors
101965         like to eat them.
101967 2007-03-23  Eric Blake  <ebb9@byu.net>
101969         * lib/version-etc.c (version_etc_va): Update license wording to
101970         be more concise.  Recommended by Richard Stallman.
101972 2007-03-22  Bruno Haible  <bruno@clisp.org>
101974         * lib/poll.c (MSG_PEEK): New fallback definition.
101976 2007-03-22  Bruno Haible  <bruno@clisp.org>
101978         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
101979         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
101980         (main): Update.
101981         Fixes a compilation error on BeOS.
101983 2007-03-22  Bruno Haible  <bruno@clisp.org>
101985         * modules/frexpl-tests: New file.
101986         * tests/test-frexpl.c: New file.
101988         * modules/frexpl: New file.
101989         * m4/frexpl.m4: New file.
101990         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
101991         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
101992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
101993         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
101994         (Depends-on): Add frexpl. Remove isnanl-nolibm.
101995         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
101997 2007-03-22  Bruno Haible  <bruno@clisp.org>
101999         * lib/frexpl.c: Share code with lib/frexp.c.
102000         * modules/mathl (Files): Add lib/frexp.c.
102001         (Depends-on): Add isnanl-nolibm.
102003 2007-03-22  Bruno Haible  <bruno@clisp.org>
102005         * modules/printf-frexp (Files): Add m4/frexp.m4.
102006         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102007         only if the found frexp function actually works.
102009 2007-03-22  Bruno Haible  <bruno@clisp.org>
102011         * lib/frexp.c: Remove older implementation that uses divisions.
102013 2007-03-21  Bruno Haible  <bruno@clisp.org>
102015         * modules/frexp-tests: New file.
102016         * tests/test-frexp.c: New file.
102018         * modules/frexp: New file.
102019         * lib/frexp.c: New file.
102020         * m4/frexp.m4: New file.
102021         * lib/math_.h (frexp): New declaration.
102022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102023         REPLACE_FREXP.
102024         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102026 2007-03-21  Bruno Haible  <bruno@clisp.org>
102028         * modules/isnanl-tests: New file.
102029         * tests/test-isnanl.c: New file.
102031         * modules/isnanl: New file.
102032         * lib/isnanl.h: New file.
102033         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102034         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102035         gl_FUNC_ISNANL_WORKS.
102036         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102037         New macros.
102039 2007-03-21  Bruno Haible  <bruno@clisp.org>
102041         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102042         lib/isnanl.h.
102043         (Include): Update.
102044         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102045         * lib/vasnprintf.c: Update.
102046         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102047         tests/test-isnanl.h, remove tests/test-isnanl.c.
102048         (Makefile.am): Update.
102049         * tests/test-isnanl-nolibm.c: New file.
102050         * tests/test-isnanl.h: New file.
102051         * tests/test-isnanl.c: Remove file.
102053 2007-03-21  Jim Meyering  <jim@meyering.net>
102055         When trying to open ".", treat ESTALE like EACCES.
102056         * lib/savewd.c (savewd_save): Resort to forking not just upon
102057         failure with EACCES, but also when errno is ESTALE.
102059 2007-03-20  Bruno Haible  <bruno@clisp.org>
102061         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102062         Needed on AIX 5.1. Reported by Matthew Woehlke.
102064 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102066         Suggestions by Bruno Haible:
102067         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102068         our own.
102069         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102070         * modules/acl (Depends-on): Add gettext.
102072 2007-03-19  Bruno Haible  <bruno@clisp.org>
102074         * modules/iconvme: Remove file.
102075         * lib/iconvme.h: Remove file.
102076         * lib/iconvme.c: Remove file.
102077         * m4/iconvme.m4: Remove file.
102079 2007-03-19  Bruno Haible  <bruno@clisp.org>
102081         * doc/relocatable-maint.texi: Break long shell script line.
102082         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102084 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102086         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102087         handle file_has_acl.
102088         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102089         * lib/acl.c: Move header inclusions and related macro defns into
102090         lib/acl-internal.h.
102091         (S_ISLNK): Remove defn, since that's now done for us.
102092         (file_has_acl): Move to lib/file-has-acl.c.
102093         Call acl_trivial if available.  This is the crucial part of the fix.
102094         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102095         shared within the library.  Rewrite a bit, partly to make it compatible
102096         with the GNU coding style.
102097         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102098         Remove unnecessary double-quotes.
102099         Don't test for acl_to_text; the build will catch that.
102100         Replace acl_entries if it doesn't exist and it is needed.
102101         Check for -lsec and acl_trivial (as used on Solaris 10).
102102         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102103         lib/file-has-acl.c.
102104         (Depends-on): Add sys_stat, for S_ISLNK.
102106 2007-03-19  Ben Pfaff  <blp@gnu.org>
102108         * doc/gnulib.texi: Fix typos.
102109         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102111 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102113         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102114         If size is zero here, buf must be zero.
102116 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102118         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102119         <bruno@clisp.org>.
102121 2007-03-18  Bruno Haible  <bruno@clisp.org>
102123         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102124         Suggested by Eric Blake.
102126 2007-03-18  Ben Pfaff  <blp@gnu.org>
102128         * doc/relocatable.texi: Recommend using as prefix a directory
102129         that does not exist and will never be created.  Based on
102130         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102131         and others.
102133 2007-03-17  Bruno Haible  <bruno@clisp.org>
102135         * lib/fchownat.c: Include lchown.h.
102137 2007-03-17  Bruno Haible  <bruno@clisp.org>
102139         Fix endless loop when the given allocated size was > INT_MAX.
102140         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102141         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102142         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102143         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102144         * lib/sprintf.c (sprintf): Likewise.
102146 2007-03-17  Bruno Haible  <bruno@clisp.org>
102148         * tests/test-argp-2.sh (func_compare): Output a context diff.
102150 2007-03-17  Bruno Haible  <bruno@clisp.org>
102152         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102153         locale's decimal-point character.
102155 2007-03-17  Bruno Haible  <bruno@clisp.org>
102157         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102158         before comparing it. Needed because on some platforms (e.g. x86) a
102159         'long double' occupies less bytes than sizeof (long double).
102161 2007-03-17  Bruno Haible  <bruno@clisp.org>
102163         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102164         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102165         * tests/test-getaddrinfo.c (simple): Likewise.
102166         * tests/test-read-file.c (main): Likewise.
102168 2007-03-17  Bruno Haible  <bruno@clisp.org>
102170         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102172 2007-03-17  Bruno Haible  <bruno@clisp.org>
102174         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102175         unused variable.
102177 2007-03-17  Bruno Haible  <bruno@clisp.org>
102179         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102180         * tests/test-c-strncasecmp.c: Likewise.
102182 2007-03-17  Bruno Haible  <bruno@clisp.org>
102184         * modules/stdlib (Depends-on): Add unistd.
102185         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102186         Needed for MacOS X 10.3.
102188 2007-03-17  Bruno Haible  <bruno@clisp.org>
102190         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102192 2007-03-17  Bruno Haible  <bruno@clisp.org>
102194         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102196 2007-03-17  Bruno Haible  <bruno@clisp.org>
102198         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102199         to reflect files copied from gnulib (with or without modifications).
102200         Suggested by Jim Meyering.
102202 2007-03-17  Eric Blake  <ebb9@byu.net>
102204         * NEWS: Document stdlib change from 2007-02-18.
102206 2007-03-17  Jim Meyering  <jim@meyering.net>
102208         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102209         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102210         someone uses a name containing shell meta-characters.
102211         Reported by Alfred M. Szmidt.
102213         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102215 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102217         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102218         and copy gettext configuration files only if configure.ac contains
102219         a use of AM_GNU_GETTEXT_VERSION.
102221 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102223         * build-aux/bootstrap (gnulib_name): New variable.
102224         (gnulib_tool_options): Use it.
102226 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102228         * tests/test-des.c: Use new namespace.
102230 2007-03-15  Bruno Haible  <bruno@clisp.org>
102232         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102233         Reported by James Youngman <jay@gnu.org>.
102235 2007-03-15  Bruno Haible  <bruno@clisp.org>
102237         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102238         declared prototype. Needed with cc on OSF/1 5.1.
102240 2007-03-15  Bruno Haible  <bruno@clisp.org>
102242         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102243         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102244         (struct gl_list_implementation): Add dispose_fn argument to the
102245         'create_empty', 'create' methods.
102246         (struct gl_list_impl_base): Add field 'dispose_fn'.
102247         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102248         argument.
102249         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102250         dispose_fn argument.
102251         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102252         dispose_fn on the dropped values.
102253         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102254         dispose_fn argument.
102255         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102256         dropped values.
102257         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102258         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102259         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102260         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102261         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102262         argument.
102263         (gl_tree_list_free): Call dispose_fn on the dropped values.
102264         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102265         the dropped values.
102266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102267         Add dispose_fn argument.
102268         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102269         Call dispose_fn on the dropped values.
102270         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102271         Add dispose_fn argument.
102272         (gl_sublist_create): Initialize the 'dispose_fn' field.
102273         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102274         * tests/test-array_list.c (main): Update.
102275         * tests/test-carray_list.c (main): Update.
102276         * tests/test-avltree_list.c (main): Update.
102277         * tests/test-rbtree_list.c (main): Update.
102278         * tests/test-avltreehash_list.c (main): Update.
102279         * tests/test-rbtreehash_list.c (main): Update.
102280         * tests/test-linked_list.c (main): Update.
102281         * tests/test-linkedhash_list.c (main): Update.
102282         * tests/test-array_oset.c (main): Update.
102284 2007-03-15  Bruno Haible  <bruno@clisp.org>
102286         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102287         (gl_oset_create_empty): Add dispose_fn argument.
102288         (struct gl_oset_implementation): Add dispose_fn argument to
102289         'create_empty' method.
102290         (struct gl_oset_impl_base): Add dispose_fn field.
102291         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102292         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102293         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102294         values.
102295         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102296         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102297         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102298         dropped value.
102299         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102300         dropped value.
102301         * tests/test-array_oset.c (main): Update.
102302         * tests/test-avltree_oset.c (main): Update.
102303         * tests/test-rbtree_oset.c (main): Update.
102304         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102306 2007-03-13  Bruno Haible  <bruno@clisp.org>
102308         * tests/test-stdbool.c (i): Update after last patch.
102310 2007-03-12  Bruno Haible  <bruno@clisp.org>
102312         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102313         the iswprint macro. Needed on Solaris 2.5.1.
102315 2007-03-12  Bruno Haible  <bruno@clisp.org>
102317         * tests/test-printf-frexp.c (main): Declare x as volatile.
102319 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102321         * doc/gnulib.texi (Build robot for gnulib): New section.
102323 2007-03-12  Jim Meyering  <jim@meyering.net>
102325         * build-aux/bootstrap: New file.
102326         * build-aux/bootstrap.conf: New file, from coreutils.
102328 2007-03-11  Bruno Haible  <bruno@clisp.org>
102330         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102332 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102334         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102335         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102336         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102338 2007-03-11  Bruno Haible  <bruno@clisp.org>
102340         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102341         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102343 2007-03-11  Bruno Haible  <bruno@clisp.org>
102345         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102346         formula. Needed for SunPRO C 5.0.
102348 2007-03-11  Bruno Haible  <bruno@clisp.org>
102350         * modules/long-options (Depends-on): Add getopt.
102352 2007-03-11  Bruno Haible  <bruno@clisp.org>
102354         * modules/modechange (Depends-on): Add stdbool.
102356 2007-03-11  Bruno Haible  <bruno@clisp.org>
102358         * modules/i-ring (Depends-on): Add stdbool.
102360 2007-03-11  Bruno Haible  <bruno@clisp.org>
102362         * modules/gc-des (Depends-on): Add stdbool.
102364 2007-03-11  Bruno Haible  <bruno@clisp.org>
102366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102368 2007-03-11  Bruno Haible  <bruno@clisp.org>
102370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102372 2007-03-11  Bruno Haible  <bruno@clisp.org>
102374         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102376 2007-03-11  Bruno Haible  <bruno@clisp.org>
102378         * lib/vasnprintf.c (sprintf): Undefine.
102380 2007-03-11  Bruno Haible  <bruno@clisp.org>
102382         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102383         initializers in SunPRO C and Compaq C compilers.
102385 2007-03-11  Bruno Haible  <bruno@clisp.org>
102387         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102388         decrementing code ANSI C compliant.
102390 2007-03-11  Bruno Haible  <bruno@clisp.org>
102392         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102393         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102395 2007-03-11  Bruno Haible  <bruno@clisp.org>
102397         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102398         <stdbool.h> substitute doesn't pass.
102400 2007-03-11  Bruno Haible  <bruno@clisp.org>
102402         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102404 2007-03-11  Bruno Haible  <bruno@clisp.org>
102406         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102407         script, for submission to autobuild.josefsson.org.
102409 2007-03-10  Bruno Haible  <bruno@clisp.org>
102411         * modules/canonicalize-lgpl-tests: New file.
102412         * tests/test-canonicalize-lgpl.sh: New file.
102413         * tests/test-canonicalize-lgpl.c: New file.
102415         * modules/c-strcase-tests: New file.
102416         * tests/test-c-strcase.sh: New file.
102417         * tests/test-c-strcasecmp.c: New file.
102418         * tests/test-c-strncasecmp.c: New file.
102420         * modules/atexit-tests: New file.
102421         * tests/test-atexit.sh: New file.
102422         * tests/test-atexit.c: New file.
102424 2007-03-10  Bruno Haible  <bruno@clisp.org>
102426         * tests/test-binary-io.sh: Use temporary filenames that are not so
102427         likely to clash with those of other tests (in a parallel make).
102428         * tests/test-binary-io.c: Likewise.
102430 2007-03-10  Bruno Haible  <bruno@clisp.org>
102432         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102433         fallback; use #error instead.
102434         Suggested by Simon Josefsson.
102436 2007-03-10  Bruno Haible  <bruno@clisp.org>
102438         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102439         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102440         first and the last.
102442 2007-03-10  Bruno Haible  <bruno@clisp.org>
102444         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102446 2007-03-10  Bruno Haible  <bruno@clisp.org>
102448         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102449         "make distcheck".
102450         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102451         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102452         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102454 2007-03-10  Bruno Haible  <bruno@clisp.org>
102456         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102457         variable.
102458         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102459         variable.
102461 2007-03-09  Eric Blake  <ebb9@byu.net>
102462         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102464         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102465         types are not being provided by gnulib.
102466         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102467         types are supported.
102469 2007-03-10  Bruno Haible  <bruno@clisp.org>
102471         * lib/stdio_.h (__attribute__): New macro.
102472         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102473         vsprintf): Specify __attribute__ __format__ for GCC.
102474         Suggested by Eric Blake.
102476 2007-03-09  Bruno Haible  <bruno@clisp.org>
102478         * modules/printf-posix-tests: New file.
102479         * tests/test-printf-posix.sh: New file.
102480         * tests/test-printf-posix.c: New file.
102482         * modules/printf-posix: New file.
102483         * lib/printf.c: New file.
102484         * m4/printf-posix-rpl.m4: New file.
102485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102486         REPLACE_PRINTF.
102487         * lib/stdio_.h (printf): New declaration.
102488         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102489         ____strfmon____): New macros.
102490         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102491         REPLACE_PRINTF.
102493 2007-03-09  Bruno Haible  <bruno@clisp.org>
102495         * tests/test-vasnprintf-posix2.sh: New file.
102496         * tests/test-vasnprintf-posix2.c: New file.
102497         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102498         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102499         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102501         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102502         a locale dependent decimal point, rather than always '.'.
102504 2007-03-09  Eric Blake  <ebb9@byu.net>
102506         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102507         spite of platforms like Tandem/NSK that define it to -1.
102509 2007-03-08  Bruno Haible  <bruno@clisp.org>
102511         * modules/vprintf-posix-tests: New file.
102512         * tests/test-vprintf-posix.sh: New file.
102513         * tests/test-vprintf-posix.c: New file.
102514         * tests/test-printf-posix.h: New file.
102516         * modules/vprintf-posix: New file.
102517         * lib/vprintf.c: New file.
102518         * m4/vprintf-posix.m4: New file.
102519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102520         REPLACE_VPRINTF.
102521         * lib/stdio_.h (vprintf): New declaration.
102522         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102523         REPLACE_VPRINTF.
102525 2007-03-08  Bruno Haible  <bruno@clisp.org>
102527         * modules/fprintf-posix-tests: New file.
102528         * tests/test-fprintf-posix.sh: New file.
102529         * tests/test-fprintf-posix.c: New file.
102531         * modules/fprintf-posix: New file.
102532         * lib/fprintf.c: New file.
102533         * m4/fprintf-posix.m4: New file.
102534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102535         REPLACE_FPRINTF.
102536         * lib/stdio_.h (fprintf): New declaration.
102537         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102538         REPLACE_FPRINTF.
102540 2007-03-08  Bruno Haible  <bruno@clisp.org>
102542         * modules/vfprintf-posix-tests: New file.
102543         * tests/test-vfprintf-posix.sh: New file.
102544         * tests/test-vfprintf-posix.c: New file.
102545         * tests/test-fprintf-posix.h: New file.
102546         * tests/test-fprintf-posix.out: New file.
102548         * modules/vfprintf-posix: New file.
102549         * lib/vfprintf.c: New file.
102550         * m4/vfprintf-posix.m4: New file.
102551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102552         REPLACE_VFPRINTF.
102553         * lib/stdio_.h (vfprintf): New declaration.
102554         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102555         REPLACE_VFPRINTF.
102557 2007-03-08  Bruno Haible  <bruno@clisp.org>
102559         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102561 2007-03-08  Bruno Haible  <bruno@clisp.org>
102563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102564         instead of 'expr' invocations.
102565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102570         Suggested by Paul Eggert.
102572 2007-03-08  Bruno Haible  <bruno@clisp.org>
102574         * modules/fseterr-tests: New file.
102575         * tests/test-fseterr.c: New file.
102577         * modules/fseterr: New file.
102578         * lib/fseterr.h: New file.
102579         * lib/fseterr.c: New file.
102581 2007-03-08  Bruno Haible  <bruno@clisp.org>
102583         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102584         * lib/getopt_.h: Likewise.
102585         * lib/mbswidth.h: Likewise.
102586         * lib/setenv.h: Likewise.
102587         * lib/vasnprintf.h: Likewise.
102588         * lib/vasprintf.h: Likewise.
102589         * lib/verror.h: Likewise.
102590         * lib/xsetenv.h: Likewise.
102591         * lib/xvasprintf.h: Likewise.
102593 2007-03-08  Jim Meyering  <jim@meyering.net>
102595         * users.txt: Add parted.
102597         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
102599 2007-03-07  Bruno Haible  <bruno@clisp.org>
102601         * m4/printf.m4: Make the shell script snippets copy&pastable.
102603 2007-03-02  Bruno Haible  <bruno@clisp.org>
102605         * lib/netinet_in_.h: New file.
102606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
102607         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
102608         * modules/netinet_in (Files): Add lib/netinet_in_.h.
102609         (Depends-on): Add absolute-header.
102610         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
102611         into netinet/in.h.
102613 2007-03-03  Bruno Haible  <bruno@clisp.org>
102615         * lib/sys_select_.h: New file.
102616         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
102617         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
102618         * modules/sys_select (Files): Add lib/sys_select_.h.
102619         (Depends-on): Add absolute-header.
102620         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
102621         into sys/select.h.
102623 2007-03-02  Bruno Haible  <bruno@clisp.org>
102625         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
102626         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
102627         values.
102628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
102629         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
102630         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
102631         * modules/sys_socket (Depends-on): Add absolute-header.
102632         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
102633         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
102634         (Include): Remove requirement of inclusion of <sys/types.h>.
102636 2007-03-02  Bruno Haible  <bruno@clisp.org>
102638         * lib/byteswap_.h (bswap_32): Fix formula.
102640 2007-03-06  Bruno Haible  <bruno@clisp.org>
102642         * modules/sprintf-posix-tests: New file.
102643         * tests/test-sprintf-posix.c: New file.
102645         * modules/sprintf-posix: New file.
102646         * lib/sprintf.c: New file.
102647         * m4/sprintf-posix.m4: New file.
102648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
102649         REPLACE_SPRINTF.
102650         * lib/stdio_.h (sprintf): New declaration.
102651         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
102652         REPLACE_SPRINTF.
102654 2007-03-06  Bruno Haible  <bruno@clisp.org>
102656         * modules/vsprintf-posix-tests: New file.
102657         * tests/test-vsprintf-posix.c: New file.
102658         * tests/test-sprintf-posix.h: New file.
102660         * modules/vsprintf-posix: New file.
102661         * lib/vsprintf.c: New file.
102662         * m4/vsprintf-posix.m4: New file.
102663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
102664         REPLACE_VSPRINTF.
102665         * lib/stdio_.h (vsprintf): New declaration.
102666         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
102667         REPLACE_VSPRINTF.
102669 2007-03-06  Bruno Haible  <bruno@clisp.org>
102671         * modules/vsnprintf (Depend-on): Remove minmax.
102673 2007-03-06  Bruno Haible  <bruno@clisp.org>
102675         * modules/snprintf-posix-tests: New file.
102676         * tests/test-snprintf-posix.c: New file.
102678         * modules/snprintf-posix: New file.
102679         * m4/snprintf-posix.m4: New file.
102680         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
102681         gl_FUNC_SNPRINTF.
102682         (gl_FUNC_SNPRINTF): Invoke it.
102683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
102684         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
102685         is set.
102686         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
102688 2007-03-06  Bruno Haible  <bruno@clisp.org>
102690         * modules/vsnprintf-posix-tests: New file.
102691         * tests/test-vsnprintf-posix.c: New file.
102692         * tests/test-snprintf-posix.h: New file.
102694         * modules/vsnprintf-posix: New file.
102695         * m4/vsnprintf-posix.m4: New file.
102696         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
102697         gl_FUNC_VSNPRINTF.
102698         (gl_FUNC_VSNPRINTF): Invoke it.
102699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
102700         * lib/stdio_.h (vsnprintf): Define as a replacement if
102701         REPLACE_VSNPRINTF is set.
102702         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
102704 2007-03-06  Bruno Haible  <bruno@clisp.org>
102706         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
102707         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
102709 2007-03-06  Bruno Haible  <bruno@clisp.org>
102711         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
102712         (asinl): Declare also if HAVE_DECL_ASINL is set.
102713         (atanl): Declare also if HAVE_DECL_ATANL is set.
102714         (ceill): Declare also if HAVE_DECL_CEILL is set.
102715         (cosl): Declare also if HAVE_DECL_COSL is set.
102716         (expl): Declare also if HAVE_DECL_EXPL is set.
102717         (floorl): Declare also if HAVE_DECL_FLOORL is set.
102718         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
102719         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
102720         (logl): Declare also if HAVE_DECL_LOGL is set.
102721         (sinl): Declare also if HAVE_DECL_SINL is set.
102722         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
102723         (tanl): Declare also if HAVE_DECL_TANL is set.
102724         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
102725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
102726         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
102727         declaration of frexpl, ldexpl.
102728         * modules/printf-frexpl (Depends-on): Add math.
102729         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
102731 2007-03-05  Bruno Haible  <bruno@clisp.org>
102733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
102734         frexpl and ldexpl are declared.
102735         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
102737 2007-03-05  Bruno Haible  <bruno@clisp.org>
102739         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
102740         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
102742 2007-03-05  Bruno Haible  <bruno@clisp.org>
102744         * lib/stdio_.h: Include <stddef.h>.
102746 2007-03-05  Bruno Haible  <bruno@clisp.org>
102748         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
102750 2007-03-05  Bruno Haible  <bruno@clisp.org>
102752         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
102753         NetBSD 4, from Ralf Wildenhues.
102755 2007-03-04  Bruno Haible  <bruno@clisp.org>
102757         * lib/vasprintf.h: Update #if logic for the case when the functions
102758         exist but are overridden.
102760 2007-03-04  Bruno Haible  <bruno@clisp.org>
102762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
102763         implementations: glibc-2.4 and MacOS X 10.3.
102764         * tests/test-vasnprintf-posix.c (test_function): Test also the case
102765         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
102766         * tests/test-vasprintf-posix.c (test_function): Likewise.
102768 2007-03-04  Bruno Haible  <bruno@clisp.org>
102770         * modules/vasprintf-posix-tests: New file.
102771         * tests/test-vasprintf-posix.c: New file.
102773         * modules/vasprintf-posix: New file.
102774         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
102775         defined.
102776         * m4/vasprintf-posix.m4: New file.
102777         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
102778         gl_FUNC_VASPRINTF.
102779         (gl_FUNC_VASPRINTF): Invoke it.
102780         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
102781         here.
102782         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
102784 2007-03-04  Bruno Haible  <bruno@clisp.org>
102786         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
102787         REPLACE_GETTIMEOFDAY.
102788         * modules/sys_time (Makefile.am): Likewise.
102789         * m4/sys_time_h.m4: Likewise.
102790         * m4/gettimeofday.m4: Likewise.
102792 2007-03-04  Bruno Haible  <bruno@clisp.org>
102794         * modules/vasnprintf-posix-tests: New file.
102795         * tests/test-vasnprintf-posix.c: New file.
102797         * modules/vasnprintf-posix: New file.
102798         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
102799         printf-frexpl.h.
102800         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
102801         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
102802         REPLACE_VASNPRINTF is defined.
102803         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
102804         gl_FUNC_VASNPRINTF.
102805         (gl_FUNC_VASNPRINTF): Invoke it.
102806         * m4/vasnprintf-posix.m4: New file.
102807         * m4/printf.m4: New file.
102809 2007-03-04  Bruno Haible  <bruno@clisp.org>
102811         Compile progreloc.c only if --enable-relocatable is specified.
102812         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
102813         if --enable-relocatable was specified.
102814         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
102815         lib_SOURCES.
102817 2007-03-04  Jim Meyering  <jim@meyering.net>
102819         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
102820         Use it consistently, rather than enumerating errno constants.
102822 2007-03-04  Bruno Haible  <bruno@clisp.org>
102824         * modules/xvasprintf-tests: New file.
102825         * tests/test-xvasprintf.c: New file.
102827         * modules/vasprintf-tests: New file.
102828         * tests/test-vasprintf.c: New file.
102830         * modules/vasnprintf-tests: New file.
102831         * tests/test-vasnprintf.c: New file.
102833         * modules/vsnprintf-tests: New file.
102834         * tests/test-vsnprintf.c: New file.
102836         * modules/snprintf-tests: New file.
102837         * tests/test-snprintf.c: New file.
102839 2007-03-04  Bruno Haible  <bruno@clisp.org>
102841         Compile relocatable.c only if --enable-relocatable is specified.
102842         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
102843         gl_RELOCATABLE_LIBRARY.
102844         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
102845         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
102846         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
102847         gl_RELOCATABLE_LIBRARY.
102848         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
102849         (Makefile.am): Remove lib_SOURCES.
102850         * modules/relocatable-lib-lgpl (configure.ac): Invoke
102851         gl_RELOCATABLE_LIBRARY.
102852         (Makefile.am): Remove lib_SOURCES.
102853         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
102854         always.
102855         * modules/relocatable-prog-wrapper (configure.ac): Invoke
102856         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
102858 2007-03-04  Bruno Haible  <bruno@clisp.org>
102860         * modules/argmatch-tests: New file.
102861         * tests/test-argmatch.c: New file.
102863         * tests/test-allocsa.c (main): Halve the number of loop runs.
102865         * modules/alloca-opt-tests: New file.
102866         * tests/test-alloca-opt.c: New file.
102868 2007-03-04  Jim Meyering  <jim@meyering.net>
102870         Work around difference between Linux ACLs and Solaris 10 ZFS.
102871         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
102872         for EINVAL.
102874 2007-03-03  Bruno Haible  <bruno@clisp.org>
102876         * modules/relocatable-prog (Depends-on): Add back progreloc's
102877         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
102879 2007-03-03  Bruno Haible  <bruno@clisp.org>
102881         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
102882         * modules/relocatable-lib: New file.
102884 2007-03-03  Bruno Haible  <bruno@clisp.org>
102886         * modules/relocatable-prog: Renamed from modules/relocatable.
102887         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
102889 2007-03-03  Bruno Haible  <bruno@clisp.org>
102891         * modules/relocatable-script (Files): Add doc/relocatable.texi,
102892         m4/relocatable-lib.m4.
102893         (Depends-on): Remove 'relocatable'.
102894         (configure.ac): Add gl_RELOCATABLE_NOP.
102896 2007-03-03  Bruno Haible  <bruno@clisp.org>
102898         * modules/relocatable-prog-wrapper: New file.
102899         * modules/relocatable (Depends-on): Add it. Remove all other
102900         dependencies except progname.
102901         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
102903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
102904         (gl_FUNC_STRERROR): Nop.
102905         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
102907         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
102908         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
102910         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
102911         (gl_FUNC_READLINK): Update.
102913         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
102915 2007-03-03  Bruno Haible  <bruno@clisp.org>
102917         * lib/xreadlink.c: Include <unistd.h> unconditionally.
102918         * modules/xreadlink (Depends-on): Add unistd.
102919         * modules/xreadlink-with-size (Depends-on): Likewise.
102921 2007-03-03  Bruno Haible  <bruno@clisp.org>
102923         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
102924         extracted from gt_FUNC_SETENV.
102925         (gt_FUNC_SETENV): Remove macro.
102926         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
102927         remove gt_FUNC_SETENV.
102929 2007-03-03  Bruno Haible  <bruno@clisp.org>
102931         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
102932         ENABLE_RELOCATABLE here.
102933         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
102935 2007-03-03  Bruno Haible  <bruno@clisp.org>
102937         * modules/rbtreehash-list-tests (Depends-on): Add progname.
102938         * tests/test-rbtreehash_list.c: Include progname.h.
102939         (main): Call set_program_name.
102941         * modules/rbtree-oset-tests (Depends-on): Add progname.
102942         * tests/test-rbtree_oset.c: Include progname.h.
102943         (main): Call set_program_name.
102945         * modules/rbtree-list-tests (Depends-on): Add progname.
102946         * tests/test-rbtree_list.c: Include progname.h.
102947         (main): Call set_program_name.
102949         * modules/linked-list-tests (Depends-on): Add progname.
102950         * tests/test-linked_list.c: Include progname.h.
102951         (main): Call set_program_name.
102953 2007-03-03  Bruno Haible  <bruno@clisp.org>
102955         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
102956         All uses of __restrict changed to _Restrict_.
102957         * lib/glob_.h (__restrict): Remove macro.
102959 2007-03-02  Bruno Haible  <bruno@clisp.org>
102961         * modules/gettext (configure.ac): Require gettext infrastructure
102962         from version 0.16.1.
102964 2007-03-02  Bruno Haible  <bruno@clisp.org>
102966         * modules/linkedhash-list-tests (Depends-on): Add progname.
102967         * tests/test-linkedhash_list.c: Include progname.h.
102968         (main): Call set_program_name.
102970         * modules/carray-list-tests (Depends-on): Add progname.
102971         * tests/test-carray_list.c: Include progname.h.
102972         (main): Call set_program_name.
102974         * modules/avltreehash-list-tests (Depends-on): Add progname.
102975         * tests/test-avltreehash_list.c: Include progname.h.
102976         (main): Call set_program_name.
102978         * modules/avltree-oset-tests (Depends-on): Add progname.
102979         * tests/test-avltree_oset.c: Include progname.h.
102980         (main): Call set_program_name.
102982         * modules/avltree-list-tests (Depends-on): Add progname.
102983         * tests/test-avltree_list.c: Include progname.h.
102984         (main): Call set_program_name.
102986         * modules/array-oset-tests (Depends-on): Add progname.
102987         * tests/test-array_oset.c: Include progname.h.
102988         (main): Call set_program_name.
102990         * modules/array-list-tests (Depends-on): Add progname.
102991         * tests/test-array_list.c: Include progname.h.
102992         (main): Call set_program_name.
102994         * modules/argp-tests (Depends-on): Add progname.
102995         * tests/test-argp.c: Include argp.h first. Include progname.h.
102996         (main): Call set_program_name.
102998 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103000         * doc/gnulib-tool.texi (Initial import): Reword description of
103001         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103002         limited effect even if defined after the first system include.
103004 2007-03-01  Bruno Haible  <bruno@clisp.org>
103006         * build-aux/config.libpath: Update to libtool-1.5.22.
103007         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103009 2007-03-01  Bruno Haible  <bruno@clisp.org>
103011         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103012         foo_CFLAGS.
103013         Reported by Ralf Wildenhues.
103015 2007-03-01  Bruno Haible  <bruno@clisp.org>
103017         * build-aux/install-reloc: Remove object files left over by some
103018         compilers.
103019         Reported by Ralf Wildenhues.
103021 2007-03-01  Bruno Haible  <bruno@clisp.org>
103023         * build-aux/install-reloc: Break long lines.
103025 2007-03-01  Bruno Haible  <bruno@clisp.org>
103027         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103028         Reported by Ralf Wildenhues.
103030 2007-03-01  Bruno Haible  <bruno@clisp.org>
103032         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103033         include ordering constraints.
103035 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103037         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103038         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103039         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103040         as another example.
103041         * lib/time_.h: Fix misspelling.
103042         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103043         Require gl_HEADER_TIME_H_DEFAULTS.
103044         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103045         * m4/time_r.m4 (gl_TIME_R): Likewise.
103046         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103048 2007-03-01  Bruno Haible  <bruno@clisp.org>
103050         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103051         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103053 2007-03-01  Jim Meyering  <jim@meyering.net>
103055         * modules/xreadlink (Maintainer): Add my name.
103056         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103058 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103059             Bruno Haible  <bruno@clisp.org>
103061         * build-aux/install-reloc: Compile also c-ctype.c.
103062         * build-aux/relocatable.sh.in: New file.
103063         * doc/relocatable.texi: New file.
103064         * doc/relocatable-maint.texi: New file.
103065         * doc/gnulib.texi: Include relocatable-maint.texi.
103066         * lib/progreloc.c: Include unistd.h unconditionally.
103067         * lib/relocwrapper.c: Include unistd.h unconditionally.
103068         Include c-ctype.h.
103069         (add_dotbin): Use c_tolower.
103070         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103071         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103072         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103073         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103074         to m4/relocatable-lib.m4.
103075         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103076         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103077         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103078         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103079         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103080         * modules/relocatable: New file.
103081         * modules/relocatable-lib: New file.
103082         * modules/relocatable-script: New file.
103084 2007-02-28  Bruno Haible  <bruno@clisp.org>
103086         Import --enable-relocatable infrastructure.
103087         * build-aux/config.libpath: New file, from GNU gettext.
103088         * build-aux/install-reloc: New file, from GNU gettext.
103089         * build-aux/reloc-ldflags: New file, from GNU gettext.
103090         * lib/relocatable.h: New file, from GNU gettext.
103091         * lib/relocatable.c: New file, from GNU gettext.
103092         * lib/relocwrapper.c: New file, from GNU gettext.
103093         * m4/relocatable.m4: New file, from GNU gettext.
103095 2007-02-28  Bruno Haible  <bruno@clisp.org>
103097         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103099         * modules/xreadlink: New file, from GNU gettext with modifications.
103100         * lib/xreadlink.c: New file, from GNU gettext.
103101         * lib/xreadlink.h: Add comments.
103102         (xreadlink): New declaration.
103104         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103105         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103106         lib/xreadlink-with-size.c.
103107         (configure.ac): Remove gl_XREADLINK invocation.
103108         (Makefile.am): Augment lib_SOURCES.
103109         * m4/xreadlink.m4: Remove file.
103110         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103111         (xreadlink_with_size): Renamed from xreadink.
103112         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103113         * modules/canonicalize (Depends-on): Replace xreadlink with
103114         xreadlink-with-size.
103115         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103117 2007-02-25  Jim Meyering  <jim@meyering.net>
103119         * build-aux/announce-gen: When complaining about excess arguments,
103120         list them.
103122 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103124         * README: Document signed integer overflow situation more
103125         accurately.
103127 2007-02-25  Bruno Haible  <bruno@clisp.org>
103129         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103130         'a' or 'A' conversion.
103132 2007-02-25  Bruno Haible  <bruno@clisp.org>
103134         * modules/filename: Renamed from modules/pathname.
103135         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103136         lib/concatpath.c with lib/concat-filename.c.
103137         (Makefile.am): Update.
103138         (Include): Replace pathname.h with filename.h.
103139         * lib/filename.h: Renamed from lib/pathname.h.
103140         (concatenated_filename): Renamed from concatenated_pathname.
103141         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103142         (concatenated_filename): Renamed from concatenated_pathname.
103143         * lib/findprog.c: Include filename.h instead of pathname.h.
103144         (find_in_path): Update.
103145         * lib/javacomp.c: Include filename.h instead of pathname.h.
103146         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103147         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103148         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103149         is_oldgcj_14_13_usable, is_javac_usable): Update.
103150         * lib/javaexec.c: Include filename.h instead of pathname.h.
103151         (execute_java_class): Update.
103152         * modules/findprog: Update.
103153         * modules/javacomp: Update.
103154         * modules/javaexec: Update.
103155         * MODULES.html.sh (File system functions): Add 'filename', remove
103156         'pathname'.
103158 2007-02-25  Bruno Haible  <bruno@clisp.org>
103160         * modules/printf-frexpl-tests: New file.
103161         * tests/test-printf-frexpl.c: New file.
103163         * modules/printf-frexpl: New file.
103164         * lib/printf-frexpl.h: New file.
103165         * lib/printf-frexpl.c: New file.
103166         * m4/printf-frexpl.m4: New file.
103168 2007-02-25  Bruno Haible  <bruno@clisp.org>
103170         * modules/printf-frexp-tests: New file.
103171         * tests/test-printf-frexp.c: New file.
103173         * modules/printf-frexp: New file.
103174         * lib/printf-frexp.h: New file.
103175         * lib/printf-frexp.c: New file.
103176         * m4/printf-frexp.m4: New file.
103178 2007-02-25  Bruno Haible  <bruno@clisp.org>
103180         Assume automake >= 1.10 for the tests.
103181         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103182         * modules/arctwo-tests: Likewise.
103183         * modules/argp-tests: Likewise.
103184         * modules/avltree-list-tests: Likewise.
103185         * modules/avltree-oset-tests: Likewise.
103186         * modules/avltreehash-list-tests: Likewise.
103187         * modules/carray-list-tests: Likewise.
103188         * modules/crc-tests: Likewise.
103189         * modules/des-tests: Likewise.
103190         * modules/gc-arcfour-tests: Likewise.
103191         * modules/gc-arctwo-tests: Likewise.
103192         * modules/gc-des-tests: Likewise.
103193         * modules/gc-hmac-md5-tests: Likewise.
103194         * modules/gc-hmac-sha1-tests: Likewise.
103195         * modules/gc-md2-tests: Likewise.
103196         * modules/gc-md4-tests: Likewise.
103197         * modules/gc-md5-tests: Likewise.
103198         * modules/gc-pbkdf2-sha1-tests: Likewise.
103199         * modules/gc-rijndael-tests: Likewise.
103200         * modules/gc-sha1-tests: Likewise.
103201         * modules/gc-tests: Likewise.
103202         * modules/getaddrinfo-tests: Likewise.
103203         * modules/hmac-md5-tests: Likewise.
103204         * modules/hmac-sha1-tests: Likewise.
103205         * modules/linked-list-tests: Likewise.
103206         * modules/linkedhash-list-tests: Likewise.
103207         * modules/lock-tests: Likewise.
103208         * modules/md2-tests: Likewise.
103209         * modules/md4-tests: Likewise.
103210         * modules/md5-tests: Likewise.
103211         * modules/rbtree-list-tests: Likewise.
103212         * modules/rbtree-oset-tests: Likewise.
103213         * modules/rbtreehash-list-tests: Likewise.
103214         * modules/read-file-tests: Likewise.
103215         * modules/rijndael-tests: Likewise.
103216         * modules/stdint-tests: Likewise.
103217         * modules/tls-tests: Likewise.
103219 2007-02-24  Bruno Haible  <bruno@clisp.org>
103221         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103222         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103223         function; instead check whether isnan with a double argument links.
103224         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103225         function; instead check whether isnan with a 'long double' argument
103226         links.
103227         Reported by Eric Blake <ebb9@byu.net>.
103229 2007-02-24  Bruno Haible  <bruno@clisp.org>
103231         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103232         defined.
103233         * lib/isnanl.c: Remove all code. Just include isnan.c.
103234         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103236 2007-02-25  Jim Meyering  <jim@meyering.net>
103238         Avoid conflicting types for 'unsetenv' on FreeBSD.
103239         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103240         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103241         in stdlib.h.
103243 2007-02-24  Bruno Haible  <bruno@clisp.org>
103245         * modules/isnanl-nolibm-tests: New file.
103246         * tests/test-isnanl.c: New file.
103248         * modules/isnanl-nolibm: New file.
103249         * lib/isnanl.h: New file.
103250         * lib/isnanl.c: New file.
103251         * m4/isnanl.m4: New file.
103253 2007-02-24  Bruno Haible  <bruno@clisp.org>
103255         * modules/isnan-nolibm-tests: New file.
103256         * tests/test-isnan.c: New file.
103258         * modules/isnan-nolibm: New file.
103259         * lib/isnan.h: New file.
103260         * lib/isnan.c: New file.
103261         * m4/isnan.m4: New file.
103263 2007-02-24  Bruno Haible  <bruno@clisp.org>
103265         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103266         assume that an exponent fits in 20 bits.
103268 2007-02-24  Jim Meyering  <jim@meyering.net>
103270         * m4/regex.m4: Update the description of the configure-time option,
103271         --without-included-regex, to state accurately what the defaults are,
103272         and perhaps to give people an idea why using this option is risky.
103274 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103277         loops on small arguments.  This attempts to avoid the problem
103278         Bruno Haible reported for AIX 4.3.2 in
103279         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103281 2007-02-23  Bruno Haible  <bruno@clisp.org>
103283         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103284         Needed for help2man.
103286 2007-02-23  Karl Berry  <karl@gnu.org>
103288         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103289         exists, foo.h should be cvs-ignored, not committed.
103291 2007-02-23  Eric Blake  <ebb9@byu.net>
103293         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103294         * lib/stat-time.h (includes): Likewise.
103295         * lib/utimecmp.c (includes): Likewise.
103296         * lib/utimens.h (includes): Likewise.
103297         * lib/getdate.y (includes): Also include "timespec.h" for use
103298         internal to the module.
103299         * modules/utimens (Depends-on): Revert yesterday's patch.
103300         * modules/nanosleep (Depends-on): Add missing dependency.
103302 2007-02-22  Bruno Haible  <bruno@clisp.org>
103304         * lib/glob.c: Don't include getlogin_r.h.
103306 2007-02-22  Jim Meyering  <jim@meyering.net>
103308         * modules/utimens (Depends-on): Add timespec, required for
103309         utimens.h's inclusion of timespec.h.
103311 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103313         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103314         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103315         Schwab in
103316         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103317         I'll try to think of a better way to fix the Solaris problem.
103319         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103320         like glibc; on Solaris 10, it fails with errno == EINVAL.
103321         POSIX says the behavior is unspecified if the first argument is NULL,
103322         so play it safe and never pass NULL to the system getcwd.
103324 2007-02-21  Jim Meyering  <jim@meyering.net>
103326         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103327         of gettimeofday.  It would conflict with the one now always
103328         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103329         an IRIX 6.5 build failure.
103331 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103333         Minor fixups to port to Solaris 10 with Sun C 5.8.
103334         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103335         * modules/getcwd (Depends-on): Add dirfd.
103336         * lib/putenv.c (putenv): #undef it.
103337         (rpl_putenv): New decl.
103338         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103340 2007-02-20  Bruno Haible  <bruno@clisp.org>
103342         * modules/stdio-tests: New file.
103343         * tests/test-stdio.c: New file.
103345         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103346         (Depends-on): Add stdio.
103347         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103348         (Include): Use <stdio.h> instead of vsnprintf.h.
103349         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103350         HAVE_DECL_VSNPRINTF.
103351         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103353         * modules/snprintf (Files): Remove lib/snprintf.h.
103354         (Depends-on): Add stdio.
103355         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103356         (Include): Use <stdio.h> instead of snprintf.h.
103357         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103358         HAVE_DECL_SNPRINTF.
103359         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103360         * lib/getaddrinfo.c: Likewise.
103362         * modules/stdio: New file.
103363         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103364         * lib/snprintf.h: Remove file.
103365         * lib/vsnprintf.h: Remove file.
103366         * lib/.cppi-disable: Remove snprintf.h.
103367         * m4/stdio_h.m4: New file.
103368         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103370 2007-02-20  Jim Meyering  <jim@meyering.net>
103372         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103373         used by e.g., mingw.  From Bruno Haible.
103375 2007-02-19  Bruno Haible  <bruno@clisp.org>
103377         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103378         warnings.
103379         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103381 2007-02-19  Bruno Haible  <bruno@clisp.org>
103383         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103384         from mingw users.
103386 2007-02-19  Bruno Haible  <bruno@clisp.org>
103388         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103389         warnings.
103390         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103392 2007-02-19  Jim Meyering  <jim@meyering.net>
103394         Don't use FD after a successful "fdopendir (fd)".
103395         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103396         Reset it by calling dirfd on the just-obtained DIR*.
103398         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103399         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103401 2007-02-18  Bruno Haible  <bruno@clisp.org>
103403         * lib/readlink.c: Include <unistd.h>.
103404         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103405         HAVE_READLINK.
103406         * modules/readlink (Depends-on): Add unistd.
103407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103408         (Include): Add <unistd.h>.
103410         * lib/getlogin_r.h: Remove file.
103411         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103412         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103413         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103414         HAVE_DECL_GETLOGIN_R.
103415         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103417         (Include): Use <unistd.h> instead of getlogin_r.h.
103419         * lib/getcwd.h: Remove file.
103420         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103421         * lib/xgetcwd.c: Likewise.
103422         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103423         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103424         * modules/getcwd (Files): Remove lib/getcwd.h.
103425         (Depends-on): Add unistd.
103426         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103427         (Include): Use <unistd.h> instad of getcwd.h.
103429         * lib/ftruncate.c: Include <unistd.h> first.
103430         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103431         Set HAVE_FTRUNCATE.
103432         * modules/ftruncate (Depends-on): Add unistd.
103433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103435         * lib/fchdir.c: Include <unistd.h> first.
103436         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103438         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103439         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103440         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103442         * lib/dup2.c: Include <unistd.h> first.
103443         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103444         HAVE_DUP2.
103445         * modules/dup2 (Depends-on): Add unistd.
103446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103448         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103449         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103450         REPLACE_CHOWN. Don't define chown as a macro here.
103451         * modules/chown (Depends-on): Add unistd.
103452         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103454         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103455         Add definition for GL_LINK_WARNING.
103456         (chown, dup2): New declarations.
103457         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103458         link warning.
103459         (ftruncate): New declaration.
103460         (getcwd): New declaration, taken from old getcwd.h.
103461         (getlogin_r): New declaration, taken from old getlogin_r.h.
103462         (readlink): New declaration.
103463         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103464         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103465         (gl_PREREQ_UNISTD): Remove macro.
103466         (gl_UNISTD_MODULE_INDICATOR): New macro.
103467         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103468         many new variables. Don't set UNISTD_H.
103469         * modules/unistd (Description): Change.
103470         (Depends-on): Add link-warning.
103471         (configure.ac): Update.
103472         (Makefile.am): Create unistd.h always. Substitute many new variables
103473         into it.
103475 2007-02-18  Bruno Haible  <bruno@clisp.org>
103477         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103478         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103479         HAVE_GETSUBOPT.
103480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103481         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103482         * lib/getsubopt.h: Remove file.
103483         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103484         (Depends-on): Add stdlib.
103485         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103486         (Includes): Use <stdlib.h> instead of getsubopt.h.
103487         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103488         Set HAVE_GETSUBOPT.
103489         * lib/getsubopt.c: Don't include getsubopt.h.
103491 2007-02-18  Bruno Haible  <bruno@clisp.org>
103493         * modules/fchdir (Depends-on): Add dup2.
103495 2007-02-18  Bruno Haible  <bruno@clisp.org>
103497         * lib/stdlib_.h: Handle glibc's special invocation convention
103498         specially.
103500 2007-02-18  Bruno Haible  <bruno@clisp.org>
103502         * modules/stdlib-tests: New file.
103503         * tests/test-stdlib.c: New file.
103505         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103506         (Depends-on): Add stdlib.
103507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103508         (Includes): Use <stdlib.h> instead of mkstemp.h.
103509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103510         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103511         * lib/mkstemp.c: Don't include mkstemp.h.
103512         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103513         * lib/stdlib--.h: Don't include mkstemp.h.
103515         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103516         (Depends-on): Add stdlib.
103517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103518         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103519         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103520         HAVE_MKDTEMP.
103521         * lib/mkdtemp.c: Don't include mkdtemp.h.
103522         * lib/clean-temp.c: Don't include mkdtemp.h.
103524         * modules/exit (Files): Remove lib/exit.h.
103525         (Depends-on): Add stdlib.
103526         (Makefile.am): Remove lib_SOURCES.
103527         (Include): Use <stdlib.h> instead of exit.h.
103528         * lib/argmatch.c: Don't include exit.h.
103529         * lib/execute.c: Likewise.
103530         * lib/pagealign_alloc.c: Likewise.
103531         * lib/pipe.c: Likewise.
103532         * lib/wait-process.c: Likewise.
103533         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103534         * lib/exitfail.c: Likewise.
103535         * lib/savewd.c: Likewise.
103536         * lib/xsetenv.c: Likewise.
103538         * modules/stdlib: New file.
103539         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103540         and extra comments about mkstemp().
103541         * lib/exit.h: Remove file.
103542         * lib/mkdtemp.h: Remove file.
103543         * lib/mkstemp.h: Remove file.
103544         * m4/stdlib_h.m4: New file.
103545         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103547 2007-02-18  Bruno Haible  <bruno@clisp.org>
103549         * modules/math-tests: New file.
103550         * tests/test-math.c: New file.
103552         * modules/math: New file.
103553         * modules/mathl (Files): Remove lib/mathl.h.
103554         (Depends-on): Add math.
103555         (Makefile.am): Don't mention mathl.h.
103556         (Include): Use <math.h> instead of mathl.h.
103557         * lib/math_.h: New file.
103558         * lib/mathl.h: Remove file.
103559         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103560         mathl.h.
103561         * lib/asinl.c: Likewise.
103562         * lib/atanl.c: Likewise.
103563         * lib/ceill.c: Likewise.
103564         * lib/cosl.c: Likewise.
103565         * lib/expl.c: Likewise.
103566         * lib/floorl.c: Likewise.
103567         * lib/frexpl.c: Likewise.
103568         * lib/ldexpl.c: Likewise.
103569         * lib/logl.c: Likewise.
103570         * lib/sincosl.c: Likewise.
103571         * lib/sinl.c: Likewise.
103572         * lib/sqrtl.c: Likewise.
103573         * lib/tanl.c: Likewise.
103574         * lib/trigl.c: Likewise.
103575         * m4/math_h.m4: New file.
103576         * MODULES.html.sh (Mathematics): Add math.
103578 2007-02-17  Bruno Haible  <bruno@clisp.org>
103580         * modules/wctype-tests: New file.
103581         * tests/test-wctype.c: New file.
103583         * modules/wchar-tests: New file.
103584         * tests/test-wchar.c: New file.
103586         * modules/unistd-tests: New file.
103587         * tests/test-unistd.c: New file.
103589         * modules/time-tests: New file.
103590         * tests/test-time.c: New file.
103592         * modules/sysexits-tests: New file.
103593         * tests/test-sysexits.c: New file.
103595         * modules/sys_time-tests: New file.
103596         * tests/test-sys_time.c: New file.
103598         * modules/sys_stat-tests: New file.
103599         * tests/test-sys_stat.c: New file.
103601         * modules/sys_socket-tests: New file.
103602         * tests/test-sys_socket.c: New file.
103604         * modules/sys_select-tests: New file.
103605         * tests/test-sys_select.c: New file.
103607         * modules/string-tests: New file.
103608         * tests/test-string.c: New file.
103610         * modules/stdbool-tests: New file.
103611         * tests/test-stdbool.c: New file.
103613         * modules/netinet_in-tests: New file.
103614         * tests/test-netinet_in.c: New file.
103616         * modules/inttypes-tests: New file.
103617         * tests/test-inttypes.c: New file.
103619         * modules/fcntl-tests: New file.
103620         * tests/test-fcntl.c: New file.
103622         * modules/byteswap-tests: New file.
103623         * tests/test-byteswap.c: New file.
103625         * modules/arpa_inet-tests: New file.
103626         * tests/test-arpa_inet.c: New file.
103628 2007-02-17  Bruno Haible  <bruno@clisp.org>
103630         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
103631         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
103632         if the corresponding module is not enabled. Emit link warnings if
103633         the function is used nevertheless.
103634         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
103635         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
103636         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
103637         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
103638         * modules/inttypes (Depends-on): Add link-warning.
103639         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103640         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
103641         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
103642         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
103643         * modules/imaxdiv (configure.ac): Likewise.
103644         * modules/strtoimax (configure.ac): Likewise.
103645         * modules/strtoumax (configure.ac): Likewise.
103647 2007-02-17  Bruno Haible  <bruno@clisp.org>
103649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
103650         gl_STRING_MODULE_INDICATOR_DEFAULTS.
103651         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
103652         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
103654 2007-02-17  Bruno Haible  <bruno@clisp.org>
103656         * modules/link-warning: New file.
103657         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
103658         * lib/string_.h (GL_LINK_WARNING): Remove definition.
103659         * modules/string (Depends-on): Add link-warning.
103660         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103661         string.h.
103662         * MODULES.html.sh (Support for building libraries and executables): Add
103663         link-warning.
103665 2007-02-17  Bruno Haible  <bruno@clisp.org>
103667         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
103668         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
103669         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
103670         long lines.
103672 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
103673             Bruno Haible  <bruno@clisp.org>
103675         * modules/tmpfile: New file.
103676         * lib/tmpfile.c: New file.
103677         * m4/tmpfile.m4: New file.
103678         * MODULES.html.sh (func_all_modules): New section "Input/output".
103680 2007-02-15  Bruno Haible  <bruno@clisp.org>
103682         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
103683         (supports_delete_on_close): New function.
103684         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
103686 2007-02-14  Bruno Haible  <bruno@clisp.org>
103688         * modules/mbspcasecmp-tests: New file.
103689         * tests/test-mbspcasecmp.sh: New file.
103690         * tests/test-mbspcasecmp.c: New file.
103692         New module mbspcasecmp.
103693         * modules/mbspcasecmp: New file.
103694         * lib/mbspcasecmp.c: New file.
103695         * lib/string_.h (strncasecmp): Change warning message.
103696         (mbspcasecmp): New declaration.
103697         * m4/mbspcasecmp.m4: New file.
103698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103699         GNULIB_MBSPCASECMP.
103700         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
103701         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
103703 2007-02-14  Bruno Haible  <bruno@clisp.org>
103705         * modules/mbsncasecmp-tests: New file.
103706         * tests/test-mbsncasecmp.sh: New file.
103707         * tests/test-mbsncasecmp.c: New file.
103709         New module mbsncasecmp.
103710         * modules/mbsncasecmp: New file.
103711         * lib/mbsncasecmp.c: New file.
103712         * lib/string_.h (mbsncasecmp): New declaration.
103713         * m4/mbsncasecmp.m4: New file.
103714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103715         GNULIB_MBSNCASECMP.
103716         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
103717         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
103719 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
103721         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
103722         Verify that it doesn't overlap with our flags.
103723         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
103724         do not have the desired effect in multibyte locales; instead, use
103725         mbscasecmp.
103726         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
103727         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
103728         we don't require GNU fnmatch ourselves (if our users require it, they
103729         should do so explicitly).
103731         Fix regex code so it doesn't rely on strcasecmp.
103732         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
103733         Otherwise, include gnulib's langinfo.h.
103734         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
103735         undesirable behavior in non-C locales.  Instead, rely on localecharset.
103736         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
103737         * modules/regex (FILES): Remove m4/codeset.m4.
103738         (Depends-on): Add localcharset.  Remove strcase.
103740 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103742         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
103743         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
103745 2007-02-13  Bruno Haible  <bruno@clisp.org>
103747         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
103748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103750 2007-02-12  Bruno Haible  <bruno@clisp.org>
103752         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
103753         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
103754         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
103755         time warning rather than a link error.
103757 2007-02-12  Bruno Haible  <bruno@clisp.org>
103759         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
103760         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
103761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103763 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103765         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
103766         args, not 2.
103768 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103770         New module 'time', so that apps can include <time.h> as per
103771         POSIX and GNU instead of separate include files like time_r.h
103772         and timegm.h.  This implementation tries out a simpler approach
103773         for replacing decls in standard include files (as compared to
103774         the string module), somewhat as an experiment.
103776         * config/srclist.txt: Comment out mktime.c for now.
103777         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
103778         since it doesn't apply any more.  Use generic wording instead.
103779         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
103780         'time'.
103781         * lib/time_.h, m4/time_h.m4, modules/time: New files.
103782         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
103783         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
103784         Don't include <sys/types.h>; no longer needed since we assume C89.
103785         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
103786         * lib/strftime.c: Likewise.
103787         * lib/time_r.c: Likewise.
103788         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
103789         * lib/nanosleep.c: Include <time.h> first, to check interface.
103790         * lib/strptime.c: Likewise.
103791         * lib/time_r.c: Likewise.
103792         * lib/timegm.c: Likewise.
103793         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
103794         needed.
103795         * lib/timegm.c: Don't include timegm.h; no longer needed.
103796         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
103797         time.h now handles any problems in that area.
103798         (struct timespec, nanosleep): Remove; time.h now arranges for these.
103799         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
103800         that time.h defines struct timespec.
103801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
103802         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
103803         handles that.
103804         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
103805         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
103806         needed.  Set REPLACE_LOCALTIME.
103807         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
103808         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
103809         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
103810         nanosleep; time_h.m4 now does that.  Don't require
103811         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
103812         module handles this now.
103813         * modules/getdate (Depends-on): Remove timespec.  Add time.
103814         * modules/nanosleep (Depends-on): Likewise.
103815         * modules/stat-time (Depends-on): Likewise.
103816         * modules/nanosleep (Include): Include time.h, not timespec.h.
103817         * modules/strptime (Files): Remove lib/strptime.h.
103818         (Depends-on): Add extensions, time.
103819         (Include): Include time.h, not strptime.h.
103820         * modules/time_r (Files): Remove lib/time_r.h.
103821         (Depends-on): Add time.
103822         (Include): Include time.h, not time_r.h.
103823         * modules/timegm: Likewise.
103824         * modules/timespec (Description): Now does timespec-related decls
103825         of our own, instead of struct timespec itself.
103826         (Depends-on): Add time; remove extensions.
103827         (Maintainer): Add self.
103828         * modules/utimecmp (Depends-on): Add time; remove timespec.
103829         * modules/utimens (Depends-on): Likewise.
103830         * modules/xnanosleep (Depends-on): Likewise.
103832 2007-02-11  Bruno Haible  <bruno@clisp.org>
103834         * lib/c-strstr.c: Include allocsa.h.
103835         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103836         * lib/c-strcasestr.c: Include allocsa.h.
103837         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103838         * lib/strcasestr.c: Include allocsa.h.
103839         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
103840         * lib/mbsstr.c: Include allocsa.h.
103841         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
103842         allocsa/freesa instead of malloc/free.
103843         * lib/mbscasestr.c: Include allocsa.h.
103844         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
103845         allocsa/freesa instead of malloc/free.
103846         * modules/c-strstr (Depends-on): Add allocsa.
103847         * modules/c-strcasestr (Depends-on): Likewise.
103848         * modules/strcasestr (Depends-on): Likewise.
103849         * modules/mbsstr (Depends-on): Likewise.
103850         * modules/mbscasestr (Depends-on): Likewise.
103852 2007-02-11  Bruno Haible  <bruno@clisp.org>
103854         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
103856         * modules/mbsspn-tests: New file.
103857         * tests/test-mbsspn.sh: New file.
103858         * tests/test-mbsspn.c: New file.
103860 2007-02-11  Bruno Haible  <bruno@clisp.org>
103862         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
103864         * modules/mbspbrk-tests: New file.
103865         * tests/test-mbspbrk.sh: New file.
103866         * tests/test-mbspbrk.c: New file.
103868 2007-02-11  Bruno Haible  <bruno@clisp.org>
103870         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
103871         unneeded cast.
103873         * modules/mbscspn-tests: New file.
103874         * tests/test-mbscspn.sh: New file.
103875         * tests/test-mbscspn.c: New file.
103877 2007-02-11  Bruno Haible  <bruno@clisp.org>
103879         * modules/mbscasecmp-tests: New file.
103880         * tests/test-mbscasecmp.sh: New file.
103881         * tests/test-mbscasecmp.c: New file.
103883 2007-02-11  Bruno Haible  <bruno@clisp.org>
103885         Ensure O(n) worst-case complexity of mbscasestr.
103886         * lib/mbscasestr.c: Include stdbool.h.
103887         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
103888         functions.
103889         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
103890         the bookkeeping indicates that it's worth it.
103891         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
103893         * modules/mbscasestr-tests: New file.
103894         * tests/test-mbscasestr1.c: New file.
103895         * tests/test-mbscasestr2.sh: New file.
103896         * tests/test-mbscasestr2.c: New file.
103897         * tests/test-mbscasestr3.sh: New file.
103898         * tests/test-mbscasestr3.c: New file.
103899         * tests/test-mbscasestr4.sh: New file.
103900         * tests/test-mbscasestr4.c: New file.
103901         * m4/locale-tr.m4: New file.
103903 2007-02-11  Bruno Haible  <bruno@clisp.org>
103905         Ensure O(n) worst-case complexity of mbsstr.
103906         * lib/mbsstr.c: Include stdbool.h.
103907         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
103908         functions.
103909         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
103910         bookkeeping indicates that it's worth it.
103911         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
103913         * modules/mbsstr-tests: New file.
103914         * tests/test-mbsstr1.c: New file.
103915         * tests/test-mbsstr2.sh: New file.
103916         * tests/test-mbsstr2.c: New file.
103917         * tests/test-mbsstr3.sh: New file.
103918         * tests/test-mbsstr3.c: New file.
103919         * m4/locale-fr.m4: New file.
103921 2007-02-11  Bruno Haible  <bruno@clisp.org>
103923         * lib/mbsrchr.c (mbsrchr): Fix bug.
103925         * modules/mbsrchr-tests: New file.
103926         * tests/test-mbsrchr.sh: New file.
103927         * tests/test-mbsrchr.c: New file.
103929 2007-02-11  Bruno Haible  <bruno@clisp.org>
103931         * lib/mbschr.c (mbschr): Fix bug.
103933         * modules/mbschr-tests: New file.
103934         * tests/test-mbschr.sh: New file.
103935         * tests/test-mbschr.c: New file.
103936         * m4/locale-zh.m4: New file.
103938 2007-02-11  Bruno Haible  <bruno@clisp.org>
103940         Support for copying multibyte string iterators.
103941         * lib/mbiter.h: Include <string.h>.
103942         (mbiter_multi_copy): New function.
103943         (mbi_copy): New macro.
103944         * lib/mbuiter.h: Include <string.h>.
103945         (mbuiter_multi_copy): New function.
103946         (mbui_copy): New macro.
103948 2007-02-11  Bruno Haible  <bruno@clisp.org>
103950         New module mbslen.
103951         * modules/mbslen: New file.
103952         * lib/mbslen.c: New file.
103953         * lib/string_.h (mbslen): New declaration.
103954         * m4/mbslen.m4: New file.
103955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103956         GNULIB_MBSLEN.
103957         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
103958         * MODULES.html.sh (Internationalization functions): Add mbslen.
103960 2007-02-11  Bruno Haible  <bruno@clisp.org>
103962         Ensure O(n) worst-case complexity of strcasestr substitute.
103963         * lib/strcasestr.c: Include stdbool.h.
103964         (knuth_morris_pratt): New function.
103965         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
103966         bookkeeping indicates that it's worth it.
103967         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
103969         * modules/strcasestr-tests: New file.
103970         * tests/test-strcasestr.c: New file.
103972 2007-02-11  Bruno Haible  <bruno@clisp.org>
103974         Ensure O(n) worst-case complexity of c_strcasestr.
103975         * lib/c-strcasestr.c: Include stdbool.h, string.h.
103976         (knuth_morris_pratt): New function.
103977         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
103978         the bookkeeping indicates that it's worth it.
103979         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
103981         * modules/c-strcasestr-tests: New file.
103982         * tests/test-c-strcasestr.c: New file.
103984 2007-02-11  Bruno Haible  <bruno@clisp.org>
103986         Ensure O(n) worst-case complexity of c_strstr.
103987         * lib/c-strstr.c: Include stdbool.h, string.h.
103988         (knuth_morris_pratt): New function.
103989         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
103990         bookkeeping indicates that it's worth it.
103991         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
103993         * lib/c-strstr.c: Complete rewrite for maintainability.
103995         * modules/c-strstr-tests: New file.
103996         * tests/test-c-strstr.c: New file.
103998 2007-02-11  Bruno Haible  <bruno@clisp.org>
104000         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104001         5.2.1 and earlier, whereby \055 was treated just like the range
104002         delimiter '-'.
104003         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104005 2007-02-08  Bruno Haible  <bruno@clisp.org>
104007         * modules/regex (Depends-on): Add stdbool.
104008         Reported by Dalibor Topic <robilad@kaffe.org>.
104010 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104012         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104013         Prefer returning from main to exiting from it.
104014         Remove unnecessary parens after sizeof.
104016 2007-02-05  Bruno Haible  <bruno@clisp.org>
104018         New module mbssep.
104019         * modules/mbssep: New file.
104020         * lib/mbssep.c: New file.
104021         * lib/string_.h (strsep): Add a conditional link warning.
104022         (mbssep): New declaration.
104023         * m4/mbssep.m4: New file.
104024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104025         GNULIB_MBSSEP.
104026         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104027         * MODULES.html.sh (Internationalization functions): Add mbssep.
104029 2007-02-05  Bruno Haible  <bruno@clisp.org>
104031         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104032         Optimize search in case of 1 delimiter.
104034 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104036         * lib/acl.h: Include sys/types.h before sys/acl.h.
104038 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104040         Merge upstream fix for glibc bugzilla #3957:
104042         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104044         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104045         bit for RE_HAT_LISTS_NOT_NEWLINE.
104046         (build_charclass_op): Remove bogus comment.
104048 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104050         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104052 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104054         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104055         * lib/memmem.c [!defined _LIBC]: Include config.h.
104057 2007-02-04  Bruno Haible  <bruno@clisp.org>
104059         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104060         warning message.
104062 2007-02-04  Bruno Haible  <bruno@clisp.org>
104064         New module mbstok_r.
104065         * modules/mbstok_r: New file.
104066         * lib/mbstok_r.c: New file.
104067         * lib/string_.h (strtok_r): Change argument names to match the
104068         comments. Add a conditional link warning.
104069         (mbstok_r): New declaration.
104070         * m4/mbstok_r.m4: New file.
104071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104072         GNULIB_MBSTOK_R.
104073         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104074         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104076 2007-02-04  Bruno Haible  <bruno@clisp.org>
104078         New module mbsspn.
104079         * modules/mbsspn: New file.
104080         * lib/mbsspn.c: New file.
104081         * lib/string_.h (strspn): Add a conditional link warning.
104082         (mbsspn): New declaration.
104083         * m4/mbsspn.m4: New file.
104084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104085         GNULIB_MBSSPN.
104086         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104087         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104089 2007-02-04  Bruno Haible  <bruno@clisp.org>
104091         New module mbspbrk.
104092         * modules/mbspbrk: New file.
104093         * lib/mbspbrk.c: New file.
104094         * lib/string_.h (strpbrk): Add a conditional link warning.
104095         (mbspbrk): New declaration.
104096         * m4/mbspbrk.m4: New file.
104097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104098         GNULIB_MBSPBRK.
104099         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104100         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104102 2007-02-04  Bruno Haible  <bruno@clisp.org>
104104         New module mbscspn.
104105         * modules/mbscspn: New file.
104106         * lib/mbscspn.c: New file.
104107         * lib/string_.h (strcspn): Add a conditional link warning.
104108         (mbscspn): New declaration.
104109         * m4/mbscspn.m4: New file.
104110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104111         GNULIB_MBSCSPN.
104112         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104113         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104115 2007-02-04  Bruno Haible  <bruno@clisp.org>
104117         New module mbscasestr, reduced goal of strcasestr.
104118         * modules/mbscasestr: New file.
104119         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104120         (mbscasestr): Renamed from strcasestr.
104121         * lib/strcasestr.c: Don't include mbuiter.h.
104122         (strcasestr): Remove support for multibyte locales.
104123         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104124         Change the conditional link warning.
104125         (mbscasestr): New declaration.
104126         * m4/mbscasestr.m4: New file.
104127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104128         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104129         REPLACE_STRCASESTR.
104130         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104132         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104133         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104134         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104135         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104136         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104137         (Depends-on): Remove mbuiter.
104138         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104140 2007-02-04  Bruno Haible  <bruno@clisp.org>
104142         Simplify handling of strncasecmp.
104143         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104144         the conditional link warning.
104145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104146         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104147         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104148         * modules/strcase (configure.ac): Don't invoke
104149         gl_STRING_MODULE_INDICATOR.
104150         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104152 2007-02-04  Bruno Haible  <bruno@clisp.org>
104154         New module mbscasecmp, reduced goal of strcasecmp.
104155         * modules/mbscasecmp: New file.
104156         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104157         (mbscasecmp): Renamed from strcasecmp.
104158         * lib/strcasecmp.c: Don't include mbuiter.h.
104159         (strcasecmp): Remove support for multibyte locales.
104160         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104161         Change the conditional link warning.
104162         (mbscasecmp): New declaration.
104163         * m4/mbscasecmp.m4: New file.
104164         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104165         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104166         REPLACE_STRCASECMP.
104167         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104169         GNULIB_MBSCASECMP.
104170         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104171         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104172         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104173         (Depends-on): Remove mbuiter.
104174         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104176 2007-02-04  Bruno Haible  <bruno@clisp.org>
104178         New module mbsstr. Remove module strstr.
104179         * modules/mbsstr: New file.
104180         * modules/strstr: Remove file.
104181         * lib/mbsstr.c: Renamed from lib/strstr.c.
104182         (mbsstr): Renamed from strstr.
104183         * lib/string_.h (strstr): Remove declaration. Change the conditional
104184         link warning.
104185         (mbsstr): New declaration.
104186         * m4/mbsstr.m4: New file.
104187         * m4/strstr.m4: Remove file.
104188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104189         REPLACE_STRSTR.
104190         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104191         Don't initialize GNULIB_STRSTR.
104192         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104193         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104194         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104195         (Support for systems lacking ANSI C 89): Remove strstr.
104197 2007-02-04  Bruno Haible  <bruno@clisp.org>
104199         New module mbsrchr.
104200         * modules/mbsrchr: New file.
104201         * lib/mbsrchr.c: New file.
104202         * lib/string_.h (strrchr): Add a conditional link warning.
104203         (mbsrchr): New declaration.
104204         * m4/mbsrchr.m4: New file.
104205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104206         GNULIB_MBSRCHR.
104207         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104208         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104210 2007-02-04  Bruno Haible  <bruno@clisp.org>
104212         New module mbschr.
104213         * modules/mbschr: New file.
104214         * lib/mbschr.c: New file.
104215         * lib/string_.h (strchr): Add a conditional link warning.
104216         (mbschr): New declaration.
104217         * m4/mbschr.m4: New file.
104218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104219         GNULIB_MBSCHR.
104220         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104221         * MODULES.html.sh (Internationalization functions): Add mbschr.
104223 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104225         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104227         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104229 2007-02-04  Bruno Haible  <bruno@clisp.org>
104231         New module description section 'configure.ac-early'.
104232         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104233         (func_get_autoconf_early_snippet): New function.
104234         (func_import, func_create_testdir): Use it. Remove special cases for
104235         modules 'extensions' and 'lock'.
104236         * modules/extensions (configure.ac-early): Require
104237         gl_USE_SYSTEM_EXTENSIONS.
104238         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104240 2007-02-04  Bruno Haible  <bruno@clisp.org>
104242         Make use of gcj-4.3's -fsource and -ftarget option.
104243         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104244         and if so try the options -fsource and -ftarget.
104245         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104246         source_version, ftarget_option, target_version arguments.
104247         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104248         (is_envjavac_oldgcj_14_14_usable): Renamed from
104249         is_envjavac_gcj_14_14_usable.
104250         (is_envjavac_oldgcj_14_13_usable): Renamed from
104251         is_envjavac_gcj_14_13_usable.
104252         (is_gcj_present): Update.
104253         (is_gcj_43, is_gcj43_usable): New functions.
104254         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104255         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104256         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104257         try the options -fsource and -ftarget.
104259 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104261         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104262         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104263         larger value.
104265 2007-02-03  Jim Meyering  <jim@meyering.net>
104267         Give tools a better chance to allocate space for very large buffers.
104268         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104270         Make pwd and readlink work also when run with an unreadable parent dir
104271         on systems with openat support.
104272         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104273         provided getcwd function, even when we have openat support.
104274         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104276 2007-02-02  Bruno Haible  <bruno@clisp.org>
104278         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104279         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104280         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104281         portability problems if one of these functions is only used on specific
104282         platforms.
104283         Reported by Paul Eggert.
104285 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104287         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104288         is causing more trouble than it's curing.
104289         * lib/regex_internal.h (__mempcpy): Remove.
104290         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104291         (and make the code a tad smaller to boot).
104292         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104294 2007-02-02  Jim Meyering  <jim@meyering.net>
104296         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104297         section, not in the Makefile.am: one.
104299 2007-02-02  Eric Blake  <ebb9@byu.net>
104301         * lib/strchrnul.c: Always include config.h first.
104303         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104304         gnulib strstr is not necessary here.
104306 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104308         * m4/socklen.m4: Fix typo.
104310 2007-02-02  Eric Blake  <ebb9@byu.net>
104312         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104313         * modules/netinet_in (Makefile.am): Likewise.
104315 2007-02-01  Bruno Haible  <bruno@clisp.org>
104317         * lib/string_.h (GL_LINK_WARNING): New macro.
104318         (strcasecmp, strstr, strcasestr): If provided by the system,
104319         conditionally define as a macro that leads to a warning instead of to
104320         an error.
104321         (strncasecmp): Conditionally define as a macro that leads to a warning.
104323 2007-02-01  Karl Berry  <karl@gnu.org>
104325         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104327 2007-02-01  Bruno Haible  <bruno@clisp.org>
104329         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104330         renamings.
104332 2007-02-01  Eric Blake  <ebb9@byu.net>
104334         * modules/regex (Depends-on): Revert dependence on mempcpy.
104335         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104336         module's definition of mempcpy.
104337         Reported by Paul Eggert.
104339 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104341         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104342         the symbol XYZ before redefining it.  This fixes a problem with
104343         programs that don't use XYZ, when compiled on systems that define
104344         XYZ to something else.
104346 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104348         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104349         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104350         writeable to group or other and (2) is intended to have a special
104351         mode bit that is set or cleared.  In such a case, the directory
104352         should be neither group- nor other-writeable until the special
104353         mode bits are right.
104355 2007-01-31  Eric Blake  <ebb9@byu.net>
104357         * modules/mountlist (Depends-on): Add strstr.
104359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104360         bug.
104361         * modules/string (Makefile.am): Remove redundant replacement.
104362         * modules/regex (Depends-on): Add mempcpy.
104364 2007-01-31  Bruno Haible  <bruno@clisp.org>
104366         New module description field 'Link'.
104367         * gnulib-tool (func_usage): Document --extract-link-directive.
104368         (sed_extract_prog): Recognize 'Link' directive.
104369         (func_get_link_directive): New function.
104370         (func_import): Show summary of link directives.
104371         Handle --extract-link-directive option.
104372         * modules/acl (Link): New section.
104373         * modules/clock-time (Link): New section.
104374         * modules/euidaccess (Link): New section.
104375         * modules/gettext (Link): New section.
104376         * modules/iconv (Link): New section.
104377         * modules/lock (Link): New section.
104378         * modules/nanosleep (Link): New section.
104379         * modules/readline (Link): New section.
104381 2007-01-27  Bruno Haible  <bruno@clisp.org>
104383         Enforce the use of gnulib modules for unportable <string.h> functions.
104384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104385         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104386         (gl_HEADER_STRING_H_BODY): Require it.
104387         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104388         the symbol XYZ to one that gives a link error.
104389         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104390         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104391         * modules/mempcpy (configure.ac): Likewise.
104392         * modules/memrchr (configure.ac): Likewise.
104393         * modules/stpcpy (configure.ac): Likewise.
104394         * modules/stpncpy (configure.ac): Likewise.
104395         * modules/strcase (configure.ac): Likewise.
104396         * modules/strcasestr (configure.ac): Likewise.
104397         * modules/strchrnul (configure.ac): Likewise.
104398         * modules/strdup (configure.ac): Likewise.
104399         * modules/strndup (configure.ac): Likewise.
104400         * modules/strnlen (configure.ac): Likewise.
104401         * modules/strpbrk (configure.ac): Likewise.
104402         * modules/strsep (configure.ac): Likewise.
104403         * modules/strstr (configure.ac): Likewise.
104404         * modules/strtok_r (configure.ac): Likewise.
104406 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104408         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104410 2007-01-30  Jim Meyering  <jim@meyering.net>
104412         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104414 2007-01-29  Bruno Haible  <bruno@clisp.org>
104416         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104417         * lib/execute.c: Likewise.
104418         * lib/pipe.c: Likewise.
104419         * lib/printf-args.h: Likewise.
104420         * lib/printf-args.c: Likewise.
104421         * lib/printf-parse.c: Likewise.
104422         * lib/vasnprintf.c: Likewise.
104424 2007-01-29  Eric Blake  <ebb9@byu.net>
104426         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104427         declaration.
104429 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104431         * lib/strptime.h (strptime): Use 'restrict' for args where
104432         POSIX requires this.
104433         * lib/strptime.c (strptime): Likewise.
104434         Change license notice from LGPL to GPL, since gnulib-tool will
104435         change this as needed.
104436         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104437         defined.
104438         Include "strptime.h" first, to check interface.
104439         Do not #undef _LIBC and _NL_CURRENT.
104440         Do not include <stdlib.h>; no longer needed.
104441         Include "time_r.h" and declare ptime_locale_status
104442         only if _LIBC is not defined.
104443         (__P): Remove unused macro.
104444         (match_string): Bring back glibc version, but use it only if _LIBC
104445         is defined.
104446         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104447         Remove unnecessary assertion and abort() call.
104448         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104449         * m4/strptime.m4: Fix serial number comment.
104450         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104451         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104452         (Depends-on): Add time_r.
104454 2007-01-29  Bruno Haible  <bruno@clisp.org>
104456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104457         strptime.
104458         * modules/strptime (Depends-on): Add stdbool.
104459         * lib/strptime.h: Include <time.h> always. Add comments.
104461 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104463         * modules/strptime: New file.
104464         * lib/strptime.h: New file.
104465         * lib/strptime.c: New file.
104466         * m4/strptime.m4: New file.
104468 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104470         * MODULES.html.sh: New module mpsort.
104471         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104473         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104474         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104475         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104476         All uses changed.
104477         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104478         All uses changed.
104479         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104480         to _Restrict_.
104481         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104482         the parameter matches the prototype.
104484 2007-01-28  Jim Meyering  <jim@meyering.net>
104486         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104487         sys/time.h here, reverting that part of the previous patch:
104488         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104490 2007-01-28  Bruno Haible  <bruno@clisp.org>
104492         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104493         value of $(SYS_TIME_H).
104494         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104495         remove it conditionally, too. [added by Jim Meyering]
104496         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104497         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104498         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104499         GETTIMEOFDAY_REPLACEMENT to 1.
104501 2007-01-28  Bruno Haible  <bruno@clisp.org>
104503         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104504         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104506         Set UNISTD_H instead of UNISTD_H2.
104507         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104509 2007-01-28  Bruno Haible  <bruno@clisp.org>
104511         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104512         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104514 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104516         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104517         (func_create_testdir): Ensure C locale for `grep' and `tr'
104518         character ranges.
104519         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104520         ACLOCAL_AMFLAGS parsing state machine.
104522 2007-01-27  Bruno Haible  <bruno@clisp.org>
104524         * modules/unistr/base: Update.
104526 2007-01-27  Bruno Haible  <bruno@clisp.org>
104528         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104529         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104530         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104531         modules/unistr/u32-mbtouc.
104532         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104533         * lib/unistr.h: Update.
104534         * lib/linebreak.c: Update.
104535         * modules/unistr/u32-mbtouc: Renamed from
104536         modules/unistr/u32-mbtouc-safe.
104537         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104538         * lib/unistr.h: Update.
104539         * lib/unistr/u32-to-u8.c: Update.
104540         * lib/unistr/u32-to-u16.c: Update.
104542 2007-01-27  Bruno Haible  <bruno@clisp.org>
104544         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104545         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104546         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104547         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104548         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104549         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104550         modules/unistr/u16-mbtouc.
104551         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104552         * lib/unistr.h: Update.
104553         * lib/linebreak.c: Update.
104554         * modules/linebreak: Update.
104555         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104556         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104557         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104558         * modules/unistr/u16-mbtouc: Renamed from
104559         modules/unistr/u16-mbtouc-safe.
104560         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104561         * lib/unistr.h: Update.
104562         * lib/unistr/u16-to-u8.c: Update.
104563         * modules/unistr/u16-to-u8: Update.
104564         * lib/unistr/u16-to-u32.c: Update.
104565         * modules/unistr/u16-to-u32: Update.
104567 2007-01-27  Bruno Haible  <bruno@clisp.org>
104569         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104570         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104571         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104572         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104573         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104574         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104575         modules/unistr/u8-mbtouc.
104576         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104577         * lib/unistr.h: Update.
104578         * lib/striconveh.c: Update.
104579         * modules/striconveh: Update.
104580         * lib/linebreak.c: Update.
104581         * modules/linebreak: Update.
104582         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104583         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104584         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104585         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104586         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104587         * lib/unistr.h: Update.
104588         * lib/striconveh.c: Update.
104589         * modules/striconveh: Update.
104590         * lib/unistr/u8-to-u16.c: Update.
104591         * modules/unistr/u8-to-u16: Update.
104592         * lib/unistr/u8-to-u32.c: Update.
104593         * modules/unistr/u8-to-u32: Update.
104595 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104597         Sync from Libtool.
104598         * lib/argz.c: Do not include strings.h nor memory.h, include
104599         string.h unconditionally.  Patch by Simon Josefsson.
104601 2007-01-27  Bruno Haible  <bruno@clisp.org>
104603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
104604         from gl_HEADER_STRING_H_BODY.
104605         (gl_HEADER_STRING_H_BODY): Require it.
104606         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
104607         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
104608         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
104609         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
104610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104611         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
104612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
104613         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
104614         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
104615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
104616         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
104617         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
104618         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
104619         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
104620         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104622 2007-01-27  Bruno Haible  <bruno@clisp.org>
104624         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
104625         check_PROGRAMS into noinst_PROGRAMS.
104626         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
104627         check_PROGRAMS in this case.
104628         (func_import): Set for_test to false.
104629         (func_create_testdir): Set for_test to true.
104631 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104632             Bruno Haible  <bruno@clisp.org>
104634         * modules/strcasestr (Files): Remove lib/strcasestr.h.
104635         (Depends-on): Add string.
104636         (Includes): Use <string.h> instead of strcasestr.h.
104637         * modules/string (Makefile.am): Also substitute the value of
104638         REPLACE_STRCASESTR.
104639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
104640         assume strcasestr is declared in <string.h> not <strings.h>. Also
104641         set REPLACE_STRCASESTR.
104642         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
104643         REPLACE_STRCASESTR.
104644         * lib/strcasestr.h: Remove file.
104645         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
104646         * lib/string_.h (strcasestr): New declaration.
104648 2007-01-27  Bruno Haible  <bruno@clisp.org>
104650         * lib/string_.h: Use 'extern'.
104652 2007-01-27  Jim Meyering  <jim@meyering.net>
104654         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
104655         of set-but-not-used local, "q".
104657         * lib/mempcpy.c: Include <config.h> before <string.h>.
104658         This fixes a compilation error on HP-UX, due to the system's
104659         "restrict"-using mempcpy prototype.
104661 2007-01-26  Bruno Haible  <bruno@clisp.org>
104663         Small optimization.
104664         * lib/javacomp.c: Include c-strstr.h.
104665          (is_envjavac_gcj): Use c_strstr instead of strstr.
104666         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
104668 2007-01-26  Bruno Haible  <bruno@clisp.org>
104670         * MODULES.html.sh (Unicode string functions): Add the new modules.
104672         * modules/uniconv/u32-strconv-to-locale: New file.
104673         * lib/uniconv/u32-strconv-to-locale.c: New file.
104675         * modules/uniconv/u16-strconv-to-locale: New file.
104676         * lib/uniconv/u16-strconv-to-locale.c: New file.
104678         * modules/uniconv/u8-strconv-to-locale: New file.
104679         * lib/uniconv/u8-strconv-to-locale.c: New file.
104681         * modules/uniconv/u32-strconv-from-locale: New file.
104682         * lib/uniconv/u32-strconv-from-locale.c: New file.
104684         * modules/uniconv/u16-strconv-from-locale: New file.
104685         * lib/uniconv/u16-strconv-from-locale.c: New file.
104687         * modules/uniconv/u8-strconv-from-locale: New file.
104688         * lib/uniconv/u8-strconv-from-locale.c: New file.
104690         * modules/uniconv/u32-strconv-to-enc: New file.
104691         * lib/uniconv/u32-strconv-to-enc.c: New file.
104692         * modules/uniconv/u32-strconv-to-enc-tests: New file.
104693         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
104695         * modules/uniconv/u16-strconv-to-enc: New file.
104696         * lib/uniconv/u16-strconv-to-enc.c: New file.
104697         * lib/uniconv/u-strconv-to-enc.h: New file.
104698         * modules/uniconv/u16-strconv-to-enc-tests: New file.
104699         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
104701         * modules/uniconv/u8-strconv-to-enc: New file.
104702         * lib/uniconv/u8-strconv-to-enc.c: New file.
104703         * modules/uniconv/u8-strconv-to-enc-tests: New file.
104704         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
104706         * modules/uniconv/u32-strconv-from-enc: New file.
104707         * lib/uniconv/u32-strconv-from-enc.c: New file.
104708         * modules/uniconv/u32-strconv-from-enc-tests: New file.
104709         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
104711         * modules/uniconv/u16-strconv-from-enc: New file.
104712         * lib/uniconv/u16-strconv-from-enc.c: New file.
104713         * modules/uniconv/u16-strconv-from-enc-tests: New file.
104714         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
104716         * modules/uniconv/u8-strconv-from-enc: New file.
104717         * lib/uniconv/u8-strconv-from-enc.c: New file.
104718         * lib/uniconv/u-strconv-from-enc.h: New file.
104719         * modules/uniconv/u8-strconv-from-enc-tests: New file.
104720         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
104722         * modules/uniconv/u32-conv-from-enc: New file.
104723         * lib/uniconv/u32-conv-from-enc.c: New file.
104724         * modules/uniconv/u32-conv-from-enc-tests: New file.
104725         * tests/uniconv/test-u32-conv-from-enc.c: New file.
104727         * modules/uniconv/u16-conv-from-enc: New file.
104728         * lib/uniconv/u16-conv-from-enc.c: New file.
104729         * lib/uniconv/u-conv-from-enc.h: New file.
104730         * modules/uniconv/u16-conv-from-enc-tests: New file.
104731         * tests/uniconv/test-u16-conv-from-enc.c: New file.
104733         * modules/uniconv/u8-conv-from-enc: New file.
104734         * lib/uniconv/u8-conv-from-enc.c: New file.
104735         * modules/uniconv/u8-conv-from-enc-tests: New file.
104736         * tests/uniconv/test-u8-conv-from-enc.c: New file.
104738         * modules/uniconv/base: New file.
104739         * lib/uniconv.h: New file.
104741 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
104743         * doc/gnulib-tool.texi (Initial import): Update to match current
104744         behavior with strdup module.
104745         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
104746         * lib/memmem.h: Remove; all uses removed.  This is now done
104747         by <string.h>.
104748         * lib/mempcpy.h: Likewise.
104749         * lib/memrchr.h: Likewise.
104750         * lib/stpcpy.h: Likewise.
104751         * lib/stpncpy.h: Likewise.
104752         * lib/strcase.h: Likewise.
104753         * lib/strchrnul.h: Likewise.
104754         * lib/strdup.h: Likewise.
104755         * lib/strndup.h: Likewise.
104756         * lib/strnlen.h: Likewise.
104757         * lib/strpbrk.h: Likewise.
104758         * lib/strsep.h: Likewise.
104759         * lib/strstr.h: Likewise.
104760         * lib/strtok_r.h: Likewise.
104761         * lib/string_.h: New file.
104762         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
104763         Rely on <string.h> instead.
104764         * lib/canon-host.c: Likewise.
104765         * lib/chdir-long.c: Likewise.
104766         * lib/concatpath.c: Likewise.
104767         * lib/exclude.c: Likewise.
104768         * lib/fchdir.c: Likewise.
104769         * lib/getaddrinfo.c: Likewise.
104770         * lib/getcwd.c: Likewise.
104771         * lib/getsubopt.c: Likewise.
104772         * lib/glob.c: Likewise.
104773         * lib/hard-locale.c: Likewise.
104774         * lib/iconvme.c: Likewise.
104775         * lib/javacomp.c: Likewise.
104776         * lib/mempcpy.c: Likewise.
104777         * lib/memrchr.c: Likewise.
104778         * lib/regex_internal.h: Likewise.
104779         * lib/stpncpy.c: Likewise.
104780         * lib/strcasecmp.c: Likewise.
104781         * lib/strchrnul.c: Likewise.
104782         * lib/strdup.c: Likewise.
104783         * lib/striconv.c: Likewise.
104784         * lib/striconveh.c: Likewise.
104785         * lib/striconveha.c: Likewise.
104786         * lib/strncasecmp.c: Likewise.
104787         * lib/strndup.c: Likewise.
104788         * lib/strnlen.c: Likewise.
104789         * lib/strsep.c: Likewise.
104790         * lib/strstr.c: Likewise.
104791         * lib/strtok_r.c: Likewise.
104792         * lib/userspec.c: Likewise.
104793         * lib/w32spawn.h: Likewise.
104794         * lib/xstrndup.c: Likewise.
104795         * lib/mountlist.c (strstr): Remove decl.
104796         * m4/string_h.m4: New file.
104797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
104798         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
104799         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
104800         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
104801         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
104802         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
104803         Set REPLACE_STRCASECMP if necessary.
104804         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
104805         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
104806         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
104807         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
104808         HAVE_DECL_STRDUP if necessary.
104809         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
104810         since gl_FUNC_STRNDUP does that now.
104811         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
104812         Check for decl here...
104813         (gl_PREREQ_STRNLEN): ... not here.
104814         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
104815         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
104816         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
104817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
104818         necessary.
104819         * modules/string: New file.
104820         * modules/memmem (Files): Remove special-purpose include file.
104821         (Depends-on): Add string.
104822         (Include): Include <string.h>, not the removed file.
104823         * modules/mempcpy: Likewise.
104824         * modules/memrchr: Likewise.
104825         * modules/stpcpy: Likewise.
104826         * modules/stpncpy: Likewise.
104827         * modules/strcase: Likewise.
104828         * modules/strchrnul: Likewise.
104829         * modules/strdup: Likewise.
104830         * modules/strndup: Likewise.
104831         * modules/strnlen: Likewise.
104832         * modules/strpbrk: Likewise.
104833         * modules/strsep: Likewise.
104834         * modules/strstr: Likewise.
104835         * modules/strtok_r: Likewise.
104836         * tests/test-dirname.c: Don't include "strdup.h", since
104837         <string.h> now suffices.
104838         * tests/test-memmem.c: Don't include "memmem.h", since
104839         <string.h> now suffices.
104841 2007-01-25  Bruno Haible  <bruno@clisp.org>
104843         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
104844         *resultp is 0.
104846         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
104847         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
104848         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
104849         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
104851         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
104852         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
104853         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
104854         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
104855         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
104856         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
104858 2007-01-24  Bruno Haible  <bruno@clisp.org>
104860         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
104861         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
104862         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
104863         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
104864         gl_FUNC_FTS_CORE.
104865         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
104866         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
104867         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
104868         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
104869         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
104870         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
104871         gl_FUNC_FCHOWNAT.
104872         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
104873         gl_FUNC_STRFTIME.
104874         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
104875         Reported by Ralf Wildenhues.
104877 2007-01-24  Bruno Haible  <bruno@clisp.org>
104879         Drop AC_REQUIRE calls that are redundant with the module dependencies.
104880         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
104881         gl_GETADDRINFO.
104882         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
104883         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
104884         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
104886 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
104888         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
104889         Don't use 'exit'; just return from 'main'.
104890         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
104892         * lib/fnmatch_.h: Readjust white space and comments to match
104893         glibc, to avoid spurious diffs.
104895 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104897         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
104898         2004-12-01 change by Jakub Jelinek, since this code won't compile
104899         if !LIBC.  Problem reported by Bob Proulx.
104901 2007-01-23  Bruno Haible  <bruno@clisp.org>
104903         * lib/striconveh.c: Include c-strcaseeq.h.
104904         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
104905         * modules/striconveh (Depends-on): Add c-strcaseeq.
104907 2007-01-23  Bruno Haible  <bruno@clisp.org>
104909         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
104911         * modules/c-strcaseeq: New file.
104912         * lib/c-strcaseeq.h: New file.
104914         * modules/streq: New file.
104915         * lib/streq.h: New file.
104917 2007-01-23  Bruno Haible  <bruno@clisp.org>
104919         * modules/striconveha-tests: New file.
104920         * tests/test-striconveha.c: New file.
104922         * lib/striconveha.h: Include <stdbool.h>.
104923         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
104924         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
104925         (mem_iconveha_notranslit): Renamed from mem_iconveha.
104926         (mem_iconveha): New function.
104927         (str_iconveha_notranslit): Renamed from str_iconveha.
104928         (str_iconveha): New function.
104929         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
104930         c-strcase.
104932 2007-01-23  Bruno Haible  <bruno@clisp.org>
104934         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
104935         encodings without forgiving before trying any encoding with handler.
104936         (str_iconveha): Try all encodings without forgiving before trying any
104937         encoding with handler.
104939 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104941         Import the following changes from libc.
104943         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
104945         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
104947         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104949         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
104950         normal_bracket label.
104952         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
104954         [BZ #361]
104955         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
104956         to normal_bracket after fetching the next character.
104958 2007-01-22  Bruno Haible  <bruno@clisp.org>
104960         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
104961         argument.
104962         * lib/striconveh.c (iconv_carefully_1): New function.
104963         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
104964         argument.
104965         (str_cd_iconveh): Update.
104966         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
104967         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
104968         * tests/test-striconveh.c (MAGIC): New macro.
104969         (new_offsets): New function.
104970         (main): Test call with and without offsets.
104972 2007-01-22  Bruno Haible  <bruno@clisp.org>
104974         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
104975         * modules/sys_select (Makefile.am): Likewise.
104976         * modules/sys_socket (Makefile.am): Likewise.
104977         * modules/sys_time (Makefile.am): Likewise.
104979 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
104981         * modules/gettimeofday (License): Change from GPL to LGPL, since
104982         gettimeofday is a library function.
104984 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104986         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
104988 2007-01-21  Bruno Haible  <bruno@clisp.org>
104990         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
104992 2007-01-21  Bruno Haible  <bruno@clisp.org>
104994         * modules/striconveha: New file.
104995         * lib/striconveha.h: New file.
104996         * lib/striconveha.c: New file.
104997         * MODULES.html.sh (Internationalization functions): Add striconveha.
104998         * lib/striconv.c (str_iconv): Optimize the case of an empty input
104999         string.
105000         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105002 2007-01-21  Bruno Haible  <bruno@clisp.org>
105004         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105005         * lib/striconveh.c (str_iconveh): Likewise.
105007 2007-01-21  Bruno Haible  <bruno@clisp.org>
105009         * lib/striconveh.h (mem_iconveh): New declaration.
105010         * lib/striconveh.c (mem_iconveh): New function.
105011         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105013 2007-01-21  Bruno Haible  <bruno@clisp.org>
105015         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105017         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105018         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105019         original result buffer.
105020         (str_cd_iconveh): Update.
105021         * tests/test-striconveh.c (main): Update.
105023         * lib/striconv.h (mem_cd_iconv): Change specification.
105024         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105025         result buffer.
105026         (str_cd_iconv): Update.
105027         * tests/test-striconv.c (main): Update.
105029 2007-01-21  Bruno Haible  <bruno@clisp.org>
105031         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105033 2007-01-20  Jim Meyering  <jim@meyering.net>
105035         * lib/userspec.c (parse_with_separator): If a user or group string
105036         starts with "+", skip the corresponding name-to-ID look-up, since
105037         such a look-up must fail: user and group names may not include "+".
105039 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105041         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105042         since we now assume the sys_time module.
105043         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105044         check for sys/time.h; no longer needed.
105045         * modules/poll (Depends-on): Depend on sys_time.
105047 2007-01-18  Bruno Haible  <bruno@clisp.org>
105049         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105050         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105052         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105053         gettimeofday.
105055         * tests/test-gettimeofday.c: Include <time.h>.
105056         (dummy): Remove variable.
105058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105059         gl_HEADER_SYS_TIME_H.
105060         (gl_HEADER_SYS_TIME_H): New macro.
105062         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105063         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105065         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105066         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105068         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105069         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105070         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105071         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105072         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105074         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105075         last change; it caused a compilation error when cross-compiling to
105076         Cygwin.
105078 2007-01-18  Jim Meyering  <jim@meyering.net>
105080         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105081         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105082         than the race-prone "test -d sys || mkdir sys".
105083         (configure.ac): Use AC_PROG_MKDIR_P.
105084         * modules/sys_select: Likewise.
105085         * modules/sys_socket: Likewise.
105086         * modules/sys_time: Likewise.
105088 2007-01-18  Eric Blake  <ebb9@byu.net>
105090         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105091         replace gettimeofday.
105092         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105093         name, to avoid infinite recursion.
105095 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105097         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105098         module sys_time.
105099         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105100         assume timespec.h defines struct timeval.
105101         * lib/settime.c: Likewise.
105102         * lib/utimens.c: Likewise.
105103         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105104         since we now assume the gettimeofday module.
105105         * lib/tempname.c (__gen_tempname): Likewise.
105106         * lib/gettimeofday.h: Remove.
105107         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105108         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105109         Include <time.h>, for 'time()'.
105110         (localtime_buffer_addr): Also use this workaround if
105111         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105112         to simplify the uses.  All uses changed.
105113         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105114         that #undef is inside {}, and 'const' follows type name consistently.
105115         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105116         (gettimeofday): Do not use the maximum possible value for
105117         tv->tv_usec, since that might break usages other than ls.c.
105118         Instead, we'll leave ls.c alone.  This undoes today's patch
105119         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105120         we've never observed the problem but might as well keep the
105121         canary.
105122         * lib/nanosleep.c: Include timespec.h first, for interface check.
105123         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105124         now assume the sys_time module.
105125         * lib/tempname.c: Likewise.
105126         * lib/timespec.h: Likewise.
105127         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105128         needed.
105129         * lib/strftime.c: Likewise.
105130         * lib/timespec.h: Likewise.
105131         * lib/posixtm.c: Include posixtm.h first, for interface check.
105132         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105133         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105134         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105135         * lib/sys_time_.h: New file.
105136         * lib/timespec.h (struct timespec): Use long int, not long.
105137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105138         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105139         Remove obsolescent call to AC_HEADER_TIME.
105140         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105143         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105144         Likewise.
105145         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105146         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105147         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105148         into the sys_time module.  Check for gettimeofday just once.
105149         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105150         for gettimeofday signature to just check the signature.  Merely
105151         compile it, since linking doesn't test signature.  Improve test for
105152         whether gettimeofday.o is actually needed.
105153         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105154         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105155         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105156         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105157         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105158         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105159         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105160         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105161         than worrying about sys/time.h.
105162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105163         Don't bother worrying about TIME_WITH_SYS_TIME.
105164         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105165         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105166         * m4/sys_time_h.m4: New file.
105167         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105168         Don't include sys/time.h.  Return from main rather than exiting.
105169         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105170         all uses changed.
105171         * modules/gethrxtime (Depends-on): Add sys_time.
105172         * modules/gettime (Depends-on): Likewise.
105173         * modules/gettimeofday (Depends-on): Likewise.
105174         * modules/nanosleep (Depends-on): Likewise.
105175         * modules/settime (Depends-on): Likewise.
105176         * modules/tempname (Depends-on): Likewise.
105177         * modules/utimens (Depends-on): Likewise.
105178         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105179         (Include): Change back to <sys/time.h>.
105180         (Maintainer): Add self.
105181         * modules/sys_time: New file.
105182         * modules/tempname (Depends-on): Add gettimeofday.
105183         * tests/test-gettimeofday.c: Include <sys/time.h>
105184         rather than gettimeofday.h.
105186 2007-01-17  Bruno Haible  <bruno@clisp.org>
105188         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105189         the license default to GPL.
105190         (func_create_testdir): Don't complain if a module is LGPL and its
105191         tests module depends on GPLed modules.
105193 2007-01-17  Bruno Haible  <bruno@clisp.org>
105195         * lib/gettimeofday.c (gettimeofday): Add code for the case
105196         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105197         maximum possible value for tv->tv_usec, rather than the minimum one.
105199 2005-10-08  Martin Lambers  <marlam@marlam.de>
105200 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105201 2007-01-16  Bruno Haible  <bruno@clisp.org>
105203         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105204         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105205         gl_FUNC_GETTIMEOFDAY.
105206         (Include): Add gettimeofday.h.
105207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105208         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105209         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105210         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105211         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105212         * lib/gettimeofday.h: New file.
105213         * lib/gettimeofday.c: Include <sys/timeb.h>.
105214         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105215         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105216         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105217         fall back on time().
105219         * tests/test-gettimeofday.c: New file.
105220         * modules/gettimeofday-tests: New file.
105222 2007-01-16  Eric Blake  <ebb9@byu.net>
105224         * modules/fnmatch (Depends-on): Depend on wchar.
105225         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105226         * m4/fnmatch.m4: Likewise.
105227         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105228         * m4/mbchar.m4: Likewise.
105229         * modules/mbswidth (Depends-on): Depend on wchar.
105230         * lib/mbswidth.c: Assume <wchar.h>.
105231         * m4/mbswidth.m4: Likewise.
105232         * modules/quotearg (Depends-on): Depend on wchar.
105233         * lib/quotearg.c: Assume <wchar.h>.
105234         * m4/quotearg.m4: Likewise.
105235         * modules/regex (Depends-on): Depend on wchar.
105236         * lib/regex_internal.h: Assume <wchar.h>.
105237         * m4/regex.m4: Likewise.
105238         * modules/stdint (Depends-on): Depend on wchar.
105239         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105240         * m4/stdint.m4: Likewise.
105241         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105242         * modules/strftime (Depends-on): Depend on wchar.
105243         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105244         * modules/strtol (Depends-on): Depend on wchar.
105245         * lib/strtol.c: Assume <wchar.h>.
105246         * modules/wcwidth (Depends-on): Depend on wchar.
105247         * lib/wcwidth.h: Assume <wchar.h>.
105248         * m4/wcwidth.m4: Likewise.
105250 2007-01-16  Bruno Haible  <bruno@clisp.org>
105252         * modules/csharpexec-script: New, created from...
105253         * modules/csharpexec: ... this.
105255 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105257         * modules/javaexec-script: New, created from...
105258         * modules/javaexec: ... this.
105260 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105262         * modules/poll (Dependencies): Add sys_select.
105264 2007-01-15  Jim Meyering  <jim@meyering.net>
105266         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105267         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105268         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105269         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105271 2007-01-15  Bruno Haible  <bruno@clisp.org>
105273         * modules/striconveh: New file.
105274         * lib/striconveh.h: New file.
105275         * lib/striconveh.c: New file.
105276         * MODULES.html.sh (Internationalization functions): Add striconveh.
105278         * modules/striconveh-tests: New file.
105279         * tests/test-striconveh.c: New file.
105281 2007-01-15  Bruno Haible  <bruno@clisp.org>
105283         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105284         not from GNU libiconv or GNU libc.
105286 2007-01-15  Bruno Haible  <bruno@clisp.org>
105288         * doc/gnulib-intro.texi (Copyright): Explain the different license
105289         terms for module descriptions, autoconf macros, tests, documentation.
105291 2007-01-14  Bruno Haible  <bruno@clisp.org>
105293         * modules/striconv-tests: New file.
105294         * tests/test-striconv.c: New file.
105296 2007-01-14  Bruno Haible  <bruno@clisp.org>
105298         * modules/iconv-tests: New file.
105299         * tests/test-iconv.c: New file.
105301 2007-01-14  Bruno Haible  <bruno@clisp.org>
105303         * gnulib-tool (func_get_license): For test modules, use the license of
105304         the main module.
105306 2007-01-14  Bruno Haible  <bruno@clisp.org>
105308         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105309         if iconv is found to exist.
105311 2007-01-14  Bruno Haible  <bruno@clisp.org>
105313         * modules/c-ctype-tests: New file.
105314         * tests/test-c-ctype.c: New file.
105316 2007-01-14  Bruno Haible  <bruno@clisp.org>
105318         * modules/binary-io-tests: New file.
105319         * tests/test-binary-io.sh: New file.
105320         * tests/test-binary-io.c: New file.
105322 2007-01-14  Bruno Haible  <bruno@clisp.org>
105324         * modules/array-oset-tests: New file.
105325         * tests/test-array_oset.c: New file.
105327 2007-01-14  Bruno Haible  <bruno@clisp.org>
105329         * modules/array-list-tests: New file.
105330         * tests/test-array_list.c: New file.
105332 2007-01-14  Bruno Haible  <bruno@clisp.org>
105334         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105335         and make.
105336         Reported by Simon Josefsson in
105337         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105339 2007-01-14  Bruno Haible  <bruno@clisp.org>
105341         * modules/allocsa-tests: New file.
105342         * tests/test-allocsa.c: New file.
105344 2007-01-14  Bruno Haible  <bruno@clisp.org>
105346         * modules/fchdir (Depends-on): Add absolute-header.
105347         * modules/unistd (Depends-on): Likewise.
105349 2006-12-30  Bruno Haible  <bruno@clisp.org>
105351         * modules/fchdir: New file.
105352         * modules/unistd (Files): Add lib/unistd_.h.
105353         (Makefile.am): Generate unistd.h from unistd_.h.
105354         * lib/fchdir.c: New file.
105355         * lib/dirent_.h: New file.
105356         * lib/unistd_.h: New file.
105357         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105358         * m4/fchdir.m4: New file.
105359         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105360         (gl_HEADER_UNISTD): Invoke it.
105361         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105362         function.
105363         * lib/backupfile.c (opendir, closedir): Undefine.
105364         * lib/chown.c (open, close): Undefine.
105365         * lib/clean-temp.c (open, close): Undefine.
105366         * lib/copy-file.c (open, close): Undefine.
105367         * lib/execute.c (open, close): Undefine.
105368         * lib/fsusage.c (open, close): Undefine.
105369         * lib/gc-gnulib.c (open, close): Undefine.
105370         * lib/getcwd.c (opendir, closedir): Undefine.
105371         * lib/glob.c (opendir, closedir): Undefine.
105372         * lib/javacomp.c (open, close): Undefine.
105373         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105374         * lib/openat-proc.c (open, close): Undefine.
105375         * lib/pagealign_alloc.c (open, close): Undefine.
105376         * lib/pipe.c (open, close): Undefine.
105377         * lib/progreloc.c (open, close): Undefine.
105378         * lib/savedir.c (opendir, closedir): Undefine.
105379         * lib/utime.c (open, close): Undefine.
105380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105382 2007-01-10  Bruno Haible  <bruno@clisp.org>
105384         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105386 2007-01-12  Eric Blake  <ebb9@byu.net>
105388         Provide a robust <wchar.h>.  Further simplifications are now
105389         possible in other modules, but not included here.
105390         * modules/wchar: New module.
105391         * m4/wchar.m4: New file.
105392         * lib/wchar_.h: Likewise.
105393         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105394         of the new module.
105395         * MODULES.html.sh (Extended multibyte and wide character utilities):
105396         New section.
105398 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105400         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105401         to a reasonable default for memory allocation.
105402         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105403         file system that reports garbage st_size values for symlinks.
105404         Problem reported by Liyang Hu.
105406 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105408         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105409         Emacs .#* auto-save files).
105411 2007-01-11  Bruno Haible  <bruno@clisp.org>
105413         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105414         directory.
105416 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105418         Use @...@ consistently in lib/wctype_.h.
105419         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105420         on it being set to 1 or 0.
105421         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105422         go back to AC_SUBSTing it.
105423         * modules/wctype (Makefile.am): Undo previous change.
105425 2007-01-10  Eric Blake  <ebb9@byu.net>
105427         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105428         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105429         * modules/wctype (Makefile.am): Likewise.
105430         Reported by Chris McGuire.
105432 2007-01-10  Jim Meyering  <jim@meyering.net>
105434         fts.c: a small readability/maintainability improvement
105435         * lib/fts.c (fts_read): Make this code slightly more readable and
105436         maintainable by hoisting the "sp->fts_cur = p" assignments to
105437         immediately follow the statements that set P.  Derived from
105438         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105440 2007-01-10  Eric Blake  <ebb9@byu.net>
105442         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105443         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105445         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105446         Reported by Chris McGuire.
105448 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105450         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105451         in sed script.
105453 2007-01-09  Bruno Haible  <bruno@clisp.org>
105455         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105456         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105457         variables.
105458         (func_module): Use them.
105460 2007-01-09  Bruno Haible  <bruno@clisp.org>
105462         * modules/unistr/base: New file.
105463         * lib/unistr.h: New file.
105465         * modules/unistr/u8-to-u16: New file.
105466         * lib/unistr/u8-to-u16.c: New file.
105468         * modules/unistr/u8-to-u32: New file.
105469         * lib/unistr/u8-to-u32.c: New file.
105471         * modules/unistr/u16-to-u8: New file.
105472         * lib/unistr/u16-to-u8.c: New file.
105474         * modules/unistr/u16-to-u32: New file.
105475         * lib/unistr/u16-to-u32.c: New file.
105477         * modules/unistr/u32-to-u8: New file.
105478         * lib/unistr/u32-to-u8.c: New file.
105480         * modules/unistr/u32-to-u16: New file.
105481         * lib/unistr/u32-to-u16.c: New file.
105483         * modules/unistr/u8-check: New file.
105484         * modules/unistr/u16-check: New file.
105485         * modules/unistr/u32-check: New file.
105486         * lib/unistr/u8-check.c: New file.
105487         * lib/unistr/u16-check.c: New file.
105488         * lib/unistr/u32-check.c: New file.
105490         * modules/unistr/u8-chr: New file.
105491         * modules/unistr/u16-chr: New file.
105492         * modules/unistr/u32-chr: New file.
105493         * lib/unistr/u8-chr.c: New file.
105494         * lib/unistr/u16-chr.c: New file.
105495         * lib/unistr/u32-chr.c: New file.
105497         * modules/unistr/u8-cmp: New file.
105498         * modules/unistr/u16-cmp: New file.
105499         * modules/unistr/u32-cmp: New file.
105500         * lib/unistr/u8-cmp.c: New file.
105501         * lib/unistr/u16-cmp.c: New file.
105502         * lib/unistr/u32-cmp.c: New file.
105504         * modules/unistr/u8-cpy: New file.
105505         * modules/unistr/u16-cpy: New file.
105506         * modules/unistr/u32-cpy: New file.
105507         * lib/unistr/u8-cpy.c: New file.
105508         * lib/unistr/u16-cpy.c: New file.
105509         * lib/unistr/u32-cpy.c: New file.
105510         * lib/unistr/u-cpy.h: New file.
105512         * modules/unistr/u8-cpy-alloc: New file.
105513         * modules/unistr/u16-cpy-alloc: New file.
105514         * modules/unistr/u32-cpy-alloc: New file.
105515         * lib/unistr/u8-cpy-alloc.c: New file.
105516         * lib/unistr/u16-cpy-alloc.c: New file.
105517         * lib/unistr/u32-cpy-alloc.c: New file.
105518         * lib/unistr/u-cpy-alloc.h: New file.
105520         * modules/unistr/u8-endswith: New file.
105521         * modules/unistr/u16-endswith: New file.
105522         * modules/unistr/u32-endswith: New file.
105523         * lib/unistr/u8-endswith.c: New file.
105524         * lib/unistr/u16-endswith.c: New file.
105525         * lib/unistr/u32-endswith.c: New file.
105526         * lib/unistr/u-endswith.h: New file.
105528         * modules/unistr/u8-mblen: New file.
105529         * modules/unistr/u16-mblen: New file.
105530         * modules/unistr/u32-mblen: New file.
105531         * lib/unistr/u8-mblen.c: New file.
105532         * lib/unistr/u16-mblen.c: New file.
105533         * lib/unistr/u32-mblen.c: New file.
105535         * modules/unistr/u8-mbtouc: New file.
105536         * modules/unistr/u16-mbtouc: New file.
105537         * modules/unistr/u32-mbtouc: New file.
105538         * lib/unistr/u8-mbtouc.c: New file.
105539         * lib/unistr/u16-mbtouc.c: New file.
105540         * lib/unistr/u32-mbtouc.c: New file.
105542         * modules/unistr/u8-mbtouc-safe: New file.
105543         * modules/unistr/u16-mbtouc-safe: New file.
105544         * modules/unistr/u32-mbtouc-safe: New file.
105545         * lib/unistr/u8-mbtouc-safe.c: New file.
105546         * lib/unistr/u16-mbtouc-safe.c: New file.
105547         * lib/unistr/u32-mbtouc-safe.c: New file.
105549         * modules/unistr/u8-move: New file.
105550         * modules/unistr/u16-move: New file.
105551         * modules/unistr/u32-move: New file.
105552         * lib/unistr/u8-move.c: New file.
105553         * lib/unistr/u16-move.c: New file.
105554         * lib/unistr/u32-move.c: New file.
105555         * lib/unistr/u-move.h: New file.
105557         * modules/unistr/u8-next: New file.
105558         * modules/unistr/u16-next: New file.
105559         * modules/unistr/u32-next: New file.
105560         * lib/unistr/u8-next.c: New file.
105561         * lib/unistr/u16-next.c: New file.
105562         * lib/unistr/u32-next.c: New file.
105564         * modules/unistr/u8-prev: New file.
105565         * modules/unistr/u16-prev: New file.
105566         * modules/unistr/u32-prev: New file.
105567         * lib/unistr/u8-prev.c: New file.
105568         * lib/unistr/u16-prev.c: New file.
105569         * lib/unistr/u32-prev.c: New file.
105571         * modules/unistr/u8-set: New file.
105572         * modules/unistr/u16-set: New file.
105573         * modules/unistr/u32-set: New file.
105574         * lib/unistr/u8-set.c: New file.
105575         * lib/unistr/u16-set.c: New file.
105576         * lib/unistr/u32-set.c: New file.
105577         * lib/unistr/u-set.h: New file.
105579         * modules/unistr/u8-startswith: New file.
105580         * modules/unistr/u16-startswith: New file.
105581         * modules/unistr/u32-startswith: New file.
105582         * lib/unistr/u8-startswith.c: New file.
105583         * lib/unistr/u16-startswith.c: New file.
105584         * lib/unistr/u32-startswith.c: New file.
105585         * lib/unistr/u-startswith.h: New file.
105587         * modules/unistr/u8-stpcpy: New file.
105588         * modules/unistr/u16-stpcpy: New file.
105589         * modules/unistr/u32-stpcpy: New file.
105590         * lib/unistr/u8-stpcpy.c: New file.
105591         * lib/unistr/u16-stpcpy.c: New file.
105592         * lib/unistr/u32-stpcpy.c: New file.
105593         * lib/unistr/u-stpcpy.h: New file.
105595         * modules/unistr/u8-stpncpy: New file.
105596         * modules/unistr/u16-stpncpy: New file.
105597         * modules/unistr/u32-stpncpy: New file.
105598         * lib/unistr/u8-stpncpy.c: New file.
105599         * lib/unistr/u16-stpncpy.c: New file.
105600         * lib/unistr/u32-stpncpy.c: New file.
105601         * lib/unistr/u-stpncpy.h: New file.
105603         * modules/unistr/u8-strcat: New file.
105604         * modules/unistr/u16-strcat: New file.
105605         * modules/unistr/u32-strcat: New file.
105606         * lib/unistr/u8-strcat.c: New file.
105607         * lib/unistr/u16-strcat.c: New file.
105608         * lib/unistr/u32-strcat.c: New file.
105609         * lib/unistr/u-strcat.h: New file.
105611         * modules/unistr/u8-strchr: New file.
105612         * modules/unistr/u16-strchr: New file.
105613         * modules/unistr/u32-strchr: New file.
105614         * lib/unistr/u8-strchr.c: New file.
105615         * lib/unistr/u16-strchr.c: New file.
105616         * lib/unistr/u32-strchr.c: New file.
105618         * modules/unistr/u8-strcmp: New file.
105619         * modules/unistr/u16-strcmp: New file.
105620         * modules/unistr/u32-strcmp: New file.
105621         * lib/unistr/u8-strcmp.c: New file.
105622         * lib/unistr/u16-strcmp.c: New file.
105623         * lib/unistr/u32-strcmp.c: New file.
105625         * modules/unistr/u8-strcpy: New file.
105626         * modules/unistr/u16-strcpy: New file.
105627         * modules/unistr/u32-strcpy: New file.
105628         * lib/unistr/u8-strcpy.c: New file.
105629         * lib/unistr/u16-strcpy.c: New file.
105630         * lib/unistr/u32-strcpy.c: New file.
105631         * lib/unistr/u-strcpy.h: New file.
105633         * modules/unistr/u8-strcspn: New file.
105634         * modules/unistr/u16-strcspn: New file.
105635         * modules/unistr/u32-strcspn: New file.
105636         * lib/unistr/u8-strcspn.c: New file.
105637         * lib/unistr/u16-strcspn.c: New file.
105638         * lib/unistr/u32-strcspn.c: New file.
105639         * lib/unistr/u-strcspn.h: New file.
105641         * modules/unistr/u8-strdup: New file.
105642         * modules/unistr/u16-strdup: New file.
105643         * modules/unistr/u32-strdup: New file.
105644         * lib/unistr/u8-strdup.c: New file.
105645         * lib/unistr/u16-strdup.c: New file.
105646         * lib/unistr/u32-strdup.c: New file.
105647         * lib/unistr/u-strdup.h: New file.
105649         * modules/unistr/u8-strlen: New file.
105650         * modules/unistr/u16-strlen: New file.
105651         * modules/unistr/u32-strlen: New file.
105652         * lib/unistr/u8-strlen.c: New file.
105653         * lib/unistr/u16-strlen.c: New file.
105654         * lib/unistr/u32-strlen.c: New file.
105655         * lib/unistr/u-strlen.h: New file.
105657         * modules/unistr/u8-strmblen: New file.
105658         * modules/unistr/u16-strmblen: New file.
105659         * modules/unistr/u32-strmblen: New file.
105660         * lib/unistr/u8-strmblen.c: New file.
105661         * lib/unistr/u16-strmblen.c: New file.
105662         * lib/unistr/u32-strmblen.c: New file.
105664         * modules/unistr/u8-strmbtouc: New file.
105665         * modules/unistr/u16-strmbtouc: New file.
105666         * modules/unistr/u32-strmbtouc: New file.
105667         * lib/unistr/u8-strmbtouc.c: New file.
105668         * lib/unistr/u16-strmbtouc.c: New file.
105669         * lib/unistr/u32-strmbtouc.c: New file.
105671         * modules/unistr/u8-strncat: New file.
105672         * modules/unistr/u16-strncat: New file.
105673         * modules/unistr/u32-strncat: New file.
105674         * lib/unistr/u8-strncat.c: New file.
105675         * lib/unistr/u16-strncat.c: New file.
105676         * lib/unistr/u32-strncat.c: New file.
105677         * lib/unistr/u-strncat.h: New file.
105679         * modules/unistr/u8-strncmp: New file.
105680         * modules/unistr/u16-strncmp: New file.
105681         * modules/unistr/u32-strncmp: New file.
105682         * lib/unistr/u8-strncmp.c: New file.
105683         * lib/unistr/u16-strncmp.c: New file.
105684         * lib/unistr/u32-strncmp.c: New file.
105686         * modules/unistr/u8-strncpy: New file.
105687         * modules/unistr/u16-strncpy: New file.
105688         * modules/unistr/u32-strncpy: New file.
105689         * lib/unistr/u8-strncpy.c: New file.
105690         * lib/unistr/u16-strncpy.c: New file.
105691         * lib/unistr/u32-strncpy.c: New file.
105692         * lib/unistr/u-strncpy.h: New file.
105694         * modules/unistr/u8-strnlen: New file.
105695         * modules/unistr/u16-strnlen: New file.
105696         * modules/unistr/u32-strnlen: New file.
105697         * lib/unistr/u8-strnlen.c: New file.
105698         * lib/unistr/u16-strnlen.c: New file.
105699         * lib/unistr/u32-strnlen.c: New file.
105700         * lib/unistr/u-strnlen.h: New file.
105702         * modules/unistr/u8-strpbrk: New file.
105703         * modules/unistr/u16-strpbrk: New file.
105704         * modules/unistr/u32-strpbrk: New file.
105705         * lib/unistr/u8-strpbrk.c: New file.
105706         * lib/unistr/u16-strpbrk.c: New file.
105707         * lib/unistr/u32-strpbrk.c: New file.
105708         * lib/unistr/u-strpbrk.h: New file.
105710         * modules/unistr/u8-strrchr: New file.
105711         * modules/unistr/u16-strrchr: New file.
105712         * modules/unistr/u32-strrchr: New file.
105713         * lib/unistr/u8-strrchr.c: New file.
105714         * lib/unistr/u16-strrchr.c: New file.
105715         * lib/unistr/u32-strrchr.c: New file.
105717         * modules/unistr/u8-strspn: New file.
105718         * modules/unistr/u16-strspn: New file.
105719         * modules/unistr/u32-strspn: New file.
105720         * lib/unistr/u8-strspn.c: New file.
105721         * lib/unistr/u16-strspn.c: New file.
105722         * lib/unistr/u32-strspn.c: New file.
105723         * lib/unistr/u-strspn.h: New file.
105725         * modules/unistr/u8-strstr: New file.
105726         * modules/unistr/u16-strstr: New file.
105727         * modules/unistr/u32-strstr: New file.
105728         * lib/unistr/u8-strstr.c: New file.
105729         * lib/unistr/u16-strstr.c: New file.
105730         * lib/unistr/u32-strstr.c: New file.
105731         * lib/unistr/u-strstr.h: New file.
105733         * modules/unistr/u8-strtok: New file.
105734         * modules/unistr/u16-strtok: New file.
105735         * modules/unistr/u32-strtok: New file.
105736         * lib/unistr/u8-strtok.c: New file.
105737         * lib/unistr/u16-strtok.c: New file.
105738         * lib/unistr/u32-strtok.c: New file.
105739         * lib/unistr/u-strtok.h: New file.
105741         * modules/unistr/u8-uctomb: New file.
105742         * modules/unistr/u16-uctomb: New file.
105743         * modules/unistr/u32-uctomb: New file.
105744         * lib/unistr/u8-uctomb.c: New file.
105745         * lib/unistr/u16-uctomb.c: New file.
105746         * lib/unistr/u32-uctomb.c: New file.
105748         * MODULES.html.sh (Unicode string functions): Add the new modules.
105750 2007-01-08  Bruno Haible  <bruno@clisp.org>
105752         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
105753         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
105754         subdirectories.
105756 2007-01-08  Karl Berry  <karl@gnu.org>
105758         * doc/error.texi: mention that main() fns must set program_name
105759         when progname is used.
105761 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
105763         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
105764         WCTYPE_H is empty, for the benefit of builds from non-distclean
105765         directories.  Problem reported by Eric Blake in
105766         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
105768 2007-01-08  Bruno Haible  <bruno@clisp.org>
105770         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
105771         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
105772         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
105773         PROVIDE_CANONICALIZE_FILENAME_MODE.
105774         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
105776 2007-01-08  Bruno Haible  <bruno@clisp.org>
105778         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
105779         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
105780         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
105781         * lib/fts.c: Likewise.
105782         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
105784 2006-12-25  Bruno Haible  <bruno@clisp.org>
105786         * modules/utf8-ucs4-safe: New file.
105787         * lib/utf8-ucs4-safe.h: New file.
105788         * lib/unistr/utf8-ucs4-safe.c: New file.
105790         * modules/utf16-ucs4-safe: New file.
105791         * lib/utf16-ucs4-safe.h: New file.
105792         * lib/unistr/utf16-ucs4-safe.c: New file.
105794         * MODULES.html.sh (Unicode string functions): Add the new modules.
105796 2007-01-08  Bruno Haible  <bruno@clisp.org>
105798         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
105799         (Depends-on): Add unitypes.
105800         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105801         (u8_mbtouc_aux): Move out to separate file.
105802         (u8_mbtouc): Use ucs4_t, uint8_t types.
105803         * lib/unistr/utf8-ucs4.c: New file.
105805         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
105806         (Depends-on): Add unitypes.
105807         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105808         (u16_mbtouc_aux): Move out to separate file.
105809         (u16_mbtouc): Use ucs4_t, uint16_t types.
105810         * lib/unistr/utf16-ucs4.c: New file.
105812         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
105813         (Depends-on): Add unitypes.
105814         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
105815         (u8_uctomb_aux): Move out to separate file.
105816         (u8_uctomb): Use ucs4_t, uint8_t types.
105817         * lib/unistr/ucs4-utf8.c: New file.
105819         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
105820         (Depends-on): Add unitypes.
105821         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
105822         (u16_uctomb_aux): Move out to separate file.
105823         (u16_uctomb): Use ucs4_t, uint16_t types.
105824         * lib/unistr/ucs4-utf16.c: New file.
105826 2006-12-25  Bruno Haible  <bruno@clisp.org>
105828         * modules/unitypes: New file.
105829         * lib/unitypes.h: New file.
105830         * MODULES.html.sh (func_all_modules): New section "Unicode string
105831         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
105832         this section. Add unitypes.
105834 2007-01-08  Bruno Haible  <bruno@clisp.org>
105836         Avoid variable names that conflict with those from libtool.
105837         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
105838         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
105839         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
105840         library_names_spec to acl_library_names_spec, hardcode_* to
105841         acl_hardcode_*.
105842         Reported by Ralf Wildenhues.
105844 2007-01-08  Bruno Haible  <bruno@clisp.org>
105846         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
105847         definition.
105848         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
105849         definition.
105850         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
105851         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
105852         definition.
105853         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
105854         definition.
105855         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
105856         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
105857         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
105858         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
105859         definition.
105860         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
105861         definition.
105862         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
105863         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
105864         GC_USE_<algorithm>.
105865         * lib/gc-libgcrypt.c: Likewise.
105866         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
105867         * modules/gc-arctwo (configure.ac): Likewise.
105868         * modules/gc-des (configure.ac): Likewise.
105869         * modules/gc-hmac-md5 (configure.ac): Likewise.
105870         * modules/gc-hmac-sha1 (configure.ac): Likewise.
105871         * modules/gc-md2 (configure.ac): Likewise.
105872         * modules/gc-md4 (configure.ac): Likewise.
105873         * modules/gc-md5 (configure.ac): Likewise.
105874         * modules/gc-random (configure.ac): Likewise.
105875         * modules/gc-rijndael (configure.ac): Likewise.
105876         * modules/gc-sha1 (configure.ac): Likewise.
105878 2007-01-08  Bruno Haible  <bruno@clisp.org>
105880         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
105881         macro definition.
105882         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
105883         definition.
105884         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
105885         definition.
105886         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
105887         * modules/fcntl-safer (configure.ac): Likewise.
105888         * modules/fopen-safer (configure.ac): Likewise.
105889         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
105890         GNULIB_FWRITEERROR macro definition.
105892 2007-01-08  Bruno Haible  <bruno@clisp.org>
105894         * m4/gnulib-common.m4: New file.
105895         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
105896         (func_get_filelist): Add m4/gnulib-common.m4.
105898 2007-01-08  Bruno Haible  <bruno@clisp.org>
105900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
105901         command.
105903 2007-01-08  Jim Meyering  <jim@meyering.net>
105905         Use a more robust test for a "can't happen" condition.
105906         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
105907         narrowed the st_size value.  Presuming the "can't happen" condition
105908         is true, that narrowing could conceivably convert an invalid st_size
105909         value into a valid one.  Instead, use a change based on Matthew
105910         Woehlke's original patch.
105912         Slight readability improvement: use an assert-like macro
105913         in place of literal "abort ()" uses.
105914         * lib/fts.c (fts_assert): Define.
105915         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
105916         Use this macro instead of a bare 'abort'.
105918 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
105920         Don't worry about using IRIX 5.3's wctype.h broken definitions;
105921         simply work around them.
105922         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
105923         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
105924         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
105925         declaring.
105926         Don't bother to define as macros, since the standard doesn't require it.
105927         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
105928         longer worry about IRIX 5.3.
105929         (HAVE_WCTYPE_CTMP_BUG): Remove.
105931 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105933         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
105934         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
105935         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
105936         Problems reported by Georg Schwarz for IRIX 5.3.
105938         * gnulib-tool (autoconf_minversion): Take the maximum version number
105939         found, not the minimum.  Problem reported by James Youngman.
105941 2007-01-03  Karl Berry  <karl@gnu.org>
105943         * doc/error.texi: new file, explaining interaction with progname.
105944         * doc/gnulib.texi: include it.  Update copyright.
105946 2007-01-03  Simon Josefsson  <simon@josefsson.org>
105948         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
105949         AC_CANONICAL_HOST, to improve autobuild outputs.
105951 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
105952             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
105954         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
105955         sockets, server sockets, and other file descriptors.  Count errors
105956         to compute the return value.  Reorder the code a bit to be easier
105957         to follow.  Don't set event bits that were not requested (except
105958         POLLERR and POLLHUP).
105960 2007-01-01  Bruno Haible  <bruno@clisp.org>
105962         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
105964 2007-01-03  Jim Meyering  <jim@meyering.net>
105966         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
105968 2007-01-02  Bruno Haible  <bruno@clisp.org>
105970         * modules/settime (Include): Require timespec.h.
105971         * modules/nanosleep (Include): Likewise.
105973 2007-01-01  Bruno Haible  <bruno@clisp.org>
105975         * gnulib-tool (func_emit_copyright_notice): Bump year.
105976         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
105978 2007-01-01  Bruno Haible  <bruno@clisp.org>
105980         Improve support for OpenBSD.
105981         * build-aux/config.rpath (libname_spec): Export.
105982         (library_names_spec): New variable. Export.
105983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
105984         library_names_spec from the config.rpath output. Locate shared library
105985         through the name pattern in library_names_spec.
105987 2007-01-01  Eric Blake  <ebb9@byu.net>
105989         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
105991 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
105993         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
105994         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
105995         assume the C locale, and avoid an "eval" that could cause trouble.
105996         Problem with SORT reported by Bob Proulx.
105998         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
105999         Define.  Trivial patch from Henning Nielsen Lund, originally
106000         sent to bug-grep@gnu.org today.
106002 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106004         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106005         struct stat.  Problem reported by Henning Nielsen Lund.
106006         * lib/acl.c: Include acl.h first, to check interface.  Don't
106007         bother to include sys/types.h and sys/stat.h again.
106009 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106011         Import the following change from libc; problem reported by
106012         Sven Verdoolaege.
106014         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106016         [BZ #1373]
106017         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106019 2006-12-28  Jim Meyering  <jim@meyering.net>
106021         * build-aux/announce-gen: Do not assume that the package
106022         builds any of tar.gz, tar.bz2, and .xdelta files.
106023         Suggestion from Simon Josefsson.
106025 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106027         * modules/announce-gen: New file.
106029 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106031         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106032         handles its gotchas now.
106033         * lib/mbswidth.c: Likewise.
106034         * lib/wcwidth.h: Likewise.
106035         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106036         and iswcntrl; the wctype module does this stuff now.
106037         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106039         * modules/mbchar (Depends-on): Add wctype.
106040         * modules/mbswidth (Depends-on): Likewise.
106041         * modules/wcwidth (Depends-on): Likewise.
106043 2006-12-27  Eric Blake  <ebb9@byu.net>
106045         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106046         module uses more than what <wctype.h> is required to provide.
106048 2006-12-26  Eric Blake  <ebb9@byu.net>
106050         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106052 2006-12-26  Eric Blake  <ebb9@byu.net>
106054         * modules/absolute-header: New module.
106055         * modules/fcntl (Depends-on): Depend on it.
106056         * modules/inttypes (Depends-on): Likewise.
106057         * modules/stdint (Depends-on): Likewise.
106058         * modules/sys_stat (Depends-on): Likewise.
106059         * modules/wctype (Depends-on): Likewise.
106060         * MODULES.html.sh (Support for building libraries and
106061         executables): Document it.
106063 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106065         * gnulib-tool (SED): Remove, undoing previous change.
106066         The problem was that it broke coreutils on Solaris, because
106067         "sed --posix" leaked into a makefile.
106068         (sed): New alias, if 'alias' and GNU sed.
106070 2006-12-24  Jim Meyering  <jim@meyering.net>
106072         Work around an fchownat bug in glibc-2.4:
106073         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106074         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106075         in spite of the -P option.
106076         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106077         New macros.
106078         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106079         * modules/openat (Files): Add lib/fchownat.c.
106080         * lib/openat.c (fchownat): Don't define here.  Move to...
106081         * lib/fchownat.c: ...this new file.
106083 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106085         Fix bug reported by Bruno Haible in
106086         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106087         where quotearg.c didn't compile on Mac OS X 10.2 because it
106088         lacks <wchar.h> and wint_t.
106089         * lib/wctype_.h (__wctype_wint_t): New type.
106090         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106091         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106092         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106093         Arg is now of type __wctype_wint_t, not wint_t.
106094         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106095         substitute HAVE_WINT_T.
106096         * modules/wctype (Files): Add m4/wint_t.m4.
106097         (wctype.h): Substitute HAVE_WINT_T.
106099 2006-12-23  Bruno Haible  <bruno@clisp.org>
106101         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106103 2006-12-23  Bruno Haible  <bruno@clisp.org>
106105         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106106         S_ISLNK.
106107         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106108         mingw.
106110 2006-12-22  Bruno Haible  <bruno@clisp.org>
106112         * lib/copy-file.c: Include acl.h.
106113         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106114         Close the file descriptors only after being done with copy_acl.
106115         * modules/copy-file (Depends-on): Add acl.
106117 2006-12-22  Bruno Haible  <bruno@clisp.org>
106119         * gnulib-tool (SED): New variable.
106120         Use $SED instead of sed everywhere.
106122 2006-12-22  Bruno Haible  <bruno@clisp.org>
106124         * modules/no-c++: New file.
106125         * m4/no-c++.m4: New file.
106126         * MODULES.html.sh (Support for building libraries and executables):
106127         Add no-c++.
106129 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106131         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106132         Include <limits.h>, and use its INT_MAX to rewrite the
106133         j loop so that it does not overflow 'int'.  Problem reported by
106134         Ralf Wildenhues in
106135         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106136         Play it safe by shifting left by 1 rather than multiplying by 2,
106137         as GCC is less likely to optimize this away when the value
106138         is signed (when it assumes overflow leads to undefined behavior).
106139         Also, don't assume time_t uses two's complement.
106141 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106143         * MODULES.html.sh: New module wctype.
106144         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106145         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106146         <wctype.h>, since the new wctype module should fix this.
106147         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106148         the wctype module should arrange for it.
106149         * lib/regex_internal.h: Likewise.
106150         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106151         since the wctype module should handle this now.
106152         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106153         * modules/fnmatch (Depends-on): Add wctype.
106154         * modules/quotearg (Depends-on): Likewise.
106155         * modules/regex (Depends-on): Likewise.
106157 2006-12-19  Bruno Haible  <bruno@clisp.org>
106159         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106160         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106162 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106164         * modules/savewd (Depends-on): Fix dependency on fcntl.
106166 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106168         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106169         conforms to C99, rather than relying on the user's environment
106170         setting of STDINT_H.
106172 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106173         and Eric Blake  <ebb9@byu.net>
106175         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106176         This is more consistent with the other defines here.
106177         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106178         Port to z/OS.  Problem reported by Paul Gilmartin.
106179         Change local vars to use gl_ prefix rather than ac_.
106180         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106181         with other defines.
106182         * modules/double-slash-root: New module.
106183         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106184         (Depends-on): Add double-slash-root.
106185         * MODULES.html.sh (File system functions): Mention new module.
106187 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106189         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106190         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106191         This is for the benefit of gzip, which doesn't do i18n.
106193 2006-12-12  Jim Meyering  <jim@meyering.net>
106195         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106196         Reported by Andreas Schwab <schwab@suse.de>.
106198 2006-12-12  Bruno Haible  <bruno@clisp.org>
106200         Merge these changes.
106201         2006-09-05  Bruno Haible  <bruno@clisp.org>
106202         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106203         iconv_alloc succeeded.
106204         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106205         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106206         test for " && dest " at the end - dest is always != NULL there. Call
106207         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106208         with 2xNULL arguments, also to flush the state storage. Handle the
106209         IRIX iconv behaviour. Realloc the final result, to throw away unused
106210         memory.
106212 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106214         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106215         and fchmodat unconditionally, since glibc 2.4 has them.
106216         Problem reported by Arkadiusz Miskiewicz.
106218 2006-12-10  Bruno Haible  <bruno@clisp.org>
106220         * gnulib-tool (func_import): Show the include files only for those
106221         modules that are copied and specified.
106222         Reported by Karl Berry.
106224 2006-12-08  Jim Meyering  <jim@meyering.net>
106226         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106227         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106229         * build-aux/announce-gen: Add two new options, both optional:
106230         --bootstrap-tools=TOOL_LIST
106231               a comma-separated list of tools, e.g.,
106232               autoconf,automake,bison,gnulib
106233         --gnulib-snapshot-date=DATE
106234               if gnulib is in the bootstrap tool list,
106235               then report this as the snapshot date.
106236               If not specified, use the current date/time.
106237               If you specify a date here, be sure it's UTC.
106239 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106241         * tests/test-argp-2.sh: Fix test to match actual output.
106242         (func_compare): Fix sed script to be portable.
106244 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106246         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106247         workaround for this case.  It is not autoconfigured now; offhand
106248         it's hard to see how to autoconfigure it.
106250 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106252         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106253         a directory that is about to be chowned.  Such a directory's
106254         initial file permissions should permit the owner only and this
106255         should not be changed until after the chown, since the group and
106256         other bits would be incorrect if they granted permission before
106257         the chown.
106259         Fix porting problem for iswctype reported by Georg Schwarz in:
106260         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106261         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106262         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106263         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106264         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106266 2006-12-03  Jim Meyering  <jim@meyering.net>
106268         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106269         p->fts_statp may not yet be defined.
106270         (fts_read): Instead, set it in the caller, once p->fts_statp is
106271         sure to be defined, and corresponds to a top-level directory.
106272         This bug made du -x fail.  Here's the coreutils test case:
106273         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106274         Reported by Mike Frysinger.
106276 2006-12-01  Jim Meyering  <jim@meyering.net>
106278         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106279         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106280         Reported by Simon Josefsson.
106282 2006-11-30  Jim Meyering  <jim@meyering.net>
106284         * m4/warning.m4: Use the all-permissive copyright notice
106285         recommended by RMS (rather than LGPL).
106286         * m4/vararrays.m4: Likewise.
106287         * m4/flexmember.m4: Likewise.
106289 2006-11-29  Bruno Haible  <bruno@clisp.org>
106291         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106292         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106293         using +=.
106294         Reported by Simon Josefsson <simon@josefsson.org>.
106296 2006-11-28  James Youngman  <jay@gnu.org>
106298         * README: Advise users that they might find the bug-gnulib@gnu.org
106299         and autotools-announce@gnu.org mailing lists useful.
106301 2006-11-28  Bruno Haible  <bruno@clisp.org>
106303         * m4/ptrdiff_max.m4: Remove file.
106305 2006-11-21  Bruno Haible  <bruno@clisp.org>
106307         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106308         _AC_COMPUTE_INT.
106309         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106310         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106311         _AC_COMPUTE_INT.
106312         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106313         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106314         _AC_COMPUTE_INT.
106315         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106317 2006-11-28  Jim Meyering  <jim@meyering.net>
106319         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106320         warning from "gcc -Wshadow" about shadowing the builtin.
106322 2006-11-27  Bruno Haible  <bruno@clisp.org>
106324         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106325         _AC_COMPUTE_INT.
106326         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106328 2006-11-27  Bruno Haible  <bruno@clisp.org>
106329             Paul Eggert  <eggert@cs.ucla.edu>
106331         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106333 2006-11-26  Bruno Haible  <bruno@clisp.org>
106335         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106336         noinst_LTLIBRARIES.
106338 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106339             Bruno Haible  <bruno@clisp.org>
106341         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106342         if compiling with "gcc -ansi".
106344 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106346         Fix some incompatibilities with gcc -ansi -pedantic.
106347         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106348         if compiling pedantically with GCC, unless it's C99 or later.
106349         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106350         it mishandles gcc -ansi -pedantic as well.
106351         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106352         if gcc -pedantic.
106353         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106354         initializers for struct if -pedantic, unless it's C99 or later.
106356 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106358         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106359         Don't close an fd more than once. Identical atimes indicate
106360         success, not failure.
106362 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106364         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106366 2006-11-23  Jim Meyering  <jim@meyering.net>
106368         * build-aux/announce-gen: New file.  From coreutils.
106370 2006-11-22  Jim Meyering  <jim@meyering.net>
106372         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106373         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106374         (fts_read): Use a temporary to narrow the overused st_size member
106375         before using it in a switch statement.  Reported by Matthew Woehlke.
106377         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106380 2006-11-20  Bruno Haible  <bruno@clisp.org>
106382         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106383         changequote instead of pairs of brackets.
106384         Reported by Andreas Schwab <schwab@suse.de>.
106386 2006-11-21  Jim Meyering  <jim@meyering.net>
106388         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106389         so as to remain compatible with older compilers.
106390         Patch from Michael Deutschmann.
106392 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106394         * MODULES.html.sh (File system functions): Add openat.
106396         * lib/openat.h (rpl_fstatat): New macro, if
106397         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106398         (fstatat): Define to rpl_fstatat under the same conditions,
106399         unless COMPILING_FSTATAT.
106400         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106401         seems to have the bug.
106402         * lib/fstatat.c: New file.
106403         * modules/openat (Files): Add it.
106405 2006-11-20  Bruno Haible  <bruno@clisp.org>
106407         * Makefile: New file.
106409 2006-11-20  Jim Meyering  <jim@meyering.net>
106411         The beginnings of syntax-related checks for gnulib.
106412         * lib/Makefile: New file.
106413         * lib/t-idcache: New script.  Ensure that the two halves of
106414         idcache.c stay in sync.
106416         * lib/idcache.c: Adjust comments in user- and group- portions to
106417         be more accurate, and to be consistent with one another.
106419 2006-11-20  Jim Meyering  <jim@meyering.net>
106421         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106422         continue using the flexible array member (thus, this module performs
106423         half as many malloc calls), with the addition that...
106424         (getgroup, getuser): Consistently record a non-match via an empty
106425         "name" string, and map an empty string match to a NULL return value.
106426         * modules/idcache (Depends-on): Re-add flexmember.
106428         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106429         (getuidbyname, getgroup, getgidbyname): Likewise.
106431         Use cleaner syntax: NULL rather than 0.
106432         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106434 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106436         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106437         It mishandled the case where the group was missing.
106438         Problem reported by Greg Schafer.
106439         * modules/idcache: Likewise.
106441 2006-11-18  Jim Meyering  <jim@meyering.net>
106443         * check-module (%exempt_header): Add exception for some
106444         conditionally-included headers.
106446         * modules/i-ring (Depends-on): Add verify.
106447         (License): Change to LGPL.
106449 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106451         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106452         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106453         and inttostr.h.  Use snprintf rather than uinttostr, so that
106454         LGPLed code doesn't depend on GPLed.
106456 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106458         * modules/inline (License): Change from GPL to LGPL.
106460 2006-11-17  Jim Meyering  <jim@meyering.net>
106462         * modules/d-type (License): Switch to LGPL.
106464 2006-11-15  Bruno Haible  <bruno@clisp.org>
106466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106468 2006-11-15  Eric Blake  <ebb9@byu.net>
106470         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106471         the module dependency.
106473 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106474             Bruno Haible  <bruno@clisp.org>
106476         * gnulib-tool (func_create_testdir): Add license consistency check.
106478 2006-11-15  Eric Blake  <ebb9@byu.net>
106480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106481         random "(cached)" in configure output.
106483 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106485         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106486         test for conforming inttypes.h is both announced and cached.
106488         * MODULES.html.sh (seen_modules, seen_files): New variables.
106489         (func_module): Rewrite to use a few less gnulib-tool and sed
106490         invocations.  Avoid a couple of quadratic algorithms for ...
106491         (missed_modules, missed_files): ... these, with ...
106492         (func_append, func_tmpdir): ... these new functions, from
106493         gnulib-tool.  Analogously, install traps for cleanup.
106495         * tests/test-gc.c (main): Remove unused variables.
106496         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106498 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106500         * modules/inttostr (License): Change to LGPL.
106502 2006-11-14  Eric Blake  <ebb9@byu.net>
106504         * modules/tempname (License): Change to LGPL.
106506 2006-11-14  Eric Blake  <ebb9@byu.net>
106508         * doc/functions.texi (Function Portability): *printf functions on
106509         Cygwin now understand all POSIX size specifiers.
106511 2006-11-14  Bruno Haible  <bruno@clisp.org>
106513         * modules/c-ctype (License): Change to LGPL.
106515 2006-11-12  Bruno Haible  <bruno@clisp.org>
106517         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106518         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106519         for GNOME libraries, for which the include files are installed in
106520         subdirectories of $prefix/include.
106522 2006-11-12  Bruno Haible  <bruno@clisp.org>
106524         * m4/lib-link.m4: Require at least autoconf-2.54.
106525         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106526         name to underscores for the --with option.
106528 2006-11-13  Bruno Haible  <bruno@clisp.org>
106530         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106531         the tests directory.
106532         Reported by Ralf Wildenhues.
106534 2006-11-13  Bruno Haible  <bruno@clisp.org>
106536         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106537         (func_emit_initmacro_end): Undo the override here.
106538         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106539         Works around the famous automake error in coreutils.
106541 2006-11-13  Eric Blake  <ebb9@byu.net>
106543         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106544         element, not its node.
106546 2006-11-12  Bruno Haible  <bruno@clisp.org>
106548         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106549         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106551 2006-11-12  Bruno Haible  <bruno@clisp.org>
106553         * gnulib-tool: New option --local-symlink.
106554         (func_usage): Document it.
106555         (lsymbolic): New variable.
106556         (func_import, func_create_testdir): If --symlink was not specified,
106557         test whether --local-symlink was specified and the file comes from
106558         the local_gnulib_dir.
106560 2006-11-12  Bruno Haible  <bruno@clisp.org>
106562         * gnulib-tool (func_ln): New function.
106563         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106565 2006-11-12  Bruno Haible  <bruno@clisp.org>
106567         Finish support for source files in subdirectories.
106568         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106569         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106570         AUTOMAKE_OPTIONS.
106571         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106573 2006-11-12  Bruno Haible  <bruno@clisp.org>
106575         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106576         EXTRA_lib_SOURCES augmentation.
106577         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106579 2006-11-12  Jim Meyering  <jim@meyering.net>
106581         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106582         file descriptors.  This also averts a failure on systems with
106583         native openat support when a traversed directory lacks "x" access.
106584         * lib/fts_.h: Include "i-ring.h"
106585         (struct FTS) [fts_fd_ring]: New member.
106586         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
106587         (FCHDIR): Add parentheses.
106588         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
106589         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
106590         When descending, rather than simply closing the previous
106591         fts_cwd_fd value, push that file descriptor onto the ring.
106592         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
106593         (fts_open): Initialize the new fd_ring member.
106594         (fts_close): Clear the ring.
106595         (fts_safe_changedir): When possible, use our new fd_ring to skip
106596         the diropen and fstat and dev/ino comparison that would normally
106597         accompany a virtual `chdir ("..")'.
106599         * modules/fts (Depends-on): Add i-ring.
106600         * modules/i-ring: New module.
106601         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
106602         * m4/i-ring.m4: New file.
106604 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106606         * gnulib-tool (func_create_testdir): Fix replacement of
106607         `build-aux' in configure.ac.  Run autotools in gltests
106608         subdirectory.
106609         (func_create_testdir, func_create_megatestdir, test): There is
106610         no need for '--force' in most autotool invocations in a new
106611         tree.  Actually fail the whole test if any of the tools, or the
106612         configure or make stages fail.
106614         Sync from Automake.
106615         * build-aux/gnupload: Revert last change.  Add pointer to upload
106616         instructions of the GNU Maintenance Instructions.
106617         Suggestion by Karl Berry.
106619 2006-11-10  Jim Meyering  <jim@meyering.net>
106621         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
106623 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106625         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
106626         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
106627         (bind_textdomain_codeset) [! ENABLE_NLS]:
106628         Evaluate all the arguments.  That way, callers get compatible behavior
106629         if the arguments have side effects.  Also, it avoids some GCC
106630         diagnostics in some cases; Joel E. Denny reported problems when Bison
106631         was configured with --enable-gcc-warnigs.
106633 2006-11-10  Jim Meyering  <jim@meyering.net>
106635         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
106636         relevant options in CFLAGS (like -O, -fno-inline) are taken into
106637         account.
106639 2006-11-10  Jim Meyering  <jim@meyering.net>
106641         * modules/inline: New file/module.
106642         * modules/xalloc (Files): Remove m4/inline.m4.
106643         (Depends-on): Add inline, instead.
106644         * modules/oset: Likewise.
106645         * modules/list: Likewise.
106647 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106649         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
106650         Problem reported by Matthew Woehlke.
106652 2006-11-09  Bruno Haible  <bruno@clisp.org>
106654         * lib/tempname.c (gen_tempname): Remove variant that invokes
106655         __gen_tempname.
106656         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
106657         __gen_tempname.
106659 2006-11-08  Bruno Haible  <bruno@clisp.org>
106661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
106662         to 'yes' instead of 'cross-compiling'.
106664 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
106666         * lib/quotearg.h (quotearg_free): New decl.
106667         * lib/quotearg.c (quotearg_free): New function.
106668         (slot0, nslots, slotvec0, slotvec):
106669         Now file-scope so that quotearg_free can get at them.
106671 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106673         Sync from Automake.
106674         * build-aux/gnupload: Add missing 'gnu' to example URL.
106675         Report by Karl Berry.
106677 2006-11-08  Bruno Haible  <bruno@clisp.org>
106679         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
106680         Suggested by Paul Eggert.
106682 2006-11-08  Jim Meyering  <jim@meyering.net>
106684         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
106685         It's already included if !_LIBC.
106686         (fts_safe_changedir): Add a comment.
106688 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
106691         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
106692         Matthew Woehlke.
106694         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
106695         definitions up, to avoid colliding with change below.
106696         (static_inline) [HAVE_INLINE]: New macro.
106697         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
106698         Provide extern decls when !HAVE_INLINE.  Do not define unless
106699         static_inline is defined, either by us or by xmalloc.c.  Use
106700         static_inline rather than static inline.
106701         (XCALLOC): Optimize sizeof(T) = 1 case.
106702         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
106704 2006-11-07  Bruno Haible  <bruno@clisp.org>
106706         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
106707         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
106708         AC_C_INLINE.
106709         * modules/xalloc (Files): Add m4/inline.m4.
106711 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106713         * README: Fix typo.
106714         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
106715         (Miscellanous Notes): ...from this.
106717 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106719         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
106720         Mention that offsetof should be used instead of sizeof.
106721         From Bruno Haible.
106723 2006-11-07  Bruno Haible  <bruno@clisp.org>
106725         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
106727 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106729         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106730         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
106731         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106732         (gl_tree_add_before, gl_tree_add_after):
106733         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
106734         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
106735         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106736         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
106737         (gl_linked_add_after, gl_linked_add_at): Likewise.
106738         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
106739         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106740         (gl_tree_add_before, gl_tree_add_after): Likewise.
106741         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
106742         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
106743         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
106745 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106747         * lib/gl_oset.h: Use C comment style, not C++ comment style.
106749 2006-11-06  Bruno Haible  <bruno@clisp.org>
106751         * m4/inline.m4: New file.
106752         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
106753         * modules/list (Files): Add m4/inline.m4.
106754         * modules/oset (Files): Likewise.
106756 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106758         * lib/idcache.c: Include <stddef.h>, for offsetof.
106759         (struct userid.name): Change from char * to a flexible array member.
106760         All uses changed.
106761         * modules/idcache (Depends-on): Add flexmember.
106763         * MODULES.html.sh (Core language properties): New module flexmember.
106764         * modules/flexmember, m4/flexmember.m4: New files.
106766         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
106767         inline functions that are identical with the old xnmalloc_inline,
106768         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
106769         that we can avoid some unnecessary integer multiplications and
106770         divisions in the common case where the element size is known at
106771         compile time.
106772         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
106773         needed.
106774         (xnboundedmalloc): Remove.
106775         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
106776         arguments, for consistency with rest of this header.
106777         (xcharalloc): Rewrite using XNMALLOC.
106778         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
106779         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
106780         versions have been moved to lib/xalloc.h and renamed to be the
106781         non-*_inline versions.
106782         (xmalloc, xrealloc): Implement without reference to the xnmalloc
106783         and xnrealloc functions, since those functions are now inline and
106784         now call us.
106785         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
106786         renaming described above.
106787         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
106788         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
106789         captures the dependency in AC_C_INLINE.
106791         New module canonicalize-lgpl, proposed by Charles Wilson in
106792         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
106793         with a few small changes afterwards.
106794         * MODULES.html.sh (File system functions): New module
106795         canonicalize-lgpl.
106796         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
106797         and canonicalize_file_name.
106798         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
106799         * modules/canonicalize-lgpl: New files.
106801 2006-11-05  Bruno Haible  <bruno@clisp.org>
106803         * gnulib-tool (func_import, func_create_testdir): Create directories
106804         also for files in subdirectories of lib/.
106806 2006-11-05  Bruno Haible  <bruno@clisp.org>
106808         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
106809         ANSI C compliant.
106811 2006-11-03  Bruno Haible  <bruno@clisp.org>
106813         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106814         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
106815         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
106816         (xnboundedmalloc): New inline function.
106817         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
106818         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
106819         xmalloc.
106820         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
106821         xmalloc.
106822         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
106823         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
106824         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
106825         xmalloc.
106826         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106827         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
106828         xmalloc.
106829         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
106830         gl_tree_add_after): Use XMALLOC instead of xmalloc.
106831         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
106832         xmalloc.
106833         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106834         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
106835         gl_tree_add_after): Use XMALLOC instead of xmalloc.
106836         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
106837         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
106838         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
106839         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
106841 2006-11-03  Bruno Haible  <bruno@clisp.org>
106843         * lib/c-ctype.h [C++]: Define functions without name mangling.
106844         * lib/fwriteerror.h [C++]: Likewise.
106845         * lib/gcd.h [C++]: Likewise.
106846         * lib/linebreak.h [C++]: Likewise.
106848 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
106850         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
106851         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
106852         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
106853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
106854         Check for functions and headers just once.
106855         Check for declaration of canonicalize_file_name.
106856         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
106858 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
106860         * gnulib-tool (func_import): Fix typo in actioncmd.
106862 2006-11-02  Bruno Haible  <bruno@clisp.org>
106864         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
106865         newline sequence in the Makefile.am snippet as a space, like "make"
106866         does.
106867         Reported by Roger Persson <perrog@gmail.com>.
106869 2006-11-01  Bruno Haible  <bruno@clisp.org>
106871         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
106872         already declared in <string.h>.
106873         * lib/strcase.h (strncasecmp): Don't declare it if yes.
106875 2006-11-01  Bruno Haible  <bruno@clisp.org>
106877         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
106878         * lib/strcase.h: Include <string.h>.
106879         (strcasecmp): Define to rpl_strcasecmp here.
106881 2006-11-01  Bruno Haible  <bruno@clisp.org>
106883         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
106885 2006-11-01  Eric Blake  <ebb9@byu.net>
106887         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
106889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
106891 2006-10-29  Bruno Haible  <bruno@clisp.org>
106893         Make it compile in C++ mode.
106894         * lib/full-write.c (full_rw): Add a cast.
106896 2006-11-01  Bruno Haible  <bruno@clisp.org>
106898         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
106899         be POSIX compliant.
106900         Reported by Roger Persson <perrog@gmail.com>.
106902 2006-11-01  Eric Blake  <ebb9@byu.net>
106904         * lib/getopt_.h: Fix comments.
106906 2006-10-31  Eric Blake  <ebb9@byu.net>
106908         * modules/tmpdir (Depends-on): Add sys_stat.
106909         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
106910         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
106911         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
106912         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
106913         tempname.
106915 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
106917         Avoid some C++ diagnostics reported by Bruno Haible.
106918         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
106919         xmalloc.
106920         (quotearg_alloc): Use xcharalloc rather than xmalloc.
106921         (struct slotvec): Move to top level.
106922         (quotearg_n_options): Rewrite to avoid xmalloc.
106923         * lib/xalloc.h (xcharalloc): New function.
106924         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
106925         [defined __cplusplus]: Add function template that provides result
106926         type propagation.  This part of the change is from Bruno Haible.
106928 2006-10-29  Bruno Haible  <bruno@clisp.org>
106930         Make it compile in C++ mode.
106931         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
106932         * lib/strnlen1.c (strnlen1): Cast memchr result.
106933         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
106934         * lib/clean-temp.c (string_equals, string_hash): Add casts.
106935         (create_temp_dir): Rename local variable 'template'.
106936         (compile_csharp_using_sscli): Add cast.
106937         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
106938         * lib/findprog.c (find_in_path): Likewise.
106939         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
106940         * lib/wait-process.c (register_slave_subprocess): Likewise.
106942 2006-10-22  Bruno Haible  <bruno@clisp.org>
106944         * modules/tsearch: New file.
106945         * lib/tsearch.h: New file.
106946         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
106947         * m4/tsearch.m4: New file.
106948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
106950 2006-10-29  Eric Blake  <ebb9@byu.net>
106952         * lib/arcfour.c: Assume config.h.
106953         * lib/arctwo.c: Likewise.
106954         * lib/base64.c: Likewise.
106955         * lib/check-version.c: Likewise.
106956         * lib/crc.c: Likewise.
106957         * lib/des.c: Likewise.
106958         * lib/gc-gnulib.c: Likewise.
106959         * lib/gc-libgcrypt.c: Likewise.
106960         * lib/gc-pbkdf2-sha1.c: Likewise.
106961         * lib/getaddrinfo.c: Likewise.
106962         * lib/getdelim.c: Likewise.
106963         * lib/getline.c: Likewise.
106964         * lib/hmac-md5.c: Likewise.
106965         * lib/hmac-sha1.c: Likewise.
106966         * lib/iconvme.c: Likewise.
106967         * lib/md2.c: Likewise.
106968         * lib/md4.c: Likewise.
106969         * lib/memxor.c: Likewise.
106970         * lib/read-file.c: Likewise.
106971         * lib/readline.c: Likewise.
106972         * lib/rijndael-alg-fst.c: Likewise.
106973         * lib/rijndael-api-fst.c: Likewise.
106974         * lib/xgetdomainname.c: Likewise.
106976 2006-10-28  Eric Blake  <ebb9@byu.net>
106978         * lib/xstrndup.c: Assume config.h.
106980 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
106982         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
106983         stat-macros.h is now for our own macros, whereas stat_h is for
106984         macros in the <sys/stat.h> name space.
106985         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
106986         (STAT_MACROS_H): Remove.
106987         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
106988         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
106989         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
106990         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
106991         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
106992         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
106993         Move these macros to ...
106994         * lib/stat_.h: here.  Don't include stat-macros.h.
106995         * lib/canonicalize.c: Don't include stat-macros.h.
106996         * lib/chown.c: Likewise.
106997         * lib/euidaccess.c: Likewise.
106998         * lib/file-type.c: Likewise.
106999         * lib/filemode.c: Likewise.
107000         * lib/glob.c: Likewise.
107001         * lib/isapipe.c: Likewise.
107002         * lib/lchown.c: Likewise.
107003         * lib/lstat.c: Likewise.
107004         * lib/mkdir-p.c: Likewise.
107005         * lib/rmdir.c: Likewise.
107006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107008         unless mkdir isn't declared, to speed up 'configure'.
107009         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107010         would define all the S_* symbols.
107011         * modules/canonicalize (Depends-on):
107012         Depend on sys_stat, not stat-macros.
107013         * modules/chown: Likewise.
107014         * modules/euidaccess: Likewise.
107015         * modules/filemode: Likewise.
107016         * modules/file-type: Likewise.
107017         * modules/glob: Likewise.
107018         * modules/isapipe: Likewise.
107019         * modules/lchown: Likewise.
107020         * modules/lstat: Likewise.
107021         * modules/mkancesdirs: Likewise.
107022         * modules/rmdir: Likewise.
107023         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107024         * modules/modechange: Likewise.
107025         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107026         (configure.ac): Remove gl_STAT_MACROS.
107027         * modules/sys_stat (Depends-on): Remove stat-macros.
107029 2006-10-27  Bruno Haible  <bruno@clisp.org>
107031         * m4/signed.m4: Remove file.
107032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107033         invocation.
107034         * modules/vasnprintf (Files): Remove m4/signed.m4.
107036 2006-10-27  Bruno Haible  <bruno@clisp.org>
107038         Update to GNU gettext 0.16.
107039         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107040         m4/inttypes-h.m4, m4/signed.m4.
107041         * m4/gettext.m4: Update to GNU gettext 0.16.
107042         * m4/intl.m4: New file, from GNU gettext.
107043         * m4/intldir.m4: New file, from GNU gettext.
107044         * config/srclist.txt: Update
107046 2006-10-27  Eric Blake  <ebb9@byu.net>
107048         * MODULES.html.sh: Document tempname.
107049         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107050         dependencies.
107051         (Files): Move lib/tempname.c...
107052         * modules/tempname: ...to this new module.
107053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107054         (gl_PREREQ_TEMPNAME): Move...
107055         * m4/tempname.m4: ...to this new file.
107056         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107057         * modules/sys_stat (Depends-on): Add stat-macros.
107058         * lib/stat_.h (includes): Pick up stat macros.
107059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107060         if stat macros are broken.
107061         * lib/tempname.c (includes): No need to include "stat-macros.h".
107062         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107063         (direxists, __path_search) [!_LIBC]: Don't compile these in
107064         gnulib; the tmpdir module covers that.
107065         * lib/tempname.h: New file.
107067 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107069         * COPYING: Explain how gnulib-tool converts licence headers.
107070         Almost all wording by Eric Blake.
107072 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107074         * lib/mbchar.h (is_basic_table): Make read-only.
107075         * lib/mbchar.c (is_basic_table): Likewise.
107076         Reported by John Darrington.
107078 2006-10-25  Bruno Haible  <bruno@clisp.org>
107080         * lib/progname.h (set_program_name): Undefine before defining.
107082 2006-10-25  Bruno Haible  <bruno@clisp.org>
107084         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107085         false for non-gcc C++ compilers.
107086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107088 2006-10-24  Bruno Haible  <bruno@clisp.org>
107090         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107091         iconv implementations like Irix iconv.
107093 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107095         * modules/vararrays: New file.
107096         * m4/vararrays.m4: New file, taken from diffutils.
107097         * MODULES.html.sh: New module vararrays.
107099 2006-10-24  Karl Berry  <karl@gnu.org>
107101         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107102         Don't call GNU Unix.
107104 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107106         * users.txt: Add Libtool.
107108         Sync from Libtool:
107110         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107112         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107113         to gnulib's policy of including config.h unconditionally.
107115 2006-10-24  Bruno Haible  <bruno@clisp.org>
107117         * modules/wcwidth (Files): Add m4/wint_t.m4.
107118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107119         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107121 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107123         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107124         to pacify GCC with some -W flags enabled.  Problem reported by
107125         Bruno Haible.
107127 2006-10-24  Jim Meyering  <jim@meyering.net>
107129         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107130         Reported by Karl Berry.
107132 2006-10-23  Bruno Haible  <bruno@clisp.org>
107134         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107136 2006-10-24  Bruno Haible  <bruno@clisp.org>
107138         * lib/gl_list.h: Use C comment style, not C++ comment style.
107140 2006-10-23  Eric Blake  <ebb9@byu.net>
107142         * lib/getaddrinfo.c (includes): Add missing include.
107144 2006-10-23  Bruno Haible  <bruno@clisp.org>
107145             Paul Eggert  <eggert@cs.ucla.edu>
107147         Ability to rename obstack_free.
107148         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107149         obstack_free.
107150         (obstack_free): Invoke the __obstack_free macro.
107151         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107153 2006-10-23  Bruno Haible  <bruno@clisp.org>
107154             Paul Eggert  <eggert@cs.ucla.edu>
107156         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107157         __argc, __argv from the declaration. (They are defined as macros on
107158         mingw.)
107160 2006-10-22  Bruno Haible  <bruno@clisp.org>
107162         * doc/gnulib-intro.texi: New file.
107163         * doc/gnulib.texi: Include it.
107165 2006-10-21  Bruno Haible  <bruno@clisp.org>
107167         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107168         "Introduction", "Miscellanous Notes", "Particular Modules".
107170 2006-10-21  Bruno Haible  <bruno@clisp.org>
107172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107173         Change mostlyclean-local rule to avoid sh syntax error from bash
107174         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107176 2006-10-23  Jim Meyering  <jim@meyering.net>
107178         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107179         in place of snprintf.
107181         * modules/inttostr (Files): Add lib/uinttostr.c.
107182         * lib/uinttostr.c (inttostr): New file/function.
107183         * lib/inttostr.h (uinttostr): Declare.
107184         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107185         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107186         Add uinttostr.
107187         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107189 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107191         * lib/canonicalize.c (ELOOP): Define if not already defined.
107192         Problem reported by Bruno Haible in
107193         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107195 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107197         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107198         Problem reported by Perry Smith and Ville Laurikari.
107200         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107201         uses.
107203 2006-10-19  Bruno Haible  <bruno@clisp.org>
107205         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107206         for mingw.
107208 2006-10-19  Bruno Haible  <bruno@clisp.org>
107210         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107211         Needed for mingw.
107213 2006-10-19  Bruno Haible  <bruno@clisp.org>
107215         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107217 2006-10-19  Bruno Haible  <bruno@clisp.org>
107219         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107220         it.
107222 2006-10-19  Bruno Haible  <bruno@clisp.org>
107224         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107225         invocation.
107227 2006-10-19  Bruno Haible  <bruno@clisp.org>
107229         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107230         mountlist by default.
107232 2006-10-16  Bruno Haible  <bruno@clisp.org>
107234         * lib/c-strstr.c: Include c-strstr.h.
107236 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107238         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107239         in a slash.
107241 2006-10-18  Bruno Haible  <bruno@clisp.org>
107243         * lib/lock.h [C++]: Wrap definitions in extern "C".
107245 2006-10-18  Bruno Haible  <bruno@clisp.org>
107247         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107248         gl_LIBOBJS list.
107250 2006-10-18  Bruno Haible  <bruno@clisp.org>
107252         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107254 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107256         * lib/xstrtol.h: Include gettext.h.
107257         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107258         Problem reported by Eric Blake.
107259         * modules/xstrtol (Depends-on): Add gettext-h.
107261 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107263         * lib/strftime.c (advance): New macro.
107264         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107265         incomplete type, so you can't add 0 to it.  Problem and patch
107266         reported by Eelco Dolstra for dietlibc.
107268 2006-10-18  Jim Meyering  <jim@meyering.net>
107270         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107271         type for a local, and rename it: s/up/user_proc/.
107273 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107275         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107276         READ_UTMP_USER_PROCESS.
107277         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107279 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107281         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107282         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107284 2006-10-17  Eric Blake  <ebb9@byu.net>
107286         * lib/sigprocmask.c (sigprocmask): Fix typo.
107288         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107290         * modules/clean-temp (Makefile.am): Don't add to make output...
107291         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107292         config.h.
107294 2006-10-17  Bruno Haible  <bruno@clisp.org>
107296         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107297         differently if DEFAULT_TEXT_DOMAIN is set.
107299 2006-10-16  Bruno Haible  <bruno@clisp.org>
107301         * lib/clean-temp.c: Include fwriteerror.h.
107303 2006-10-16  Bruno Haible  <bruno@clisp.org>
107305         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107307 2006-10-16  Bruno Haible  <bruno@clisp.org>
107309         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107310         * lib/sigprocmask.h: Include <sys/types.h>.
107311         (sigset_t): Use the system's definition if present.
107313 2006-10-17  Eric Blake  <ebb9@byu.net>
107315         * lib/xvasprintf.c (includes): Assume config.h.
107316         * lib/xasprintf.c (includes): Likewise.
107318 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107320         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107321         at least as wide as intmax_t.
107323 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107325         (Imported from Automake.)
107326         * build-aux/gnupload: Update to version 1.1 of directive file.
107328 2006-10-16  Eric Blake  <ebb9@byu.net>
107330         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107331         match Automake 1.10a.
107333 2006-10-14  Bruno Haible  <bruno@clisp.org>
107335         * modules/sigprocmask: New file.
107336         * lib/sigprocmask.h: New file.
107337         * lib/sigprocmask.c: New file.
107338         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107339         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107340         request sigprocmask.o.
107341         (gl_PREREQ_SIGPROCMASK): New macro.
107342         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107343         (Depends-on): Add sigprocmask.
107344         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107345         gt_SIGNALBLOCKING. Test for 'raise' only once.
107346         * lib/fatal-signal.c: Include sigprocmask.h.
107347         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107348         unblock_fatal_signals): Define always.
107349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107350         sigprocmask.
107352 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107354         Sync from Automake.
107355         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107356         which incorrectly sets the mode of an existing destination
107357         directory.  In some cases the unpatched install-sh could do the
107358         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107359         system.  We hope this is rare in practice, but it's clearly worth
107360         fixing.  Problem reported by Alex Unleashed in
107361         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107362         Also, don't bother to check for -m bugs unless we're using -m;
107363         suggested by Stepan Kasal.
107365 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107367         Sync from Automake.
107368         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107369         `-c' flag, so they appear at the same position as in %FASTDEP%
107370         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107371         which ignores unknown options only after the first non-option.
107372         Bug report against M4 by Nelson H. F. Beebe.
107374 2006-10-13  Jim Meyering  <jim@meyering.net>
107376         Fix a bug in yesterday's change.
107377         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107378         p->fts_statp->st_dev would be used uninitialized.
107379         Ensures that we always call fts_stat on the very first entry.
107380         Miklos Szeredi reported that find -xdev stopped working.
107382 2006-10-12  Bruno Haible  <bruno@clisp.org>
107384         * gnulib-tool (func_get_automake_snippet): Append an automatically
107385         computed EXTRA_DIST augmentation.
107386         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107387         * modules/alloca-opt (Makefile.am): Likewise.
107388         * modules/allocsa (Makefile.am): Likewise.
107389         * modules/arcfour (Makefile.am): Likewise.
107390         * modules/arctwo (Makefile.am): Likewise.
107391         * modules/argmatch (Makefile.am): Likewise.
107392         * modules/argz (Makefile.am): Likewise.
107393         * modules/atexit (Makefile.am): Likewise.
107394         * modules/backupfile (Makefile.am): Likewise.
107395         * modules/byteswap (Makefile.am): Likewise.
107396         * modules/c-strtod (Makefile.am): Likewise.
107397         * modules/c-strtold (Makefile.am): Likewise.
107398         * modules/calloc (Makefile.am): Likewise.
107399         * modules/canon-host (Makefile.am): Likewise.
107400         * modules/canonicalize (Makefile.am): Likewise.
107401         * modules/chdir-long (Makefile.am): Likewise.
107402         * modules/chdir-safer (Makefile.am): Likewise.
107403         * modules/check-version (Makefile.am): Likewise.
107404         * modules/chown (Makefile.am): Likewise.
107405         * modules/cloexec (Makefile.am): Likewise.
107406         * modules/close-stream (Makefile.am): Likewise.
107407         * modules/closeout (Makefile.am): Likewise.
107408         * modules/crc (Makefile.am): Likewise.
107409         * modules/csharpexec (Makefile.am): Likewise.
107410         * modules/cycle-check (Makefile.am): Likewise.
107411         * modules/des (Makefile.am): Likewise.
107412         * modules/dev-ino (Makefile.am): Likewise.
107413         * modules/dirfd (Makefile.am): Likewise.
107414         * modules/dirname (Makefile.am): Likewise.
107415         * modules/dup2 (Makefile.am): Likewise.
107416         * modules/eealloc (Makefile.am): Likewise.
107417         * modules/error (Makefile.am): Likewise.
107418         * modules/euidaccess (Makefile.am): Likewise.
107419         * modules/exclude (Makefile.am): Likewise.
107420         * modules/exitfail (Makefile.am): Likewise.
107421         * modules/fcntl-safer (Makefile.am): Likewise.
107422         * modules/fcntl (Makefile.am): Likewise.
107423         * modules/file-type (Makefile.am): Likewise.
107424         * modules/fileblocks (Makefile.am): Likewise.
107425         * modules/filemode (Makefile.am): Likewise.
107426         * modules/filenamecat (Makefile.am): Likewise.
107427         * modules/fnmatch (Makefile.am): Likewise.
107428         * modules/fopen-safer (Makefile.am): Likewise.
107429         * modules/fpending (Makefile.am): Likewise.
107430         * modules/fprintftime (Makefile.am): Likewise.
107431         * modules/free (Makefile.am): Likewise.
107432         * modules/fsusage (Makefile.am): Likewise.
107433         * modules/ftruncate (Makefile.am): Likewise.
107434         * modules/fts (Makefile.am): Likewise.
107435         * modules/gc-arcfour (Makefile.am): Likewise.
107436         * modules/gc-des (Makefile.am): Likewise.
107437         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107438         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107439         * modules/gc-md4 (Makefile.am): Likewise.
107440         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107441         * modules/gc-sha1 (Makefile.am): Likewise.
107442         * modules/gc (Makefile.am): Likewise.
107443         * modules/getaddrinfo (Makefile.am): Likewise.
107444         * modules/getcwd (Makefile.am): Likewise.
107445         * modules/getdelim (Makefile.am): Likewise.
107446         * modules/getdomainname (Makefile.am): Likewise.
107447         * modules/getgroups (Makefile.am): Likewise.
107448         * modules/gethostname (Makefile.am): Likewise.
107449         * modules/gethrxtime (Makefile.am): Likewise.
107450         * modules/getline (Makefile.am): Likewise.
107451         * modules/getloadavg (Makefile.am): Likewise.
107452         * modules/getlogin_r (Makefile.am): Likewise.
107453         * modules/getndelim2 (Makefile.am): Likewise.
107454         * modules/getopt (Makefile.am): Likewise.
107455         * modules/getpagesize (Makefile.am): Likewise.
107456         * modules/getpass-gnu (Makefile.am): Likewise.
107457         * modules/getpass (Makefile.am): Likewise.
107458         * modules/getsubopt (Makefile.am): Likewise.
107459         * modules/gettime (Makefile.am): Likewise.
107460         * modules/gettimeofday (Makefile.am): Likewise.
107461         * modules/getugroups (Makefile.am): Likewise.
107462         * modules/getusershell (Makefile.am): Likewise.
107463         * modules/glob (Makefile.am): Likewise.
107464         * modules/group-member (Makefile.am): Likewise.
107465         * modules/hard-locale (Makefile.am): Likewise.
107466         * modules/hash (Makefile.am): Likewise.
107467         * modules/hmac-md5 (Makefile.am): Likewise.
107468         * modules/hmac-sha1 (Makefile.am): Likewise.
107469         * modules/human (Makefile.am): Likewise.
107470         * modules/idcache (Makefile.am): Likewise.
107471         * modules/imaxabs (Makefile.am): Likewise.
107472         * modules/imaxdiv (Makefile.am): Likewise.
107473         * modules/inet_ntop (Makefile.am): Likewise.
107474         * modules/inet_pton (Makefile.am): Likewise.
107475         * modules/intprops (Makefile.am): Likewise.
107476         * modules/inttostr (Makefile.am): Likewise.
107477         * modules/inttypes (Makefile.am): Likewise.
107478         * modules/isapipe (Makefile.am): Likewise.
107479         * modules/javaversion (Makefile.am): Likewise.
107480         * modules/lchmod (Makefile.am): Likewise.
107481         * modules/lchown (Makefile.am): Likewise.
107482         * modules/localcharset (Makefile.am): Likewise.
107483         * modules/long-options (Makefile.am): Likewise.
107484         * modules/lstat (Makefile.am): Likewise.
107485         * modules/malloc (Makefile.am): Likewise.
107486         * modules/mathl (Makefile.am): Likewise.
107487         * modules/mbchar (Makefile.am): Likewise.
107488         * modules/md2 (Makefile.am): Likewise.
107489         * modules/md4 (Makefile.am): Likewise.
107490         * modules/md5 (Makefile.am): Likewise.
107491         * modules/memcasecmp (Makefile.am): Likewise.
107492         * modules/memchr (Makefile.am): Likewise.
107493         * modules/memcmp (Makefile.am): Likewise.
107494         * modules/memcoll (Makefile.am): Likewise.
107495         * modules/memcpy (Makefile.am): Likewise.
107496         * modules/memmem (Makefile.am): Likewise.
107497         * modules/memmove (Makefile.am): Likewise.
107498         * modules/mempcpy (Makefile.am): Likewise.
107499         * modules/memrchr (Makefile.am): Likewise.
107500         * modules/memset (Makefile.am): Likewise.
107501         * modules/memxor (Makefile.am): Likewise.
107502         * modules/mkancesdirs (Makefile.am): Likewise.
107503         * modules/mkdir-p (Makefile.am): Likewise.
107504         * modules/mkdir (Makefile.am): Likewise.
107505         * modules/mkdtemp (Makefile.am): Likewise.
107506         * modules/mkstemp (Makefile.am): Likewise.
107507         * modules/mktime (Makefile.am): Likewise.
107508         * modules/modechange (Makefile.am): Likewise.
107509         * modules/mountlist (Makefile.am): Likewise.
107510         * modules/nanosleep (Makefile.am): Likewise.
107511         * modules/obstack (Makefile.am): Likewise.
107512         * modules/openat (Makefile.am): Likewise.
107513         * modules/pagealign_alloc (Makefile.am): Likewise.
107514         * modules/pathmax (Makefile.am): Likewise.
107515         * modules/physmem (Makefile.am): Likewise.
107516         * modules/poll (Makefile.am): Likewise.
107517         * modules/posixtm (Makefile.am): Likewise.
107518         * modules/posixver (Makefile.am): Likewise.
107519         * modules/putenv (Makefile.am): Likewise.
107520         * modules/quote (Makefile.am): Likewise.
107521         * modules/quotearg (Makefile.am): Likewise.
107522         * modules/raise (Makefile.am): Likewise.
107523         * modules/read-file (Makefile.am): Likewise.
107524         * modules/readline (Makefile.am): Likewise.
107525         * modules/readlink (Makefile.am): Likewise.
107526         * modules/readtokens (Makefile.am): Likewise.
107527         * modules/readutmp (Makefile.am): Likewise.
107528         * modules/realloc (Makefile.am): Likewise.
107529         * modules/regex (Makefile.am): Likewise.
107530         * modules/rename-dest-slash (Makefile.am): Likewise.
107531         * modules/rename (Makefile.am): Likewise.
107532         * modules/rijndael (Makefile.am): Likewise.
107533         * modules/rmdir (Makefile.am): Likewise.
107534         * modules/rpmatch (Makefile.am): Likewise.
107535         * modules/safe-read (Makefile.am): Likewise.
107536         * modules/safe-write (Makefile.am): Likewise.
107537         * modules/same-inode (Makefile.am): Likewise.
107538         * modules/same (Makefile.am): Likewise.
107539         * modules/save-cwd (Makefile.am): Likewise.
107540         * modules/savedir (Makefile.am): Likewise.
107541         * modules/setenv (Makefile.am): Likewise.
107542         * modules/settime (Makefile.am): Likewise.
107543         * modules/sha1 (Makefile.am): Likewise.
107544         * modules/sig2str (Makefile.am): Likewise.
107545         * modules/snprintf (Makefile.am): Likewise.
107546         * modules/stat-macros (Makefile.am): Likewise.
107547         * modules/stat-time (Makefile.am): Likewise.
107548         * modules/stdbool (Makefile.am): Likewise.
107549         * modules/stdint (Makefile.am): Likewise.
107550         * modules/stdlib-safer (Makefile.am): Likewise.
107551         * modules/stpcpy (Makefile.am): Likewise.
107552         * modules/stpncpy (Makefile.am): Likewise.
107553         * modules/strcase (Makefile.am): Likewise.
107554         * modules/strcasestr (Makefile.am): Likewise.
107555         * modules/strchrnul (Makefile.am): Likewise.
107556         * modules/strcspn (Makefile.am): Likewise.
107557         * modules/strdup (Makefile.am): Likewise.
107558         * modules/strerror (Makefile.am): Likewise.
107559         * modules/strftime (Makefile.am): Likewise.
107560         * modules/strndup (Makefile.am): Likewise.
107561         * modules/strnlen (Makefile.am): Likewise.
107562         * modules/strpbrk (Makefile.am): Likewise.
107563         * modules/strsep (Makefile.am): Likewise.
107564         * modules/strstr (Makefile.am): Likewise.
107565         * modules/strtod (Makefile.am): Likewise.
107566         * modules/strtoimax (Makefile.am): Likewise.
107567         * modules/strtok_r (Makefile.am): Likewise.
107568         * modules/strtol (Makefile.am): Likewise.
107569         * modules/strtoll (Makefile.am): Likewise.
107570         * modules/strtoul (Makefile.am): Likewise.
107571         * modules/strtoull (Makefile.am): Likewise.
107572         * modules/strtoumax (Makefile.am): Likewise.
107573         * modules/strverscmp (Makefile.am): Likewise.
107574         * modules/sys_socket (Makefile.am): Likewise.
107575         * modules/sys_stat (Makefile.am): Likewise.
107576         * modules/sysexits (Makefile.am): Likewise.
107577         * modules/time_r (Makefile.am): Likewise.
107578         * modules/timegm (Makefile.am): Likewise.
107579         * modules/timespec (Makefile.am): Likewise.
107580         * modules/tmpfile-safer (Makefile.am): Likewise.
107581         * modules/trim (Makefile.am): Likewise.
107582         * modules/unistd-safer (Makefile.am): Likewise.
107583         * modules/unlinkdir (Makefile.am): Likewise.
107584         * modules/unlocked-io (Makefile.am): Likewise.
107585         * modules/userspec (Makefile.am): Likewise.
107586         * modules/utime (Makefile.am): Likewise.
107587         * modules/utimecmp (Makefile.am): Likewise.
107588         * modules/utimens (Makefile.am): Likewise.
107589         * modules/vasnprintf (Makefile.am): Likewise.
107590         * modules/vasprintf (Makefile.am): Likewise.
107591         * modules/vsnprintf (Makefile.am): Likewise.
107592         * modules/xalloc (Makefile.am): Likewise.
107593         * modules/xgetcwd (Makefile.am): Likewise.
107594         * modules/xnanosleep (Makefile.am): Likewise.
107595         * modules/xreadlink (Makefile.am): Likewise.
107596         * modules/xstrtod (Makefile.am): Likewise.
107597         * modules/xstrtol (Makefile.am): Likewise.
107598         * modules/xstrtold (Makefile.am): Likewise.
107599         * modules/yesno (Makefile.am): Likewise.
107600         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
107602 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107604         * modules/error (Makefile.am): Distribute files through
107605         EXTRA_DIST, not lib_SOURCES.
107607 2006-10-12  Eric Blake  <ebb9@byu.net>
107609         * modules/error (Makefile.am): Distribute files in /lib.
107610         * modules/obstack (Makefile.am): Likewise.
107612 2006-10-12  Bruno Haible  <bruno@clisp.org>
107614         * modules/acl (Makefile.am): Distribute all files in lib/ through
107615         EXTRA_DIST.
107616         * modules/arcfour (Makefile.am): Likewise.
107617         * modules/arctwo (Makefile.am): Likewise.
107618         * modules/argmatch (Makefile.am): Likewise.
107619         * modules/argz (Makefile.am): Likewise.
107620         * modules/atexit (Makefile.am): Likewise.
107621         * modules/backupfile (Makefile.am): Likewise.
107622         * modules/c-strtod (Makefile.am): Likewise.
107623         * modules/c-strtold (Makefile.am): Likewise.
107624         * modules/calloc (Makefile.am): Likewise.
107625         * modules/canon-host (Makefile.am): Likewise.
107626         * modules/canonicalize (Makefile.am): Likewise.
107627         * modules/chdir-long (Makefile.am): Likewise.
107628         * modules/chdir-safer (Makefile.am): Likewise.
107629         * modules/check-version (Makefile.am): Likewise.
107630         * modules/chown (Makefile.am): Likewise.
107631         * modules/cloexec (Makefile.am): Likewise.
107632         * modules/close-stream (Makefile.am): Likewise.
107633         * modules/closeout (Makefile.am): Likewise.
107634         * modules/crc (Makefile.am): Likewise.
107635         * modules/cycle-check (Makefile.am): Likewise.
107636         * modules/des (Makefile.am): Likewise.
107637         * modules/dirfd (Makefile.am): Likewise.
107638         * modules/dirname (Makefile.am): Likewise.
107639         * modules/dup2 (Makefile.am): Likewise.
107640         * modules/euidaccess (Makefile.am): Likewise.
107641         * modules/exclude (Makefile.am): Likewise.
107642         * modules/exitfail (Makefile.am): Likewise.
107643         * modules/fcntl-safer (Makefile.am): Likewise.
107644         * modules/file-type (Makefile.am): Likewise.
107645         * modules/fileblocks (Makefile.am): Likewise.
107646         * modules/filemode (Makefile.am): Likewise.
107647         * modules/filenamecat (Makefile.am): Likewise.
107648         * modules/fnmatch (Makefile.am): Likewise.
107649         * modules/fopen-safer (Makefile.am): Likewise.
107650         * modules/fpending (Makefile.am): Likewise.
107651         * modules/fprintftime (Makefile.am): Likewise.
107652         * modules/free (Makefile.am): Likewise.
107653         * modules/fsusage (Makefile.am): Likewise.
107654         * modules/ftruncate (Makefile.am): Likewise.
107655         * modules/fts (Makefile.am): Likewise.
107656         * modules/gc (Makefile.am): Likewise.
107657         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107658         * modules/getaddrinfo (Makefile.am): Likewise.
107659         * modules/getcwd (Makefile.am): Likewise.
107660         * modules/getdelim (Makefile.am): Likewise.
107661         * modules/getdomainname (Makefile.am): Likewise.
107662         * modules/getgroups (Makefile.am): Likewise.
107663         * modules/gethostname (Makefile.am): Likewise.
107664         * modules/gethrxtime (Makefile.am): Likewise.
107665         * modules/getline (Makefile.am): Likewise.
107666         * modules/getloadavg (Makefile.am): Likewise.
107667         * modules/getlogin_r (Makefile.am): Likewise.
107668         * modules/getopt (Makefile.am): Likewise.
107669         * modules/getpass (Makefile.am): Likewise.
107670         * modules/getpass-gnu (Makefile.am): Likewise.
107671         * modules/getsubopt (Makefile.am): Likewise.
107672         * modules/gettime (Makefile.am): Likewise.
107673         * modules/gettimeofday (Makefile.am): Likewise.
107674         * modules/getugroups (Makefile.am): Likewise.
107675         * modules/getusershell (Makefile.am): Likewise.
107676         * modules/glob (Makefile.am): Likewise.
107677         * modules/group-member (Makefile.am): Likewise.
107678         * modules/hard-locale (Makefile.am): Likewise.
107679         * modules/hash (Makefile.am): Likewise.
107680         * modules/hmac-md5 (Makefile.am): Likewise.
107681         * modules/hmac-sha1 (Makefile.am): Likewise.
107682         * modules/human (Makefile.am): Likewise.
107683         * modules/idcache (Makefile.am): Likewise.
107684         * modules/imaxabs (Makefile.am): Likewise.
107685         * modules/imaxdiv (Makefile.am): Likewise.
107686         * modules/inet_ntop (Makefile.am): Likewise.
107687         * modules/inet_pton (Makefile.am): Likewise.
107688         * modules/inttostr (Makefile.am): Likewise.
107689         * modules/isapipe (Makefile.am): Likewise.
107690         * modules/lchown (Makefile.am): Likewise.
107691         * modules/long-options (Makefile.am): Likewise.
107692         * modules/lstat (Makefile.am): Likewise.
107693         * modules/malloc (Makefile.am): Likewise.
107694         * modules/mathl (Makefile.am): Likewise.
107695         * modules/mbchar (Makefile.am): Likewise.
107696         * modules/md2 (Makefile.am): Likewise.
107697         * modules/md4 (Makefile.am): Likewise.
107698         * modules/md5 (Makefile.am): Likewise.
107699         * modules/memcasecmp (Makefile.am): Likewise.
107700         * modules/memchr (Makefile.am): Likewise.
107701         * modules/memcmp (Makefile.am): Likewise.
107702         * modules/memcoll (Makefile.am): Likewise.
107703         * modules/memcpy (Makefile.am): Likewise.
107704         * modules/memmem (Makefile.am): Likewise.
107705         * modules/memmove (Makefile.am): Likewise.
107706         * modules/mempcpy (Makefile.am): Likewise.
107707         * modules/memrchr (Makefile.am): Likewise.
107708         * modules/memset (Makefile.am): Likewise.
107709         * modules/memxor (Makefile.am): Likewise.
107710         * modules/mkancesdirs (Makefile.am): Likewise.
107711         * modules/mkdir (Makefile.am): Likewise.
107712         * modules/mkdir-p (Makefile.am): Likewise.
107713         * modules/mkdtemp (Makefile.am): Likewise.
107714         * modules/mkstemp (Makefile.am): Likewise.
107715         * modules/mktime (Makefile.am): Likewise.
107716         * modules/modechange (Makefile.am): Likewise.
107717         * modules/mountlist (Makefile.am): Likewise.
107718         * modules/nanosleep (Makefile.am): Likewise.
107719         * modules/openat (Makefile.am): Likewise.
107720         * modules/pagealign_alloc (Makefile.am): Likewise.
107721         * modules/physmem (Makefile.am): Likewise.
107722         * modules/poll (Makefile.am): Likewise.
107723         * modules/posixtm (Makefile.am): Likewise.
107724         * modules/posixver (Makefile.am): Likewise.
107725         * modules/putenv (Makefile.am): Likewise.
107726         * modules/quote (Makefile.am): Likewise.
107727         * modules/quotearg (Makefile.am): Likewise.
107728         * modules/raise (Makefile.am): Likewise.
107729         * modules/read-file (Makefile.am): Likewise.
107730         * modules/readline (Makefile.am): Likewise.
107731         * modules/readlink (Makefile.am): Likewise.
107732         * modules/readtokens (Makefile.am): Likewise.
107733         * modules/readutmp (Makefile.am): Likewise.
107734         * modules/realloc (Makefile.am): Likewise.
107735         * modules/regex (Makefile.am): Likewise.
107736         * modules/rename (Makefile.am): Likewise.
107737         * modules/rename-dest-slash (Makefile.am): Likewise.
107738         * modules/rijndael (Makefile.am): Likewise.
107739         * modules/rmdir (Makefile.am): Likewise.
107740         * modules/rpmatch (Makefile.am): Likewise.
107741         * modules/safe-read (Makefile.am): Likewise.
107742         * modules/safe-write (Makefile.am): Likewise.
107743         * modules/same (Makefile.am): Likewise.
107744         * modules/save-cwd (Makefile.am): Likewise.
107745         * modules/savedir (Makefile.am): Likewise.
107746         * modules/setenv (Makefile.am): Likewise.
107747         * modules/settime (Makefile.am): Likewise.
107748         * modules/sha1 (Makefile.am): Likewise.
107749         * modules/sig2str (Makefile.am): Likewise.
107750         * modules/snprintf (Makefile.am): Likewise.
107751         * modules/stdlib-safer (Makefile.am): Likewise.
107752         * modules/stpcpy (Makefile.am): Likewise.
107753         * modules/stpncpy (Makefile.am): Likewise.
107754         * modules/strcase (Makefile.am): Likewise.
107755         * modules/strcasestr (Makefile.am): Likewise.
107756         * modules/strchrnul (Makefile.am): Likewise.
107757         * modules/strcspn (Makefile.am): Likewise.
107758         * modules/strdup (Makefile.am): Likewise.
107759         * modules/strerror (Makefile.am): Likewise.
107760         * modules/strftime (Makefile.am): Likewise.
107761         * modules/strndup (Makefile.am): Likewise.
107762         * modules/strnlen (Makefile.am): Likewise.
107763         * modules/strpbrk (Makefile.am): Likewise.
107764         * modules/strsep (Makefile.am): Likewise.
107765         * modules/strstr (Makefile.am): Likewise.
107766         * modules/strtod (Makefile.am): Likewise.
107767         * modules/strtoimax (Makefile.am): Likewise.
107768         * modules/strtok_r (Makefile.am): Likewise.
107769         * modules/strtol (Makefile.am): Likewise.
107770         * modules/strtoll (Makefile.am): Likewise.
107771         * modules/strtoul (Makefile.am): Likewise.
107772         * modules/strtoull (Makefile.am): Likewise.
107773         * modules/strtoumax (Makefile.am): Likewise.
107774         * modules/strverscmp (Makefile.am): Likewise.
107775         * modules/time_r (Makefile.am): Likewise.
107776         * modules/timegm (Makefile.am): Likewise.
107777         * modules/tmpfile-safer (Makefile.am): Likewise.
107778         * modules/unistd-safer (Makefile.am): Likewise.
107779         * modules/unlinkdir (Makefile.am): Likewise.
107780         * modules/userspec (Makefile.am): Likewise.
107781         * modules/utime (Makefile.am): Likewise.
107782         * modules/utimecmp (Makefile.am): Likewise.
107783         * modules/utimens (Makefile.am): Likewise.
107784         * modules/vasnprintf (Makefile.am): Likewise.
107785         * modules/vasprintf (Makefile.am): Likewise.
107786         * modules/vsnprintf (Makefile.am): Likewise.
107787         * modules/xalloc (Makefile.am): Likewise.
107788         * modules/xgetcwd (Makefile.am): Likewise.
107789         * modules/xnanosleep (Makefile.am): Likewise.
107790         * modules/xreadlink (Makefile.am): Likewise.
107791         * modules/xstrtod (Makefile.am): Likewise.
107792         * modules/xstrtol (Makefile.am): Likewise.
107793         * modules/xstrtold (Makefile.am): Likewise.
107794         * modules/yesno (Makefile.am): Likewise.
107796 2006-10-12  Jim Meyering  <jim@meyering.net>
107798         * m4/getloadavg.m4: Revert the change below.
107800         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
107801         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
107802         fail with a symlink, which is what coreutils' ./bootstrap now
107803         creates by default.
107805 2006-10-12  Bruno Haible  <bruno@clisp.org>
107807         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
107808         mingw.
107809         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
107810         MSVC and mingw explicitly.
107812 2006-10-11  Simon Josefsson  <jas@extundo.com>
107813             Bruno Haible  <bruno@clisp.org>
107815         Add support for multiple gnulib-tool invocations in the scope of a
107816         single configure.ac file.
107817         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
107818         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
107819         with the same contents as the _LIBADD variable.
107820         (func_emit_initmacro_start, func_emit_initmacro_end,
107821         func_emit_initmacro_done): New functions.
107822         (func_import, func_create_testdir): Invoke them. Allow the identifiers
107823         gl_LIBOBJS and gl_LTLIBOBJS.
107825 2006-10-11  Bruno Haible  <bruno@clisp.org>
107827         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
107828         (func_create_testdir): Don't create po/Makefile.am, don't invoke
107829         autoreconf. Instead, invoke autopoint explicitly but move back the
107830         *.m4 files from gnulib.
107832 2006-10-11  Bruno Haible  <bruno@clisp.org>
107834         * gnulib-tool (func_usage): Make module names after --create-testdir
107835         optional.
107836         (func_create_testdir): If no module was specified, use nearly all
107837         modules.
107839 2006-10-12  Jim Meyering  <jim@meyering.net>
107841         Big performance improvement for fts-based tools that use FTS_NOSTAT.
107842         Avoid spurious inode-mismatch problems on non-POSIX file systems.
107843         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
107844         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
107845         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
107846         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
107847         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
107848         (fts_set_stat_required): New function.
107849         (fts_open): Defer the calls to fts_stat, if possible or requested.
107850         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
107851         into fts_stat itself.
107852         (fts_read): Perform any required (deferred) fts_stat call.
107853         (fts_build): Likewise, for the directory we're about to open and read.
107854         In the readdir loop, carefully decide whether each entry will require
107855         an eventual call to fts_stat, using dirent.d_type info if available.
107856         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
107857         a command line argument into this function.  Update all callers.
107858         Map a return value of FTS_DOT to FTS_D for a command line argument.
107859         * modules/fts (Depends-on): Add d-type.  Alphabetize.
107860         Thanks to Miklos Szeredi for his tenacity and for the initial
107861         bug report about "find" failing on a FUSE-based file system.
107863         * lib/fts.c (fts_open): Use consistent indentation.
107865 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
107868         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
107869         reported by Jim Meyering.  All uses of cache variables renamed
107870         to match Autoconf's.
107871         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
107872         the other one.
107874         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
107875         Fix misspelling in diagnostic.
107877 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
107879         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
107880         defined.  Problem reported by Matthew Woehlke.
107882         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
107883         Add support for Tandem NonStop R series.
107884         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
107885         Use new macro.
107887         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
107888         (has_trailing_slash): Omit size arg; all callers changed.
107889         Omit 'inline', since it doesn't help performance and we'd
107890         need to configure it.
107891         Don't count //, ///, etc. as having a trailing slash.
107892         As a side effect, this removes a C99ism reported by Matthew Woehlke.
107893         (rpl_rename_dest_slash): On failure, use rename's errno rather
107894         than (in some cases) an incorrect or junk errno.
107895         Simplify code by removing need to compute length; this does
107896         cause it to make two passes instead of one over the file name,
107897         but it's worth it.
107899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
107900         change, since Autoconf's version may no longer be appropriate now
107901         that we are using CVS Autoconf's version.  Add support for Tandem.
107903 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
107904             Bruno Haible  <bruno@clisp.org>
107906         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
107907         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
107908         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
107909         gl_AC_TYPE_LONG_LONG.
107911         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
107912         instead of HAVE_LONG_LONG.
107913         * lib/printf-args.c (printf_fetchargs): Likewise.
107914         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
107915         * lib/vasnprintf.c (VASNPRINTF): Likewise.
107916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
107917         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
107918         gl_AC_TYPE_LONG_LONG.
107920 2006-10-11  Bruno Haible  <bruno@clisp.org>
107922         * m4/longlong.m4: Add comments.
107923         * m4/ulonglong.m4: Likewise.
107925 2006-10-10  Bruno Haible  <bruno@clisp.org>
107927         Make it possible to #define stpcpy, strdup to aliases.
107928         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
107929         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
107931 2006-10-10  Bruno Haible  <bruno@clisp.org>
107933         Make it possible to #define gcd to an alias.
107934         * lib/gcd.c: Include config.h.
107936 2006-10-10  Bruno Haible  <bruno@clisp.org>
107938         Make it possible to #define c_isascii to an alias.
107939         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
107940         defined. Undefine the macros before defining them, to avoid gcc
107941         warnings.
107942         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
107943         define NO_C_CTYPE_MACROS early.
107945 2006-10-10  Bruno Haible  <bruno@clisp.org>
107947         Make it possible to #define set_program_name to an alias.
107948         * lib/progname.c: Don't undefine set_program_name; instead, undefine
107949         ENABLE_RELOCATABLE early.
107951 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
107953         Port to Tandem NSK OSS, which has 64-bit signed int but at most
107954         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
107955         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
107956         More generally, don't assume that 64-bit signed int is available
107957         if unsigned int is, and vice versa.
107958         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
107959         unsigned symbols, not on their signed counterparts.
107960         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
107961         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
107962         (UINT64_C, UINTMAX_C):
107963         Likewise.
107964         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
107965         unsigned counterparts.
107966         (Have_long_long, Unsigned): New macros.
107967         (Int): Renamed from INT.
107968         (strtoimax): Use the new macros.
107969         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
107970         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
107971         * modules/inttypes (inttypes.h): Substitute
107972         HAVE_UNSIGNED_LONG_LONG_INT.
107973         * modules/stdint (stdint.h): Likewise.
107974         (Files): Add m4/ulonglong.m4.
107976 2006-10-10  Bruno Haible  <bruno@clisp.org>
107978         Fix a gcc -Wshadow warning.
107979         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
107980         to 'bucket'.
107981         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
107982         gl_linked_indexof_from_to): Likewise.
107983         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
107984         Likewise.
107985         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
107986         Likewise.
107987         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
107988         Reported by Eric Blake.
107990 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
107992         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
107993         for NetBSD.  Problem reported by Bruno Haible.
107995 2006-10-09  Jim Meyering  <jim@meyering.net>
107997         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
107998         Patch from Bruno Haible.
108000 2006-10-09  Jim Meyering  <jim@meyering.net>
108002         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108003         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108004         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108006 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108008         Don't include <config.h> twice; this doesn't work in some cases,
108009         e.g., when config.h has "#define intmax_t long long int" and
108010         we include <config.h>, <inttypes.h>, <config.h> in that order.
108011         Problem reported by Matthew Woehlke in:
108012         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108013         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108014         * lib/fts-cycle.c: Don't include config.h.
108015         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108016         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108017         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108018         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108019         inttypes.h.
108020         * lib/xstrtoumax.c: Likewise.
108021         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108022         __strtol and the like, so that this module is more like its siblings.
108023         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108024         Remove; no longer needed now that we assume gnulib inttypes.h.
108026 2006-10-08  Bruno Haible  <bruno@clisp.org>
108028         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108029         option.
108031 2006-10-07  Jim Meyering  <jim@meyering.net>
108033         * modules/inttypes (inttypes.h): Revert what seems to have been
108034         an inadvertent part of today's change: use "|", not "/" in the
108035         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108037 2006-10-07  Bruno Haible  <bruno@clisp.org>
108039         * modules/sublist: New file.
108041 2006-10-07  Bruno Haible  <bruno@clisp.org>
108043         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108044         * modules/argz (argz.h): Likewise.
108045         * modules/arpa_inet (arpa/inet.h): Likewise.
108046         * modules/byteswap (byteswap.h): Likewise.
108047         * modules/configmake (configmake.h): Likewise.
108048         * modules/fcntl (fcntl.h): Likewise.
108049         * modules/fnmatch (fnmatch.h): Likewise.
108050         * modules/getopt (getopt.h): Likewise.
108051         * modules/glob (glob.h): Likewise.
108052         * modules/inttypes (inttypes.h): Likewise.
108053         * modules/netinet_in (netinet/in.h): Likewise.
108054         * modules/poll (poll.h): Likewise.
108055         * modules/stdbool (stdbool.h): Likewise.
108056         * modules/stdint (stdint.h): Likewise.
108057         * modules/sys_select (sys/select.h): Likewise.
108058         * modules/sys_socket (sys/socket.h): Likewise.
108059         * modules/sys_stat (sys/stat.h): Likewise.
108060         * modules/sysexits (sysexits.h): Likewise.
108061         * modules/unistd (unistd.h): Likewise.
108062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108063         Add a "DO NOT EDIT" comment to the generated file.
108064         (func_import): Likewise for gnulib-comp.m4.
108066 2006-10-07  Bruno Haible  <bruno@clisp.org>
108068         * lib/gl_sublist.h: New file.
108069         * lib/gl_sublist.c: New file.
108071 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108073         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108074         name (relative to the original working directory) and the file
108075         name component (relative to the temporary working directory).  All
108076         callers changed.
108077         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108078         * lib/mkdir-p.c (make_dir_parents): Likewise.
108079         * lib/mkdir-p.h (make_dir_parents): Likewise.
108081 2006-10-06  Eric Blake  <ebb9@byu.net>
108083         Define several macros for use by the clean-temp module.
108084         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108086         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108088         * lib/clean-temp.h (close_stream_temp): New declaration.
108089         * lib/clean-temp.c (includes): Pull in headers according to what
108090         other modules are in use.
108091         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108093 2006-10-06  Bruno Haible  <bruno@clisp.org>
108095         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108096         instead of fopen, fwriteerror.
108098 2006-10-06  Bruno Haible  <bruno@clisp.org>
108100         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108101         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108102         int.
108103         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108104         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108105         Return an error indicator.
108106         Suggested by Eric Blake.
108108 2006-10-06  Bruno Haible  <bruno@clisp.org>
108110         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108111         Reported by Eric Blake.
108113 2006-10-06  Bruno Haible  <bruno@clisp.org>
108115         * modules/closeout (Description): Mention stderr too.
108117 2006-10-06  Bruno Haible  <bruno@clisp.org>
108118         and Paul Eggert  <eggert@cs.ucla.edu>
108120         * lib/closeout.c (close_stdout): Also close stderr.
108121         * lib/closeout.h: Update comment.
108123 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108125         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108126         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108127         * lib/dirchownmod.c: Include lchown.h.
108128         * lib/lchown.c: Don't include files that lchown.h now includes.
108129         Don't declare chown, since lchown.h now does that.
108130         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108131         (lchown): Define to rpl_chown if lchown is declared but
108132         does not exist.  Declare using a prototype if lchown is not
108133         declared.  Add a copyright notice.
108134         * lib/mkstemp.h: Include <unistd.h>.
108135         * lib/openat.c: Include lchown.h.
108137         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108138         we now test for that separately.
108139         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108140         rather than O_NOFOLLOW, when testing whether it's possible to
108141         avoid a race condition reliably.
108142         * lib/savewd.c (savewd_chdir): Likewise.
108144         Remove macros that are no longer needed now that stdint.h is
108145         reliable.
108146         * lib/fsusage.c (UINTMAX_MAX): Remove.
108147         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108148         * lib/utimecmp.c (SIZE_MAX): Remove.
108150         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108152         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108153         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108154         O_NOATIME works.
108156 2006-10-05  Bruno Haible  <bruno@clisp.org>
108158         * lib/gl_list.h (gl_sortedlist_search_from_to,
108159         gl_sortedlist_indexof_from_to): New declarations.
108160         (gl_list_implementation): New fields sortedlist_search_from_to,
108161         sortedlist_indexof_from_to.
108162         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108163         inline functions.
108164         * lib/gl_list.c (gl_sortedlist_search_from_to,
108165         gl_sortedlist_indexof_from_to): New functions.
108166         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108167         function.
108168         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108169         (gl_array_sortedlist_search_from_to): New function.
108170         (gl_array_list_implementation): Update.
108171         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108172         function.
108173         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108174         (gl_carray_sortedlist_search_from_to): New function.
108175         (gl_carray_list_implementation): Update.
108176         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108177         gl_linked_sortedlist_indexof_from_to): New functions.
108178         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108179         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108180         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108181         gl_tree_sortedlist_indexof_from_to): New functions.
108182         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108183         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108184         Update.
108185         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108186         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108187         Update.
108189 2006-10-05  Bruno Haible  <bruno@clisp.org>
108191         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108192         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108193         (struct gl_list_implementation): Add fields search_from_to,
108194         indexof_from_to. Remove fields search, indexof.
108195         (gl_list_search): Use the search_from_to method.
108196         (gl_list_search_from, gl_list_search_from_to): New functions.
108197         (gl_list_indexof): Use the indexof_from_to method.
108198         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108199         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108200         (gl_list_search_from, gl_list_search_from_to): New functions.
108201         (gl_list_indexof): Use the indexof_from_to method.
108202         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108203         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108204         gl_array_indexof. Add start_index, end_index arguments.
108205         (gl_array_search_from_to): Renamed from gl_array_search. Add
108206         start_index, end_index arguments.
108207         (gl_array_remove, gl_array_list_implementation): Update.
108208         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108209         gl_carray_indexof. Add start_index, end_index arguments.
108210         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108211         start_index, end_index arguments.
108212         (gl_carray_remove, gl_carray_list_implementation): Update.
108213         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108214         gl_linked_search. Add start_index, end_index arguments.
108215         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108216         start_index, end_index arguments.
108217         (gl_linked_remove): Update.
108218         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108219         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108220         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108221         field to 'size_t'.
108222         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108223         gl_tree_search. Add start_index, end_index arguments.
108224         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108225         start_index, end_index arguments.
108226         (gl_tree_remove): Update.
108227         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108228         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108229         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108230         function.
108231         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108232         gl_tree_search. Add start_index, end_index arguments.
108233         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108234         start_index, end_index arguments.
108235         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108236         Update.
108237         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108239 2006-10-05  Bruno Haible  <bruno@clisp.org>
108241         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108243         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108244         fwriteerror_temp): New declarations.
108245         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108246         (descriptors): New variable.
108247         (cleanup): First, close the descriptors.
108248         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108249         fclose_temp, fwriteerror_temp): New functions.
108251 2006-10-04  Jim Meyering  <jim@meyering.net>
108253         * lib/fts.c (fts_open): Tiny comment change.
108255 2006-10-04  Bruno Haible  <bruno@clisp.org>
108257         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108259         gl_LOCK_BODY.
108260         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108261         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108262         gl_LOCK_EARLY_BODY.
108263         (gl_LOCK): Require gl_LOCK_BODY.
108265 2006-10-04  Bruno Haible  <bruno@clisp.org>
108267         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108268         (gl_oset_search_atleast): New declaration.
108269         (struct gl_oset_implementation): Add field 'search_atleast'.
108270         (gl_oset_search_atleast): New inline function.
108271         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108272         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108273         (gl_array_oset_implementation): Update.
108274         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108275         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108276         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108278 2006-10-04  Bruno Haible  <bruno@clisp.org>
108280         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108282 2006-10-03  Bruno Haible  <bruno@clisp.org>
108284         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108285         from gl_avltreehash_list_implementation.
108287 2006-10-03  Bruno Haible  <bruno@clisp.org>
108289         * lib/gl_oset.c (gl_oset_add): Fix return type.
108291 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108293         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108295 2006-10-02  Eric Blake  <ebb9@byu.net>
108297         * modules/strnlen (Depends-on): Add extensions.
108299 2006-10-02  Eric Blake  <ebb9@byu.net>
108301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108302         definition in 2.60+.
108304 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108306         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108307         checks.
108309 2006-10-02  Bruno Haible  <bruno@clisp.org>
108311         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108312         to the AUTOMAKE_OPTIONS.
108313         Reported by Jim Meyering.
108315 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108317         Work around bug in Solaris 10 /proc file system:
108318         /proc/self/fd/NNN/.. isn't the parent directory of
108319         the directory whose file descriptor is NNN.  This needs to
108320         be worked around at run time, not compile time, since a
108321         program might be built on Solaris 8, where things work, and
108322         run on Solaris 10.
108323         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108324         to use the following interface instead:
108325         (OPENAT_BUFFER_SIZE): New macro.
108326         (openat_proc_name): New function.
108327         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108328         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108329         Likewise.
108330         * lib/openat-proc.c: New file.
108331         * modules/openat (Files): Add lib/openat-proc.c.
108332         (Depends-on): Add same-inode, stdbool.
108333         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108335 2006-09-29  Bruno Haible  <bruno@clisp.org>
108337         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108338         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108339         argument. Set stdout_closed before testing for ferror, not after.
108340         (fwriteerror, fwriteerror_no_ebadf): New functions.
108342 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108344         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108346 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108348         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108349         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108351 2006-09-28  Jim Meyering  <jim@meyering.net>
108353         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108354         Include <unistd.h>.
108356 2006-09-28  Bruno Haible  <bruno@clisp.org>
108358         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108359         * modules/linkedhash-list (Depends-on): Likewise.
108360         * modules/rbtreehash-list (Depends-on): Likewise.
108362 2006-09-28  Bruno Haible  <bruno@clisp.org>
108364         * lib/strndup.h: Simplify the redefinition of strndup.
108365         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108366         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108368 2006-09-28  Bruno Haible  <bruno@clisp.org>
108370         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108371         * lib/gl_linkedhash_list.c: Likewise.
108372         * lib/gl_rbtreehash_list.c: Likewise.
108374 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108376         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108377         getaddrinfo.
108379         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108380         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108381         it causes <stdio_ext.h> to cause a compile-time error.
108382         Problem reported by Nelson H. F. Beebe.
108383         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108384         of HAVE_DECL___PENDING.
108386         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108387         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108388         declaration.
108390 2006-09-27  Jim Meyering  <jim@meyering.net>
108392         This file could end up with a definition for a function
108393         named __strndup, rather than rpl_strndup on a system with
108394         incomplete weak_alias support.
108395         * lib/strndup.c (strndup): Rename from __strndup.
108396         Remove #defines that used to map __strndup to strndup.
108397         Don't use K&R prototypes.
108398         Remove LIBC-related code, since this file is not sync'd with glibc.
108399         * lib/strndup.h: Revamp, accordingly.
108400         * m4/strndup.m4: Modernize.
108402 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108404         * modules/savewd (Depends-on): Add 'raise'.
108405         * lib/savewd.c: Include <signal.h>, for 'raise'.
108407 2006-09-26  Jim Meyering  <jim@meyering.net>
108409         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108410         when we detect Darwin 8.7.0's acl_get_file bug.
108411         Rearrange to perform the new (below) run-test while $LIBS
108412         contains any acl-related library.  Set USE_ACL at the end.
108413         (gl_ACL_GET_FILE): New function.
108415 2006-09-26  Eric Blake  <ebb9@byu.net>
108417         * lib/verror.c: Include <config.h> unconditionally.
108419 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108421         * modules/clock-time (Maintainer): Add self.
108422         * modules/getlogin_r (Depends-on): Add extensions.
108424 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108426         * modules/clock-time: New module.
108427         * modules/nanosleep (Depends-on): Add clock-time.
108428         * modules/gethrxtime (Depends-on): Likewise.
108429         * modules/gettime (Depends-on): Likewise.
108430         * modules/settime (Depends-on): Likewise.
108432         * modules/fts-lgpl: Depend on openat.
108433         * modules/mkancesdirs: Depend on savewd.
108434         * modules/mkdir-p: Likewise.
108436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108438         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108441         `gl_have_arbitrary_file_name_length_limit' to
108442         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108443         actually works between configure runs.
108445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108446             Bruno Haible  <bruno@clisp.org>
108448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108450 2006-09-25  Jim Meyering  <jim@meyering.net>
108452         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108453         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108455 2006-09-25  Eric Blake  <ebb9@byu.net>
108457         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108458         exec's in 2006-09-18 patch when shuffling fds.
108460 2006-09-25  Bruno Haible  <bruno@clisp.org>
108462         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108463         Reported by Jim Meyering.
108465 2006-09-24  Jim Meyering  <jim@meyering.net>
108467         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108468         compare a pointer against a literal "0".  That caused failures with
108469         at least HP-UX's hpcc.
108471 2006-09-22  Simon Josefsson  <jas@extundo.com>
108473         * modules/gc-sha1:
108474         * modules/gc-md4:
108475         * modules/gc-hmac-sha1:
108476         * modules/gc-hmac-md5:
108477         * modules/gc-des:
108478         * modules/gc-arcfour: Distribute more files.
108480 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108482         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108483         (gl_linked_iterator_from_to): Initialize struct completely.
108484         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108485         (gl_tree_iterator_from_to): Likewise
108486         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108487         * lib/gl_array_list.c [lint] (gl_array_iterator)
108488         (gl_array_iterator_from_to): Likewise.
108489         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108490         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108491         (gl_carray_iterator_from_to): Likewise.
108493         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108494         * lib/md4.c (md4_process_block): Remove unused variable.
108495         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108496         parentheses for clarity.
108498 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108500         * modules/bison-i18n (Depends-on): Add gettext.
108502 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108504         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108505         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108506         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108507         also add missing comma that caused broken test.
108508         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108509         stdlib.h, for `abort'.
108510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108511         variables.
108512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108513         include unistd.h if present, for `rmdir'.
108514         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108515         variables.
108516         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108517         in the process include standard headers for prototypes.
108518         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108519         gets declared on GNU/Linux.
108520         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108521         unistd.h, for `rmdir'.
108522         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108524         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108525         always true.
108526         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108530 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108532         * gnulib-tool (func_version): Create output all at once.  This
108533         may help avoid triggering unnecessary SIGPIPEs, and at any
108534         rate it doesn't hurt.
108536 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108537             Bruno Haible  <bruno@clisp.org>
108539         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108540         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108541         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108543         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108544         (gl_FUNC_VASPRINTF): Invoke it.
108546 2006-09-22  Bruno Haible  <bruno@clisp.org>
108548         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108549         getloadavg.c as first argument.
108551 2006-09-22  Bruno Haible  <bruno@clisp.org>
108553         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108554         at the beginning of the gl_INIT macro.
108555         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108556         gl_GETLOADAVG.
108558 2006-09-22  Bruno Haible  <bruno@clisp.org>
108560         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108561         module.
108562         Suggested by Ralf Wildenhues.
108564 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108566         Import this patch from libc:
108568         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108570         * lib/regex_internal.c (re_string_reconstruct): Handle
108571         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108572         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108573         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108574         re_string_context_at.
108576         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108577         now requires it.
108578         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108579         gl_REGEX now does it for us.
108580         (gl_REGEX): Add test taken from
108581         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108584         Check that large offsets work.  Modernize Autoconf usages.
108585         Prefer "yes" to mean a good thing rather than a bad.
108586         Don't put "#define mkstemp" in config.h, as this might interfere
108587         with standard system headers that "#define mkstemp mkstemp64".
108589         * modules/mkstemp (Depends-on): Add extensions, so that
108590         mkstemp is visible on some platforms.
108591         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
108592         (Include): Change to "mkstemp.h" from <stdlib.h>.
108593         (Files): Add mkstemp.h.
108595         * lib/mkstemp.h: New file, since some standard headers
108596         #define mkstemp.
108597         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
108598         Include "mkstemp.h".
108599         Make the _LIBC code resemble glibc original more,
108600         e.g., use K&R style.
108601         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
108602         (mkstemp): Remove, since mkstemp.h does this for us.
108603         * lib/stdlib--.h: Include mkstemp.h.
108605         Import this patch from libc:
108607         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108609         * lib/tempname.c (__gen_tempname): Change attempts_min
108610         into a macro.  Use preprocessor to decide how to initialize
108611         attempts [Coverity CID 67].
108613 2006-09-20  Bruno Haible  <bruno@clisp.org>
108615         * lib/mkdtemp.c: Import from libc.
108616         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108617                 * sysdeps/posix/tempname.c (__gen_tempname): Change
108618                 attempts_min into a macro.  Use preprocessor to decide how to
108619                 initialize attempts [Coverity CID 67].
108620         2001-11-27  Paul Eggert  <eggert@twinsun.com>
108621                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
108622                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
108624 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108626         * gnulib-tool (func_exit): New function, to allow to pass the
108627         exit status portably through the trap.  Use everywhere.
108628         (--help, --version): Signal a write error.
108629         (trap): catch SIGPIPE, for write errors.
108630         Exit at the end of the trap, with the correct exit status.
108632 2006-09-19  Karl Berry  <karl@gnu.org>
108634         * doc/gnulib.texi: note about the license texinfo files.
108636 2006-09-19  Eric Blake  <ebb9@byu.net>
108638         * gnulib-tool: Avoid space-tab.
108640 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108642         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
108643         that prevented coreutils 6.1 from building.  Problem reported
108644         by Petter Reinholdtsen.
108646 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108648         * gnulib-tool (avoidlist): Fix typo that broke options like
108649         --avoid=lock that are used by coreutils bootstrap.
108651 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
108653         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
108654         more systematically.
108656 2006-09-18  Jim Meyering  <jim@meyering.net>
108658         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
108660 2006-09-18  Bruno Haible  <bruno@clisp.org>
108662         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
108664 2006-09-18  Bruno Haible  <bruno@clisp.org>
108666         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
108667         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
108668         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
108669         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
108670         * m4/gettext.m4: Require autoconf >= 2.52.
108671         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
108672         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
108673         of gl_cv_header_inttypes_h.
108675 2006-09-18  Bruno Haible  <bruno@clisp.org>
108677         * lib/javaversion.c: Include configmake.h.
108679 2006-09-18  Bruno Haible  <bruno@clisp.org>
108681         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
108682         avoid that the while loops be executed in a subshell.
108684 2006-09-18  Bruno Haible  <bruno@clisp.org>
108686         * MODULES.html.sh (func_module): Break long lines.
108687         Suggested by Bruce Korb <bkorb@gnu.org>.
108689 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108691         Speed up by a factor of 1.12.
108692         * gnulib-tool (nl): New variable.
108693         (func_import): Rewrite include directive extraction to only read each
108694         directive once.
108696 2006-09-17  Bruno Haible  <bruno@clisp.org>
108698         * modules/javaversion (Makefile.am): Remove DEFS setting.
108699         (Depends-on): Add configmake, for PKGDATADIR definition.
108701 2006-09-17  Bruno Haible  <bruno@clisp.org>
108703         * gnulib-tool (func_create_testdir): Rewrite all files at once.
108705 2006-09-17  Bruno Haible  <bruno@clisp.org>
108707         * gnulib-tool (func_append): New function, stolen from libtool.m4.
108708         (func_modules_transitive_closure, func_modules_add_dummy,
108709         func_modules_to_filelist, func_import, func_create_testdir,
108710         func_create_megatestdir, ...): Use it wherever possible.
108711         Suggested by Ralf Wildenhues.
108713 2006-09-16  Karl Berry  <karl@gnu.org>
108715         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
108716         to avoid sectioning errors.
108717         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
108718         [ifinfo]: blank line after @center-ed titles.
108719         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
108720         Spell FSF address consistently with others.
108721         (These changes approved by rms.)
108723 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108725         Speed up by a factor of 1.61.
108726         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
108727         already checked module names again.
108729 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108731         Speed up by a factor of 1.13.
108732         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
108733         for new_files, and the input to func_add_or_update.
108735 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108737         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
108738         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
108740 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108742         * modules/mkancesdirs (Depends-on): Add fcntl.
108743         * modules/savewd: New file.
108744         * MODULES.html.sh (File system functions): Add savewd.
108746         * modules/configmake (Makefile.am): Add support for the
108747         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
108749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108751         * m4/savewd.m4: New file.
108753 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108755         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
108756         (dirchownmod): New arg FD.  All callers changed.
108757         Use FD rather than opening the directory ourself, as opening is
108758         now the caller's responsibility.
108759         * lib/dirchownmod.h: Likewise.
108760         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
108761         hosts that require <sys/types.h> before <sys/stat.h>.  Include
108762         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
108763         (test_dir): Remove.
108764         (mkancesdirs): Return length of prefix of FILE that has already
108765         been made, or -2 if there is a child doing the work.  Redo
108766         algorithm so that it is O(N) rather than O(N**2).  Optimize away
108767         ".", and treat ".." specially since it might stray back into
108768         already-created areas.  Use a subprocess if necessary.  New arg
108769         WD; all users changed.  MAKE_DIR function should now return 1
108770         if it creates a directory that is not readable.  Return -2 if
108771         a child process is spun off.
108772         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
108773         Adjust signature to match code.
108774         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
108775         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
108776         all users changed.
108777         * lib/savewd.c, lib/savewd.h: New files.
108779 2006-09-15  Jim Meyering  <jim@meyering.net>
108781         * modules/rename-dest-slash: New module.
108782         * MODULES.html.sh (posix_compat): Add it here.
108784         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
108786 2006-09-15  Jim Meyering  <jim@meyering.net>
108788         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
108789         file.
108791         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
108793 2006-09-15  Jim Meyering  <jim@meyering.net>
108795         * lib/rename-dest-slash.c (has_trailing_slash): Use
108796         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
108797         (rpl_rename_dest_slash): Perform the cheaper trailing slash
108798         test before testing whether SRC is a directory.
108799         Suggestions from Bruno Haible.
108801         Avoid a warning about an unused variable.
108802         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
108803         into the #ifdef block where it's used.
108805         * lib/rename-dest-slash.c: New file.
108807 2006-09-14  Bruno Haible  <bruno@clisp.org>
108809         * lib/allocsa.c: Include <config.h> unconditionally.
108810         * lib/asnprintf.c: Likewise.
108811         * lib/asprintf.c: Likewise.
108812         * lib/c-strcasecmp.c: Likewise.
108813         * lib/c-strcasestr.c: Likewise.
108814         * lib/c-strncasecmp.c: Likewise.
108815         * lib/c-strstr.c: Likewise.
108816         * lib/classpath.c: Likewise.
108817         * lib/clean-temp.c: Likewise.
108818         * lib/concatpath.c: Likewise.
108819         * lib/copy-file.c: Likewise.
108820         * lib/csharpcomp.c: Likewise.
108821         * lib/csharpexec.c: Likewise.
108822         * lib/execute.c: Likewise.
108823         * lib/fatal-signal.c: Likewise.
108824         * lib/findprog.c: Likewise.
108825         * lib/fwriteerror.c: Likewise.
108826         * lib/gl_array_list.c: Likewise.
108827         * lib/gl_array_oset.c: Likewise.
108828         * lib/gl_avltree_list.c: Likewise.
108829         * lib/gl_avltree_oset.c: Likewise.
108830         * lib/gl_avltreehash_list.c: Likewise.
108831         * lib/gl_carray_list.c: Likewise.
108832         * lib/gl_linked_list.c: Likewise.
108833         * lib/gl_linkedhash_list.c: Likewise.
108834         * lib/gl_list.c: Likewise.
108835         * lib/gl_oset.c: Likewise.
108836         * lib/gl_rbtree_list.c: Likewise.
108837         * lib/gl_rbtree_oset.c: Likewise.
108838         * lib/gl_rbtreehash_list.c: Likewise.
108839         * lib/imaxabs.c: Likewise.
108840         * lib/imaxdiv.c: Likewise.
108841         * lib/javacomp.c: Likewise.
108842         * lib/javaexec.c: Likewise.
108843         * lib/javaversion.c: Likewise.
108844         * lib/linebreak.c: Likewise.
108845         * lib/localcharset.c: Likewise.
108846         * lib/lock.c: Likewise.
108847         * lib/mbchar.c: Likewise.
108848         * lib/mbswidth.c: Likewise.
108849         * lib/mkdtemp.c: Likewise.
108850         * lib/pipe.c: Likewise.
108851         * lib/printf-args.c: Likewise.
108852         * lib/printf-parse.c: Likewise.
108853         * lib/progname.c: Likewise.
108854         * lib/progreloc.c: Likewise.
108855         * lib/readlink.c: Likewise.
108856         * lib/sh-quote.c: Likewise.
108857         * lib/stpcpy.c: Likewise.
108858         * lib/stpncpy.c: Likewise.
108859         * lib/strcasecmp.c: Likewise.
108860         * lib/strcasestr.c: Likewise.
108861         * lib/strcspn.c: Likewise.
108862         * lib/striconv.c: Likewise.
108863         * lib/strncasecmp.c: Likewise.
108864         * lib/strnlen1.c: Likewise.
108865         * lib/strstr.c: Likewise.
108866         * lib/strtok_r.c: Likewise.
108867         * lib/tls.c: Likewise.
108868         * lib/tmpdir.c: Likewise.
108869         * lib/unicodeio.c: Likewise.
108870         * lib/unsetenv.c: Likewise.
108871         * lib/vasnprintf.c: Likewise.
108872         * lib/vasprintf.c: Likewise.
108873         * lib/wait-process.c: Likewise.
108874         * lib/xallocsa.c: Likewise.
108875         * lib/xsetenv.c: Likewise.
108876         * lib/xstriconv.c: Likewise.
108878 2006-09-13  Simon Josefsson  <jas@extundo.com>
108880         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
108881         that internally, suggested by Ralf Wildenhues
108882         <Ralf.Wildenhues@gmx.de>.
108884 2006-09-13  Simon Josefsson  <jas@extundo.com>
108886         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
108887         @LIBOBJS@.
108888         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108890 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108892         * lib/_fpending.c: Include <config.h> unconditionally, since we no
108893         longer worry about uses that don't define HAVE_CONFIG_H.
108894         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
108895         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
108896         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
108897         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
108898         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
108899         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
108900         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
108901         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
108902         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
108903         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
108904         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
108905         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
108906         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
108907         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
108908         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
108909         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
108910         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
108911         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
108912         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
108913         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
108914         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
108915         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
108916         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
108917         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
108918         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
108919         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
108920         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
108921         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
108922         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
108923         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
108924         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
108925         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
108926         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
108927         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
108928         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
108929         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
108930         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
108931         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
108932         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
108933         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
108934         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
108935         Likewise.
108937 2006-09-13  Eric Blake  <ebb9@byu.net>
108939         * lib/getopt.c: Fix typo in last commit.
108941 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
108943         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
108944         dgettext.
108946 2006-09-12  Jim Meyering  <jim@meyering.net>
108948         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
108949         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
108950         Reported by Nelson H. F. Beebe.
108952 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108954         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
108955         program_invocation_name and program_invocation_short_name are
108956         initialized.
108957         * lib/argp-namefrob.h: Move declarations of program_invocation_name
108958         and program_invocation_short_name to argp.h, so they are visible
108959         to user programs.
108960         * lib/argp.h: Likewise
108962 2006-09-10  Bruno Haible  <bruno@clisp.org>
108964         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
108965         m4/inttypes_h.m4, m4/uintmax_t.m4.
108967 2006-09-10  Bruno Haible  <bruno@clisp.org>
108969         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
108970         gl_AC_TYPE_UINTMAX_T.
108972 2006-09-10  Bruno Haible  <bruno@clisp.org>
108974         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
108976 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108978         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
108979         convention.  Text proposed by Bruno Haible.
108980         (struct argp_option): Document the use of N_() wrappers.
108982         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
108983         '\v', and translate the two parts separately, instead of feeding
108984         the whole string to gettext.  This allows to exclude
108985         '\v' from the strings visible to the translator by writing doc
108986         strings as N_("..") "\v" N_("..").
108988 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
108990         * config/srclist.txt: Undo latest change; the bug was fixed.
108992 2006-09-09  Bruno Haible  <bruno@clisp.org>
108994         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
108995         assignments if building a library without libtool.
108996         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
108997         in func_emit_lib_Makefile_am.
108998         (func_import): When building a static library libfoo.a, arrange to
108999         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109000         (func_create_testdir): Likewise.
109001         * modules/gc (configure.ac, Makefile.am): If building statically,
109002         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109003         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109004         * modules/striconv (configure.ac, Makefile.am): Likewise.
109005         Based on a suggestion by Ralf Wildenhues.
109007 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109009         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109010         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109011         Also:
109013         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109014         Add year_2050_test to catch glibc bug 2821
109015         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109017         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109018         Prefer #ifdef to #if.
109020         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109021         Return from 'main' instead of calling 'exit'.
109023 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109025         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109026         returned the maximum time_t value rather than (time_t) -1.
109027         Problem originally reported by William Bardwell
109028         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109030         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109031         Moved to here ...
109032         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109033         ... from here.
109035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109037         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109038         2821 is fixed.
109040 2006-09-08  Jim Meyering  <jim@meyering.net>
109042         Don't make generated files read-only.  That would bother too many
109043         people.  However, do retain the ability to work when targets are
109044         read-only: remove the destination and temporary files before writing
109045         them (when generated via sed or echo), or by using the -f option for
109046         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109047         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109048         * modules/byteswap, modules/configmake, modules/fcntl:
109049         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109050         * modules/localcharset, modules/netinet_in, modules/poll:
109051         * modules/stdbool, modules/stdint, modules/sys_select:
109052         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109054 2006-09-08  Jim Meyering  <jim@meyering.net>
109056         Avoid new build failure on FreeBSD 6.0.
109057         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109058         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109059         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109061 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109065 2006-09-07  Jim Meyering  <jim@meyering.net>
109067         Fix global typo in last change: use chmod u-w, not chmod u-x.
109068         Spotted by Paul Eggert and Bruce Korb.
109069         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109070         * modules/byteswap, modules/configmake, modules/fcntl:
109071         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109072         * modules/localcharset, modules/netinet_in, modules/poll:
109073         * modules/stdbool, modules/stdint, modules/sys_select:
109074         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109076 2006-09-06  Jim Meyering  <jim@meyering.net>
109078         Make generated files be read-only.
109079         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109080         Ensure that each generated file is now read-only.
109081         * modules/argz: Likewise.
109082         * modules/arpa_inet: Likewise.
109083         * modules/byteswap: Likewise.
109084         * modules/configmake: Likewise.
109085         * modules/fcntl: Likewise.
109086         * modules/fnmatch: Likewise.
109087         * modules/getopt: Likewise.
109088         * modules/glob: Likewise.
109089         * modules/inttypes: Likewise.
109090         * modules/netinet_in: Likewise.
109091         * modules/poll: Likewise.
109092         * modules/stdbool: Likewise.
109093         * modules/stdint: Likewise.
109094         * modules/sys_select: Likewise.
109095         * modules/sys_socket: Likewise.
109096         * modules/sys_stat: Likewise.
109097         * modules/sysexits: Likewise.
109098         * modules/localcharset: Same as above, but continue using temporary
109099         file named "t-$@" (why different?) rather than the "$@-t" used
109100         everywhere else.
109102         * modules/sysexits (Makefile.am): Replace literal occurrences
109103         of "sysexit.h" more readable, and more consistent, "$@".
109105 2006-09-06  Bruno Haible  <bruno@clisp.org>
109107         * modules/striconv: New file.
109108         * modules/xstriconv: New file.
109109         * MODULES.html.sh (Internationalization functions): Add striconv,
109110         xstriconv.
109112 2006-09-06  Bruno Haible  <bruno@clisp.org>
109114         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109115         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109116         not using libtool correctly.
109118 2006-09-06  Bruno Haible  <bruno@clisp.org>
109120         * lib/striconv.h: New file.
109121         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109122         iconvstring.c.
109123         * lib/xstriconv.h: New file.
109124         * lib/xstriconv.c: New file.
109126 2006-09-06  Bruno Haible  <bruno@clisp.org>
109128         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109129         lib_..._LDFLAGS.
109131 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109133         * lib/argz_.h: Sync from Libtool.
109135         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109136                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109138         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109140 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109142         * modules/trim: New file.
109144 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109146         * lib/trim.h: New file.
109147         * lib/trim.c: New file.
109149 2006-09-05  Bruno Haible  <bruno@clisp.org>
109151         * MODULES.html.sh (String handling): Add trim.
109153 2006-09-04  Karl Berry  <karl@gnu.org>
109155         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109156         until next release.
109158 2006-09-03  Bruno Haible  <bruno@clisp.org>
109160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109161         correctly.
109163 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109165         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109166         not gl_GETLOADAVG.  Omit unneeded semicolons.
109167         Problems reported by Ralf Wildenhues in
109168         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109169         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109170         at the end, which is the usual gnulib style.
109172         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109173         of doing all the work ourselves.
109174         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109175         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109177 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109179         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109180         Problem reported by Ralf Wildenhues in
109181         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109183         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109184         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109186 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109188         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109189         yesterday's patch by changing test -n to test -z.
109191 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109193         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109194         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109195         the former is now obsolescent.
109197         * modules/chdir-long (Depends-on): Add fcntl.
109199 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109201         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109202         obsolescent, and programs should use gnulib instead.
109203         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109204         but with prefixes changed.
109206 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109208         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109209         or stdbool.h, because they might not exist while configuring.
109211         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109212         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109213         does that for us.
109214         (O_DIRECTORY): Remove.
109216 2006-08-31  Eric Blake  <ebb9@byu.net>
109218         * gnulib-tool: Don't let emacs change spaces to TAB.
109220 2006-08-31  Bruno Haible  <bruno@clisp.org>
109222         * gnulib-tool: When calling func_import more than once, do it in a
109223         subshell.
109224         Reported by Eric Blake <ebb9@byu.net>.
109226 2006-08-31  Bruno Haible  <bruno@clisp.org>
109228         * gnulib-tool (nl): Remove variable.
109229         (sed_transform_lib_file): Use more robust test for config-h module.
109230         (func_import): Fix typo in 2006-08-25 patch.
109232 2006-08-31  Bruno Haible  <bruno@clisp.org>
109234         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109235         specified, augment Makefile.am variables instead of assigning them.
109237 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109239         Work around a bug in both the Linux and SunOS 64-bit kernels:
109240         nanosleep mishandles sleeps for longer than 2**31 seconds.
109241         Problem reported by Frank v Waveren in
109242         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109244         Check for nanosleep bug.
109245         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109247 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109249         Work around a bug in both the Linux and SunOS 64-bit kernels:
109250         nanosleep mishandles sleeps for longer than 2**31 seconds.
109251         Problem reported by Frank v Waveren in
109252         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109253         * lib/nanosleep.c (BILLION): New constant.
109254         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109255         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109256         implementation.
109258 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109260         * modules/nanosleep (Depends-on): Add gettime.
109262 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109263         and Simon Josefsson  <jas@extundo.com>
109264         and Oskar Liljeblad  <oskar@osk.mine.nu>
109266         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109267         * gnulib-tool (func_import): New license type 'unmodifiable license
109268         text'.
109269         * modules/fdl: Use it.  Longer description.
109270         * module/gpl, module/lgpl: New files.
109272 2006-08-30  Jim Meyering  <jim@meyering.net>
109274         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109275         shadowing the parameter.
109277 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109279         Sync from Libtool:
109281         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109283         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109284         sharing with gnulib.  Report by Eric Blake.
109286 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109288         * modules/isapipe: New file.
109289         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109291 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109293         * modules/configmake (Makefile.am): Add a comment, and omit
109294         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109295         by Bruno Haible.
109297 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109299         * m4/isapipe.m4: New file.
109301 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109303         * lib/isapipe.c, lib/isapipe.h: New files.
109305 2006-08-29  Jim Meyering  <jim@meyering.net>
109307         * modules/configmake (Makefile.am): Make configmake.h depend on
109308         Makefile.  Otherwise, a stale configmake.h could hang around.
109310 2006-08-29  Eric Blake  <ebb9@byu.net>
109312         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109313         resolution of upstream bug 3044.
109315 2006-08-29  Bruno Haible  <bruno@clisp.org>
109317         * modules/localcharset (Depends-on): Add configmake.
109318         (Makefile.am): Remove setting of LIBDIR through DEFS.
109320 2006-08-29  Bruno Haible  <bruno@clisp.org>
109322         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109323         defined.
109325 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109327         * modules/fcntl: New file.
109328         * modules/chdir-safer (Depends-on): Add fcntl.
109329         * modules/fts: Likewise.
109330         * modules/mkdir-p: Likewise.
109332         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109333         This undoes the most recent change, since we're now addressing the
109334         problem in a different way.
109336         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109337         into output, since the output might be called Makefile.am even
109338         if $makefile_name is something different.
109339         (func_import): Use $makefile_am rather than
109340         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109341         empty.
109343         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109345 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109347         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109348         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109349         recent change to stdint.m4, since we're now addressing the problem in a
109350         different way.
109352 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109354         * m4/fcntl_h.m4: New file.
109356 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109358         * lib/fcntl_.h: New file.
109359         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109360         the fcntl module.
109361         * lib/dirchownmod.c: Likewise.
109362         * lib/fts.c: Likewise.
109364         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109365         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109366         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109367         just before including <inttypes.h>, to avoid circular inclusion.
109369 2006-08-28  Jim Meyering  <jim@meyering.net>
109371         * doc/visibility.texi: Actually read and correct the grammar of the
109372         sentence affected by yesterday's change.
109374 2006-08-28  Eric Blake  <ebb9@byu.net>
109376         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109377         needs wrapper.
109379 2006-08-28  Eric Blake  <ebb9@byu.net>
109381         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109383 2006-08-28  Eric Blake  <ebb9@byu.net>
109385         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109387 2006-08-28  Bruno Haible  <bruno@clisp.org>
109389         * modules/c-strstr: New file, from GNU gettext.
109390         * MODULES.html.sh (String handling): Add c-strstr.
109392 2006-08-28  Bruno Haible  <bruno@clisp.org>
109394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109395         macros.
109396         Reported by Eric Blake.
109398 2006-08-28  Bruno Haible  <bruno@clisp.org>
109400         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109401         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109402         * lib/vasprintf.c: Include errno.h, limits.h.
109403         (EOVERFLOW): New fallback definition.
109404         (vasprintf): Test here whether the string length is > INT_MAX.
109405         * lib/vsnprintf.c: Include errno.h, limits.h.
109406         (EOVERFLOW): New fallback definition.
109407         (vsnprintf): Fix bug when generated string was too long for the buffer.
109408         Test here whether the string length is > INT_MAX.
109410 2006-08-28  Bruno Haible  <bruno@clisp.org>
109412         * lib/inttypes_.h (SCNX*): Remove definitions.
109413         Reported by Eric Blake.
109415 2006-08-28  Bruno Haible  <bruno@clisp.org>
109417         * lib/c-strstr.h: New file, from GNU gettext.
109418         * lib/c-strstr.c: New file, from GNU gettext.
109420 2006-08-28  Bruno Haible  <bruno@clisp.org>
109422         * gnulib-tool: Reorder some statements.
109424 2006-08-28  Bruno Haible  <bruno@clisp.org>
109426         * gnulib-tool: New option --makefile-name.
109427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109428         $makefile_name.
109429         (func_import): Write $makefile_name to the cache file, and read it from
109430         there unless explicitly specified. Use $makefile_name as file name
109431         instead of Makefile.am. Adjust the recommendations accordingly.
109433 2006-08-28  Bruno Haible  <bruno@clisp.org>
109435         * gnulib-tool (func_verify_module): Check against misapplying patch.
109437 2006-08-28  Bruno Haible  <bruno@clisp.org>
109439         * gnulib-tool (func_relativize, func_relconcat): New functions.
109440         Give an error if --local-dir is given with --update.
109441         Remove trailing slashes from $local_gnulib_dir.
109442         (func_import): Store the relativized $local_gnulib_dir in
109443         gnulib-cache.m4, and read it from there if not specified explicitly.
109445 2006-08-28  Bruno Haible  <bruno@clisp.org>
109447         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109448         is the current directory. Respect also $local_gnulib_dir.
109450 2006-08-28  Bruno Haible  <bruno@clisp.org>
109451             Simon Josefsson  <jas@extundo.com>
109453         BeOS portability.
109454         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109456 2006-08-27  Jim Meyering  <jim@meyering.net>
109458         * doc/visibility.texi: Remove duplicate word: "pointer".
109460 2006-08-26  Bruno Haible  <bruno@clisp.org>
109462         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109463         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109464         (Makefile.am): Create inttypes.h from inttypes_.h.
109465         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109467         * modules/imaxabs: New file.
109469         * modules/imaxdiv: New file.
109471 2006-08-26  Bruno Haible  <bruno@clisp.org>
109473         * m4/inttypes.m4: New file.
109474         * m4/_inttypes_h.m4: Remove file.
109475         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109476         PRI_MACROS_BROKEN.
109477         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109479         * m4/imaxabs.m4: New file.
109481         * m4/imaxdiv.m4: New file.
109483 2006-08-26  Bruno Haible  <bruno@clisp.org>
109485         * lib/inttypes_.h: New file.
109486         * lib/inttypes.h: Remove file.
109487         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109489         * lib/imaxabs.c: New file.
109491         * lib/imaxdiv.c: New file.
109493 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109495         New config-h module, so that "make" output needn't be cluttered
109496         by -DHAVE_CONFIG_H.
109497         * MODULES.html.sh (Support for building libraries and executables):
109498         Add config-h.
109499         * modules/config-h: New file.
109500         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109501         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109502         the config-h module is used.
109504         New configmake module, so that "make" output needn't be cluttered
109505         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109506         * MODULES.html.sh (Support for building libraries and executables):
109507         Add configmake.
109508         * modules/configmake: New file.
109510 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109512         * m4/config-h.m4: New file.
109514 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109516         * config/srclist.txt: Add elisp-comp.
109518 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109520         * MODULES.html.sh (Support for building libraries and executables):
109521         Add elisp-comp.
109522         * build-aux/elisp-comp: New file.
109523         * modules/elisp-comp: New file.
109525 2006-08-24  Bruno Haible  <bruno@clisp.org>
109527         * gnulib-tool (func_create_testdir): Use non-default values of
109528         sourcebase and m4base.
109530 2006-08-24  Bruno Haible  <bruno@clisp.org>
109532         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109533         HTML structure.
109535 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109537         * modules/openat (Depends-on): Add lchown.
109539 2006-08-23  Bruno Haible  <bruno@clisp.org>
109541         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109542         of gl_LOCK_EARLY instead of gl_LOCK.
109544 2006-08-23  Bruno Haible  <bruno@clisp.org>
109546         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109547         on OSF/1 to no.
109548         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109550 2006-08-23  Bruno Haible  <bruno@clisp.org>
109552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109553         as unusable.
109555         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109556         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109557         (gl_LOCK): New macro.
109559 2006-08-22  Simon Josefsson  <jas@extundo.com>
109561         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109562         to md5 module.
109564 2006-08-22  Simon Josefsson  <jas@extundo.com>
109566         * MODULES.html.sh: Add "Support for maintaining and release
109567         projects".
109569         * build-aux/gnupload: New file, from coreutils.
109571 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109573         Avoid the need for AC_LIBSOURCES in m4 macros.
109574         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109575         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109576         * modules/check-version (EXTRA_DIST): Add check-version.h.
109577         * modules/crc (EXTRA_DIST): Add crc.h.
109578         * modules/des (EXTRA_DIST): Add des.h.
109579         * modules/gc (EXTRA_DIST): Add gc.h.
109580         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109581         * modules/getline (EXTRA_DIST): Add getline.h.
109582         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109583         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109584         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109585         * modules/md2 (EXTRA_DIST): Add md2.h.
109586         * modules/md4 (EXTRA_DIST): Add md4.h.
109587         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
109588         * modules/read-file (EXTRA_DIST): Add read-file.h.
109589         * modules/readline (EXTRA_DIST): Add readline.h.
109590         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
109591         rijndael-api-fst.h.
109593 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109595         * m4/rijndael.m4 (gl_ARCFOUR):
109596         * m4/arctwo.m4 (gl_ARCTWO):
109597         * m4/check-version.m4 (gl_CHECK_VERSION):
109598         * m4/crc.m4 (gl_CRC):
109599         * m4/des.m4 (gl_DES):
109600         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
109601         * m4/gc.m4 (gl_GC):
109602         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
109603         * m4/getline.m4 (gl_FUNC_GETLINE):
109604         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
109605         * m4/hmac-md5.m4 (gl_HMAC_MD5):
109606         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
109607         * m4/md2.m4 (gl_MD2):
109608         * m4/md4.m4 (gl_MD4):
109609         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
109610         * m4/read-file.m4 (gl_FUNC_READ_FILE):
109611         * m4/readline.m4 (gl_FUNC_READLINE):
109612         * m4/rijndael.m4 (gl_RIJNDAEL):
109613         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109614         to get the necessary .h files and whatnot.
109616 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109618         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
109619         gnulib rather than the other way around.
109620         * config/srclistvars.sh (COREUTILS): Remove.
109622 2006-08-22  Jim Meyering  <jim@meyering.net>
109624         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
109626         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
109628 2006-08-22  Eric Blake  <ebb9@byu.net>
109630         * modules/regexprops-generic: New file.
109631         * MODULES.html.sh (Support for building documentation): List it.
109633 2006-08-22  Eric Blake  <ebb9@byu.net>
109635         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
109636         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
109637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
109638         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
109640 2006-08-22  Bruno Haible  <bruno@clisp.org>
109642         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
109643         and lib_LTLIBRARIES like the other lib_* variables.
109645 2006-08-22  Bruno Haible  <bruno@clisp.org>
109647         * build-aux/x-to-1.in: New file, from GNU gettext.
109649 2006-08-22  Bruno Haible  <bruno@clisp.org>
109651         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
109652         <utmpx.h> exists.
109654 2006-08-22  Bruno Haible  <bruno@clisp.org>
109656         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
109657         <utmpx.h> exists.
109659 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109661         BeOS portability.
109662         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
109663         exist.
109664         Problem reported by Bruno Haible.
109666 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109668         Avoid the need for AC_LIBSOURCES in m4 macros.
109669         * modules/acl (EXTRA_DIST): Add acl.h.
109670         * modules/argmatch (Files): Add m4/argmatch.m4.
109671         (configure.ac): Add gl_ARGMATCH.
109672         (EXTRA_DIST): Renamed from lib_SOURCES, for
109673         consistency with the other modules.  Remove argmatch.c.
109674         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
109675         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
109676         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
109677         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
109678         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
109679         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
109680         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
109681         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
109682         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
109683         * modules/closeout (EXTRA_DIST): Add closeout.h.
109684         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
109685         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
109686         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
109687         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
109688         dirname.h; remove basename.c and stripslash.c.
109689         * modules/exclude (EXTRA_DIST): Add exclude.h.
109690         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
109691         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
109692         * modules/file-type (EXTRA_DIST): Add file-type.h.
109693         * modules/filemode (EXTRA_DIST): Add filemode.h.
109694         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
109695         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109696         * modules/fpending (EXTRA_DIST): Add __fpending.h.
109697         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
109698         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
109699         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
109700         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
109701         * modules/getdate (EXTRA_DIST): Add getdate.c.
109702         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
109703         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
109704         * modules/getpass (EXTRA_DIST): Add getpass.h.
109705         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
109706         * modules/group-member (EXTRA_DIST): Add group-member.h.
109707         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
109708         * modules/hash (EXTRA_DIST): Add hash.h.
109709         * modules/human (EXTRA_DIST): Add human.h.
109710         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
109711         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
109712         * modules/lchown (EXTRA_DIST): Add lchown.h.
109713         * modules/long-options (EXTRA_DIST): Add long-options.h.
109714         * modules/lstat (EXTRA_DIST): Add lstat.h.
109715         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
109716         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
109717         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
109718         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
109719         * modules/memxor (EXTRA_DIST): Add memxor.h.
109720         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
109721         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
109722         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
109723         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
109724         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
109725         * modules/physmem (EXTRA_DIST): Add physmem.h.
109726         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
109727         * modules/posixver (EXTRA_DIST): Add posixver.h.
109728         * modules/quote (EXTRA_DIST): Add quote.h.
109729         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
109730         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
109731         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
109732         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
109733         regex_internal.h regexec.c.
109734         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
109735         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
109736         * modules/same (EXTRA_DIST): Add same.h.
109737         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
109738         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
109739         * modules/savedir (EXTRA_DIST): Add savedir.h.
109740         * modules/sha1 (EXTRA_DIST): Add sha1.h.
109741         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
109742         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
109743         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
109744         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
109745         * modules/strdup (EXTRA_DIST): Add strdup.h.
109746         * modules/strftime (EXTRA_DIST): Add strftime.h.
109747         * modules/strndup (EXTRA_DIST): Add strndup.h.
109748         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
109749         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
109750         * modules/time_r (EXTRA_DIST): Add time_r.h.
109751         * modules/timespec (EXTRA_DIST): Add timespec.h.
109752         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109753         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
109754         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
109755         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
109756         * modules/userspec (EXTRA_DIST): Add userspec.h.
109757         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
109758         * modules/utimens (EXTRA_DIST): Add utimens.h.
109759         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
109760         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
109761         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
109762         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
109763         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
109764         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
109765         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
109766         * modules/yesno (EXTRA_DIST): Add yesno.h.
109768 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109770         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
109772         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
109773         * m4/dev-ino.m4, same-inode.m4: Remove.
109775         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
109776         * m4/acl.m4 (AC_FUNC_ACL):
109777         * m4/backupfile.m4 (gl_BACKUPFILE):
109778         * m4/c-strtod.m4 (gl_C99_STRTOLD):
109779         * m4/canon-host.m4 (gl_CANON_HOST):
109780         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
109781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
109782         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
109783         * m4/cloexec.m4 (gl_CLOEXEC):
109784         * m4/close-stream.m4 (gl_CLOSE_STREAM):
109785         * m4/closeout.m4 (gl_CLOSEOUT):
109786         * m4/dirfd.m4 (gl_FUNC_DIRFD):
109787         * m4/dirname.m4 (gl_DIRNAME):
109788         * m4/exclude.m4 (gl_EXCLUDE):
109789         * m4/exitfail.m4 (gl_EXITFAIL):
109790         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
109791         * m4/file-type.m4 (gl_FILE_TYPE):
109792         * m4/filemode.m4 (gl_FILEMODE):
109793         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
109794         * m4/fpending.m4 (gl_FUNC_FPENDING):
109795         * m4/fprintftime.m4 (gl_FPRINTFTIME):
109796         * m4/fts.m4 (gl_FUNC_FTS):
109797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
109798         * m4/getdate.m4 (gl_GETDATE):
109799         * m4/gethrxtime.m4 (gl_GETHRXTIME):
109800         * m4/getpagesize.m4 (gl_GETPAGESIZE):
109801         * m4/getpass.m4 (gl_FUNC_GETPASS):
109802         * m4/gettime.m4 (gl_GETTIME):
109803         * m4/getugroups.m4 (gl_GETUGROUPS):
109804         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
109805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
109806         * m4/hard-locale.m4 (gl_HARD_LOCALE):
109807         * m4/hash.m4 (gl_HASH):
109808         * m4/idcache.m4 (gl_IDCACHE):
109809         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
109810         * m4/lchown.m4 (gl_FUNC_LCHOWN):
109811         * m4/long-options.m4 (gl_LONG_OPTIONS):
109812         * m4/lstat.m4 (gl_FUNC_LSTAT):
109813         * m4/md5.m4 (gl_MD5):
109814         * m4/memcasecmp.m4 (gl_MEMCASECMP):
109815         * m4/memcoll.m4 (gl_MEMCOLL):
109816         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
109817         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
109818         * m4/memxor.m4 (gl_MEMXOR):
109819         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
109820         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
109821         * m4/modechange.m4 (gl_MODECHANGE):
109822         * m4/mountlist.m4 (gl_MOUNTLIST):
109823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109824         * m4/openat.m4 (gl_FUNC_OPENAT):
109825         * m4/pathmax.m4 (gl_PATHMAX):
109826         * m4/physmem.m4 (gl_PHYSMEM):
109827         * m4/posixtm.m4 (gl_POSIXTM):
109828         * m4/posixver.m4 (gl_POSIXVER):
109829         * m4/quote.m4 (gl_QUOTE):
109830         * m4/quotearg.m4 (gl_QUOTEARG):
109831         * m4/readtokens.m4 (gl_READTOKENS):
109832         * m4/readutmp.m4 (gl_READUTMP):
109833         * m4/regex.m4 (gl_REGEX):
109834         * m4/safe-read.m4 (gl_SAFE_READ):
109835         * m4/safe-write.m4 (gl_SAFE_WRITE):
109836         * m4/same.m4 (gl_SAME):
109837         * m4/save-cwd.m4 (gl_SAVE_CWD):
109838         * m4/savedir.m4 (gl_SAVEDIR):
109839         * m4/settime.m4 (gl_SETTIME):
109840         * m4/sha1.m4 (gl_SHA1):
109841         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
109842         * m4/stat-macros.m4 (gl_STAT_MACROS):
109843         * m4/stat-time.m4 (gl_STAT_TIME):
109844         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
109845         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
109846         * m4/strdup.m4 (gl_FUNC_STRDUP):
109847         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
109848         * m4/strndup.m4 (gl_FUNC_STRNDUP):
109849         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
109850         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
109851         * m4/time_r.m4 (gl_TIME_R):
109852         * m4/timespec.m4 (gl_TIMESPEC):
109853         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
109854         * m4/unlinkdir.m4 (gl_UNLINKDIR):
109855         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
109856         * m4/userspec.m4 (gl_USERSPEC):
109857         * m4/utimecmp.m4 (gl_UTIMECMP):
109858         * m4/utimens.m4 (gl_UTIMENS):
109859         * m4/xalloc.m4 (gl_XALLOC):
109860         * m4/xgetcwd.m4 (gl_XGETCWD):
109861         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
109862         * m4/xreadlink.m4 (gl_XREADLINK):
109863         * m4/xstrtod.m4 (gl_XSTRTOD):
109864         * m4/yesno.m4 (gl_YESNO):
109865         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109866         to get the necessary .h files and whatnot.
109868 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
109869             Bruno Haible  <bruno@clisp.org>
109871         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
109872         /bin/sh understanding of '!' conditional negation.
109874 2006-08-21  Jim Meyering  <jim@meyering.net>
109876         * modules/openat (Depends-on): Really alphabetize.
109878         * modules/acl (Depends-on): Add error and quote.
109880         * check-module (find_included_lib_files): Add at-func.c to the
109881         ok-to-include-more-than-once white list.
109883         * modules/openat (Depends-on): Add lstat.  Alphabetize.
109885 2006-08-21  Bruno Haible  <bruno@clisp.org>
109887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109888         Emit a pkgdata_DATA variable only if some snippets add contents to it.
109889         Reported by Martin Lambers <marlam@marlam.de>.
109891 2006-08-21  Bruno Haible  <bruno@clisp.org>
109893         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
109894         specify an installation location, don't emit a noinst_LIBRARIES or
109895         noinst_LTLIBRARIES assignment.
109897 2006-08-21  Bruno Haible  <bruno@clisp.org>
109899         BeOS portability.
109900         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
109901         BeOS has mbrtowc() but no <wctype.h>.
109903 2006-08-21  Bruno Haible  <bruno@clisp.org>
109905         BeOS portability.
109906         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
109907         exist.
109909 2006-08-21  Bruno Haible  <bruno@clisp.org>
109911         BeOS portability.
109912         * lib/mbchar.h: Include <wctype.h> only if it exists.
109914 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109916         Remove files that are no longer needed by their respective modules.
109917         * m4/obstack.m4: Remove.
109918         * m4/strerror_r.m4: Remove.
109919         * m4/uint32_t.m4: Remove.
109920         * m4/uintptr_t.m4: Remove.
109921         * m4/ullong_max.m4: Remove.
109922         * m4/xstrtoimax.m4: Remove.
109923         * m4/xstrtoumax.m4: Remove.
109925         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
109926         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
109927         dependencies now capture this.
109929         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
109930         Do not use AC_LIBSOURCES, since gnulib modules now do this.
109931         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
109932         * m4/human.m4 (gl_HUMAN): Likewise.
109933         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
109934         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
109936         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
109938         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
109939         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
109940         stdint.
109941         * m4/human.m4 (gl_HUMAN): Likewise.
109942         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
109943         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
109944         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
109945         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
109946         * m4/xstrtol (gl_XSTRTOL): Likewise.
109948         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
109949         AC_TYPE_LONG_LONG_INT.
109950         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
109951         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
109952         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
109953         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
109955         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
109956         on stdbool.
109958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
109959         (gl_PREREQ_XSTRTOUL): Remove.
109961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
109963         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
109964         mode.
109966 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109968         Add and change modules to make it easier for coreutils to use
109969         gnulib-tool.
109970         * modules/backupfile (Files): Remove m4/d-ino.m4.
109971         (Depends-on): Add d-ino.
109972         * modules/cycle-check (Depends-on): Add stdint.
109973         (lib_SOURCES): Add cycle-check.h.
109974         * modules/d-ino: New module.
109975         * modules/d-type: New module.
109976         * modules/error (Files): Remove m4/strerror_r.m4.
109977         * modules/filemode (Files): Add m4/st_dm_mode.m4.
109978         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109979         m4/inttypes_h.m4, m4/uintmax_t.m4.
109980         (Depends-on): Add stdint.
109981         (lib_SOURCES): Add fsusage.h.
109982         * modules/getcwd (Files): Remove d-ino.m4.
109983         (Depends-on): Add d-ino.
109984         * modules/getndelim2 (Depends-on): Add stdint.
109985         * modules/glob (Files): Remove m4/d-type.m4.
109986         (Depends-on): Add d-type.
109987         * modules/host-os: New module.
109988         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
109989         m4/inttypes_h.m4, m4/uintmax_t.m4.
109990         * Depends-on: Add stdint.
109991         (lib_SOURCES): Add human.h.
109992         * modules/inttostr (Files): Remove m4/intmax_t.m4,
109993         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
109994         m4/uintmax_t.m4, m4/ulonglong.m4.
109995         (Depends-on): Add stdint.
109996         (EXTRA_DIST): Add inttostr.h.
109997         * modules/lchmod: New module.
109998         * modules/link-follow: New module.
109999         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110000         (Depends-on): Add lchmod.
110001         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110002         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110003         (Depends-on): Add stdint.
110004         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110005         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110006         (Depends-on): Add stdint.
110007         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110008         * modules/perl: New module.
110009         * modules/regex (Depends-on): Add stdint.
110010         * modules/rmdir-errno: New module.
110011         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110012         m4/intmax_t.m4.
110013         (Depends-on): Add stdint.
110014         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110015         m4/uintmax_t.m4.
110016         (Depends-on): Add stdint.
110017         * modules/unlink-busy: New module.
110018         * modules/utimecmp (Depends-on): Add stdint.
110019         * modules/uptime: New module.
110020         * modules/winsz-ioctl: New module.
110021         * modules/winsz-termios: New module.
110022         * modules/xnanosleep (Depends-on): Add nanosleep.
110023         * modules/ullong_max: Remove.
110024         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110025         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110026         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110027         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110028         (Depends-on): Add inttypes.
110029         (lib_SOURCES): Add xstrtol.h.
110030         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110031         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110032         * MODULES.html.sh: Move 'assert' into the assert section.
110033         Move 'dummy' into the linking section.
110034         Remove ullong_max.
110035         Add section for compatibility checks for POSIX:2001 functions,
110036         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110037         winsz-ioctl, and winsz-termios into it.
110038         Add lchmod.
110039         Add top-level Misc section and put host-os, perl, and uptime
110040         into it.
110042 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110044         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110045         now assume the stdint module.  Do not include inttypes.h.
110046         * lib/fsusage.h: Likewise.
110047         * lib/getndelim2.c: Likewise.
110048         * lib/human.h: Likewise.
110049         * lib/inttostr.h: Likewise.
110050         * lib/obstack.c: Likewise.
110051         * lib/regex_internal.h: Likewise.
110052         * lib/tempname.c: Likewise.
110053         * lib/utimecmp.c: Likewise.
110054         * lib/xstrtol.h: Likewise.
110056         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110058         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110059         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110060         * lib/xtime.h: Likewise.
110062 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110064         * modules/openat (Files): Add lib/fchmodat.c.
110065         Fixes problem reported by Jay Youngman.
110067 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110069         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110070         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110072 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110073             Bruno Haible  <bruno@clisp.org>
110075         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110076         and is a script that invokes bison. Tighten the code. Add comments.
110078 2006-08-18  Jim Meyering  <jim@meyering.net>
110080         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110081         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110082         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110083         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110085 2006-08-18  Bruno Haible  <bruno@clisp.org>
110087         * modules/bison-i18n: New file.
110088         * MODULES.html.sh (Internationalization functions): Add it.
110090 2006-08-18  Bruno Haible  <bruno@clisp.org>
110092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110093         sys/statvfs.h. When getmntinfo was found, check its declaration and
110094         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110096 2006-08-18  Bruno Haible  <bruno@clisp.org>
110098         * m4/bison-i18n.m4: New file, from bison.
110100 2006-08-18  Bruno Haible  <bruno@clisp.org>
110102         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110103         (ME_DUMMY): Treat "kernfs" as a dummy.
110104         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110106 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110108         Update from coreutils.
110110         2006-08-15  Jim Meyering  <jim@meyering.net>
110112         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110114         2006-01-17  Jim Meyering  <jim@meyering.net>
110116         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110118         2006-01-11  Jim Meyering  <jim@meyering.net>
110120         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110121         Check for the lchmod function.
110123 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110125         Update from coreutils.
110127         * lib/__fpending.h: Add copyright notice.
110128         * lib/fprintftime.h: Likewise.
110129         * lib/savedir.c: Use (C) in copyright notice.
110130         * lib/savedir.h: Likewise.
110132         2006-08-15  Jim Meyering  <jim@meyering.net>
110134         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110135         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110136         in support of the EXPECTED_ERRNO macro.
110137         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110138         definitions.  Instead, define the appropriate symbols and include
110139         "at-func.c".
110140         * lib/mkdirat.c (mkdirat): Likewise.
110141         * lib/fchmodat.c (fchmodat): Likewise.
110142         (ENOSYS): Remove definition.
110143         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110144         it.  Don't include "unistd--.h" -- it wasn't ever used.
110146         2006-01-17  Jim Meyering  <jim@meyering.net>
110148         Rewrite fts.c not to change the current working directory,
110149         by using openat, fstatat, fdopendir, etc..
110151         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110152         (HAVE_OPENAT_SUPPORT): Define.
110153         [_LIBC] (fchdir): Don't undef or define; no longer used.
110154         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110155         Now, this `function' always succeeds, and consumes its file descriptor
110156         parameter -- so callers must not close such FDs.  Update callers.
110157         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110158         (diropen): Add parameter, SP.  Adjust all callers.
110159         Implement using diropen_fd, rather than open.
110160         (fts_open): Initialize new member, fts_cwd_fd.
110161         Remove fts_rft-setting code.
110162         (fts_close): Close fts_cwd_fd, if necessary.
110163         (__opendir2): Define in terms of opendir or opendirat,
110164         depending on whether the FST_NOCHDIR flag is set.
110165         (fts_build): Since fts_safe_changedir consumes its FD, and since
110166         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110167         and close the dup'd file descriptor upon failure.
110168         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110169         (fts_safe_changedir): Tweak semantics to reflect that this function
110170         now calls cwd_advance_fd and hence consumes its FD argument.
110171         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110172         [struct FTS] (fts_rft): Remove now-unused member.
110173         [struct FTS] (fts_cycle.state): Improve comment.
110175         * lib/openat.c (openat_needs_fchdir): New function.
110176         * lib/openat.h (openat_needs_fchdir): Declare it.
110178 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110180         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110181         Problem and fix reported by Pádraig Brady in
110182         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110184 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110186         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110188 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110190         * lib/memcoll.c (memcoll): Optimize for the common case where the
110191         arguments are bytewise equal.
110193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110195         * doc/regexprops-generic.texi: Add a copyright notice.
110197 2006-08-15  Bruno Haible  <bruno@clisp.org>
110199         * modules/tmpdir (License): Change to LGPL.
110201 2006-08-15  Bruno Haible  <bruno@clisp.org>
110203         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110204         module.
110206 2006-08-14  Simon Josefsson  <jas@extundo.com>
110208         * config/srclist.txt: Add gnupload.
110210 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110212         Change copyright notice from LGPL 2 to GPL 2, since that's the
110213         standard form used in the gnulib repository.
110214         * tests/test-lock.c: Likewise.
110215         * tests/test-stdint.c: Likewise.
110216         * tests/test-tls.c: Likewise.
110218         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110219         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110220         Add copyright notice.
110222         * check-module: Add copyright notice.  Output a copyright
110223         notice if "--version" is specified.
110224         * modules/COPYING: New file.
110225         * tests/test-getaddrinfo.c: Add copyright notice.
110226         * tests/test-verify.c: Likewise.
110228 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110230         Change copyright notice from LGPL 2 to GPL 2, since that's the
110231         standard form used in the gnulib repository.
110232         * lib/lock.c: LGPL -> GPL.
110233         * lib/lock.h: Likewise.
110234         * lib/strnlen1.c: Likewise.
110235         * lib/strnlen1.h: Likewise.
110236         * lib/tls.c: Likewise.
110237         * lib/tls.h: Likewise.
110238         * lib/tmpdir.c: Likewise.
110240         * lib/TODO: Remove; this belongs only in coreutils.
110242 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110244         Add copyright notices to long-enough files that lack them, since
110245         otherwise the files aren't clearly free.  Use the same notice that
110246         getdate.texi already uses.
110247         * doc/alloca-opt.texi: Add copyright notice.
110248         * doc/alloca.texi: Likewise.
110249         * doc/ctime.texi: Likewise.
110250         * doc/functions.texi: Likewise.
110251         * doc/gcd.texi: Likewise.
110252         * doc/gnulib-tool.texi: Likewise.
110253         * doc/inet_ntoa.texi: Likewise.
110254         * doc/visibility.texi: Likewise.
110256         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110257         * doc/quote.texi: Add copyright notice.
110259         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110260         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110261         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110262         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110263         is now obsolete, and give a pointer to the Sun list.
110264         Add copyright notice.
110266 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110268         * config/srclistvars.sh: Add copyright notice.
110270 2006-08-14  Eric Blake  <ebb9@byu.net>
110272         Import the following change from libc:
110274         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110276         Upstream bug 2997.
110277         * lib/misc/error.c: Add space between program name and message if file
110278         name is missing.
110280 2006-08-12  Karl Berry  <karl@gnu.org>
110282         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110283         remove, these originate in gnulib now.
110285 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110287         * doc/Makefile (standards.info standards.html standards.dvi):
110288         Also depend on make-stds.texi.
110290 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110292         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110293         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110295         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110296         in wchar_t.  Problem reported by Eric Blake.
110298         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110299         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110300         Also, help the compiler to keep LEN in a register.
110302 2006-08-11  Eric Blake  <ebb9@byu.net>
110304         * users.txt: Sort.  Add tar.
110306 2006-08-11  Bruno Haible  <bruno@clisp.org>
110308         * users.txt: New file.
110310 2006-08-11  Bruno Haible  <bruno@clisp.org>
110312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110313         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110315 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110317         * modules/snprintf (Depends-on): Remove minmax.
110318         (Maintainer): Add self and Bruno.
110320 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110322         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110323         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110324         (EOVERFLOW): Define if the system does not.
110325         Do not include "minmax.h"; it wasn't used.
110326         (snprintf): Don't assume size_t promotes to an unsigned type.
110327         Fix bug when generated string was too long for the buffer: the
110328         buffer's contents are supposed to be the initial prefix of the
110329         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110330         exceeds INT_MAX; do the check ourselves.
110332         Import the following changes from libc:
110334         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110336         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110337         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110338         set wc to the byte which couldn't be converted.
110339         (re_string_reconstruct): Don't clear valid_raw_len before calling
110340         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110341         tip_context using re_string_context_at.
110343         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110345         * lib/posix/regex.h: g++ still cannot handled [restrict].
110347         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110349         * lib/posix/regex.h: Remove special handling for VMS.
110351 2006-08-10  Jim Meyering  <jim@meyering.net>
110353         * modules/same-inode: New module.
110354         * modules/dev-ino: New module.
110355         * modules/cycle-check: Depend on these modules, rather than simply
110356         including their .h files.
110357         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110358         required via m4/cycle-check.m4.
110359         * modules/same: Depend on new same-inode module, rather than
110360         including same-inode.h.
110361         * modules/chdir-safer: New file.
110363         * modules/chown (Depends-on): Add stat-macros.
110365 2006-08-10  Jim Meyering  <jim@meyering.net>
110367         * m4/cycle-check.m4: New file.
110368         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110369         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110371 2006-08-10  Eric Blake  <ebb9@byu.net>
110373         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110374         in from original proposal.
110376 2006-08-10  Eric Blake  <ebb9@byu.net>
110377         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110379         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110380         namespace.
110382 2006-08-10  Bruno Haible  <bruno@clisp.org>
110384         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110385         as well.
110387 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110389         Sync from coreutils.
110391         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110393         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110394         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110396 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110398         * modules/restrict: Remove; no longer needed now that we assume
110399         Autoconf 2.59 or later.
110400         * MODULES.html.sh: Remove 'restrict'.
110401         * modules/argp (Depends-on): Remove 'restrict'.
110402         * modules/base64 (Depends-on): Likewise.
110403         * modules/gc (Depends-on): Likewise.
110404         * modules/getaddrinfo (Depends-on): Likewise.
110405         * modules/glob (Depends-on): Likewise.
110406         * modules/inet_ntop (Depends-on): Likewise.
110407         * modules/inet_pton (Depends-on): Likewise.
110408         * modules/memxor (Depends-on): Likewise.
110409         * modules/regex (Depends-on): Likewise.
110410         * modules/strtok_r (Depends-on): Likewise.
110411         * modules/time_r (Depends-on): Likewise.
110413 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110415         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110416         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110417         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110418         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110419         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110420         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110421         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110422         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110424         Merge from coreutils.
110425         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110426         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110428         * m4/time_r.m4 (gl_TIME_R): Likewise.
110430 2006-08-09  Karl Berry  <karl@gnu.org>
110432         * config/srclist.txt: no more gettext-tools, per Bruno.
110434 2006-08-08  Eric Blake  <ebb9@byu.net>
110436         * modules/verror: New module.
110437         * MODULES.html.sh: Document it.
110439 2006-08-08  Eric Blake  <ebb9@byu.net>
110441         * lib/verror.h, lib/verror.c: New files.
110443 2006-08-08  Eric Blake  <ebb9@byu.net>
110445         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110446         verror_at_line output complies with GNU Coding Standards even when
110447         file is NULL.
110449 2006-08-07  Bruno Haible  <bruno@clisp.org>
110451         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110452         versions of AIX.
110453         Reported by Ralf Wildenhues.
110455 2006-08-07  Bruno Haible  <bruno@clisp.org>
110457         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110458         in an AC_DEFUN. Needed so that the autoconf snippets can use
110459         AC_REQUIRE.
110461 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110464         Initialize pkgdata_DATA.
110465         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110466         overriding it.
110468 2006-08-06  Eric Blake  <ebb9@byu.net>
110470         * lib/error.h: Fold in some upstream changes from glibc.
110471         * lib/error.c: Likewise.
110473 2006-08-04  Bruno Haible  <bruno@clisp.org>
110475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110476         Make the mostlyclean-local rule depend on mostlyclean-generic.
110477         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110479 2006-07-31  Bruno Haible  <bruno@clisp.org>
110481         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110482         <stdlib.h>, <string.h>.
110484 2006-07-30  Bruno Haible  <bruno@clisp.org>
110486         * modules/readlink (License): Change to LGPL.
110488 2006-07-30  Bruno Haible  <bruno@clisp.org>
110490         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110491         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110492         set PKGDATADIR to point to it.
110494 2006-07-30  Bruno Haible  <bruno@clisp.org>
110496         * modules/csharpexec (configure.ac): Comment out macro invocation.
110497         * modules/javaexec (configure.ac): Likewise.
110498         * modules/javacomp-script (configure.ac): Likewise.
110500         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110502 2006-07-30  Bruno Haible  <bruno@clisp.org>
110504         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110505         linked-list.
110507 2006-07-30  Bruno Haible  <bruno@clisp.org>
110509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110511 2006-07-30  Bruno Haible  <bruno@clisp.org>
110513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110514         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110515         get removed.
110517 2006-07-29  Bruno Haible  <bruno@clisp.org>
110519         Make it possible for gnulib-tool to work with locally modified or
110520         augmented gnulib repositories.
110521         * gnulib-tool (func_usage): Document --local-dir option.
110522         (local_gnulib_dir): New variable.
110523         Handle --local-dir option.
110524         (func_lookup_file): New function.
110525         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110526         (func_get_description, func_get_filelist, func_get_description,
110527         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110528         func_get_automake_snippet, func_get_include_directive,
110529         func_get_license, func_get_maintainer): Use func_lookup_file.
110530         (func_import, func_create_testdir): Use func_lookup_file.
110532 2006-07-29  Bruno Haible  <bruno@clisp.org>
110534         * modules/setenv (Depends-on): Add unistd.
110536 2006-07-29  Bruno Haible  <bruno@clisp.org>
110538         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110540 2006-07-29  Bruno Haible  <bruno@clisp.org>
110542         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110544 2006-07-29  Bruno Haible  <bruno@clisp.org>
110546         * gnulib-tool (import, update): If there is no Makefile.am, look at
110547         aclocal.m4, instead of bailing out.
110549 2006-07-29  Bruno Haible  <bruno@clisp.org>
110551         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110552         Categorize the options by when they are useful.
110554 2006-07-29  Bruno Haible  <bruno@clisp.org>
110556         * gnulib-tool (func_usage): Document option --no-libtool.
110557         Handle option --no-libtool.
110558         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110559         for changed semantics of $libtool variable.
110560         (func_import): Likewise. If libtool is not used, show this through
110561         an option --no-libtool.
110562         (func_create_testdir): Update.
110564 2006-07-29  Bruno Haible  <bruno@clisp.org>
110566         * gnulib-tool (func_import): Extend error message about missing
110567         --doc-base.
110569 2006-07-29  Bruno Haible  <bruno@clisp.org>
110571         * gnulib-tool (func_import): Don't create the $docbase directory if
110572         there is no file to store there.
110574 2006-07-29  Bruno Haible  <bruno@clisp.org>
110576         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110577         relevant, look for configure.ac there, not in the current directory.
110578         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110580 2006-07-29  Bruno Haible  <bruno@clisp.org>
110582         * gnulib-tool (SORT): New variable.
110583         (func_usage): Undocument --assume-autoconf option.
110584         Remove --assume-autoconf option handling.
110585         (autoconf_minversion): Determine from the contents of configure.ac.
110586         (func_import): Remove autoconf_minversion handling.
110587         Suggested by Eric Blake.
110589 2006-07-29  Bruno Haible  <bruno@clisp.org>
110591         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
110593 2006-07-29  Bruno Haible  <bruno@clisp.org>
110595         * config/srclist.txt (*setenv.[ch]): Remove rules.
110597 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110599         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
110601 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110603         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
110604         arpa/inet.h.
110606 2006-07-28  Simon Josefsson  <jas@extundo.com>
110608         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
110609         * modules/inet_pton (Depends-on): Likewise.
110611 2006-07-28  Simon Josefsson  <jas@extundo.com>
110613         * m4/netinet_in_h.m4: New file.
110615 2006-07-28  Simon Josefsson  <jas@extundo.com>
110617         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
110618         #include's.
110620 2006-07-28  Simon Josefsson  <jas@extundo.com>
110622         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
110623         #include's.
110625 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
110627         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
110628         setgid on directories only if they set these bits.
110629         * lib/modechange.h: Remove obsolete comment about masks.
110631 2006-07-28  Eric Blake  <ebb9@byu.net>
110633         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
110634         macro expansion.
110636 2006-07-28  Bruno Haible  <bruno@clisp.org>
110638         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
110640 2006-07-28  Bruno Haible  <bruno@clisp.org>
110642         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
110644 2006-07-28  Bruno Haible  <bruno@clisp.org>
110646         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
110647         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
110648         Define fallbacks.
110649         Avoids link error on FreeBSD 4.x.
110650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110652         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
110653         encoding.
110654         * lib/mbswidth.c (iswcntrl): Likewise.
110656 2006-07-27  Bruno Haible  <bruno@clisp.org>
110658         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
110659         test.
110661 2006-07-27  Bruno Haible  <bruno@clisp.org>
110663         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
110664         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
110665         defined.
110667 2006-07-26  Eric Blake  <ebb9@byu.net>
110669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
110671 2006-07-26  Eric Blake  <ebb9@byu.net>
110673         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
110674         like mingw that lack mkstemp.
110675         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
110676         avoid compilation warning on mingw.
110678 2006-07-26  Bruno Haible  <bruno@clisp.org>
110680         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
110681         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
110682         INT_FAST*_MIN, INTPTR_MIN.
110684 2006-07-25  Bruno Haible  <bruno@clisp.org>
110686         * modules/version-etc (Depends-on): Add stdarg.
110688 2006-07-25  Bruno Haible  <bruno@clisp.org>
110690         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
110691         complex commands.
110693 2006-07-25  Bruno Haible  <bruno@clisp.org>
110695         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
110696         defined in <stdarg.h> or config.h.
110698 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
110701         (gl_STDIO_SAFER): Remove.
110703 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110705         * MODULES.html.sh (File stream based Input/Output):
110706         Add fopen-safer, tmpfile-safer; remove stdio-safer.
110707         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
110708         * modules/fopen-safer, modules/tmpfile-safer: New files.
110709         * modules/stdio-safer: Remove.
110711 2006-07-24  Bruno Haible  <bruno@clisp.org>
110713         * modules/tmpdir: New file.
110714         * MODULES.html.sh (File system functions): Add it.
110716 2006-07-24  Bruno Haible  <bruno@clisp.org>
110718         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
110719         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
110721 2006-07-24  Bruno Haible  <bruno@clisp.org>
110723         * modules/clean-temp: New file.
110725 2006-07-24  Bruno Haible  <bruno@clisp.org>
110727         * m4/tmpdir.m4: New file, from GNU gettext.
110729 2006-07-24  Bruno Haible  <bruno@clisp.org>
110731         * lib/tmpdir.h: New file, from GNU gettext.
110732         * lib/tmpdir.c: New file, from GNU gettext.
110734 2006-07-24  Bruno Haible  <bruno@clisp.org>
110736         * lib/clean-temp.h: New file, from GNU gettext.
110737         * lib/clean-temp.c: New file, from GNU gettext.
110739 2006-07-23  Eric Blake  <ebb9@byu.net>
110741         * modules/stdio-safer (Files): Add tmpfile-safer.c.
110742         (Depends-on): Add binary-io.
110744 2006-07-23  Eric Blake  <ebb9@byu.net>
110746         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
110748 2006-07-23  Eric Blake  <ebb9@byu.net>
110750         * lib/tmpfile-safer.c: New file.
110751         * lib/stdio-safer.h (fopen_safer): Add prototype.
110752         * lib/stdio--.h (tmpfile): Make safer.
110754 2006-07-23  Bruno Haible  <bruno@clisp.org>
110756         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
110757         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
110758         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
110759         gl_linked_remove_at): Use it.
110761 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110762         and Simon Josefsson <jas@extundo.com>
110764         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
110766         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
110768 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110770         * modules/close-stream: New file.
110771         * modules/closeout (Description): Make it clear that it exits
110772         with a diagnostic on error.
110773         (Depends-on): Add close-stream.  Remove fpending, stdbool.
110774         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
110776 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110778         * m4/close-stream.m4: New file.
110780 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110782         * lib/close-stream.c, lib/close-stream.h: New files.
110784 2006-07-22  Bruno Haible  <bruno@clisp.org>
110786         Merge from GNU gettext 0.15.
110788         2006-05-01  Bruno Haible  <bruno@clisp.org>
110790                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
110792         2006-07-22  Bruno Haible  <bruno@clisp.org>
110794                 * modules/javaversion: New file.
110795                 * MODULES.html.sh (Java): Add javaversion.
110797         2006-03-12  Bruno Haible  <bruno@clisp.org>
110799                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
110801         2005-12-04  Bruno Haible  <bruno@clisp.org>
110803                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
110804                 (untested).
110806         2006-06-21  Bruno Haible  <bruno@clisp.org>
110808                 Avoid warnings from recent versions of mcs.
110809                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
110810                 -o, -L, -r any more. Use options documented since mcs-1.0
110811                 instead. Similarly for -g.
110813         2005-12-04  Bruno Haible  <bruno@clisp.org>
110815                 * build-aux/csharpcomp.sh.in: Suffix for resources is
110816                 .resources, not .resource.
110818         2005-07-09  Bruno Haible  <bruno@clisp.org>
110820                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
110821                 add a .dll suffix.
110822                 Reported by Mark Junker <mjscod@gmx.de>.
110824         2006-07-22  Bruno Haible  <bruno@clisp.org>
110826                 * modules/gettext: Upgrade to gettext-0.15.
110827                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
110828                 m4/visibility.m4.
110829                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
110831 2006-07-22  Bruno Haible  <bruno@clisp.org>
110833         Merge from GNU gettext 0.15.
110835         2006-03-25  Bruno Haible  <bruno@clisp.org>
110837                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
110839         2006-07-21  Bruno Haible  <bruno@clisp.org>
110841                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
110842                 "1.1".
110844         2006-05-09  Bruno Haible  <bruno@clisp.org>
110846                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
110847                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
110848                 for the conftestver execution.
110850         2006-05-01  Bruno Haible  <bruno@clisp.org>
110852                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
110853                 optional target-version argument. Verify that the compiler
110854                 groks source of the specified source-version, or add -source
110855                 option as necessary. Verify that the compiler produces
110856                 bytecode in the specified target-version, or add -target and
110857                 -source options as necessary. Make the result of the test
110858                 available as variable CONF_JAVAC. Also log error output in
110859                 config.log.
110861         2006-03-11  Bruno Haible  <bruno@clisp.org>
110863                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
110865         2006-05-09  Bruno Haible  <bruno@clisp.org>
110867                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
110868                 CLASSPATH_SEPARATOR to a semicolon.
110870         2006-03-12  Bruno Haible  <bruno@clisp.org>
110872                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
110873                 available as variable CONF_JAVA, for subsequent autoconf
110874                 tests. Also log error output in config.log.
110876         2006-07-19  Bruno Haible  <bruno@clisp.org>
110878                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
110879                 that getline works on glibc2 systems. Needed to avoid trouble
110880                 in relocatable.c.
110881                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
110883         2005-12-04  Bruno Haible  <bruno@clisp.org>
110885                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
110886                 launcher (untested).
110888         2005-12-04  Bruno Haible  <bruno@clisp.org>
110890                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
110892         2006-07-22  Bruno Haible  <bruno@clisp.org>
110894                 * gettext.m4: Update from GNU gettext-0.15.
110895                 * nls.m4: Likewise.
110896                 * po.m4: Likewise.
110897                 * inttypes-pri.m4: Likewise.
110898                 * inttypes-h.m4: Renamed from inttypes.m4.
110899                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
110901 2006-07-22  Bruno Haible  <bruno@clisp.org>
110903         Merge from GNU gettext 0.15.
110905         2005-07-05  Bruno Haible  <bruno@clisp.org>
110907                 * printf-args.c (printf_fetchargs): Work around broken
110908                 definition of wint_t on mingw.
110910         2005-02-12  Bruno Haible  <bruno@clisp.org>
110912                 * xallocsa.h: Add extern "C" for C++.
110914         2006-05-17  Bruno Haible  <bruno@clisp.org>
110916                 Cygwin portability.
110917                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
110919         2006-04-30  Bruno Haible  <bruno@clisp.org>
110921                 * progreloc.c: Include <mach-o/dyld.h> if available.
110922                 (find_executable): Use _NSGetExecutablePath when possible.
110924         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110926                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
110927                 function.
110929         2005-12-29  Bruno Haible  <bruno@clisp.org>
110931                 * progreloc.c (set_program_name_and_installdir): Fix
110932                 compilation error.
110934         2005-12-04  Bruno Haible  <bruno@clisp.org>
110936                 Cygwin portability.
110937                 * progreloc.c: Include <windows.h> also on Cygwin.
110938                 (find_executable): Add support for Cygwin.
110939                 (set_program_name_and_installdir): Handle also platforms with
110940                 nonempty EXEEXT.
110942         2006-07-11  Bruno Haible  <bruno@clisp.org>
110944                 * javacomp.c: Fix a comment.
110945                 Reported by Jim Meyering.
110947         2006-04-30  Bruno Haible  <bruno@clisp.org>
110949                 * javacomp.h (compile_java_class): Add source_version,
110950                 target_version arguments.
110951                 * javacomp.c: Rewritten to choose only a compiler that
110952                 respects the specified source_version and target_version.
110954         2006-06-27  Bruno Haible  <bruno@clisp.org>
110956                 Assume correct S_ISDIR macro.
110957                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
110959         2006-07-22  Bruno Haible  <bruno@clisp.org>
110961                 * javaversion.h: New file, from GNU gettext.
110962                 * javaversion.c: New file, from GNU gettext.
110963                 * javaversion.java: New file, from GNU gettext.
110964                 * javaversion.class: New file, from GNU gettext.
110966         2006-05-17  Bruno Haible  <bruno@clisp.org>
110968                 Cygwin portability.
110969                 * javaexec.c (execute_java_class): Test for jview program
110970                 also on Cygwin.
110972         2006-04-09  Bruno Haible  <bruno@clisp.org>
110974                 * fatal-signal.c: Don't include string.h.
110975                 (at_fatal_signal): Use a copying loop instead of memcpy.
110977         2005-12-04  Bruno Haible  <bruno@clisp.org>
110979                 * csharpexec.c: Add support for 'clix' launcher (untested).
110980                 (execute_csharp_using_sscli): New function.
110981                 (execute_csharp_program): Call it.
110983         2006-06-21  Bruno Haible  <bruno@clisp.org>
110985                 Avoid warnings from recent versions of mcs.
110986                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
110987                 -o, -L, -r any more. Use options documented since mcs-1.0
110988                 instead. Similarly for -g.
110990         2005-07-09  Bruno Haible  <bruno@clisp.org>
110992                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
110993                 add a .dll suffix.
110994                 Reported by Mark Junker <mjscod@gmx.de>.
110996         2006-06-17  Bruno Haible  <bruno@clisp.org>
110998                 * config.charset: Update for NetBSD 3.0.
111000         2006-05-17  Bruno Haible  <bruno@clisp.org>
111002                 Cygwin portability.
111003                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111005         2006-05-16  Bruno Haible  <bruno@clisp.org>
111007                 * localcharset.c [CYGWIN]: Include <windows.h>.
111008                 (get_charset_aliases): For Cygwin, return the same CPxxx
111009                 aliases list as under WIN32.
111010                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111011                 the environment variables. Fall back to GetACP().
111013         2006-04-05  Bruno Haible  <bruno@clisp.org>
111015                 * config.charset: Update Juan Manuel Guerrero's address.
111017         2005-02-12  Bruno Haible  <bruno@clisp.org>
111019                 * allocsa.h: Add extern "C" for C++.
111021         2005-02-10  Bruno Haible  <bruno@clisp.org>
111023                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111024                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111026         2006-07-22  Bruno Haible  <bruno@clisp.org>
111028                 * gettext.h: Update to GNU gettext-0.15.
111030 2006-07-22  Bruno Haible  <bruno@clisp.org>
111032         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111033         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111034         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111036 2006-07-21  Eric Blake  <ebb9@byu.net>
111038         * modules/stdlib-safer: New file.
111039         * MODULES.html.sh (File stream based Input/Output): Add
111040         stdlib-safer.
111042 2006-07-21  Eric Blake  <ebb9@byu.net>
111044         * lib/stdlib-safer.h: New file from coreutils, required by
111045         stdlib--.h.
111047 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111049         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111051 2006-07-20  Bruno Haible  <bruno@clisp.org>
111053         * gnulib-tool: Recognize new option --assume-autoconf.
111054         (autoconf_minversion): New variable.
111055         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111057 2006-07-20  Bruno Haible  <bruno@clisp.org>
111059         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111061 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111063         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111064         Reindent and repaginate.
111066 2006-07-19  Derek Price  <derek@ximbiot.com>
111068         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111069         Correct grammar.
111071 2006-07-17  Bruno Haible  <bruno@clisp.org>
111073         * modules/list: New file.
111074         * modules/array-list: New file.
111075         * modules/carray-list, modules/carray-list-tests: New files.
111076         * modules/linked-list, modules/linked-list-tests: New files.
111077         * modules/avltree-list, modules/avltree-list-tests: New files.
111078         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111079         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111080         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111081         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111082         * modules/oset: New file.
111083         * modules/array-oset: New file.
111084         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111085         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111086         * tests/test-carray_list.c: New file.
111087         * tests/test-linked_list.c: New file.
111088         * tests/test-avltree_list.c: New file.
111089         * tests/test-rbtree_list.c: New file.
111090         * tests/test-linkedhash_list.c: New file.
111091         * tests/test-avltreehash_list.c: New file.
111092         * tests/test-rbtreehash_list.c: New file.
111093         * tests/test-avltree_oset.c: New file.
111094         * tests/test-rbtree_oset.c: New file.
111095         * MODULES.html.sh (Container data structures): New section.
111097 2006-07-17  Bruno Haible  <bruno@clisp.org>
111099         * m4/gl_list.m4: New file.
111101 2006-07-17  Bruno Haible  <bruno@clisp.org>
111103         * lib/gl_list.h: New file.
111104         * lib/gl_list.c: New file.
111105         * lib/gl_array_list.h: New file.
111106         * lib/gl_array_list.c: New file.
111107         * lib/gl_carray_list.h: New file.
111108         * lib/gl_carray_list.c: New file.
111109         * lib/gl_linked_list.h: New file.
111110         * lib/gl_linked_list.c: New file.
111111         * lib/gl_anylinked_list1.h: New file.
111112         * lib/gl_anylinked_list2.h: New file.
111113         * lib/gl_avltree_list.h: New file.
111114         * lib/gl_avltree_list.c: New file.
111115         * lib/gl_anyavltree_list1.h: New file.
111116         * lib/gl_anyavltree_list2.h: New file.
111117         * lib/gl_rbtree_list.h: New file.
111118         * lib/gl_rbtree_list.c: New file.
111119         * lib/gl_anyrbtree_list1.h: New file.
111120         * lib/gl_anyrbtree_list2.h: New file.
111121         * lib/gl_anytree_list1.h: New file.
111122         * lib/gl_anytree_list2.h: New file.
111123         * lib/gl_linkedhash_list.h: New file.
111124         * lib/gl_linkedhash_list.c: New file.
111125         * lib/gl_anyhash_list1.h: New file.
111126         * lib/gl_anyhash_list2.h: New file.
111127         * lib/gl_avltreehash_list.h: New file.
111128         * lib/gl_avltreehash_list.c: New file.
111129         * lib/gl_rbtreehash_list.h: New file.
111130         * lib/gl_rbtreehash_list.c: New file.
111131         * lib/gl_anytreehash_list1.h: New file.
111132         * lib/gl_anytreehash_list2.h: New file.
111134         * lib/gl_oset.h: New file.
111135         * lib/gl_oset.c: New file.
111136         * lib/gl_array_oset.h: New file.
111137         * lib/gl_array_oset.c: New file.
111138         * lib/gl_avltree_oset.h: New file.
111139         * lib/gl_avltree_oset.c: New file.
111140         * lib/gl_rbtree_oset.h: New file.
111141         * lib/gl_rbtree_oset.c: New file.
111142         * lib/gl_anytree_oset.h: New file.
111144 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111146         * m4/mkancesdirs.m4: New file.
111147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111148         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111149         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111150         it.
111152 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111154         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111155         * lib/mkancesdirs.h: New files.
111156         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111157         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111158         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111159         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111160         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111161         callers changed.  Revamp internals significantly, by not
111162         attempting to create directories that are temporarily more
111163         permissive than the final results.  Do not attempt to use
111164         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111165         This removes some race conditions, fixes some bugs, and simplifies
111166         things.  Use new dirchownmod function to do owner and mode changes.
111167         * lib/mkdir-p.h: Likewise.
111168         * lib/modechange.c (octal_to_mode): New function.
111169         (struct mode_change): New member mentioned.
111170         (make_node_op_equals): New arg mentioned.  All callers changed.
111171         (mode_compile): Keep track of which mode bits the user has explicitly
111172         mentioned.
111173         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111174         New arg PMODE_BITS, to keep track of which mode bits the user
111175         mentioned; it treats S_ISUID and S_ISGID speciall.
111176         All callers changed.
111177         * lib/modechange.h: Likewise.
111179 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111181         * MODULES.html.sh: Add mkancestors.
111182         * modules/mkancesdirs: New module.
111183         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111184         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111185         The chdir-safer and afs files are now orphans; I'll remove them
111186         unless someone speaks up.
111187         Add lib/dirchownmod.c, lib/dirchownmod.h.
111188         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111189         Add lchown, mkancesdirs.
111190         (Maintainer): Add self.
111192 2006-07-15  Karl Berry  <karl@gnu.org>
111194         * gnulib-tool: help message wording/arrangement.
111196 2006-07-14  Simon Josefsson  <jas@extundo.com>
111198         * doc/gnulib.texi (Libtool and Windows): New section.
111200 2006-07-12  Simon Josefsson  <jas@extundo.com>
111202         * modules/gendocs (License): Fix license, approved by Karl.
111204 2006-07-12  Eric Blake  <ebb9@byu.net>
111206         * MODULES.html.sh: Add gendocs.
111208 2006-07-11  Eric Blake  <ebb9@byu.net>
111210         * modules/fdl: New module, to install doc/fdl.texi.
111211         * MODULES.html.sh: Add new section for documentation modules.
111212         * gnulib-tool: Avoid space-tab.
111213         (--doc-base): New option, to manage files from doc.
111215 2006-07-11  Eric Blake  <ebb9@byu.net>
111217         * m4/absolute-header.m4: Fix comments to match recent change.
111219 2006-07-11  Eric Blake  <ebb9@byu.net>
111221         * gnulib-tool: List --doc-base before --tests-base.
111223 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111225         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111227 2006-07-11  Bruno Haible  <bruno@clisp.org>
111229         * README: Mention where to put documentation.
111231 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111233         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111235 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111238         to stdint.m4.
111240 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111242         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111243         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111244         "no/such/file/stdint.h" when there is no such file, so that
111245         the resulting C code can be parsed by dodgy compilers.
111246         Problems reported by Bob Proulx.
111248 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111250         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111251         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111252         macros into the GNU _D_EXACT_NAMLEN.
111253         * lib/savedir.c:  Likewise.
111254         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111256 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111257         and Paul Eggert  <eggert@cs.ucla.edu>
111259         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111260         * m4/savedir.m4:
111261         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111262         macros into the GNU _D_EXACT_NAMLEN.
111264 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111267         around the absolute name, to work around a problem with the HP-UX
111268         11.23 native C compiler, reported by Bob Proulx.
111270 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111272         * doc/maintain.texi, make-stds.texi: Sync from
111273         <http://savannah.gnu.org/projects/gnustandards>.
111275 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111277         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111279 2006-07-09  Jim Meyering  <jim@meyering.net>
111281         * m4/glob.m4: Remove a doubled word in a comment.
111283 2006-07-09  Jim Meyering  <jim@meyering.net>
111285         * lib/argp-pv.c: Remove a doubled word in a comment.
111286         * lib/check-version.c (check_version): Likewise.
111287         * lib/javacomp.c (compile_java_class): Likewise.
111289 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111291         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111292         for the benefit of people using Autoconf 2.60.  If you want to
111293         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111294         (or m4/onceonly.m4, if pre-2.57) manually.
111296 2006-07-08  Jim Meyering  <jim@meyering.net>
111298         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111299         comment.
111300         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111301         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111302         comment.
111304 2006-07-08  Jim Meyering  <jim@meyering.net>
111306         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111308 2006-07-07  Simon Josefsson  <jas@extundo.com>
111310         * tests/test-crc.c: Change expected crc value, the test vector
111311         were probably computed using the old broken crc.c?
111313 2006-07-06  Simon Josefsson  <jas@extundo.com>
111315         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111316         now the canonical place for the M4 file).
111318         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111319         from the sys_socket dependency now.
111321         * modules/inet_pton (Files): Ditto.
111323         * modules/inet_ntop (Files): Ditto.
111325 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111327         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111328         not gl_PREREQ_GETUSERSHELL.
111330 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111332         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111333         with only one argument, for Autoconf 2.60.
111334         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111335         expand to nothing, so add a shell command to avoid syntax error.
111336         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111338 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111340         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111342 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111344         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111345         no longer needed.  Check for isblank decl.
111346         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111347         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111348         of existence.
111350 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111352         * lib/getloadavg.c: Use __VMS, not VMS.
111353         * lib/getopt.c: Likewise.
111354         * lib/getpagesize.h: Likewise.
111355         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111356         and probably does not work.
111358 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111360         * lib/.cppi-disable: Add wcwidth.
111361         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111362         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111363         (ISGRAPH): Remove.  All uses changed to isgraph.
111364         (FOLD) [!defined _LIBC]: Remove special case.
111365         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111366         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111367         HAVE_ISBLANK.
111368         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111369         case.
111371 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111373         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111374         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111375         brackets.  Other minor changes to suppress some compiler
111376         warnings.
111378 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111379         and Paul Eggert  <eggert@cs.ucla.edu>
111381         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111382         of invoking obsolescent AC_HEADER_DIRENT macro.
111383         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111384         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111387         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111388         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111389         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111390         * m4/readdir.m4: Remove; no longer needed.
111392 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111393         and Paul Eggert  <eggert@cs.ucla.edu>
111395         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111396         Don't worry about this obsolete case any more.
111397         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111398         directories.
111399         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111400         worry about this obsolete case any more.
111401         * lib/fts.c: Likewise.
111402         * lib/getcwd.c: Likewise.
111403         * lib/glob.h: Likewise.
111404         * lib/savedir.c: Likewise.
111406 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111409         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111410         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111411         needed.
111412         All uses removed.
111413         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111414         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111415         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111416         needed.
111417         * m4/getdate.m4 (gl_GETDATE): Likewise.
111418         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111419         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111420         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111421         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111422         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111423         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111424         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111425         needed.
111427 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111429         * lib/memcasecmp.c: Include <limits.h>.
111430         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111431         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111432         Don't assume isdigit succeeds only on '0' through '9'.
111434 2006-07-05  Eric Blake  <ebb9@byu.net>
111436         * modules/getaddrinfo (Depends-on): Add snprintf.
111438 2006-07-05  Eric Blake  <ebb9@byu.net>
111440         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111441         to avoid 'header present but could not be compiled' on cygwin.
111443 2006-07-05  Eric Blake  <ebb9@byu.net>
111445         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111446         missing from netdb.h.
111447         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111449 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111451         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111452         no longer needed.
111453         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111454         * m4/getdate.m4 (gl_GETDATE): Likewise.
111455         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111456         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111457         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111458         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111459         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111461 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111463         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111464         All uses of is_space replaced by isspace.
111465         * lib/exit.h: Don't talk about STDC_HEADERS.
111466         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111467         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111468         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111469         replaced by isprint etc.
111470         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111471         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111472         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111473         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111474         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111475         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111477 2006-07-05  Bruno Haible  <bruno@clisp.org>
111479         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111480         the function exists, before testing against AIX.
111481         Reported by Martin Lambers <marlam@marlam.de>.
111483 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111485         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111486         From Mark D. Baushke.
111488 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111491         to the absolute name, not just one, to bypass Sun C 5.8's
111492         "warning: #include of /usr/include/... may be non-portable".
111494 2006-07-04  Eric Blake  <ebb9@byu.net>
111496         * modules/dirname-tests: New test module.
111497         * tests/test-dirname.c: New file, replacing dirname.c
111498         TEST_DIRNAME section that was recently deleted.
111500 2006-07-04  Bruno Haible  <bruno@clisp.org>
111502         Assume ANSI C header files and <ctype.h> functions.
111503         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111504         (mbsnwidth): Use isprint, iscntrl instead.
111506 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111508         Merge from coreutils.
111509         * MODULES.html.sh: Add xstrtold.
111510         * modules/xstrtold: New file.
111511         * modules/cycle-check (Files): Add lib/same-inode.h.
111512         * modules/dirname (Files): Add m4/double-slash-root.m4.
111513         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111514         * modules/mkdir-p (Files): Add lib/same-inode.h.
111515         * modules/same (Files): Add lib/same-inode.h.
111517 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111519         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111520         This is to keep the terminology clean; POSIX talks about
111521         "absolute pathnames", not "full pathnames", but the GNU
111522         Coding Standards say to use "path" for something else;
111523         so use "absolute" to keep both sides happy.
111524         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111525         Set gl_absolute_header, not gl_full_header_path.
111526         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111527         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111528         All uses changed.
111530         Merge from coreutils.
111532         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111534         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111535         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111536         want to require the building of c-strtod.o.
111537         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111538         needs -lm directly.
111539         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111541         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111544         --as-needed option if available.  Problem reported by Albert Chin in
111545         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111546         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111547         cc merely issues a bunch of annoying warnings for --as-needed
111548         (this problem was reported by Bob Proulx).  Also, try linking with
111549         -lm to detect a bug in binutils 2.16 (this problem was reported
111550         by Ralf Wildenhues).
111552         2006-06-18  Jim Meyering  <jim@meyering.net>
111554         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111555         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111556         macro.
111557         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111558         also check for glibc-2.4's abort-inducing bug.
111560         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111561         Low-probability clean-up should be to use rmdir to get rid of
111562         the just-created directory, not unlink.
111564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111565         configure fail, and request a bug report to inform us about it.
111566         Add a comment that, barring reports to the contrary, in 2007 we'll
111567         assume ftruncate is universally available.
111569         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111571         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111573         2006-03-12  Jim Meyering  <jim@meyering.net>
111575         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111576         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111577         * m4/same.m4 (gl_SAME): Likewise.
111578         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111580         2006-03-11  Eric Blake  <ebb9@byu.net>
111582         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111583         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111584         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111585         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
111587 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111589         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
111590         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
111591         reported by Mark D. Baushke, one in
111592         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
111594         Merge from coreutils.
111596         * lib/.cppi-disable: Add stdint_.h.
111597         * lib/.cvsignore: Add stdint.h.
111599         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111601         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
111602         both double and long double versions.
111603         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
111604         * lib/xstrtold.c: New file.
111605         * lib/xstrtod.h (xstrtold): New decl.
111607         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111609         * lib/filemode.c (setst): Remove.
111610         (strmode): Rewrite to avoid setst.  This makes the code shorter,
111611         (arguably) clearer, and the generated code is a bit smaller on my
111612         Debian GNU/Linux stable x86 host.
111614         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111616         * lib/filemode.c: Include "filemode.h" first, to test the interface.
111617         Assume that filemode.h includes sys/types.h and sys/stat.h.
111618         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
111619         (ftypelet): Reorder to put common cases first, for efficiency.
111620         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
111621         to do 'M'.
111622         (strmode): Renamed from mode_string, and now stores 12 bytes instead
111623         of 10, for compatibility with FreeBSD.  All callers changed.
111624         (filemodestring): Now stores 12 bytes instead of 10, and sets file
111625         types that can't be deduced solely from st_mode.  First arg is now a
111626         const pointer.
111627         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
111628         (strmode): Renamed from mode_string.
111629         (filemodestring): New decl.
111630         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
111631         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
111632         needed.
111633         (S_ISPORT, S_ISWHT): New macros, if not already defined.
111635         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111637         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
111638         fsusage.h now does that.  Include fsusage.h first, to test interface.
111639         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
111640         at most one method (the old code could have generated decls that
111641         didn't conform to C89, not that this was ever exercised).
111642         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
111644         2006-03-19  Jim Meyering  <jim@meyering.net>
111646         Work even in a chroot where d_ino values for entries in "/"
111647         don't match the stat.st_ino values for the same names.
111648         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
111649         number, iterate through all entries again, using lstat instead.
111650         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
111651         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
111653         * lib/getcwd.c (__getcwd): Clarify a comment.
111654         Use memcpy in place of a call to strcpy.
111656         2006-03-12  Jim Meyering  <jim@meyering.net>
111658         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
111659         matches that of the current directory (which we're about to chdir ".."
111660         out of), then save the dev-ino of the parent, instead.
111662         * lib/same-inode.h (SAME_INODE): New file/macro.
111663         * lib/chdir-safer.c (SAME_INODE): Remove definition.
111664         Include "same-inode.h", instead.
111665         * lib/same.c: Likewise.
111666         * lib/cycle-check.h: Include "same-inode.h".
111667         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
111668         * lib/cycle-check.c (SAME_INODE): Remove definition.
111669         * lib/root-dev-ino.h: Include "same-inode.h".
111671         2006-03-11  Eric Blake  <ebb9@byu.net>
111673         * lib/same.c (same_name): s/base_name/last_component/
111674         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
111675         * lib/filenamecat.c (file_name_concat): Likewise.
111677         2006-03-11  Eric Blake  <ebb9@byu.net>,
111678                     Paul Eggert  <eggert@cs.ucla.edu>
111680         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
111681         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
111682         drive prefix.
111683         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
111684         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
111685         (last_component): New method.
111686         * lib/dirname.c (dir_len): Determine when drive letters need a
111687         subsequent slash.  Preserve // when it is special.
111688         (dir_name): Don't append dot when drive letter is absolute.
111689         [TEST_DIRNAME]: Move into a full-blown gnulib test.
111690         * lib/basename.c (base_name): New semantics - malloc the result.
111691         Preserve // when it is special.  Preserve relative files that look
111692         like drive letters.
111693         (base_len): Preserve // when it is special.
111694         (last_component): New method, similar to old base_name semantics.
111695         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
111696         base_name.  Strip redundant slashes from ///.
111698 2006-07-03  Jim Meyering  <jim@meyering.net>
111700         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
111701         macro is used before the first cycle_check call.
111703 2006-07-03  Eric Blake  <ebb9@byu.net>
111705         * modules/dirname (Depends-on): Add xstrndup.
111707 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111709         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
111710         test cases, so that config.log is a bit easier to follow.
111712 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111714         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
111715         both are 64 bits, since this seems to be the tradition, and this
111716         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
111717         we ever run into a host that prefers long long to long in this
111718         case, we'll need another configure-time test.  Problem reported by
111719         Jim Meyering.
111721 2006-07-02  Eric Blake  <ebb9@byu.net>
111723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
111725 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111727         * modules/inttypes (Depends-on): No longer depends on stdint.
111728         * modules/stdint (Description): Say more about assumptions.
111729         Say that the fast types might differ.  Say macros are used.
111730         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
111731         (Makefile.am): Revise list of substituted symbols to match
111732         new stdint.m4.
111733         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
111734         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
111735         * tests/test-stdint.c (verify_same_types)
111736         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
111737         the code conforms to C99/C89.
111738         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
111739         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
111741 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
111744         but fix a bug, by requiring at least 64 bits.
111745         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
111746         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
111747         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
111748         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111750         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
111751         changes.  Make 2.59 a prerequisite.  Check and substitute for
111752         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
111753         inttypes.h.  Do not use special include files; just use the
111754         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
111755         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
111756         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
111757         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
111758         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
111759         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
111760         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
111761         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
111762         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
111763         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
111764         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
111765         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
111766         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
111767         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
111768         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
111769         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
111770         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
111771         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
111772         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
111773         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
111774         WINT_MAX.  Check for C99 conformance more strictly, by detecting
111775         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
111776         not check for things that C99 does not require, e.g., int8_t.  If
111777         a test isn't needed unless <stdint.h> isn't working, and is
111778         unlikely to be needed for any other reason, then don't do it
111779         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
111780         size_t, since we assume C89 freestanding at least.  Do not check
111781         for sig_atomic_t, wchar_t, or wint_t, since the code now does
111782         the right thing even if the types are not defined.  Instead use:
111783         (gl_STDINT_TYPE_PROPERTIES): New macro.
111784         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
111785         testing whether <sys/types.h> clashes, as Autoconf does this for
111786         us now.  All uses removed.
111787         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
111788         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
111789         (gl_CHECK_TYPE_SAME):
111790         Remove; no longer needed.
111791         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
111792         exists, since we'll return 0 anyway in that case.
111793         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
111795 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111797         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
111798         possible collision with system files.
111799         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
111800         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
111801         WCHAR_MIN and WCHAR_MAX in this case.
111802         (<stddef.h>): Do not include; no longer needed.
111803         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
111804         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
111805         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
111806         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
111807         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
111808         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
111809         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
111810         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
111811         !defined(__c99))]: Include in this case too, since it's harmless
111812         now.
111813         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
111814         dangerous to do so.
111815         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
111816         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
111817         (_STDINT_MIN, _STDINT_MAX): New macros.
111818         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
111819         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
111820         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
111821         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
111822         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
111823         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
111824         macros, not typedefs; this simplifies things quite a bit.
111825         Use long int for all types narrower than int64_t.
111826         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
111827         Define in terms of long long int or int64_t or long int,
111828         not int64_t or int32_t.  This saves some compile-time testing.
111829         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
111830         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
111831         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
111832         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
111833         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
111834         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
111835         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
111836         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
111837         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
111838         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
111839         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
111840         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
111841         undef any previous version and define our own version, for
111842         simplicity and consistency with the new macros for types.
111843         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
111844         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
111845         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
111846         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
111847         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
111848         @WINT_T_SUFFIX@ to keep things simple here.
111849         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
111850         Simplify by assuming typical 8/16/32/64 host, since we're
111851         already doing that elsewhere anyway.
111852         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
111853         and assume long long int is 64 bits if available.  This
111854         speeds up 'configure'.
111856 2006-07-01  Eric Blake  <ebb9@byu.net>
111858         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
111859         Reported by Andreas Buening.
111861 2006-07-01  Eric Blake  <ebb9@byu.net>
111863         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
111865 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111867         * lib/getaddrinfo.c: fixed typo
111869 2006-06-29  Jim Meyering  <jim@meyering.net>
111871         * modules/strftime (Maintainer): Add my name, since with the
111872         FPRINTFTIME changes strftime.c has forked from glibc.
111874 2006-06-29  Eric Blake  <ebb9@byu.net>
111876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
111878 2006-06-29  Eric Blake  <ebb9@byu.net>
111880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
111882 2006-06-29  Eric Blake  <ebb9@byu.net>
111884         * lib/stat_.h: New file.
111886 2006-06-29  Eric Blake  <ebb9@byu.net>
111888         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
111889         unused static function.
111891 2006-06-29  Eric Blake  <ebb9@byu.net>
111893         * doc/functions.texi (Function Portability): Document missing lstat
111894         on mingw.
111896 2006-06-29  Eric Blake  <ebb9@byu.net>
111898         * MODULES.html.sh: Add sys_stat.
111899         * modules/sys_stat: New module.
111900         * modules/mkstemp (Depends-on): Add sys_stat.
111902 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111904         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
111906 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111908         * m4/c-bs-a.m4: Removed.
111910 2006-06-29  Derek R. Price  <derek@ximbiot.com>
111912         * lib/strftime.c: Assume strftime() exists.
111914 2006-06-29  Derek Price  <derek@ximbiot.com>
111916         * modules/c-bs-a: Removed - \a is C89.
111917         * MODULES.html.sh: Remove c-bs-a.
111919 2006-06-29  Bruno Haible  <bruno@clisp.org>
111921         * modules/wcwidth (License): Change to LGPL.
111923 2006-06-28  Simon Josefsson  <jas@extundo.com>
111925         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
111926         on _WIN32.
111928         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
111929         getnameinfo.
111931 2006-06-28  Simon Josefsson  <jas@extundo.com>
111933         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
111935 2006-06-28  Simon Josefsson  <jas@extundo.com>
111937         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
111938         functions there.  It will succeed on Windows XP, but on Windows
111939         2000 and (presumably) earlier, it will fail, and use the internal
111940         re-implementation.
111941         (use_win32_p): New function.
111942         (getaddrinfo): Use strtoul on servname, to support numeric ports.
111943         Support AI_NUMERICSERV to disable getservbyname.
111944         (getnameinfo): New function, only supports
111945         NI_NUMERICHOST|NI_NUMERICSERV for now.
111947         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
111948         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
111949         getnameinfo.
111951 2006-06-28  Eric Blake  <ebb9@byu.net>
111953         * modules/wcwidth: New file.
111954         * modules/mbchar (Depends-on): Add wcwidth.
111955         * modules/mbswidth (Depends-on): Add wcwidth.
111956         * MODULES.html.sh: Add wcwidth.
111958 2006-06-28  Eric Blake  <ebb9@byu.net>
111960         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
111961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
111963 2006-06-28  Eric Blake  <ebb9@byu.net>
111965         * lib/xvasprintf.h: Fix comments.
111967 2006-06-28  Eric Blake  <ebb9@byu.net>
111969         * lib/mbchar.h (wcwidth): Include wcwidth.h.
111970         * lib/mbswidth.c (wcwidth): Move from here...
111971         * lib/wcwidth.h: ...to this new file.
111973 2006-06-28  Derek R. Price  <derek@ximbiot.com>
111975         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
111977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
111978         it's obsolete.
111979         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
111981 2006-06-28  Derek R. Price  <derek@ximbiot.com>
111983         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
111984         Autoconf 2.60 says this stuff was obsolete.
111986 2006-06-28  Bruno Haible  <bruno@clisp.org>
111988         * modules/wcwidth (Files): Add m4/wchar_t.m4.
111990 2006-06-28  Bruno Haible  <bruno@clisp.org>
111992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
111993         gt_TYPE_WCHAR_T.
111995 2006-06-28  Bruno Haible  <bruno@clisp.org>
111997         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
111998         declaration for wcwidth.
111999         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112001 2006-06-28  Bruno Haible  <bruno@clisp.org>
112003         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112004         (mkdir): Define using _mkdir.
112006 2006-06-28  Bruno Haible  <bruno@clisp.org>
112008         * lib/getaddrinfo.h: Fix POSIX URL.
112009         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112010         _WIN32.
112011         (use_win32_p): Make static.
112012         (getaddrinfo): Reject service name if it is empty or does not consist
112013         solely of decimal digits, or if its value is > 65535.
112014         (getnameinfo): Remove useless casts.
112016 2006-06-27  Simon Josefsson  <jas@extundo.com>
112018         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112019         Eggert and Martin Lambers.
112021 2006-06-27  Simon Josefsson  <jas@extundo.com>
112023         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112024         Eggert and Martin Lambers.
112026 2006-06-27  Bruno Haible  <bruno@clisp.org>
112028         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112029         result to 0, not to empty.
112030         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112032 2006-06-27  Bruno Haible  <bruno@clisp.org>
112034         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112036 2006-06-26  Simon Josefsson  <jas@extundo.com>
112038         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112039         present.
112041 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112043         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112044         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112045         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112047 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112049         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112051 2006-06-26  Bruno Haible  <bruno@clisp.org>
112053         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112055 2006-06-26  Bruno Haible  <bruno@clisp.org>
112057         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112059 2006-06-26  Bruno Haible  <bruno@clisp.org>
112061         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112062         SGI C compiler in pre-C99 mode.
112063         Suggested by Mark D. Baushke and Larry Jones.
112065 2006-06-26  Bruno Haible  <bruno@clisp.org>
112067         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112068         WCHAR_MAX.
112069         Reported by Mark D. Baushke and Larry Jones.
112071 2006-06-26  Bruno Haible  <bruno@clisp.org>
112073         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112074         in pre-C99 mode.
112075         Suggested by Mark D. Baushke and Larry Jones.
112077 2006-06-23  Simon Josefsson  <jas@extundo.com>
112078             Bruno Haible  <bruno@clisp.org>
112080         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112081         Emit mostlyclean-local rule.
112082         (func_emit_tests_Makefile_am): Likewise.
112083         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112085 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112087         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112089 2006-06-23  Bruno Haible  <bruno@clisp.org>
112091         * tests/test-stdint.c: Update to match ISO C 99 Technical
112092         Corrigendum 1.
112094 2006-06-23  Bruno Haible  <bruno@clisp.org>
112096         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112098 2006-06-23  Bruno Haible  <bruno@clisp.org>
112100         * lib/stdint_.h: Treat IRIX like OpenBSD.
112102 2006-06-23  Bruno Haible  <bruno@clisp.org>
112104         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112105         ISO C 99 Technical Corrigendum 1.
112107 2006-06-22  Simon Josefsson  <jas@extundo.com>
112109         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112110         MinGW.
112112 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112114         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112115         needed.  Some compiler complained about some of them.  Problem reported
112116         by Larry Jones in
112117         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112119 2006-06-21  Simon Josefsson  <jas@extundo.com>
112121         * tests/test-getaddrinfo.c: New file.
112123         * modules/getaddrinfo-tests: New file.
112125         * MODULES.html.sh: Add inet_pton.
112127         * modules/inet_pton: New file.
112129 2006-06-21  Simon Josefsson  <jas@extundo.com>
112131         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112132         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112133         of using the (limited) gnulib implementation on Windows XP.
112135         * m4/inet_pton.m4: New file.
112137 2006-06-21  Simon Josefsson  <jas@extundo.com>
112139         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112140         variable.
112142         * lib/socket_.h: Don't define WINVER.
112144         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112145         slightly modified to work in gnulib.
112147 2006-06-21  Simon Josefsson  <jas@extundo.com>
112149         * doc/gnulib.texi (Windows sockets): Add.
112151 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112153         * lib/read-file.c (fread_file): Start with buffer allocation of
112154         0 bytes rather than 1 byte; this simplifies the code.
112155         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112156         code to free buffer and save/restore errno.
112157         (internal_read_file): Remove unused local.
112159 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112161         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112162         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112163         Problem reported by Denis Excoffier in
112164         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112166 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112168         * modules/sys_socket, modules/socklen: Include sys/types since
112169         FreeBSD 4.x's sys/socket.h needs it.
112171 2006-06-19  Simon Josefsson  <jas@extundo.com>
112173         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112175 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112177         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112179 2006-06-19  Bruno Haible  <bruno@clisp.org>
112181         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112182         and FULL_PATH_INTTYPES_H in angle brackets.
112183         Reported by Mark D. Baushke <mdb@gnu.org>.
112185 2006-06-17  Eric Blake  <ebb9@byu.net>
112187         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112188         errno.
112190 2006-06-17  Bruno Haible  <bruno@clisp.org>
112192         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112193         <sys/inttypes.h>.
112195 2006-06-17  Bruno Haible  <bruno@clisp.org>
112197         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112198         whether errno is declared. Assume <errno.h> declares errno.
112200 2006-06-17  Bruno Haible  <bruno@clisp.org>
112202         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112204 2006-06-17  Bruno Haible  <bruno@clisp.org>
112206         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112207         problem on Solaris 2.5.1.
112209 2006-06-16  Eric Blake  <ebb9@byu.net>
112211         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112212         * lib/unicodeio.c [!defined errno]: Likewise.
112213         * lib/strtol.c [!defined errno]: Likewise.
112214         * lib/strtod.c [!defined errno]: Likewise.
112216 2006-06-15  Eric Blake  <ebb9@byu.net>
112218         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112220 2006-06-15  Eric Blake  <ebb9@byu.net>
112222         * config/srclist.txt (ssize_t.m4): Lose sync.
112224 2006-06-15  Bruno Haible  <bruno@clisp.org>
112226         * modules/stdint (Files): Include m4/full-header-path.m4,
112227         m4/size_max.m4, m4/wchar_t.m4.
112228         (Makefile.am): Many more substitutions.
112229         * modules/stdint-tests: New file.
112230         * tests/test-stdint.c: New file.
112232 2006-06-15  Bruno Haible  <bruno@clisp.org>
112234         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112235         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112236         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112237         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112238         gl_CHECK_TYPE_SAME): New macros.
112240 2006-06-15  Bruno Haible  <bruno@clisp.org>
112242         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112244 2006-06-15  Bruno Haible  <bruno@clisp.org>
112246         * lib/stdint_.h: Rewritten to be fully auto-configured.
112247         Fixes bug on HP-UX/IA64.
112249 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112251         * lib/getdate.y (__attribute__): Don't define if already defined.
112252         Problem reported by Larry Jones.
112253         * lib/utimens.c (__attribute__): Likewise.
112255 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112257         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112258         reported by Andreas Schwab.
112260 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112261             Bruno Haible  <bruno@clisp.org>
112263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112264         check for the declaration of strnlen and a run test that exposes the
112265         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112266         rpl_strndup.
112268 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112269             Bruno Haible  <bruno@clisp.org>
112271         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112273 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112275         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112276         compile test, for Tru64 4.0D.
112278 2006-05-28  Karl Berry  <karl@gnu.org>
112280         * config/srclist.txt (printf-args.c): lose sync.
112282 2006-05-26  Martin Lambers  <marlam@marlam.de>
112284         * lib/getpass.c: Updates the test for the native W32 API, and adds
112285         missing includes, thus fixing compilation warnings.
112287 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112289         * lib/exclude.c (exclude_fnmatch): New function.
112290         (excluded_file_name): Call exclude_fnmatch.
112291         * lib/exclude.h (excluded_file_name): New prototype
112293 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112295         * lib/tempname.c (small_open, large_open): New macros.
112296         (__open, __open64) [!_LIBC]: Remove.
112297         (__gen_tempname): Use small_open and large_open instead of __open
112298         and __open64.  This fixes a portability bug on HP-UX 11.11i
112299         reported by Simon Wing-Tang in
112300         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112302 2006-05-24  Bruno Haible  <bruno@clisp.org>
112304         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112305         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112306         Reported by Thorsten Maerz <torte@netztorte.de> via
112307         Aaron Stone <aaron@serendipity.cx>.
112309 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112312         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112313         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112314         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112315         not really conditional on the cache.
112316         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112318 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112320         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112321         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112322         (my_usleep): Don't mishandle maximum value.
112324 2006-05-19  Jim Meyering  <jim@meyering.net>
112326         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112328 2006-05-17  Bruno Haible  <bruno@clisp.org>
112330         Cygwin portability.
112331         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112333 2006-05-17  Bruno Haible  <bruno@clisp.org>
112335         * lib/stdint_.h: Fix recognition of Cygwin.
112337 2006-05-15  Bruno Haible  <bruno@clisp.org>
112339         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112340         on libtool patch by Ralf Wildenhues.
112342 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112344         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112345         test for C99 conformance; (bool) 0.5 is an integer constant
112346         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112347         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112349 2006-05-11  Simon Josefsson  <jas@extundo.com>
112351         * m4/xvasprintf.m4: Fix obvious typo.
112353 2006-05-11  Jim Meyering  <jim@meyering.net>
112355         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112356         James Lemley.
112358 2006-05-10  Simon Josefsson  <jas@extundo.com>
112360         * lib/md4.c: Typo fix, update copyright years.
112361         (K1, K2): Don't use L because it turn computations into 64-bit on
112362         64-bit platforms.
112364 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112366         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112367         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112368         unwanted sign propagation, e.g., on hosts with 64-bit int.
112369         There still are some problems with reeelly weird theoretical hosts
112370         (e.g., 33-bit int) but it's not worth worrying about now.
112371         * lib/sha1.c (rol): Likewise.
112372         (K1, K2, K3, K4): Remove unnecessary L suffix.
112374 2006-05-10  Bruno Haible  <bruno@clisp.org>
112376         * lib/des.c: Cast to avoid warnings.
112378 2006-05-09  Bruno Haible  <bruno@clisp.org>
112380         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112381         (Depends-on): Depend also on xsize, stdarg.
112382         (configure.ac): Add gl_XVASPRINTF.
112384 2006-05-09  Bruno Haible  <bruno@clisp.org>
112386         * m4/xvasprintf.m4: New file.
112388 2006-05-09  Bruno Haible  <bruno@clisp.org>
112390         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112391         (EOVERFLOW): Define fallback value.
112392         (xstrcat): New function.
112393         (xvasprintf): Recognize the special case of a string concatenation.
112395 2006-05-08  Eric Blake  <ebb9@byu.net>
112397         * gnulib-tool (func_version): Base copyright year on CVS date.
112398         (func_emit_copyright_notice): New function.
112399         (func_emit_lib_Makefile_am): Use it.
112400         (func_emit_tests_Makefile_am): Likewise.
112401         (func_import): Likewise.
112403 2006-05-08  Bruno Haible  <bruno@clisp.org>
112405         * modules/stdarg: New file.
112406         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112408 2006-05-08  Bruno Haible  <bruno@clisp.org>
112410         * m4/stdarg.m4: New file, from GNU gettext.
112412 2006-05-08  Bruno Haible  <bruno@clisp.org>
112414         * config/srclist.txt (build-aux/config.rpath): different from latest
112415         release.
112417 2006-05-08  Bruno Haible  <bruno@clisp.org>
112419         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112421 2006-05-05  Jim Meyering  <jim@meyering.net>
112423         * m4/warning.m4: New file, derived from bison's file by the same name.
112425 2006-05-03  Bruno Haible  <bruno@clisp.org>
112427         * lib/stdint_.h: Shorter URL.
112428         * lib/inttypes.h: Likewise.
112430 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112432         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112434 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112436         * lib/verify.h: Document the internals better.  Most of this change
112437         was written by Bruno Haible.
112439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112441         * doc/verify.texi: New file, partly based on a proposal by
112442         Bruno Haible.
112444 2006-05-02  Bruno Haible  <bruno@clisp.org>
112446         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112447         test from here...
112448         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112450 2006-04-29  Bruno Haible  <bruno@clisp.org>
112452         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112453         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112455 2006-04-29  Bruno Haible  <bruno@clisp.org>
112457         * gnulib-tool: Make --update option actually work.
112459 2006-04-29  Bruno Haible  <bruno@clisp.org>
112461         * doc/gcd.texi: New file.
112462         * doc/gnulib.texi: Include it.
112464 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112466         * lib/getdate.y (get_date): When adding relative date, start with the
112467         initial time, not with the result of the first mktime call.
112469 2006-04-25  Bruno Haible  <bruno@clisp.org>
112471         * gnulib-tool (func_import): Output the include directives in three
112472         blocks, sorted separately.
112473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112475 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112477         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112478         to define main with arguments, for C++.  Reported by Eric Blake.
112479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112480         Prefer 'int main ()' to 'int main (void)', for C++.
112481         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112483         for 'main', for C99 and C++.
112485 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112488         Don't assume that exit status -1 is valid.
112489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112490         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112492         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112493         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112494         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112495         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112496         functions can be used without declaring them, or that you can
112497         exit with status -1.
112498         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112500 2006-04-24  Karl Berry  <karl@gnu.org>
112502         * config/srclist.txt (longdouble.m4): sync lost.
112504 2006-04-24  Eric Blake  <ebb9@byu.net>
112506         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112508 2006-04-24  Bruno Haible  <bruno@clisp.org>
112510         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112511         poll() implementation in AIX.
112512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112514 2006-04-24  Bruno Haible  <bruno@clisp.org>
112516         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112517         assigned exactly once.
112519 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112520             Bruno Haible  <bruno@clisp.org>
112522         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112523         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112524         for AM_CPPFLAGS.
112526 2006-04-23  Bruno Haible  <bruno@clisp.org>
112528         * modules/copy-file: Depend on unistd.
112529         * modules/execute: Likewise.
112530         * modules/fatal-signal: Likewise.
112531         * modules/findprog: Likewise.
112532         * modules/mkdtemp : Likewise.
112533         * modules/pipe: Likewise.
112534         * modules/wait-process: Likewise.
112536 2006-04-23  Bruno Haible  <bruno@clisp.org>
112538         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112539         condition was already detected.
112540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112542 2006-04-23  Bruno Haible  <bruno@clisp.org>
112544         * lib/copy-file.c: Include <unistd.h> unconditionally.
112545         * lib/execute.c: Likewise.
112546         * lib/fatal-signal.c: Likewise.
112547         * lib/findprog.c: Likewise.
112548         * lib/mkdtemp.c: Likewise.
112549         * lib/pipe.h: Likewise.
112550         * lib/pipe.c: Likewise.
112551         * lib/wait-process.h: Likewise.
112553 2006-04-23  Bruno Haible  <bruno@clisp.org>
112555         * gnulib-tool (func_usage): Fix --import description. Document
112556         --update.
112557         (func_import): Create temporary file in a temporary directory, if
112558         --dry-run is specified. Silence errors from 'grep' when there are no
112559         m4 files in $m4dir.
112560         (func_create_testdir): Silence errors from 'grep' when there are no
112561         m4 files in $m4dir.
112562         Reported by Karl Berry <karl@freefriends.org>.
112564 2006-04-20  Bruno Haible  <bruno@clisp.org>
112566         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112567         one argument, so that the code will be portable to Autoconf 2.60.
112568         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112569         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112570         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112572 2006-04-19  Derek Price  <derek@ximbiot.com>
112573             Eric Blake  <ebb9@byu.net>
112575         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112576         rather than "/full/path.h".  Update comment to match.  Shorten &
112577         generalize m4_translit call via AS_TR_CPP.
112579 2006-04-19  Derek Price  <derek@ximbiot.com>
112580             Eric Blake  <ebb9@byu.net>
112582         * lib/inttypes.h: Correct grammar in comment.
112584 2006-04-18  Derek Price  <derek@ximbiot.com>
112585             Paul Eggert  <eggert@cs.ucla.edu>
112587         * modules/inttypes: New file.
112588         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
112590 2006-04-18  Derek Price  <derek@ximbiot.com>
112591             Paul Eggert  <eggert@cs.ucla.edu>
112593         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
112594         New files.
112596 2006-04-18  Derek Price  <derek@ximbiot.com>
112597             Paul Eggert  <eggert@cs.ucla.edu>
112599         * lib/inttypes.h: New file.
112600         * lib/strtoimax.c: Assume <inttypes.h>.
112602 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
112604         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
112605         isn't mounted.  Problem reported by Kir Kolyshkin.
112607 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112609         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
112610         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
112611         Derek R. Price.
112612         * lib/regex.h (RE_DUP_MAX): Update comment to match current
112613         implementation.
112615 2006-04-12  Eric Blake  <ebb9@byu.net>
112617         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
112618         is now done automatically by the corresponding Autoconf macro.
112620 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
112622         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
112623         time_r.h.
112625 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112627         Merge regex changes from libc, removing some of our
112628         POSIX-conformance changes that were rejected and redoing them in a
112629         less-intrusive way.
112631         * lib/regcomp.c (re_compile_internal, init_dfa):
112632         Length arg is now size_t, not Idx.  All uses changed.
112633         (peek_token): Forward decl now says internal_function.
112634         (__re_error_msgid, __re_error_msgid_idx):
112635         Now static rather than extern with attribute_hidden.
112636         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
112637         For some reason libc prefers K&R style defns for external functions.
112638         (regerror) [!defined _LIBC]: Likewise.
112639         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
112640         (seek_collating_symbol_entry, lookup_collation_sequence_value):
112641         (build_range_exp, build_collating_symbol):
112642         Use K&R-style defn.
112643         (re_compile_fastmap): Use '\0' to memset, not 0.
112644         (utf8_sb_map): Make the calculations more obvious.
112645         (init_dfa, parse_bracket_exp, build_charclass_op):
112646         Call calloc and cast result, as glibc does.
112647         (init_word_char, fetch_token, peek_token, peek_token_bracket):
112648         (build_range_exp, build_collating_symbol):
112649         Now internal functions.
112651         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
112653         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
112654         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
112655         Don't depend on VMS; depend on __VMS instead, for POSIX
112656         namespace cleanness.
112657         (regoff_t): Define to ssize_t, not long int.
112659         Remove the REG_ macros named below.  Instead, make the old names
112660         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
112661         __USE_GNU_REGEX.
112662         (REG_BACKSLASH_ESCAPE_IN_LISTS):
112663         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
112664         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
112665         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
112666         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
112667         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
112668         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
112669         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
112670         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
112671         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
112672         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
112673         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
112674         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
112675         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
112676         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
112677         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
112678         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
112679         (REG_NREGS):
112680         Remove.  All uses replaced by the old RE_* names.
112681         (RE_BACKSLASH_ESCAPE_IN_LISTS):
112682         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
112683         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
112684         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
112685         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
112686         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
112687         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
112688         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
112689         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
112690         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
112691         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
112692         Don't bother having these macros be independent of each others'
112693         values, since they no longer exist in the POSIX name space.
112695         Rename the following member names back to their old names,
112696         unless !__USE_GNU_REGEX.  All uses changed back.
112697         (buffer): Renamed from re_buffer.
112698         (allocated): Renamed from re_allocated.
112699         (used): Renamed from re_used.
112700         (syntax): Renamed from re_syntax.
112701         (fastmap): Renamed from re_fastmap.
112702         (translate): Renamed from re_translate.
112703         (can_be_null): Renamed from re_can_be_null.
112704         (regs_allocated): Renamed from re_regs_allocated.
112705         (fastmap_accurate): Renamed from re_fastmap_accurate.
112706         (no_sub): Renamed from re_no_sub.
112707         (not_bol): Renamed from re_not_bol.
112708         (not_eol): Renamed from re_not_eol.
112709         (newline_anchor): Renamed from re_newline_anchor.
112710         (num_regs): Renamed from rm_num_regs.
112711         (start): Renamed from rm_start.
112712         (end): Renamed from rm_end.
112714         (free_state): Move up a bit.
112716         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
112717         #define to be empty.
112718         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
112719         when that is what is intended.
112720         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
112721         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
112722         (MAX): New macro.
112723         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
112724         All uses changed back to re_malloc, etc.  It's now the caller's
112725         responsibility to check for overflow; all callers changed.
112726         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
112727         (re_x2nrealloc): Remove.
112728         (free_state): Remove decl.
112730         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
112731         (re_set_registers, re_exec):
112732         Use K&R-style defn.
112734         2006-01-31  Roland McGrath  <roland@redhat.com>
112736         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
112737         Reported by Mike Frysinger <vapier@gentoo.org>.
112739         2006-01-15  Andreas Jaeger  <aj@suse.de>
112741         [BZ #1950]
112742         * lib/regex_internal.c (re_string_reconstruct): Adjust for
112743         build_wcs_upper_buffer change.
112744         (build_wcs_upper_buffer): Change return type.
112746         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
112748         * lib/regex_internal.h: Include <stdint.h> if available.
112750         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
112752         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
112754         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
112756         * lib/regcomp.c: Adjust for changed secondary hash function.
112758         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
112760         * lib/regex.h: Pretty printing.
112761         Clean up namespace a bit.
112763         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
112765         * lib/regexec.c (update_cur_sifted_state, check_arrival,
112766         check_arrival_add_next_nodes): Avoid using uninitialized variable.
112768         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
112769                     Ulrich Drepper  <drepper@redhat.com>
112771         [BZ #1302]
112772         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
112773         changed.
112774         (bitset_word_t): Renamed from bitset_word.  All uses changed.
112776         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
112778         [BZ #281]
112779         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
112780         * lib/regcomp.c: Remove unnecessary uses of
112781         unsigned RE_TRANSLATE_TYPE.
112782         * lib/regex_internal.h: Likewise.
112783         * lib/regex_internal.c: Likewise.
112784         * lib/regexec.c: Likewise.
112785         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
112787         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
112789         * lib/regexec.c (find_recover_state): Remove unnecessary
112790         initialization.
112791         (transit_state_bkref): Make DFA a const pointer.
112792         (get_subexp): Likewise.
112793         (check_arrival): Likewise.
112794         (update_cur_sifted_state): Likewise.
112795         (re_search_internal): Likewise.
112796         (prune_impossible_nodes): Likewise.
112797         (acquire_init_state_context): Likewise.
112798         (proceed_next_node): Likewise.
112799         (set_regs): Likewise.
112800         (free_fail_stack_return): Likewise.
112801         (check_arrival_expand_ecl): Mark DFA parameter as const.
112802         (check_arrival_expand_ecl_sub): Likewise.
112803         (check_subexp_limits): Likewise.
112804         (sub_epsilon_src_nodes):  Likewise.
112805         (add_epsilon_src_nodes):  Likewise.
112806         (merge_state_array): Likewise.
112807         (update_regs): Likewise.
112808         (build_trtable): Likewise.
112809         (sift_states_backward): Mark MCTX parameter as const.
112810         (build_sifted_states): Likewise.
112811         (update_cur_sifted_state): Likewise.
112812         (sift_states_mkref): Likewise.
112813         (check_arrival_expand_ecl): Mark eclosure as const.
112814         (check_dst_limits_calc_pos_1): Likewise.
112815         * lib/regex_internal.h (re_match_context_t): Make dfa a const
112816         pointer.
112818         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
112820         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
112821         (transit_state_sb): Likewise.
112822         (transit_state_mb): Likewise.
112823         (sift_states_iter_mb): Likewise.
112824         (check_arrival_add_next_nodes): Likewise.
112825         (check_node_accept_bytes): Change first parameter to pointer-to-const.
112826         [_LIBC] (re_search_2_stub): Use mempcpy.
112828         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
112829         mbrtowc for very simple UTF-8 case.
112831         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
112832         a pointer-to-const.
112833         (re_acquire_state_context): Likewise.
112834         * lib/regex_internal.h: Adjust prototypes.
112836         * lib/regex.c: Prevent using C++ compilers.
112838         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
112839         (re_acquire_state_context): Likewise.
112841 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112843         * modules/regex (Depends-on): Add ssize_t.
112845 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112847         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
112848         translation table.
112850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112852         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
112854 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
112855             Bruno Haible  <bruno@clisp.org>
112857         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
112858         <sys/types.h> and <inttypes.h>.
112860 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112862         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
112863         `__error_t_defined', so argp.h will not typedef the former.
112865 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
112867         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
112868         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
112869         glibc names.  Even if glibc is changed to conform to POSIX, the
112870         traditional names will be available anyway, since regex depends on
112871         the extensions module.  Also, fix a longstanding typo in the
112872         implementation of Spencer ERE test #75 from grep 2.3.  Problems
112873         reported by Emanuele Giaquinta.  Also, change sense of cached
112874         variable, so that the message makes sense.
112876 2006-03-24  Simon Josefsson  <jas@extundo.com>
112878         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
112879         including some doc fixes.
112880         (base64_encode_alloc): Fix +1 bug on allocation failures.
112882 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112884         * lib/base64.c (base64_encode): Do not read past end of array with
112885         unsanitized input on systems with CHAR_BIT > 8.
112887 2006-03-24  Eric Blake  <ebb9@byu.net>
112889         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
112891 2006-03-22  Karl Berry  <karl@gnu.org>
112893         * config/srclist.txt (*setenv.[ch]): get from coreutils.
112894         * config/srclistvars.sh (COREUTILS): new var.
112896 2006-03-17  Jim Meyering  <jim@meyering.net>
112898         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
112899         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
112901 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
112903         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
112904         no longer needs it.  Instead, check that regoff_t is as least
112905         as wide as ptrdiff_t.
112907         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
112908         so that our regex.h stays compatible with the installed regex.
112909         This is helpful for installers who configure --without-included-regex.
112910         Problem reported by Emanuele Giaquinta.
112912 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
112914         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
112915         Typedef to long int, not to off_, as POSIX will likely change
112916         in that direction.
112918 2006-03-15  Eric Blake  <ebb9@byu.net>
112920         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
112922 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
112924         * lib/argp-help.c (validate_uparams): Fix typo
112925         * lib/argp-parse.c (argp_default_options): Consistently begin help
112926         messages with a lowercase letter.
112928 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
112930         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
112931         overrun buffers and shouldn't be used (much as gets shouldn't be
112932         used).
112933         * lib/time_r.c (asctime_r, ctime_r): Likewise.
112935 2006-03-08  Simon Josefsson  <jas@extundo.com>
112937         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
112938         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112940 2006-03-08  Simon Josefsson  <jas@extundo.com>
112942         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
112943         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112945 2006-03-08  Simon Josefsson  <jas@extundo.com>
112947         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
112948         signal that configure disabled the device.
112950 2006-03-08  Simon Josefsson  <jas@extundo.com>
112952         * build-aux/maint.mk: Fix refresh-po, to handle no translated
112953         languages.
112955 2006-03-07  Simon Josefsson  <jas@extundo.com>
112957         * modules/getopt (Depends-on): Add unistd.
112959         * modules/unistd: New file.
112961 2006-03-07  Simon Josefsson  <jas@extundo.com>
112963         * modules/gc-random: New file.
112965 2006-03-07  Simon Josefsson  <jas@extundo.com>
112967         * m4/unistd_h.m4: New file.
112969 2006-03-07  Simon Josefsson  <jas@extundo.com>
112971         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
112972         test to be side-effect free by storing the result in the cache
112973         variable gl_cv_lib_readline, and moving the assignment of
112974         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
112975         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112977 2006-03-07  Simon Josefsson  <jas@extundo.com>
112979         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
112980         error on missing devices (the functions will return an error).
112982         * m4/gc.m4: Move random stuff to gc-random.m4
112984 2006-03-07  Simon Josefsson  <jas@extundo.com>
112986         * lib/unistd_.h: New file.
112988 2006-03-07  Simon Josefsson  <jas@extundo.com>
112990         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
112992 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
112994         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
112995         Problem reported by Juan Manuel Guerrero.
112997 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
112999         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113000         the unistd module.
113001         * lib/getlogin_r.c: Likewise.
113002         * lib/getlogin_r.h: Likewise.
113003         * lib/glob.c: Likewise.
113004         * lib/pagealign_alloc.c: Likewise.
113005         * lib/unistd_.h: Remove; no longer needed.
113007 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113009         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113010         Add unistd.
113011         * modules/c-stack (Depends-on): Add unistd.
113012         * modules/getlogin_r: Likewise.
113013         * modules/glob: Likewise.
113014         * modules/pagealign_alloc: Likewise.
113015         * modules/unistd (Files): Remove lib/unistd_.h.
113016         (EXTRA_DIST): Remove.
113017         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113018         need unistd_.h.
113019         (MOSTLYCLEANFILES): Remove unistd.h-t.
113021 2006-03-03  Simon Josefsson  <jas@extundo.com>
113023         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113025 2006-03-03  Simon Josefsson  <jas@extundo.com>
113027         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113028         libidn and bison.
113030 2006-03-03  Simon Josefsson  <jas@extundo.com>
113032         * build-aux/maint.mk: Add indent target.
113034 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113036         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113037         our replacement poll.h in any case, to avoid a differing
113038         declaration from a system header.  Seen on AIX.
113040 2006-03-01  Simon Josefsson  <jas@extundo.com>
113042         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113043         <kasal@ucw.cz>.
113045 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113047         * modules/gettime (Depends-on): Add extensions module.
113048         * modules/nanosleep (Depends-on): Likewise.
113049         * modules/settime (Depends-on): Likewise.
113051 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113053         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113054         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113055         pedantically.
113056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113057         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113060         not "==".  Reported by Ralf Wildenhues.
113062 2006-03-01  Karl Berry  <karl@gnu.org>
113064         * doc/Copyright/request-*: new files, synced from gnuorg.
113066 2006-03-01  Karl Berry  <karl@gnu.org>
113068         * config/srclist.txt (Copyright/*): new entries.
113070 2006-02-28  Simon Josefsson  <jas@extundo.com>
113072         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113074 2006-02-27  Simon Josefsson  <jas@extundo.com>
113076         * lib/base64.h: Indent #define's.  From Jim Meyering
113077         <jim@meyering.net>.
113079 2006-02-27  Jim Meyering  <jim@meyering.net>
113081         Revert the change of 2006-02-24, so these files can continue
113082         to be sync'd from gettext.
113083         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113084         of `config.h'.
113086 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113088         * modules/intprops: New file.
113089         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113090         Add intprops.
113091         * modules/getloadavg (Files): Remove lib/intprops.h.
113092         (Depends-on): Add intprops.
113093         * modules/human: Likewise.
113094         * modules/inttostr: Likewise.
113095         * modules/openat: Likewise.
113096         * modules/sig2str: Likewise.
113097         * modules/userspec: Likewise.
113098         * modules/utimecmp: Likewise.
113099         * modules/xnanosleep: Likewise.
113100         * modules/xstrtol: Likewise.
113102 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113104         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113105         * modules/lock-tests (TESTS): Use $(EXEEXT).
113106         * modules/tls-tests: Likewise.
113107         * modules/argp-tests: Likewise.
113108         (check_PROGRAMS): New var, replacing...
113109         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113111 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113113         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113114         `config.h'.
113116 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113118         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113120 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113122         Sync from coreutils.
113123         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113124         gl_CHDIR_SAFER.
113126 2006-02-22  Jim Meyering  <jim@meyering.net>
113128         Sync from coreutils.
113129         * m4/chdir-safer.m4: New file.
113131 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113133         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113134         AT_FDCWD exceeds INT_MAX.
113135         * lib/openat.h (AT_FDCWD): Likewise.
113137 2006-02-17  Eric Blake  <address@hidden>
113139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113141 2006-02-16  Simon Josefsson  <jas@extundo.com>
113143         * modules/getaddrinfo (Depends-on): Add sys_socket.
113145 2006-02-15  Simon Josefsson  <jas@extundo.com>
113147         * build-aux/maint.mk: Add dsyntax-check rule.
113149 2006-02-15  Eric Blake  <ebb9@byu.net>
113151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113152         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113153         'present but cannot compile' warnings on cygwin.
113154         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113155         use ws2tcpip.h if sys/socket.h works.
113156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113157         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113159 2006-02-14  Simon Josefsson  <jas@extundo.com>
113161         * modules/maintainer-makefile (Files): Rename.
113163         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113164         and (the local) Makefile.cfg to maint-cfg.mk.
113166         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113167         to the latter.
113169         * modules/maintainer-makefile: New module.
113171         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113172         severaly stripped to make it possible to build it up from scratch
113173         with reliable tests.
113175         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113176         fixes to permit overriding the default actions when configure and
113177         makefile are not available.
113179 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113181         Sync from coreutils.
113182         * modules/lstat (Depends-on): Don't depend on xalloc.
113183         (License): Change from GPL to LGPL, since this is now simply a
113184         replacement for a libc function.
113186 2006-02-14  Jim Meyering  <jim@meyering.net>
113188         Sync from coreutils.
113190         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113191         failure on deficient systems, and simplify gnulib lgpl dependencies.
113192         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113193         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113195         * lib/xalloc-die.c: Remove unused definition of N_.
113197 2006-02-14  Jim Meyering  <jim@meyering.net>
113199         Sync from coreutils.
113200         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113201         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113202         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113203         double-quote uses of that variable, to accommodate the rare case in
113204         which getmntent is available in none of the libraries checked.  This
113205         happens at least on FreeBSD 5.0.
113207 2006-02-13  Simon Josefsson  <jas@extundo.com>
113209         * gnulib-tool (Usage): Fix --import, from
113210         karl@freefriends.org (Karl Berry).
113212 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113214         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113216 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113218         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113219         "autoupdate" on 2005-12-12.
113221 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113223         * modules/closeout (Depends-on): Remove atexit.
113225 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113227         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113228         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113230 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113233         __EXTENSIONS__ if this causes compilation to fail.  Problem
113234         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113235         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113237 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113239         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113240         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113241         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113242         All uses changed.
113244 2006-01-26  Simon Josefsson  <jas@extundo.com>
113246         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113247         prototype is visible on mingw32.
113249         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113250         for mingw32.
113252         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113253         mingw32).
113255 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113257         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113258         attempt to open for write; this always fails, at least on POSIX
113259         hosts.  This reinstates the 2006-01-09 change, which was
113260         inadvertently removed.
113262 2006-01-26  Bruno Haible  <bruno@clisp.org>
113264         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113265         Reported by Paul Eggert.
113267 2006-01-26  Bruno Haible  <bruno@clisp.org>
113268             Paul Eggert  <eggert@cs.ucla.edu>
113270         * lib/stdbool_.h (_Bool)
113271         [(! (defined __cplusplus || defined __BEOS__)
113272           && !defined __GNUC__
113273           && !(defined __HP_cc || defined __xlc__
113274                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113275                || defined __sgi))]:
113276         #define to signed char in these cases too; this simplifies
113277         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113278         etc., separately) and makes it more conservative.
113280 2006-01-25  Simon Josefsson  <jas@extundo.com>
113282         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113283         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113284         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113286 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113288         * lib/argp-namefrob.h: Bugfix. Remove stray #
113290 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113293         so that we test the test.
113294         Check for yet another HP-UX cc bug involving *bool |= bool.
113296 2006-01-25  Karl Berry  <karl@gnu.org>
113298         * config/srclist.txt (vasnprintf.c): sync lost.
113300 2006-01-25  Jim Meyering  <jim@meyering.net>
113302         Sync from the stable (b5) branch of coreutils:
113304         * lib/fts.c (fts_children): Don't let close() clobber errno from
113305         failed fchdir().
113307         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113308         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113309         a dangling symlink.  That can also happen at least for ELOOP.
113310         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113311         FYI, this bug predates the inclusion of fts.c in coreutils.
113313         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113314         in their own block, so pre-c99 compilers don't object.
113316         Avoid the double-free (first in fts_read, second in fts_close) that
113317         would occur when an `active' directory is made inaccessible (e.g.,
113318         via chmod a-x) during a traversal.
113319         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113320         before returning.  Reproduce this failure by
113321         mkdir -p a/b; cd a; chmod a-x . b
113322         Reported by Stavros Passas.
113324 2006-01-25  Jim Meyering  <jim@meyering.net>
113326         * lib/fileblocks.c: Remove more useless parentheses.
113327         * lib/readutmp.h: Likewise.
113329 2006-01-25  Bruno Haible  <bruno@clisp.org>
113331         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113332         warnings.
113333         Reported by Paul Eggert.
113335 2006-01-25  Bruno Haible  <bruno@clisp.org>
113337         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113338         rid of a trap command. For Solaris sh.
113339         Reported by Mark D. Baushke <mdb@gnu.org>.
113341 2006-01-24  Simon Josefsson  <jas@extundo.com>
113343         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113344         Bruno.
113346 2006-01-24  Karl Berry  <karl@gnu.org>
113348         * config/srclist.txt (argp-namefrob.h): sync lost.
113350 2006-01-24  Jim Meyering  <jim@meyering.net>
113352         * modules/openat (Files): Add lib/intprops.h.
113353         From Mark D. Baushke.
113355 2006-01-24  Jim Meyering  <jim@meyering.net>
113357         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113358         Reported by Mark D. Baushke.
113360 2006-01-24  Jim Meyering  <jim@meyering.net>
113362         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113364 2006-01-24  Bruno Haible  <bruno@clisp.org>
113366         * modules/strnlen (Maintainer): Change from glibc to all.
113368 2006-01-24  Bruno Haible  <bruno@clisp.org>
113370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113371         Patch by Paul Eggert.
113373 2006-01-24  Bruno Haible  <bruno@clisp.org>
113375         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113376         already has it.
113377         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113378         2005-11-26.
113380         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113381         'signed char' to avoid problems with the built-in _Bool type.
113382         Reported by Paul Eggert on 2005-11-26.
113384 2006-01-24  Bruno Haible  <bruno@clisp.org>
113386         * gnulib-tool (func_import): Avoid constructing complicated sed
113387         expressions inside backquote.
113388         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113390 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113392         These changes imported from libc.
113393         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113394         test and two separate function calls.
113395         * lib/strndup.c (__strndup): Add libc_hidden_def.
113397 2006-01-23  Simon Josefsson  <jas@extundo.com>
113399         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113400         Remove the test_*_SOURCES variable: automake infers it by default.
113401         * modules/tls-tests: Likewise.
113403 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113405         Work around porting bugs reported by Dieter in
113406         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113407         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113408         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113409         Include "getopt.h" first, to check interface.
113410         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113411         !HAVE_DECL_GETENV.
113412         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113413         (__strndup): Revert to K&R-style function dfns, the glibc style.
113414         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113415         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113416         Include strnlen.h first, to get prototype properly.
113417         (strnlen): Renamed from __strnlen.
113418         Remove weak alias.
113420 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113422         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113424 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113426         * config/srclist.txt: Adjust to reflect glibc reorganization.
113427         This affects only comments.
113429 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113431          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113432          Reported by Bruce Korb <bkorb@gnu.org>.
113434 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113436         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113437         to pacify gcc -Wswitch-default.
113439 2006-01-22  Bruno Haible  <bruno@clisp.org>
113441         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113442         temporary buffer for sprintf, take into account the precision also
113443         for 'd', 'i', 'u', 'o', 'x', 'X'.
113445 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113447         * modules/argp-tests: New module
113448         * tests/test-argp.c: New file
113449         * tests/test-argp-2.sh: New file
113451 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113453         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113454         (__argp_base_name): Removed
113455         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113456         typo.
113457         (__argp_base_name): Provide macro definition or extern declaration
113458         depending on the configuration
113460 2006-01-20  Simon Josefsson  <jas@extundo.com>
113462         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113464 2006-01-20  Simon Josefsson  <jas@extundo.com>
113466         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113468 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113470         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113471         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113472         Suggested by Bruno Haible.
113474 2006-01-20  Karl Berry  <karl@gnu.org>
113476         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113477         until changes propagate, I guess.
113479 2006-01-19  Simon Josefsson  <jas@extundo.com>
113481         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113483 2006-01-19  Simon Josefsson  <jas@extundo.com>
113485         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113487 2006-01-19  Simon Josefsson  <jas@extundo.com>
113489         * gnulib-tool: Set check_PROGRAMS.
113491         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113492         modules/des-tests, modules/gc-arcfour-tests,
113493         modules/gc-arctwo-tests, modules/gc-des-tests,
113494         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113495         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113496         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113497         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113498         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113499         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113500         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113501         test_*_SOURCES.
113503 2006-01-18  Simon Josefsson  <jas@extundo.com>
113505         * modules/socklen (Depends-on): Depend on sys_socket.
113507 2006-01-18  Simon Josefsson  <jas@extundo.com>
113509         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113510         modules/des-tests, modules/gc-arcfour-tests,
113511         modules/gc-arctwo-tests, modules/gc-des-tests,
113512         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113513         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113514         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113515         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113516         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113517         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113518         $(EXEEXT) to automake TESTS variable, for mingw32.
113520 2006-01-17  Simon Josefsson  <jas@extundo.com>
113522         * modules/socklen (Include): Need sys/socket.h.
113524 2006-01-17  Bruno Haible  <bruno@clisp.org>
113526         * modules/ssize_t (Include): Add <sys/types.h>.
113528 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113530         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113531         it's not portable and it doesn't work with cross-compiles.
113532         Problem reported by Bruno Haible.  Fix missing-$ typo in
113533         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113534         -zignore from being used with Sun's C compiler.
113536 2006-01-12  Simon Josefsson  <jas@extundo.com>
113538         * lib/base64.c: Fix warning, reported by Bruno Haible
113539         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113541 2006-01-12  Bruno Haible  <bruno@clisp.org>
113543         * modules/ldd: New file.
113544         * build-aux/ldd.sh.in: New file.
113545         * MODULES.html.sh (Support for building libraries and executables): Add
113546         ldd.
113548 2006-01-12  Bruno Haible  <bruno@clisp.org>
113550         * m4/ldd.m4: New file.
113552 2006-01-12  Bruno Haible  <bruno@clisp.org>
113554         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113555         endless loop while replacing $auxdir with build-aux.
113557 2006-01-11  Simon Josefsson  <jas@extundo.com>
113559         * lib/stdint_.h (SIZE_MAX): Add missing (.
113561 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113563         Sync from coreutils.
113564         * lib/md5.c: Fix commentary typos.
113565         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113566         * lib/md5.h (__attribute__): Remove; unused.
113567         * lib/sha1.c: Fix commentary to match md5 better.
113568         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113569         so that we don't need to worry about alignment.  All uses changed.
113570         This merges the 2005-10-28 md5 change into sha1.
113572 2006-01-11  Jim Meyering  <jim@meyering.net>
113574         Sync from coreutils.
113575         * lib/md5.c (OP): Fix spacing.
113577 2006-01-11  Bruno Haible  <bruno@clisp.org>
113579         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113580         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113581         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113583 2006-01-11  Bruno Haible  <bruno@clisp.org>
113585         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113586         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
113587         the "early" section as well.
113589 2006-01-11  Bruno Haible  <bruno@clisp.org>
113591         Avoid "ar: no archive members specified" error on MacOS X.
113592         * gnulib-tool (func_modules_add_dummy): New function.
113593         (func_import, func_create_testdir): Invoke it.
113595 2006-01-11  Bruno Haible  <bruno@clisp.org>
113597         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
113598         with $auxdir in AC_CONFIG_FILES statements.
113600 2006-01-11  Bruno Haible  <bruno@clisp.org>
113602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113603         Initialize also noinst_HEADERS to empty.
113605 2006-01-11  Bruno Haible  <bruno@clisp.org>
113607         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
113608         variables.
113609         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
113610         autoreconf.
113612 2006-01-11  Bruno Haible  <bruno@clisp.org>
113614         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
113615         overridable by the user.
113616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113618 2006-01-10  Simon Josefsson  <jas@extundo.com>
113620         * modules/sys_socket: New file.
113622 2006-01-10  Simon Josefsson  <jas@extundo.com>
113624         * m4/sys_socket_h.m4: New file.
113626 2006-01-10  Simon Josefsson  <jas@extundo.com>
113628         * lib/socket_.h: New file.
113630 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113632         * modules/readutmp (Maintainer): Add myself.
113634 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113636         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
113637         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
113638         People who are still concerned with buggy memcmp implementations
113639         can invoke gl_FUNC_MEMCMP themselves.
113641 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113643         * lib/regex_internal.h (BITSET_WORD_BITS):
113644         Work around a bug in 64-bit PGC (before version 6.1-2), where the
113645         preprocessor mishandles large unsigned values as if they were signed.
113646         Problem reported by Claudio Fontana in
113647         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
113649 2006-01-10  Jim Meyering  <jim@meyering.net>
113651         Avoid the double-free (first in fts_read, second in fts_close) that
113652         would occur when an `active' directory is made inaccessible (e.g.,
113653         via chmod a-x) during a traversal.
113654         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113655         before returning.  Reproduce this failure by
113656         mkdir -p a/b; cd a; chmod a-x . b
113657         Reported by Stavros Passas.
113659         Sync from coreutils.
113660         * lib/sha1.c: Tweak grammar in a comment.
113662 2006-01-10  Jim Meyering  <jim@meyering.net>
113664         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
113665         Patch by Joerg Sonnenberger.
113667 2006-01-10  Bruno Haible  <bruno@clisp.org>
113669         * modules/readutmp: Depend on module free.
113670         * modules/strtok_r: Depend on module restrict.
113672 2006-01-10  Bruno Haible  <bruno@clisp.org>
113674         * modules/gettext (configure.ac): Add an invocation of
113675         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
113677 2006-01-10  Bruno Haible  <bruno@clisp.org>
113679         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
113680         Reported by Werner Lemberg <wl@gnu.org>.
113682 2006-01-10  Bruno Haible  <bruno@clisp.org>
113684         * lib/localcharset.c: Update from GNU gettext.
113686 2006-01-10  Bruno Haible  <bruno@clisp.org>
113688         * lib/argp.h (__const): Remove macro. Use const instead.
113689         * lib/argp-fmtstream.h (__const): Likewise.
113690         * lib/glob_.h (__const): Remove macro.
113691         * lib/glob-libc.h: Use const instead of __const.
113693 2006-01-10  Bruno Haible  <bruno@clisp.org>
113695         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
113696         variable.
113697         Needed to avoid an automake error regarding the 'gettext' module.
113699 2006-01-09  Simon Josefsson  <jas@extundo.com>
113701         * modules/inet_ntop (Depends-on): Add restrict.
113703 2006-01-09  Simon Josefsson  <jas@extundo.com>
113705         * modules/gc-rijndael-tests (License): Put under LGPL.
113707         * modules/gc-des-tests (License): Likewise.
113709         * modules/gc-arcfour-tests (License): Likewise.
113711         * modules/gc-arctwo-tests (License): Likewise.
113713         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
113715         * modules/gc-hmac-sha1-tests (Files): Likewise.
113717         * modules/gc-hmac-md5-tests (License): Likewise.
113719         * modules/gc-sha1-tests (License): Likewise.
113721         * modules/gc-md5-tests (License): Likewise.
113723         * modules/gc-md4-tests (License): Likewise.
113725         * modules/gc-md2-tests (License): Likewise.
113727         * modules/gc-tests (License): Likewise.
113729         * modules/des-tests (License): Likewise.
113731         * modules/md4-tests (License): Likewise.
113733         * modules/md2-tests (License): Likewise.
113735 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113737         Sync from coreutils:
113739         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
113740         * modules/lib-ignore: New file.
113741         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
113742         chdir-safer.m4, lchmod.m4.
113743         * modules/openat: Add mkdirat.c, openat-priv.h.
113745 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113747         Sync from coreutils.
113748         * m4/lib-ignore.m4: New file.
113749         * m4/lchmod.m4: New file.
113751 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113753         Sync from coreutils.
113754         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
113755         for write access: POSIX says that must fail.
113756         * lib/fts.c (diropen): Likewise.
113757         * lib/save-cwd.c (save_cwd): Likewise.
113758         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
113759         well, for minor improvements on hosts that lack O_DIRECTORY.
113760         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
113761         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
113762         Fall back on chown if open failed with EACCES.
113764         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
113765         Report an error at compile-time if only a 1-second nominal clock
113766         resolution is found.
113768         * lib/lchmod.h: New file.
113769         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
113770         (make_dir_parents): Use lchown rather than chown, and
113771         lchmod rather than chmod.
113773         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
113774         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
113775         "proc" reported by n0dalus.
113777         * lib/mountlist.c: Include <limits.h>.
113778         (dev_from_mount_options)
113779         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
113780         New function.  It no longer assumes "dev=" has the System V meaning
113781         on Linux (since it doesn't).  It also parses "dev=" more carefully.
113782         (read_file_system_list)
113783         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
113784         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
113785         dev= in that case.
113787         * lib/posixtm.h (PDS_PRE_2000): New macro.
113788         * lib/posixtm.c (year): Arg is now syntax_bits rather than
113789         allow_century.  All usages changed.  Reject dates outside the range
113790         1969-1999 if PDS_PRE_2000 is used.
113792 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113794         Sync from coreutils.
113795         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
113796         (Time of day items): Mention the possibility of leap seconds.
113797         Problem reported by Dr. David Alan Gilbert.
113799 2006-01-09  Jim Meyering  <jim@meyering.net>
113801         Sync from coreutils.
113803         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
113805         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
113807         * lib/modechange.c (mode_compile): Reject an invalid mode string
113808         that starts with an octal digit.  From Andreas Gruenbacher.
113810         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
113811         and dup to open_safer and dup_safer, respectively.
113812         (openat_permissive): Fix typo in comment.
113814         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
113815         "gettext.h"; either no longer needed or are guaranteed by openat.h.
113816         (_): Remove; no longer needed.
113817         (openat): Renamed from rpl_openat; no need for rpl_openat
113818         since openat.h renames openat for us.
113819         Replace most of the body with a call to openat_permissive,
113820         to avoid duplicate code.
113821         Port to (probably hypothetical) environments were mode_t is
113822         wider than int.
113823         (openat_permissive): Require mode arg, so that we can check
113824         types better.  Put it just after flags.  Change cwd failure
113825         indicator from pointer-to-bool to pointer-to-errno-value.
113826         All callers changed.
113827         Invoke openat_save_fail and/or openat_restore_fail if
113828         cwd_errno is null, so that openat can call us.
113829         (openat_permissive, fdopendir, fstatat, unlinkat):
113830         Simplify errno handling to avoid some duplicate code,
113831         as it's OK to set errno on success.
113832         * lib/openat.h: Revamp code so that function macros depend on
113833         __OPENAT_PREFIX only, not also on AT_FDCWD.
113834         (openat_ro): Remove.  Caller changed to use openat_permissive.
113835         (openat_permissive): Now a macro, if not a function.
113836         (openat_restore_fail, openat_save_fail): Now always functions,
113837         since mkdirat needs them even if __OPENAT_PREFIX is defined.
113839         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
113840         and openat.c.
113841         * lib/mkdirat.c: Include openat-priv.h.
113842         Remove definitions of macros defined therein.
113843         * lib/openat.c: Likewise.
113845         * lib/mkdirat.c (mkdirat): New file and function.
113846         * lib/openat.h (mkdirat): Declare.
113848         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
113850         * lib/openat.h (openat_permissive): Declare.
113851         (openat_ro): Define.
113853         * lib/openat.c (EXPECTED_ERRNO): New macro.
113854         (openat_permissive): New function -- used in remove.c rewrite.
113855         (all functions): Set errno just before returning, only if there
113856         was an actual failure.
113857         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
113859         Emulate openat-family functions using Linux's procfs, if possible.
113860         Idea and some code based on Ulrich Drepper's glibc changes.
113862         * lib/openat.c: (BUILD_PROC_NAME): New macro.
113863         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
113864         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
113865         before falling back on save_cwd and restore_cwd.
113866         (fdopendir, fstatat, unlinkat): Likewise.
113868         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
113869         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
113871         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
113872         as second argument to va_arg.  Otherwise, some versions of gcc
113873         warn that `if this code is reached, the program will abort'.
113875 2006-01-09  Jim Meyering  <jim@meyering.net>
113877         Sync from coreutils.
113878         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
113879         Require openat-priv.h.
113881 2006-01-09  Bruno Haible  <bruno@clisp.org>
113883         * modules/strnlen (Include): Use strnlen.h.
113885 2006-01-09  Bruno Haible  <bruno@clisp.org>
113887         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
113889 2006-01-09  Bruno Haible  <bruno@clisp.org>
113891         * lib/sysexit_.h (EX_OK): New macro.
113892         Suggested by Martin Lambers <marlam@marlam.de>.
113894 2006-01-09  Bruno Haible  <bruno@clisp.org>
113896         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
113897         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
113899 2006-01-09  Bruno Haible  <bruno@clisp.org>
113901         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
113902         numbers.
113904 2006-01-09  Bruno Haible  <bruno@clisp.org>
113906         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
113907         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
113908         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
113909         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
113911 2006-01-09  Bruno Haible  <bruno@clisp.org>
113913         * build-aux/javacomp.sh.in: New file, moved from lib/.
113914         * modules/javacomp-script (Files): Update.
113915         (configure.ac): Add AC_CONFIG_FILES invocation.
113916         (EXTRA_DIST): Remove variable.
113918         * build-aux/javaexec.sh.in: New file, moved from lib/.
113919         * modules/javaexec (Files): Update.
113920         (configure.ac): Add AC_CONFIG_FILES invocation.
113921         (EXTRA_DIST): Remove javaexec.sh.in.
113923         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
113924         * modules/csharpcomp-script (Files): Update.
113925         (configure.ac): Add AC_CONFIG_FILES invocation.
113926         (EXTRA_DIST): Remove variable.
113928         * build-aux/csharpexec.sh.in: New file, moved from lib/.
113929         * modules/csharpexec (Files): Update.
113930         (configure.ac): Add AC_CONFIG_FILES invocation.
113931         (EXTRA_DIST): Remove csharpexec.sh.in.
113933 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
113935         Sync from coreutils.
113937         Add POSIX ACL support
113938         * lib/acl.h (copy_acl, set_acl): Add declarations.
113939         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
113940         systems other than Linux.
113941         (chmod_or_fchmod): New function: use fchmod when possible,
113942         and chmod otherwise.
113943         (file_has_acl): Add a POSIX ACL implementation, with a
113944         Linux-specific subcase.
113945         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
113946         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
113947         acls are unsupported.
113948         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
113949         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
113950         are unsupported.
113952 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
113954         Sync from coreutils.
113955         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
113957 2006-01-07  Bruno Haible  <bruno@clisp.org>
113959         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
113960         gl_EARLY.
113962 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113964         * lib/strftime.c (tzname): Don't declare if it is already #defined.
113965         Problem reported for Mingw by Mark Junker.
113967 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113969         * README: Gnulib normally doesn't generate a tarball.
113971 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
113973         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
113974         long int, not int, for nanosecond counts, so that people who are
113975         used to POSIX struct timespec won't be surprised.  Reported by Jim
113976         Meyering.
113978 2005-12-28  Bruno Haible  <bruno@clisp.org>
113980         * build-aux/config.rpath: Update from GNU gettext.
113982 2005-12-16  Jim Meyering  <jim@meyering.net>
113984         * modules/fprintftime: New module.
113985         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
113987 2005-12-16  Jim Meyering  <jim@meyering.net>
113989         * m4/fprintftime.m4: New file.
113991 2005-12-16  Jim Meyering  <jim@meyering.net>
113993         * lib/fprintftime.c, lib/fprintftime.h: New files.
113995 2005-12-15  Simon Josefsson  <jas@extundo.com>
113997         * modules/socklen (configure.ac): Fix M4 macro name, to align with
113998         new m4/socklen.m4.
114000 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114002         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114003         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114005 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114007         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114008         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114009         struct uparams is valid. Fall back to the default values if it is
114010         not.
114012 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114014         * modules/argp (Files): Add argp-pin.c
114015         (Depends-on): dirname
114016         (lib_SOURCES): Add argp-pin.c
114018 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114020         * m4/argp.m4:  Check if program_invocation_name and
114021         program_invocation_short_name are declared and define appropriate
114022         macros if they are not.
114024 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114026         * lib/argp-help.c (__argp_base_name): New function
114027         (__argp_short_program_name): Rewrite using __argp_base_name
114028         * lib/argp-namefrob.h: Define program_invocation_name and
114029         program_invocation_short_name if requested
114030         (__argp_base_name): Add prototype
114031         * lib/argp-parse.c (argp_def): Use gettext wrappers
114032         (argp_default_parser): Use __argp_base_name
114033         * lib/argp-pin.c: New file. Defines program_invocation_name and
114034         program_invocation_short_name on systems that lack them.
114036 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114038         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114039         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114040         porting problem reported by Georg Schwarz in
114041         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114043 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114045         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114046         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114047         porting problem reported by Georg Schwarz in
114048         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114050 2005-12-05  Bruno Haible  <bruno@clisp.org>
114052         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114053         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114054         Reported by Mark Junker <mjscod@gmx.de>.
114056 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114058         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114059         Use implementation from Albert Chin, with some
114060         comments/corrections by Stepan Kasal and myself.
114062 2005-12-02  Bruno Haible  <bruno@clisp.org>
114064         * gnulib-tool (func_import): Accept GPLed build tool modules when
114065         --lgpl is given.
114066         * modules/csharpcomp-script: New file.
114067         * modules/csharpcomp: Depend on it.
114068         * modules/javacomp-script: New file.
114069         * modules/javacomp: Depend on it.
114070         Suggested by Simon Josefsson.
114072 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114074         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114075         statement, to work around an HP-UX 10.20 compiler bug reported by
114076         Peter O'Gorman.
114078 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114080         * modules/savedir (Depends-on): Add openat.
114082 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114084         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114085         (uintmax_t) [defined uintmax_t]: Do not declare.
114086         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114087         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114088         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114089         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114090         sake of portability to weird hosts that C allows (though we don't
114091         know of any practical examples).
114093         * lib/savedir.h (fdsavedir): New decl.
114094         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114095         contains most of the former guts of savedir.
114096         (savedir): Use savedirstream.
114097         Include "openat.h".
114099 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114101         * modules/obstack (Files): Add m4/ulonglong.m4.
114102         Problem reported by Davide Angelocola.
114104 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114106         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114107         coreutils no longer futzes with rounding modes.
114109 2005-11-14  Jim Meyering  <jim@meyering.net>
114111         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114112         replacement of mkstemp.
114114 2005-11-10  Simon Josefsson  <jas@extundo.com>
114116         * lib/readline.c: Remove EOL.
114118 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114120         * modules/gethrxtime (Depends-on): Add gettime.
114122 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114124         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114125         or gettimeofday; no longer needed.
114127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114129         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114130         time business.
114131         (gethrxtime) [! (HAVE_NANOUPTIME
114132         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114133         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114134         our own approximation.
114136 2005-11-08  Eric Blake  <ebb9@byu.net>
114138         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114140 2005-11-08  Eric Blake  <ebb9@byu.net>
114142         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114144 2005-11-04  Bruno Haible  <bruno@clisp.org>
114146         * gnulib-tool: Implement --update mode.
114148 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114150         Fix porting problem reported by Theodoros V. Kalamatianos.
114151         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114152         Don't assume that futimes failing means we must fail.
114154 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114156         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114157         variables to suggest the intended function of the PATH_MAX check.
114159 2005-10-30  Kean Johnston  <jkj@sco.com>
114161         Trivial changes to support SCO systems.
114162         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114163         as PATH_MAX.
114164         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114165         where __ptr is null when no I/O is pending.
114167 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114169         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114170         leave errno alone.  Problem reported by Dmitry V. Levin.
114172 2005-10-28  Simon Josefsson  <jas@extundo.com>
114174         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114175         Test more.
114177         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114179         * modules/md2, modules/md2-tests: New files.
114181 2005-10-28  Simon Josefsson  <jas@extundo.com>
114183         * m4/inet_ntop.m4: More tests.
114185         * m4/gc-md2.m4, md2.m4: New file.
114187 2005-10-28  Simon Josefsson  <jas@extundo.com>
114189         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114190         "restrict" keywords, as per POSIX.  Protect the function
114191         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114192         Don't use K&R prototypes.  Check the sprintf return values.
114193         Re-define EAFNOSUPPORT if not present.  Indent.
114195         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114196         suggested by Bruno Haible <bruno@clisp.org>.
114198         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114200         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114202         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114203         libgcrypt).
114205         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114207         * lib/md2.h, lib/md2.c: New files.
114209 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114211         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114212         errno alone.  Problem reported by Frederic Jolliton.
114214 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114216         * modules/verify (License): Change from GPL to LGPL.  This is a
114217         tiny module and there are apparently near-equivalents that are
114218         under the BSD license.
114220 2005-10-24  Simon Josefsson  <jas@extundo.com>
114222         * modules/sha1: Relicense to LGPL.
114224 2005-10-24  Simon Josefsson  <jas@extundo.com>
114226         * lib/md4.h: Shrink buffer size, now that we changed the type.
114228 2005-10-23  Simon Josefsson  <jas@extundo.com>
114230         * gnulib-tool (func_import): Fix --tests-base.
114232 2005-10-22  Simon Josefsson  <jas@extundo.com>
114234         * modules/arcfour (Depends-on): Need stdint.
114236 2005-10-22  Simon Josefsson  <jas@extundo.com>
114238         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114239         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114241 2005-10-22  Simon Josefsson  <jas@extundo.com>
114243         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114244         suggested by Bruno Haible <bruno@clisp.org>.
114246 2005-10-22  Simon Josefsson  <jas@extundo.com>
114248         * lib/crc.h: Include stddef.h, for size_t.
114250 2005-10-22  Simon Josefsson  <jas@extundo.com>
114252         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114253         arcfour_context struct (simplify test vector testing in GNU
114254         Shishi).
114256 2005-10-21  Simon Josefsson  <jas@extundo.com>
114258         * modules/des, modules/des-tests: New files.
114260         * modules/gc-des, modules/gc-des-tests: New files.
114262         * tests/test-des.c, tests/test-gc-des.c: New file.
114264 2005-10-21  Simon Josefsson  <jas@extundo.com>
114266         * modules/arctwo, modules/arctwo-tests: New files.
114268         * tests/test-arctwo.c: New file.
114270         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114272         * tests/test-gc-arctwo.c: New file.
114274 2005-10-21  Simon Josefsson  <jas@extundo.com>
114276         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114277         Bruno Haible <bruno@clisp.org>.
114279         * m4/gc-des.m4: New file.
114281 2005-10-21  Simon Josefsson  <jas@extundo.com>
114283         * m4/arctwo.m4: New file.
114285         * m4/gc-arctwo.m4: New file.
114287 2005-10-21  Simon Josefsson  <jas@extundo.com>
114289         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114290         block.
114292 2005-10-21  Simon Josefsson  <jas@extundo.com>
114294         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114295         <bruno@clisp.org>.
114297         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114299         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114300         Bruno Haible <bruno@clisp.org>.
114302         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114303         <bruno@clisp.org>.
114305 2005-10-21  Simon Josefsson  <jas@extundo.com>
114307         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114309 2005-10-21  Simon Josefsson  <jas@extundo.com>
114311         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114313 2005-10-21  Simon Josefsson  <jas@extundo.com>
114315         * lib/des.h, lib/des.c: New files.
114317         * lib/gc-gnulib.c: Support DES.c
114319 2005-10-21  Simon Josefsson  <jas@extundo.com>
114321         * lib/arctwo.h, lib/arctwo.c: New files.
114323         * lib/gc-gnulib.c: Support ARCTWO.
114325 2005-10-21  Simon Josefsson  <jas@extundo.com>
114327         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114328         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114330 2005-10-21  Simon Josefsson  <jas@extundo.com>
114332         * gnulib-tool (func_import, func_create_testdir): Define automake
114333         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114334         Makefile.am snippet),
114335         suggested by Bruno Haible <bruno@clisp.org>.
114337         * modules/gc (Makefile.am): Use it.
114339 2005-10-21  Bruno Haible  <bruno@clisp.org>
114341         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114342         patch.
114344 2005-10-19  Simon Josefsson  <jas@extundo.com>
114346         * tests/test-gc-rijndael.c: New file.
114348         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114350 2005-10-19  Simon Josefsson  <jas@extundo.com>
114352         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114353         interface too.
114355 2005-10-19  Simon Josefsson  <jas@extundo.com>
114357         * tests/test-gc-arcfour.c: New file.
114359         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114361 2005-10-19  Simon Josefsson  <jas@extundo.com>
114363         * modules/gc-md4, modules/gc-md4-tests: New file.
114365         * tests/test-gc-md4.c: New file.
114367 2005-10-19  Simon Josefsson  <jas@extundo.com>
114369         * m4/gc-md4.m4: New file.
114371 2005-10-19  Simon Josefsson  <jas@extundo.com>
114373         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114374         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114375         <kasal@ucw.cz>.
114377 2005-10-19  Simon Josefsson  <jas@extundo.com>
114379         * m4/gc-arcfour.m4: New file.
114381         * m4/gc-rijndael.m4: New file.
114383 2005-10-19  Simon Josefsson  <jas@extundo.com>
114385         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114387 2005-10-19  Simon Josefsson  <jas@extundo.com>
114389         * lib/gc-gnulib.c: Support ARCFOUR.
114391 2005-10-19  Simon Josefsson  <jas@extundo.com>
114393         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114394         support.
114396         * lib/gc.h: Add ECB enum type.
114398         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114400 2005-10-18  Simon Josefsson  <jas@extundo.com>
114402         * tests/test-md5.c: New file.
114404         * modules/md5-tests: New file.
114406 2005-10-18  Simon Josefsson  <jas@extundo.com>
114408         * tests/test-md4.c: New file.
114410         * modules/md4, modules/md4-tests: New files.
114412 2005-10-18  Simon Josefsson  <jas@extundo.com>
114414         * m4/md4.m4: New file.
114416 2005-10-18  Simon Josefsson  <jas@extundo.com>
114418         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114420 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114422         * gnulib-tool (func_create_testdir): Omit the second check whether
114423         BUILT_SOURCES in nonempty.
114425 2005-10-17  Simon Josefsson  <jas@extundo.com>
114427         * tests/test-rijndael.c: New file.
114429 2005-10-17  Simon Josefsson  <jas@extundo.com>
114431         * modules/sha1: Depend on stdint instead of md5.
114433         * modules/md5: Depend on stdint, remove uint32_t.
114435 2005-10-17  Simon Josefsson  <jas@extundo.com>
114437         * modules/gc-sha1-tests: New file.
114439         * tests/test-gc-sha1.c: New file.
114441 2005-10-17  Simon Josefsson  <jas@extundo.com>
114443         * m4/md5.m4: Remove call to uint32_t.m4.
114445 2005-10-17  Simon Josefsson  <jas@extundo.com>
114447         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114449         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114450         md5.h.
114452         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114454         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114456 2005-10-17  Simon Josefsson  <jas@extundo.com>
114458         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114460 2005-10-17  Simon Josefsson  <jas@extundo.com>
114462         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114464 2005-10-17  Simon Josefsson  <jas@extundo.com>
114466         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114468         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114470 2005-10-17  Bruno Haible  <bruno@clisp.org>
114472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114473         that it can also be used in a test.
114475 2005-10-16  Bruno Haible  <bruno@clisp.org>
114477         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114478         TESTS_ENVIRONMENT, so that individual tests can augment it.
114480         * gnulib-tool (func_create_testdir): Use an intermediate target for
114481         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114482         macros, like $(ALLOCA_H), which cannot be passed through the command
114483         line.
114485 2005-10-15  Simon Josefsson  <jas@extundo.com>
114487         * modules/rijndael-tests: New file.
114489         * modules/rijndael: New file.
114491 2005-10-15  Simon Josefsson  <jas@extundo.com>
114493         * m4/rijndael.m4: New file.
114495 2005-10-15  Simon Josefsson  <jas@extundo.com>
114497         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114499         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114501 2005-10-14  Simon Josefsson  <jas@extundo.com>
114503         * tests/test-arcfour.c: New file.
114505         * modules/arcfour, modules/arcfour-tests: New files.
114507 2005-10-14  Simon Josefsson  <jas@extundo.com>
114509         * m4/arcfour.m4: New file.
114511 2005-10-14  Simon Josefsson  <jas@extundo.com>
114513         * lib/arcfour.h, lib/arcfour.c: New files.
114515 2005-10-14  Roland McGrath  <roland@redhat.com>
114517         Import from libc.  [BZ #1331]
114518         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114519         macro argument.
114520         Reported by Matej Vela <vela@debian.org>.
114522 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114524         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114525         include <wchar.h>; no longer needed.
114527 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114529         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114531 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114532         and  Ulrich Drepper  <drepper@redhat.com>
114534         Import from libc.
114535         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114536         instead of inline stream orientation test and two separate
114537         function calls.  Pay no attention to USE_IN_LIBIO.
114539 2005-10-13  Simon Josefsson  <jas@extundo.com>
114541         * modules/gc-hmac-md5-tests: New file.
114543         * tests/test-gc-hmac-sha1.c: New file.
114545         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114547         * modules/gc-hmac-md5-tests: New file.
114549         * tests/test-gc-md5.c: New file.
114551         * modules/gc-md5-tests: New file.
114553 2005-10-13  Simon Josefsson  <jas@extundo.com>
114555         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114556         Move memory allocation outside of loop.
114558 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114560         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114561         intermediate directory is in a read-only file system.  Problem
114562         reported by Eric Blake.
114564 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114566         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114568 2005-10-12  Simon Josefsson  <jas@extundo.com>
114570         * tests/test-hmac-sha1.c: New file.
114572         * modules/hmac-sha1-tests: New file.
114574         * modules/hmac-sha1: New file.
114576 2005-10-12  Simon Josefsson  <jas@extundo.com>
114578         * modules/gc-sha1: New file.
114580 2005-10-12  Simon Josefsson  <jas@extundo.com>
114582         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114584         * tests/test-gc-pbkdf2-sha1.c: New file.
114586 2005-10-12  Simon Josefsson  <jas@extundo.com>
114588         * modules/gc-md5, modules/gc-hmac-md5: New files.
114590         * modules/gc (Files): Remove md5, memxor and hmac files.
114592 2005-10-12  Simon Josefsson  <jas@extundo.com>
114594         * m4/gc-pbkdf2-sha1.m4: New file.
114596         * m4/gc-hmac-sha1.m4: New file.
114598         * m4/gc-sha1: New file.
114600         * m4/hmac-sha1.m4: New file.
114602 2005-10-12  Simon Josefsson  <jas@extundo.com>
114604         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
114606         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
114608 2005-10-12  Simon Josefsson  <jas@extundo.com>
114610         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
114611         suggested by Bruno Haible <bruno@clisp.org>.
114613 2005-10-12  Simon Josefsson  <jas@extundo.com>
114615         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
114617 2005-10-12  Simon Josefsson  <jas@extundo.com>
114619         * lib/gc-pbkdf2-sha1.c: New file.
114621         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
114623 2005-10-12  Simon Josefsson  <jas@extundo.com>
114625         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
114627         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
114629 2005-10-12  Simon Josefsson  <jas@extundo.com>
114631         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
114632         GC_USE_HMAC_MD5, respectively.
114634         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
114635         (gc_md5): Fix typo.
114637         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
114639         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
114641         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
114643 2005-10-12  Bruno Haible  <bruno@clisp.org>
114645         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
114646         Reported by Stepan Kasal <kasal@ucw.cz>.
114648 2005-10-11  Simon Josefsson  <jas@extundo.com>
114650         * tests/test-crc.c: New file.
114652         * modules/crc, modules/crc-tests: New files.
114654 2005-10-11  Simon Josefsson  <jas@extundo.com>
114656         * m4/crc.m4: New file.
114658 2005-10-11  Simon Josefsson  <jas@extundo.com>
114660         * lib/gc.h: Add gc_hash and gc_hash_buffer.
114662         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
114664         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
114666 2005-10-11  Simon Josefsson  <jas@extundo.com>
114668         * lib/crc.h, lib/crc.c: New files.
114670         * lib/gc.h (gc_hash_buffer): Add doc.
114672 2005-10-11  Bruno Haible  <bruno@clisp.org>
114674         * modules/c-strcasestr: New file.
114675         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
114677 2005-10-11  Bruno Haible  <bruno@clisp.org>
114679         * modules/c-strcase: New file.
114680         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
114682 2005-10-11  Bruno Haible  <bruno@clisp.org>
114684         * lib/strcasecmp.c: Include limits.h.
114685         (strcasecmp): Avoid integer overflow on exotic platforms.
114686         * lib/strncasecmp.c: Include limits.h.
114687         (strncasecmp): Avoid integer overflow on exotic platforms.
114688         Reported by Paul Eggert.
114690 2005-10-11  Bruno Haible  <bruno@clisp.org>
114692         * lib/c-strcasestr.h: New file, from GNU gettext.
114693         * lib/c-strcasestr.c: New file, from GNU gettext.
114695 2005-10-11  Bruno Haible  <bruno@clisp.org>
114697         * lib/c-strcase.h: New file, from GNU gettext.
114698         * lib/c-strcasecmp.c: New file, from GNU gettext.
114699         * lib/c-strncasecmp.c: New file, from GNU gettext.
114701 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
114703         * modules/mempcpy (License): GPL -> LGPL.
114704         * modules/strchrnul (License): Likewise.
114705         * modules/sysexits (License): Likewise.
114707 2005-10-08  Simon Josefsson  <jas@extundo.com>
114709         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
114711 2005-10-07  Simon Josefsson  <jas@extundo.com>
114713         * m4/memxor.m4: Remove gl_C_RESTRICT call.
114715 2005-10-06  Simon Josefsson  <jas@extundo.com>
114717         * tests/test-hmac-md5.c: New file.
114719         * modules/hmac-md5-tests: New file.
114721         * modules/hmac-md5: New file.
114723 2005-10-06  Simon Josefsson  <jas@extundo.com>
114725         * m4/hmac-md5.m4: New file.
114727         * m4/memxor.m4: Require gl_C_RESTRICT.
114729 2005-10-06  Simon Josefsson  <jas@extundo.com>
114731         * lib/memxor.c (memxor): Avoid casts and warnings.
114733 2005-10-06  Simon Josefsson  <jas@extundo.com>
114735         * lib/hmac-md5.c: New file.
114737         * lib/hmac.h: New file.
114739 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
114741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
114742         promotes to int, not unsigned int, to catch the AIX 5.3
114743         compiler bug.
114745 2005-10-05  Simon Josefsson  <jas@extundo.com>
114747         * modules/memxor: New file.
114749         * modules/iconv (Files): Move config.rpath to havelib, it is used
114750         there.
114752         * modules/havelib (Files): Add config.rpath.
114754 2005-10-05  Simon Josefsson  <jas@extundo.com>
114756         * m4/memxor.m4: New file.
114758 2005-10-05  Simon Josefsson  <jas@extundo.com>
114760         * lib/memxor.c (memxor): Fix compiler error.
114762         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
114763         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
114765         * lib/memxor.h, lib/memxor.c: New files.
114767         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
114768         we assume all systems have it, suggested by Jim Meyering
114769         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
114770         any systems lack sys/socket.h; mingw32 is known to lack it, but we
114771         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
114772         same reasons.
114774 2005-10-05  Simon Josefsson  <jas@extundo.com>
114776         * config/srclist.txt: Add glibc bug 1423 for md5.h.
114778 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
114780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
114781         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
114782         needed, since the source code now assumes these .h files.
114784 2005-10-05  Derek Price  <derek@ximbiot.com>
114786         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
114788 2005-10-05  Bruno Haible  <bruno@clisp.org>
114790         * modules/stdint (License): Change to LGPL.
114792 2005-10-04  Simon Josefsson  <jas@extundo.com>
114794         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
114795         D. Baushke" <mdb@gnu.org>.
114797 2005-10-04  Bruno Haible  <bruno@clisp.org>
114799         * lib/verify.h (verify_true): Provide alternative definition for C++.
114801 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
114803         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
114804         (SSIZE_MAX): New macro, if not already defined.
114805         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
114806         than 2 GiB.
114808 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114810         Sync from coreutils.
114811         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
114812         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
114813         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
114814         ULLONG_MAX doesn't work with 2.7.2.1.
114816 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114818         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
114819         From Ben Pfaff.
114821         * modules/exclude (Depends-on): Depend on verify.
114822         * modules/strtoimax (Depends-on): Likewise.
114823         * modules/utimecmp (Depends-on): Likewise.
114825 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114827         * lib/exclude.c: Include verify.h.
114828         (verify): Remove.  All callers changed to use verify.h's version.
114829         * lib/strtoimax.c: Likewise.
114830         * lib/utimecmp.c: Likewis.e
114832         Sync from coreutils.
114833         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
114834         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
114835         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
114836         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
114837         bother returning ENOSYS if settimeofday or stime fails; just let
114838         them return whatever errno they want to return.
114839         * lib/utimens.c: Include unistd.h, for dup2.
114840         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
114841         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
114843 2005-10-02  Jim Meyering  <jim@meyering.net>
114845         Sync from coreutils.
114846         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
114847         from glibc-2.2.5 that fails for read-only files.
114849 2005-10-02  Jim Meyering  <jim@meyering.net>
114851         Sync from coreutils.
114852         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
114853         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
114854         `#if HAVE_CONFIG_H'.
114855         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
114856         Remove AT_FDCWD test.
114857         Do not consume the fd unless successful.
114858         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
114859         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
114860         block, so that we don't even try to compile it if settimeofday is
114861         available.  This works around a compilation failure on OSF1 V5.1,
114862         due to stime requiring a `long int*' while tv_sec is `int'.
114864 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
114866         Sync from coreutils.
114867         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
114868         against `yes', rather than just testing for nonempty.
114870 2005-10-01  Simon Josefsson  <jas@extundo.com>
114872         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
114873         and Darwin.
114875         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
114876         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
114877         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
114878         freeaddrinfo and gai_strerror are declared by the POSIX headers.
114879         Check if struct addrinfo is declared.
114881 2005-10-01  Simon Josefsson  <jas@extundo.com>
114883         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
114884         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
114885         AI_* and EAI_* definitions.  Protect function declarations.
114887 2005-10-01  Jim Meyering  <jim@meyering.net>
114889         Sync from coreutils.
114891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
114892         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
114893         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
114894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
114895         in the inet and nsl libraries.  Required on Solaris 5.7.
114897 2005-10-01  Jim Meyering  <jim@meyering.net>
114899         Sync from coreutils.
114900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
114901         in the inet and nsl libraries.  Required on Solaris 5.7.
114903 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
114905         * lib/getdelim.c (getdelim): Remove unused variables.
114907 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
114909         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
114910         so that the code works even with ancient cpp.  Portability problem
114911         with GCC 2.7.2.1 reported by Thomas M.Ott.
114913 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
114915         * modules/regex (Depends-on): Add strcase.
114917         * modules/gethostname (Licence): Change from GPL to LGPL, since
114918         gethostname.c is a trivial implementation of a standard library
114919         function.
114920         * modules/poll (License): Change from GPL to LGPL, since it's
114921         derived from LGPL code.
114923 2005-09-27  Jim Meyering  <jim@meyering.net>
114925         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
114926         HAVE_CONFIG_H.
114928         * lib/intprops.h (signed_type_or_expr__): Define.
114929         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
114930         for unsigned types.
114932 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
114934         * lib/verify.h (verify_expr): Remove, replacing with:
114935         (verify_true): New macro that returns true instead of void.
114936         (verify_type__): Remove.
114937         (verify): Use verify_true rather than verify_type__.
114939 2005-09-26  Bruno Haible  <bruno@clisp.org>
114941         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
114942         is necessary.
114943         (lib_SOURCES): Remove mbchar.c.
114944         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
114945         (Files): Add m4/mbrtowc.m4.
114946         * modules/mbiter: Likewise.
114947         * modules/mbuiter: Likewise.
114949 2005-09-26  Bruno Haible  <bruno@clisp.org>
114951         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
114952         compile mbchar.c if they are not both present.
114953         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
114954         * m4/mbiter.m4 (gl_MBITER): Likewise.
114955         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
114956         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
114957         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
114959 2005-09-25  Jim Meyering  <jim@meyering.net>
114961         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
114962         also uses socklen_t.
114964 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
114966         * lib/utimens.c (ENOSYS): Define if not already defined.
114967         (futimens): Support having a null PATH if the file descriptor
114968         is nonnegative.
114970         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
114971         Remove.
114972         (__attribute): Define to empty unless GCC 3.1 or later.
114973         This works around a core dump on OpenBSD 3.4, which has GCC
114974         2.95.3, which dumps core when given __attribute__(()).  It also
114975         simplifies other tests, since we really don't want to bother with
114976         worrying about which ancient version of GCC supported what.
114977         Original problem reported by Yoann Vandoorselaere, with part of
114978         the fix suggested by Derek Price.
114980 2005-09-24  Jim Meyering  <jim@meyering.net>
114982         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
114983         so we can once again use a positive bitfield width of 1 -- now we
114984         don't have to explain why we were using a bitfield width of 2.
114986 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
114988         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
114989         and similarly for the other external symbols.  Problem reported
114990         by James Gallager.
114992         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
114993         bug reported by Jim Meyering.
114995         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
114996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
114997         not needed, since socklen is a prerequisite module.
114999 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115001         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115002         Problem reported by Eric Blake.
115003         (getaddrinfo): Initialize se so that it's not garbage.
115004         Redo internal storage allocation so that it doesn't make unportable
115005         assumptions about alignment.
115006         Fix a memory leak.
115008         * lib/utimens.c (futimens): Use futimesat if available.
115009         Prefer it to futimes since it doesn't have the futimes bug.
115011         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115012         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115013         Instead, declare a function that returns a pointer to an array,
115014         and use verify_type__ to declare the size of the array.
115015         Problem and germ of a solution reported by Bruno Haible.
115016         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115017         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115019 2005-09-23  Jim Meyering  <jim@meyering.net>
115021         Sync from coreutils.
115022         Correct build failure (socklen_t not defined) on at least
115023         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115026 2005-09-23  Jim Meyering  <jim@meyering.net>
115028         * modules/getaddrinfo (Depends-on): Add socklen.
115030 2005-09-23  Bruno Haible  <bruno@clisp.org>
115032         * tests/test-verify.c: New file.
115034 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115036         Sync from coreutils.
115038         * modules/argmatch (Depends-on): Add verify.
115039         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115040         unistd-safer.
115041         * modules/save-cwd (Depends-on): Likewise.
115043         * modules/openat (Files): Add lib/openat-die.c.
115044         (Depends-on): Remove error, exitfail.
115045         Add dirname.
115047         * modules/verify: New file.
115048         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115049         with "verify" module.
115051 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115053         Sync from coreutils.
115055         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115056         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115057         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115058         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115059         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115060         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115061         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115062         Don't bother checking for string.h, stdlib.h, unistd.h.
115063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115064         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115065         module's job.
115066         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115067         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115069         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115070         (gl_GETDATE): Use it.
115072         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115074 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115076         Sync from coreutils.
115078         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115079         stat-time.h.
115080         * lib/argmatch.h: Include verify.h
115081         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115082         (ARGMATCH_ASSERT): Remove; unused.
115083         * lib/canonicalize.c: Assume STDC_HEADERS.
115084         * lib/exclude.c: Include "strcase.h".
115085         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115086         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115087         and stdio-safer.h.
115088         (getusershell): Call fopen, not fopen_safer.
115089         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115090         Do not include unistd-safer.h.
115091         (save_cwd): Don't call fd_safer; no longer needed
115092         now that we include fcntl--.h.
115094         * lib/getdate.y (relative_time): New type.
115095         (RELATIVE_TIME_0): New constant.
115096         (parser_control): Use relative_time instead of doing it ourselves.
115097         (%union): Add new relative_time rel member.
115098         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115099         Now typeless.
115100         (relunit, relunit_snumber): Now of type rel.
115101         (zone, rel, relunit, get_date): Adjust to above changes.
115103         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115104         Do not include unistd-safer.h.
115105         (getloadavg): Don't call fd_safer; no longer needed
115106         now that we include fcntl--.h.
115108         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115109         (make_dir_parents): Treat ENOSYS like EEXIST.
115111         Improve quality of diagnostics on restore_cwd failure.
115112         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115113         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115114         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115115         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115116         each time through the loop.  Do not diagnose restore_cwd failure;
115117         that is the caller's job (and perhaps the caller does not care).
115119         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115120         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115121         If the file already exists but is not a directory, don't bother
115122         to try to make its parents.
115123         Close potential file descriptor leak if we can't chdir("/") (!).
115124         Don't always return true if chdir($PWD) fails; return true only
115125         if the requested action was done successfully (except for the
115126         chdir($PWD)).
115127         Don't log final directory unless we actually made it.
115128         Refactor to avoid duplicate code to fix up permissions.
115129         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115131         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115132         to make it a bit faster and (I hope) clearer.
115133         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115134         Fix bug in formats like %2N.
115136         * lib/verify.h: New file.
115138 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115140         Sync from coreutils.
115141         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115143 2005-09-22  Jim Meyering  <jim@meyering.net>
115145         Sync from coreutils.
115147         * m4/lstat.m4 (gl_FUNC_LSTAT):
115148         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115149         Remove obsolete comment.
115150         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115151         * m4/xstrtod.m4: Likewise.
115153         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115155 2005-09-22  Jim Meyering  <jim@meyering.net>
115157         Sync from coreutils.
115159         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115161         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115162         the .tm_year member, since otherwise gcc-4.0 would now warn about
115163         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115165         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115166         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115168         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115169         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115170         when run in a time zone for which daylight savings time is in effect
115171         for the starting date.
115173         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115174         stop us from restricting permissions of just-created absolute-named
115175         directories.
115176         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115177         to restore initial working directory.
115178         * lib/mkdir-p.c (make_dir_parents): New parameter:
115179         different_working_dir, to tell caller if/when we change the working
115180         directory and are unable to return to the initial one.
115181         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115182         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115183         `return false'.  This fixes a bug introduced on 2004-07-30.
115185         * lib/openat.c (fdopendir): Be sure to close the supplied
115186         file descriptor before returning.  This makes our replacement
115187         implementation a little closer to Solaris's, where fdopendir
115188         ties the file descriptor to the returned DIR* pointer.
115189         * lib/openat.c (unlinkat): New function.
115190         * lib/openat.h (unlinkat): Add prototype.
115191         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115192         (openat_restore_fail): Rename from openat_restore_die.
115193         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115195         Provide an alternative to exiting immediately upon save_cwd or
115196         restore_cwd failure.  Now, an application can arrange e.g.,
115197         to perform a longjump in that case.
115198         * lib/openat.c: Include dirname.h.
115199         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115200         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115201         and openat_restore_die rather than calling error directly.
115202         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115204         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115205         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115206         define.
115208         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115209         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115210                             int utc, int nanoseconds);
115211         Background:
115212         date should not have to allocate a megabyte of virtual memory to
115213         handle a format argument like +%1048575T.  When implemented with
115214         strftime, it must allocate such a buffer, use strftime to fill it
115215         in, print it, then free it.
115216         With fprintftime, it simply prints everything and exits.
115217         With no need for memory allocation, that's one fewer way to fail.
115218         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115219         optional field width, not before, so we accept %9:z, not %:9z.
115220         (my_strftime): Be sure to use L_('x') for literals.
115222         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115223         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115224         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115225         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115226         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115227         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115228         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115229         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115230         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115231         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115232         * lib/xgethostname.c, lib/xreadlink.c:
115233         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115235         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115236         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115237         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115238         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115239         and don't include <sys/file.h>).
115241 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115243         Sync from coreutils.
115245         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115246         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115247         [!LDAV_DONE]: Avoid unused variable warning.
115249 2005-09-21  Bruno Haible  <bruno@clisp.org>
115251         * lib/unicodeio.h (unicode_to_mb): New declaration.
115253 2005-09-20  Derek Price  <derek@ximbiot.com>
115255         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115256         getaddrinfo.h.
115258 2005-09-20  Bruno Haible  <bruno@clisp.org>
115260         * gnulib-tool: Remove trailing slashes from the values specified for
115261         --source-base, --m4-base, --tests-base, --aux-dir.
115262         Suggested by Simon Josefsson <jas@extundo.com>.
115264 2005-09-20  Bruno Haible  <bruno@clisp.org>
115266         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115267         func_modules_to_filelist, func_import, func_create_testdir): Make all
115268         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115269         change when gnulib-tool is invoked in a different locale.
115271 2005-09-19  Simon Josefsson  <jas@extundo.com>
115273         * m4/socklen.m4: Fix typo.
115275 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115277         Use a consistent style for including <config.h>.
115278         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115279         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115280         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115281         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115282         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115283         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115284         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115285         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115286         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115287         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115288         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115289         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115290         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115291         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115292         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115293         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115294         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115295         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115296         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115297         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115298         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115299         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115300         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115301         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115302         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115303         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115304         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115305         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115306         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115307         lib/xstrtoumax.c, lib/yesno.c:
115308         Standardize inclusion of config.h.
115309         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115310         lib/inttostr.h:  Removed inclusion of config.h from header files.
115311         * lib/inttostr.c:  Adjusted in-tree users.
115312         * lib/timespec.h: Remove superfluous warning to include config.h.
115313         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115314         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115315         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115316         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115317         config.h with HAVE_CONFIG_H.
115319 2005-09-19  Jim Meyering  <jim@meyering.net>
115321         * modules/pathmax (License): Change to LGPL.
115323 2005-09-19  Derek Price  <derek@ximbiot.com>
115325         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115327 2005-09-19  Bruno Haible  <bruno@clisp.org>
115329         * gnulib-tool (import): Provide default for --tests-base.
115331 2005-09-19  Bruno Haible  <bruno@clisp.org>
115333         * doc/quote.texi: New file, extracted from gnulib.texi.
115334         * doc/ctime.texi: New file, extracted from gnulib.texi.
115335         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115336         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115337         * doc/gnulib.texi: Include them.
115339 2005-09-18  Bruno Haible  <bruno@clisp.org>
115341         Portability fix.
115342         * gnulib-tool (func_readlink): New function.
115343         (func_ln_if_changed): Use it.
115345 2005-09-18  Bruno Haible  <bruno@clisp.org>
115347         * gnulib-tool: Support --with-tests also with --import.
115348         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115349         (func_import): Use variables $testsbase and $inctests. Emit a
115350         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115351         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115352         SUBDIRS += $testsdir.
115353         (func_create_testdir): Update.
115355 2005-09-18  Bruno Haible  <bruno@clisp.org>
115357         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115358         instead of $dry_run.
115359         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115360         (func_ln_if_changed): Don't handle dry-run here.
115361         (func_import): In dry-run mode, detect more precisely which actions
115362         would be performed, and don't use "...ing" verbs.
115364 2005-09-18  Bruno Haible  <bruno@clisp.org>
115366         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115367         (func_import): Use join on two temporary files instead of three nested
115368         loops, in order to determine which files are new or old.
115370 2005-09-18  Bruno Haible  <bruno@clisp.org>
115372         * gnulib-tool (func_import): Comment out code that spits out the
115373         new files with --dry-run.
115375 2005-09-18  Bruno Haible  <bruno@clisp.org>
115377         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115379 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115381         * lib/stat-time.h: New file.
115382         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115383         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115384         in a different way.
115385         (timespec_cmp): New function.
115386         * lib/utimecmp.c: Include stat-time.h.
115387         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115388         members exist, not on the obsolescent ST_MTIM_NSEC.
115389         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115393         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115395 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115397         * MODULES.html.sh (File system functions): Add stat-time.
115398         * modules/stat-time: New file.
115399         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115400         is now done in a different way, by the stat-time module.
115401         * modules/utimecmp (Depends-on): Add stat-time.
115403 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115405         * m4/st_mtim.m4: Remove.  Superseded by...
115406         * m4/stat-time.m4: New file.
115407         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115408         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115410 2005-09-15  Derek Price  <derek@ximbiot.com>
115412         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115414 2005-09-15  Derek Price  <derek@ximbiot.com>
115416         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115417         * lib/regex_internal.c: Ditto, using this...
115418         (__GNUC_PREREQ): ...new macro.
115419         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115420         using...
115421         (__GNUC_PREREQ): ...this new macro.
115423         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115425 2005-09-15  Derek Price  <derek@ximbiot.com>
115426             Paul Eggert  <eggert@cs.ucla.edu>
115428         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115429         changes, consolidating in...
115430         * lib/regex_internal.h: ...this file.
115432 2005-09-13  Jim Meyering  <jim@meyering.net>
115434         * lib/canon-host.c: Filter through gnu indent and reword comments
115435         slightly.
115436         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115438 2005-09-13  Derek Price  <derek@ximbiot.com>
115440         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115441         failure.
115442         Reported by Jim Meyering  <jim@meyering.net>.
115444 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115446         * lib/base64.c: Typo.
115447         (base64_encode): Put b64str in initialized data section.
115449 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115451         Merge glibc and coreutils changes into gnulib, plus a few
115452         extra fixes.
115453         * lib/md5.c: Use #error rather than a string.
115454         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115455         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115456         (__attribute__): Define to empty for non recent-GCC.
115457         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115458         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115459         Renamed from their non-__ counterparts, with new macros replacing
115460         them if not _LIBC.  Add __THROW attribute.
115461         (rol): Remove.
115462         (struct md5_ctx): Align buffer if using GCC.
115463         * lib/sha1.h (struct sha1_ctx): Likewise.
115464         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115465         The old name was backwards.
115466         (NOTSWAP): Remove; not used.
115467         (rol): New macro, moved here from md5.h.
115468         (sha1_process_block): Remove a FIXME that doesn't make sense.
115470 2005-09-12  Derek Price  <derek@ximbiot.com>
115472         Return usable errors from canon-host.
115473         * lib/canon-host.h: New file.
115474         * lib/canon-host.c (canon_host): Wrap...
115475         (canon_host_r): ...this new function, which now relies exclusively on
115476         getaddrinfo.
115477         (ch_strerror): New function.
115478         (last_cherror): New global.
115479         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115480         interface.
115481         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115482         void *.
115483         (freeaddrinfo): Free ai->ai_canonname when set.
115485 2005-09-12  Derek Price  <derek@ximbiot.com>
115487         Make canon-host require getaddrinfo.
115488         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115489         AC_LIBSOURCE canon-host.h.  Call...
115490         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115491         gl_GETADDRINFO.
115492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115494 2005-09-12  Derek Price  <derek@ximbiot.com>
115496         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115497         LGPL.
115498         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115500 2005-09-12  Derek Price  <derek@ximbiot.com>
115502         * lib/gai_strerror.c: Include config.h when available.  Include
115503         getaddrinfo.h before other headers to test interface.
115504         Reported by Larry Jones <lawrence.jones@ugs.com>.
115506 2005-09-12  Derek Price  <derek@ximbiot.com>
115507             Paul Eggert  <eggert@cs.ucla.edu>
115509         * modules/glob (Files): Add glob-libc.h.
115511 2005-09-12  Derek Price  <derek@ximbiot.com>
115512             Paul Eggert  <eggert@cs.ucla.edu>
115514         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115515         glob_.h, glob-libc.h.
115516         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115518 2005-09-12  Derek Price  <derek@ximbiot.com>
115519             Paul Eggert  <eggert@cs.ucla.edu>
115521         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115522         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115523         protecting things that should be done only in gnulib contexts.
115524         * lib/glob_.h: New file, containing only the glob things needed for
115525         gnulib.
115526         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115527         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115528         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115529         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115530         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115531         and to respect the namespace rules better.
115533 2005-09-08  Simon Josefsson  <jas@extundo.com>
115535         * modules/socklen: New file.
115537 2005-09-08  Simon Josefsson  <jas@extundo.com>
115539         * m4/socklen.m4: New file.
115541 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115543         * modules/utimens (Files): Add m4/utimbuf.m4, since
115544         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115545         Reported by Sergey Poznyakoff.
115547 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115549         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115550         definitions, since that's the preferred style in glibc.
115551         Fix a minor spacing issue, and update copyright notice to match
115552         glibc's.
115554 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115556         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115558 2005-09-06  Simon Josefsson  <jas@extundo.com>
115560         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115561         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115563 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115565         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115566         warning.
115568 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115570         * config/srclist.txt: Add glibc bug 1302.
115572 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115574         Change bitset word type from unsigned int to unsigned long int,
115575         as this has better performance on typical 64-bit hosts.
115576         Port bitset code to hosts with unusual word sizes.
115577         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115578         (build_collating_symbol):
115579         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115580         argument is a bitset.  This is merely a style issue, but it makes
115581         it clearer that an entire array is expected.
115582         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115583         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115584         Port to the case where bitset_word is not the same as unsigned int.
115585         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115586         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
115587         Likewise.
115588         * lib/regexec.c (check_dst_limits_calc_pos_1,
115589         check_subexp_matching_top):
115590         (build_trtable, group_nodes_into_DFAstates):
115591         Likewise.
115592         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
115593         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
115594         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
115595         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
115596         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
115597         * lib/regcomp.c (optimize_subexps, lower_subexp):
115598         Work even if bitset_word has holes in its bitwise representation.
115599         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
115600         * lib/regexec.c (check_dst_limits_calc_pos_1,
115601         check_subexp_matching_top):
115602         Likewise.
115603         * lib/regex_internal.c (re_string_reconstruct):
115604         Don't assume UCHAR_MAX == 255.
115605         * lib/regex_internal.h (bitset_set_all): Likewise.
115606         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
115607         All uses changed.
115608         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
115609         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
115610         All uses changed.
115611         (BITSET_WORD_MAX): New macro.
115612         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
115613         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
115614         (bitset_empty, bitset_copy):
115615         Prefer sizeof (bitset) to multiplying it out ourselves.
115616         (bitset_not_merge): Remove; unused.
115617         (bitset_contain): Return bool, not unsigned int with one bit on.
115618         All callers changed.
115619         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
115620         alignment than re_node_set; do this by defining a new internal
115621         type struct dests_alloc and using it to allocate memory.
115623 2005-09-05  Bruno Haible  <bruno@clisp.org>
115625         * gnulib-tool (func_import): Fix comparison in handling of symbolic
115626         links.
115628 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
115630         * modules/size_max (Makefile.am): Add size_max.h
115632 2005-09-04  Derek Price  <derek@ximbiot.com>
115634         * gnulib-tool (func_import): Fix reversed $symbolic logic.
115636 2005-09-03  Simon Josefsson  <jas@extundo.com>
115638         * gnulib-tool: Fix typo.
115640 2005-09-03  Simon Josefsson  <jas@extundo.com>
115642         * config/srclist.txt: Add glibc bug 1293.
115644 2005-09-03  Derek Price  <derek@ximbiot.com>
115646         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
115647         From Larry Jones <lawrence.jones@ugs.com>.
115649 2005-09-02  Simon Josefsson  <jas@extundo.com>
115651         * modules/socklen: New file.
115653 2005-09-02  Simon Josefsson  <jas@extundo.com>
115655         * modules/havelib: New module.
115657         * modules/gettext, modules/iconv, modules/lock, modules/readline:
115658         Use havelib.
115660 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115662         Check for arithmetic overflow when calculating sizes, to prevent
115663         some buffer-overflow issues.  These patches are conservative, in the
115664         sense that when I couldn't determine whether an overflow was possible,
115665         I inserted a run-time check.
115666         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
115667         macros.
115668         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
115669         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
115670         (re_xnrealloc, re_x2nrealloc): New inline functions.
115671         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
115672         parse_bracket_exp):
115673         (build_equiv_class, build_charclass): Check for arithmetic overflow
115674         in size expression calculations.
115675         * lib/regex_internal.c (re_string_realloc_buffers):
115676         (build_wcs_upper_buffer, re_node_set_add_intersect):
115677         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
115678         (re_dfa_add_node, register_state): Likewise.
115679         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
115680         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
115681         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
115682         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
115684 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115686         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
115687         m4/ulonglong.m4.  Problem reported by Martin Lambers.
115689 2005-09-02  Bruno Haible  <bruno@clisp.org>
115691         Support for lib vs. lib64 distinction on biarch platforms.
115692         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
115693         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
115694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
115696 2005-09-02  Bruno Haible  <bruno@clisp.org>
115698         * gnulib-tool (import): In the other first-use case, provide defaults
115699         as well.
115701 2005-09-02  Bruno Haible  <bruno@clisp.org>
115703         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
115704         patches not yet found in the latest gettext release.
115706 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115708         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
115709         to avoid a collision with bits/local_lim.h in glibc.
115710         All uses changed.  Problem reported by Dmitry V. Levin in
115711         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
115713         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
115714         bugs in int versus size_t comparisons.
115715         (re_string_context_at): Fix bug where the code assumed that
115716         Idx is signed.
115718         Use bool where appropriate.
115719         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
115720         All callers changed.
115721         (calc_eclosure_iter): Likewise, for ROOT arg.
115722         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
115723         (build_charclass_op): Likewise, for NON_MATCH arg.
115724         * lib/regex_internal.c (re_string_allocate, re_string_construct):
115725         (re_string_construct_common): Likewise, for ICASE arg.
115726         * lib/regexec.c (re_search_2_stub, re_search_stub):
115727         Likewise, for RET_LEN arg.
115728         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
115729         (set_regs): Likewise, for FL_BACKTRACK arg.
115730         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
115731         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
115732         (calc_eclosure_iter, parse_bracket_exp):
115733         Use bool for internal variables that are booleans.
115734         * lib/regexec.c (re_search_internal, check_matching,
115735         proceed_next_node):
115736         (set_regs, build_sifted_states, sift_states_bkref):
115737         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
115738         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
115739         (find_collation_sequence_value):
115740         Likewise.
115741         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
115742         (re_node_set_compare):
115743         Return bool, not int. All callers changed.
115744         * lib/regexec.c (check_halt_node_context, check_dst_limits):
115745         (build_trtable, check_node_accept): Likewise.
115746         * lib/regex_internal.h: Include stdbool.h.
115748         Fix bugs uncovered when converting to bool.
115749         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
115750         failure instead of charging ahead blindly.
115751         * lib/regex_internal.c (register_state): Likewise.
115752         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
115753         for freeing internal storage.
115754         (group_nodes_into_DFA_states): Use unsigned int, not int, for
115755         bitset pieces used as boolean, to avoid undefined behavior
115756         on hosts that do int overflow checking.
115758 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115760         * config/srclist.txt: Add glibc bugs 1285-1287.
115762 2005-09-01  Jim Meyering  <jim@meyering.net>
115764         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
115765         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
115766         Require gl_STAT_MACROS, too.
115768 2005-09-01  Bruno Haible  <bruno@clisp.org>
115770         * gnulib-tool (import): In the first-use case, provide defaults.
115772 2005-09-01  Bruno Haible  <bruno@clisp.org>
115774         * gnulib-tool (func_import): Remove the .tmp files.
115776 2005-09-01  Bruno Haible  <bruno@clisp.org>
115778         * gnulib-tool (func_import): Fix handling of symbolic links.
115780 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115782         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
115783         old glibc regex code mishandles strings longer than 2**31 bytes.
115784         This patch fixes this when the regex code is used in gnulib
115785         (i.e., outside glibc).
115787         This patch should not affect the use of the regex code inside
115788         glibc.  No doubt this problem also needs to be handled for glibc
115789         as well, but the result will be an incompatible change to the
115790         glibc ABI, and the old ABI will have to be supported too.  That
115791         can be the subject for another patch.
115793         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
115794         governing whether the rest of this patch is active.  By default,
115795         the macro is disabled and the patch has no effect.
115796         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
115797         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
115798         (struct re_pattern_buffer, re_search, re_search_2, re_match):
115799         (re_match_2, re_set_registers): Use the new types.
115800         * lib/regex_internal.h (Idx, re_hashval_t): New types.
115801         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
115802         New macros.
115803         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
115804         (re_string_context_at, bin_tree_t, re_dfastate_t):
115805         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
115806         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
115807         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
115808         (re_string_char_size_at, re_string_wchar_at):
115809         (re_string_elem_size_at):
115810         Use the new types and macros to port to 64-bit hosts.
115811         Use unsigned types for internal values, so that the code
115812         mostly works even for arrays larger than SSIZE_MAX.
115813         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
115814         (search_duplicated_node, calc_eclosure_iter, fetch_number):
115815         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
115816         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
115817         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
115818         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
115819         (calc_inveclosure, parse_dup_op, build_range_exp):
115820         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
115821         (fetch_number, create_token_tree, mark_opt_subexp):
115822         Likewise.
115823         * lib/regex_internal.c (re_string_construct_common,
115824         create_ci_newstate):
115825         (create_cd_newstate, re_string_allocate, re_string_construct):
115826         (re_string_realloc_buffers, build_wcs_upper_buffer):
115827         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
115828         (re_string_reconstruct, re_string_peek_byte_case):
115829         (re_string_fetch_byte_case, re_string_context_at):
115830         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
115831         (re_node_set_init_copy, re_node_set_add_intersect):
115832         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
115833         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
115834         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
115835         (re_acquire_state, re_acquire_state_context, register_state):
115836         Likewise.
115837         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
115838         search_cur_bkref_entry):
115839         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
115840         (re_search_internal, re_search_2_stub, re_search_stub)
115841         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
115842         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
115843         (update_cur_sifted_state, check_dst_limits):
115844         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
115845         (check_subexp_limits, sift_states_bkref, merge_state_array):
115846         (check_subexp_matching_top, get_subexp, get_subexp_sub):
115847         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
115848         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
115849         (expand_bkref_cache, check_node_accept_bytes):
115850         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
115851         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
115852         (acquire_init_state_context, check_halt_node_context):
115853         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
115854         (sift_states_backward, clean_state_log_if_needed):
115855         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
115856         (find_recover_state, transit_state_sb, transit_state_mb):
115857         (transit_state_bkref, build_trtable, match_ctx_clean):
115858         Likewise.
115859         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
115860         to work around an assumption that REG_MISSING is negative.
115862         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
115863         (seek_collating_symbol_entry) [defined _LIBC]:
115864         (lookup_collation_sequence_value) [defined _LIBC]:
115865         (build_range_exp, build_collating_symbol) [defined _LIBC]:
115866         Use prototypes rather than old-style function definitions.
115867         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
115868         (transit_state_sb) [0]:
115869         (find_collation_sequence_value) [defined _LIBC]: Likewise.
115871         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
115872         rm_eo.
115874         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
115875         (optimize_subexps, lower_subexp):
115876         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
115877         since the signed shift might overflow.  Use 1u<<31 instead.
115878         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115879         Likewise.
115880         * lib/regexec.c (check_dst_limits_calc_pos_1,
115881         check_subexp_matching_top): Likewise.
115883         * lib/regcomp.c (optimize_subexps, lower_subexp):
115884         Use CHAR_BIT rather than 8, for clarity.
115885         * lib/regexec.c (check_dst_limits_calc_pos_1):
115886         (check_subexp_matching_top): Likewise.
115887         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
115888         have to worry about portability issues when shifting it left.
115889         Remove no-longer-needed test for table_size > 0.
115890         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
115891         in a word, as the resulting behavior is undefined.
115892         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
115893         in one case, a <= should have been an <, and in another case the
115894         whole test was missing.
115895         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
115896         the standard name CHAR_BIT.
115897         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
115898         this is not true on one's complement and signed-magnitude hosts.
115900         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
115901         next_last_offset.
115902         (struct re_dfa_t): Remove unused member states_alloc.
115903         * lib/regcomp.c (init_dfa): Don't initialize unused members.
115905 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115907         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
115908         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
115909         and large-file glibc and in 32-bit large-file Solaris.
115911 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115913         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
115914         lengths fit in regoff_t; this isn't true if regoff_t is the same
115915         width as size_t.
115916         * lib/regex.c (re_search_internal): 5th arg is LAST_START
115917         (= START + RANGE) instead of RANGE.  This avoids overflow
115918         problems when regoff_t is the same width as size_t.
115919         All callers changed.
115920         (re_search_2_stub): Check for overflow when adding the
115921         sizes of the two strings.
115922         (re_search_stub): Check for overflow when adding START
115923         to RANGE; if it occurs, substitute the extreme value.
115925 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115927         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
115929 2005-08-31  Jim Meyering  <jim@meyering.net>
115931         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
115932         a pointer-to-const.
115933         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
115934         (register_state): Likewise.
115935         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
115936         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
115937         (group_nodes_into_DFAstates): Likewise.
115939 2005-08-31  Jim Meyering  <jim@meyering.net>
115941         * check-module: Add a FIXME comment.
115943 2005-08-31  Eric Blake  <ebb9@byu.net>
115945         * modules/unistd-safer (Files): Add unistd--.h.
115946         * modules/stdio-safer (Files): Add stdio--.h.
115948 2005-08-31  Derek Price  <derek@ximbiot.com>
115950         * lib/getdelim.c (getdelim): Return EOF on EOF.
115951         Reported by Larry Jones <lawrence.jones@ugs.com>.
115953 2005-08-31  Bruno Haible  <bruno@clisp.org>
115955         Avoid unnecessary diffs in the generated lib/Makefile.am.
115956         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
115957         the generated files.
115958         (func_import): Don't set cmd.
115960 2005-08-31  Bruno Haible  <bruno@clisp.org>
115962         * lib/strstr.c: Include <stddef.h>, for NULL.
115963         * lib/strcasestr.c: Likewise.
115964         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115966 2005-08-31  Bruno Haible  <bruno@clisp.org>
115968         * gnulib-tool: New option --macro-prefix.
115969         (func_import): Use macro_prefix.
115970         (import): Handle option --macro-prefix.
115972 2005-08-31  Bruno Haible  <bruno@clisp.org>
115974         * gnulib-tool (import): Rename most ac_* variables to cached_*.
115975         Also use new variables cached_lgpl, cached_libtool.
115977 2005-08-31  Bruno Haible  <bruno@clisp.org>
115979         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
115980         always instantiating them.
115982 2005-08-31  Bruno Haible  <bruno@clisp.org>
115984         * gnulib-tool (func_import): Read the previous cached settings
115985         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
115986         earlier added by gnulib but are now dropped. Warn when a gnulib file
115987         overwrites a non-gnulib file.
115989 2005-08-31  Bruno Haible  <bruno@clisp.org>
115991         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
115992         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
115993         projects that don't keep autogenerated files in CVS. Put into
115994         actioncmd only the specified modules, not the transitive closure.
115996 2005-08-31  Bruno Haible  <bruno@clisp.org>
115998         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
115999         Create directories that shall be filled.
116000         (import): Don't look for gl_* macros in configure.ac. Recurse across
116001         all directories containing a gnulib-cache.m4 files, if meaningful.
116003 2005-08-31  Bruno Haible  <bruno@clisp.org>
116005         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116006         (import): Set seen_libtool when we see gl_LIBTOOL.
116008 2005-08-31  Bruno Haible  <bruno@clisp.org>
116010         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116011         declaration macro definitions from generated gnulib.m4.
116013 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116015         * lib/iconvme.h: Add prototype for iconv_alloc.
116017 2005-08-29  Simon Josefsson  <jas@extundo.com>
116019         * lib/iconvme.c: Fix errno.
116021 2005-08-29  Bruno Haible  <bruno@clisp.org>
116023         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116024         that it works when the directory contains spaces.
116026 2005-08-29  Bruno Haible  <bruno@clisp.org>
116028         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116030 2005-08-29  Bruno Haible  <bruno@clisp.org>
116032         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116033         Emit more advice.
116035 2005-08-29  Bruno Haible  <bruno@clisp.org>
116036         and Stepan Kasal  <kasal@ucw.cz>
116038         * check-module: If more parameters are given, check each of them
116039         separately; add more exceptions, as noted by Jim Meyering.
116040         (check_module): New procedure.
116041         (%exempt_header): Now contains all exceptions.
116043 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116045         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116047 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116049         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116051 2005-08-28  Bruno Haible  <bruno@clisp.org>
116053         * m4/gnulib-tool.m4: New file.
116055 2005-08-27  Jim Meyering  <jim@meyering.net>
116057         * modules/unistd-safer (Files): Add pipe-safer.c.
116058         * modules/fcntl-safer (Files): Add creat-safer.c.
116060 2005-08-27  Jim Meyering  <jim@meyering.net>
116062         * m4/stdlib-safer.m4: New file.  From coreutils.
116063         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116065         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116066         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116067         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116069 2005-08-27  Jim Meyering  <jim@meyering.net>
116071         * lib/fopen-safer.c: Merge minor changes from coreutils.
116072         * lib/dup-safer.c: Likewise.
116073         * lib/fd-safer.c: Likewise.
116075         Merge from coreutils.
116076         * lib/stdio--.h: New file.
116077         * lib/stdlib--.h: New file.
116078         * lib/mkstemp-safer.c: New file.
116080         GNU tar needs these.
116081         * lib/pipe-safer.c: New file.
116082         * lib/creat-safer.c: New file.
116083         * lib/fcntl--.h (creat): Define to creat_safer.
116084         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116085         * lib/unistd--.h (pipe): Define to pipe_safer.
116086         * lib/unistd-safer.h: Declare pipe_safer.
116088 2005-08-26  Simon Josefsson  <jas@extundo.com>
116090         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116091         Haible <bruno@clisp.org>.
116093 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116095         * lib/regex_internal.h: Remove all references to
116096         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116097         or better.
116098         (bitset_not, bitset_merge, bitset_not_merge):
116099         (bitset_mask, re_string_allocate, re_string_construct):
116100         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116101         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116102         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116103         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116104         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116105         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116106         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116107         (re_acquire_state_context):
116108         Remove unnecessary forward decls.
116109         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116110         Put __attribute at function definition,
116111         now that the function decl has been removed.
116112         * lib/regex_internal.c (re_string_peek_byte_case):
116113         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116114         Likewise.
116116 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116118         * m4/regex.m4: Add AC_PREREQ(2.50).
116119         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116121 2005-08-25  Simon Josefsson  <jas@extundo.com>
116123         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116124         __fsetlocking.
116126 2005-08-25  Simon Josefsson  <jas@extundo.com>
116128         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116129         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116130         GLIBC specific code.
116132 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116134         Make regex safe for g++.  This fixes one real bug (an "err"
116135         that should have been "*err").  g++ problem reported by
116136         Sam Steingold.
116137         * lib/regex_internal.h (re_calloc): New macro, consistent with
116138         re_malloc etc.  All callers of calloc changed to use re_calloc.
116139         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116140         not int.  All callers changed.
116141         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116142         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116143         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116144         (find_recover_state): Change "err" to "*err"; this fixes what
116145         appears to be a real bug.
116146         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116147         versus int.
116149 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116151         * modules/regex (Depends-on): Add malloc, since the code
116152         assumes that !malloc(0) means failure.
116154 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116156         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116158         alloca modernization/simplification for regex.
116159         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116160         needs to be at the start of the file, and can be moved into
116161         regex_internal.h and simplified.
116162         * lib/regex_internal.h: Include <alloca.h>.
116163         (__libc_use_alloca) [!defined _LIBC]: New macro.
116164         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116165         now works outside glibc.
116167 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116169         * config/srclist.txt: Add glibc bugs 1241, 1245.
116171 2005-08-25  Jim Meyering  <jim@meyering.net>
116173         * lib/open-safer.c: Include <config.h>.
116174         Otherwise, we'd lose LARGEFILE support in any file using
116175         e.g. "fcntl--.h"
116177 2005-08-25  Bruno Haible  <bruno@clisp.org>
116179         * m4/minmax.m4: Require autoconf 2.52.
116180         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116181         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116182         alternatives of translit over the alphabet.
116183         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116185 2005-08-24  Simon Josefsson  <jas@extundo.com>
116187         * tests/test-getpass.c: New file.
116189 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116191         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116192         for GNU regex features.
116194 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116196         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116197         * lib/regex.h (regerror): Likewise.
116199         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116200         requires this.  (The code never needed it.)
116202         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116203         All uses of recently-renamed identifiers changed to use the new,
116204         POSIX-compliant names.  The code will build and run just fine
116205         without these changes, but it's better to eat our own dog food
116206         and use the standard-conforming names.
116208         * lib/regex.h: Fix a multitude of POSIX name space violations.
116209         These changes have an effect only for programs that define
116210         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116211         do not change anything for programs compiled in the normal way.
116212         Also, there is no effect on the ABI.
116214         (_REGEX_SOURCE): New macro.
116215         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116216         defined and _GNU_SOURCE is not; this fixes a name space violation.
116218         Rename the following macros to obey POSIX requirements.
116219         The old names are still visible as macros if _REGEX_SOURCE is defined.
116220         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116221         RE_BACKSLASH_ESCAPE_IN_LISTS.
116222         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116223         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116224         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116225         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116226         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116227         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116228         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116229         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116230         (REG_INTERVALS): renamed from RE_INTERVALS.
116231         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116232         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116233         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116234         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116235         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116236         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116237         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116238         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116239         RE_UNMATCHED_RIGHT_PAREN_ORD.
116240         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116241         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116242         (REG_DEBUG): renamed from RE_DEBUG.
116243         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116244         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116245         unusual, since we can't clash with the POSIX REG_ICASE.
116246         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116247         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116248         (REG_NO_SUB): renamed from RE_NO_SUB.
116249         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116250         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116251         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116252         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116253         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116254         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116255         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116256         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116257         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116258         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116259         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116260         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116261         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116262         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116263         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116264         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116265         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116266         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116267         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116268         (REG_FIXED): Renamed from REGS_FIXED.
116269         (REG_NREGS): Renamed from RE_NREGS.
116271         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116272         of other REG_* macros, since POSIX says the user is allowed to
116273         #undef these macros selectively.
116275         (reg_errcode_t): Update comment stating what other tables need
116276         to be consistent.
116278         Rename the following enum values to obey POSIX requirements.
116279         The old names are still visible as macros.
116280         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116281         is not defined, since GNU is supposed to be a superset of POSIX as
116282         much as possible, and since we want reg_errcode_t to be a signed
116283         type for implementation consistency.
116284         (_REG_NOERROR): Renamed from REG_NOERROR.
116285         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116286         (_REG_BADPAT): Renamed from REG_BADPAT.
116287         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116288         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116289         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116290         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116291         (_REG_EBRACK): Renamed from REG_EBRACK.
116292         (_REG_EPAREN): Renamed from REG_EPAREN.
116293         (_REG_EBRACE): Renamed from REG_EBRACE.
116294         (_REG_BADBR): Renamed from REG_BADBR.
116295         (_REG_ERANGE): Renamed from REG_ERANGE.
116296         (_REG_ESPACE): Renamed from REG_ESPACE.
116297         (_REG_BADRPT): Renamed from REG_BADRPT.
116298         (_REG_EEND): Renamed from REG_EEND.
116299         (_REG_ESIZE): Renamed from REG_ESIZE.
116300         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116301         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116302         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116303         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116304         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116306         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116307         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116308         changed.  But support the old name if the new one is not defined
116309         and if _REGEX_SOURCE.
116311         Change the following member names in struct re_pattern_buffer.
116312         The old names are still supported if !_REGEX_SOURCE.
116313         The new names are always supported, regardless of _REGEX_SOURCE.
116314         (re_buffer): Renamed from buffer.
116315         (re_allocated): Renamed from allocated.
116316         (re_used): Renamed from used.
116317         (re_syntax): Renamed from syntax.
116318         (re_fastmap): Renamed from fastmap.
116319         (re_translate): Renamed from translate.
116320         (re_can_be_null): Renamed from can_be_null.
116321         (re_regs_allocated): Renamed from regs_allocated.
116322         (re_fastmap_accurate): Renamed from fastmap_accurate.
116323         (re_no_sub): Renamed from no_sub.
116324         (re_not_bol): Renamed from not_bol.
116325         (re_not_eol): Renamed from not_eol.
116326         (re_newline_anchor): Renamed from newline_anchor.
116328         Change the following member names in struct re_registers.
116329         The old names are still supported if !_REGEX_SOURCE.
116330         The new names are always supported, regardless of _REGEX_SOURCE.
116331         (rm_num_regs): Renamed from num_regs.
116332         (rm_start): Renamed from start.
116333         (rm_end): Renamed from end.
116335         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116336         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116337         Prepend __ to parameter names.
116339         Undo yesterday's changes.
116341 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116343         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116344         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116345         lib/regex.c.
116347 2005-08-24  Jim Meyering  <jim@meyering.net>
116349         Sync from coreutils.
116350         * m4/fcntl-safer.m4: New file.
116352         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116353         and object files for this module.
116355 2005-08-24  Jim Meyering  <jim@meyering.net>
116357         Sync from coreutils.
116358         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116360 2005-08-24  Jim Meyering  <jim@meyering.net>
116362         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116363         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116365 2005-08-24  Jim Meyering  <jim@meyering.net>
116367         * modules/fcntl-safer: New module.
116368         * modules/fts (Depends-on): Add fcntl-safer.
116369         * MODULES.html.sh (File descriptor based Input/Output):
116370         Add fcntl-safer.
116372 2005-08-24  Bruno Haible  <bruno@clisp.org>
116374         Support for unit test modules.
116375         * modules/README: Mention tests modules.
116376         * modules/TEMPLATE-TESTS: New file.
116377         * gnulib-tool: New options --extract-tests-module, --with-tests and
116378         --tests-base (unused for the moment).
116379         (testsbase, inctests): New variables.
116380         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116381         (func_verify_module): Exclude TEMPLATE-TESTS.
116382         (func_verify_nontests_module, func_verify_tests_module): New functions.
116383         (func_get_dependencies): Add implicit dependency for tests modules.
116384         (func_get_tests_module): New function.
116385         (func_modules_transitive_closure): When --with-tests was specified,
116386         include the unit tests as well, unless explicitly avoided.
116387         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116388         (func_emit_tests_Makefile_am): New function.
116389         (func_create_testdir): When --with-tests was specified, emit a
116390         tests/ directory.
116391         * MODULES.html.sh (Future developments): Update.
116393 2005-08-24  Bruno Haible  <bruno@clisp.org>
116395         * modules/tls-tests: New file.
116396         * tests/test-tls.c: New file, from GNU gettext.
116398 2005-08-24  Bruno Haible  <bruno@clisp.org>
116400         * modules/lock-tests: New file.
116401         * tests/test-lock.c: New file, from GNU gettext.
116403 2005-08-24  Bruno Haible  <bruno@clisp.org>
116405         * lib/lock.h: Add multiple inclusion guard.
116406         * lib/tls.h: Add multiple inclusion guard.
116408 2005-08-24  Bruno Haible  <bruno@clisp.org>
116410         * gnulib-tool: Add support for the --aux-dir option to
116411         --create-testdir, --create-megatestdir, --test, --megatest.
116412         (func_create_testdir, func_create_megatestdir): Optionally emit a
116413         AC_CONFIG_AUX_DIR directive.
116414         (create-testdir, create-megatestdir, test, megatest): Provide a
116415         default value for $auxdir.
116417 2005-08-24  Bruno Haible  <bruno@clisp.org>
116419         * gnulib-tool (import): Use compound statement instead of subshell
116420         where possible.
116422 2005-08-24  Bruno Haible  <bruno@clisp.org>
116424         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116426 2005-08-24  Bruno Haible  <bruno@clisp.org>
116428         * gnulib-tool (func_version): Update.
116430 2005-08-24  Bruno Haible  <bruno@clisp.org>
116432         * gnulib-tool (func_import, func_create_testdir,
116433         func_create_megatestdir): Quote all autoconf macro arguments.
116435 2005-08-24  Bruno Haible  <bruno@clisp.org>
116437         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116438         option --force, because --force causes the aclocal.m4 of each
116439         subdirectory to be newer than the corresponding config.h.in.
116441 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116443         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116444         All contents moved to gl_REGEX.
116445         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116446         assume that it does.
116448 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116450         * lib/regex.h (REG_NOSYS)
116451         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116452         Define, since POSIX requires it as of 2001.
116453         (_REG_ENOSYS)
116454         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116455         New private symbol, used to keep the enum signed in all cases.
116456         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116457         Youngman in
116458         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116460         * lib/regex_internal.c (re_string_skip_chars, register_state):
116461         (calc_state_hash):
116462         Remove forward decls; no longer needed now that we use prototypes.
116463         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116464         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116465         (clean_state_log_if_needed): Likewise.
116467 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116469         * config/srclist.txt: Add glibc bugs 1231-1233.
116471 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116473         Fix problems reported by Sam Steingold in
116474         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116475         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116476         assumed that reg_errcode_t is a signed type, which is not
116477         necessarily true if _XOPEN_SOURCE is not defined.
116478         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116479         since some compilers warn about it otherwise.
116481 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116483         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116484         (init_word_char, create_initial_state, duplicate_node_closure):
116485         (fetch_token, peek_token_bracket, build_range_exp):
116486         (build_collating_symbol): Remove forward decls; no longer needed
116487         now that we use prototypes.
116489         * lib/regcomp.c:
116490         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116491         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116492         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116493         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116494         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116495         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116496         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116497         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116498         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116499         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116500         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116501         (build_charclass, build_charclass_op, fetch_number, create_tree):
116502         (create_token_tree, mark_opt_subexp, duplicate_tree):
116503         Use prototypes rather than old-style definitions.
116505         * lib/regex_internal.c:
116506         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116507         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116508         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116509         (re_string_reconstruct, re_string_peek_byte_case):
116510         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116511         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116512         (re_node_set_init_copy, re_node_set_add_intersect):
116513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116515         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116516         (re_acquire_state, re_acquire_state_context, register_state):
116517         (create_ci_newstate, create_cd_newstate, free_state):
116518         Likewise.
116519         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116520         re_search_2):
116521         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116522         (re_search_internal, prune_impossible_nodes):
116523         (acquire_init_state_context, check_matching, static):
116524         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116525         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116526         (update_regs, sift_states_backward, build_sifted_states):
116527         (clean_state_log_if_needed, merge_state_array):
116528         (update_cur_sifted_state, add_epsilon_src_nodes):
116529         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116530         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116531         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116532         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116533         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116534         (check_arrival, check_arrival_add_next_nodes):
116535         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116536         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116537         (check_node_accept_bytes, check_node_accept, extend_buffers):
116538         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116539         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116540         (sift_ctx_init):
116541         Likewise.
116543         * lib/regex_internal.h:
116544         (re_string_allocate, re_string_construct, re_string_reconstruct):
116545         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116546         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116547         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116548         (re_string_context_at, re_string_peek_byte_case):
116549         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116550         is defined, since we now use prototypes always.
116552         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116553         C89 or better.  All uses removed.
116555 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116557         * config/srclist.txt: Add glibc bugs 1220-1227.
116559 2005-08-20  Jim Meyering  <jim@meyering.net>
116561         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116562         of unused local, dfa.
116564 2005-08-20  Bruno Haible  <bruno@clisp.org>
116566         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116568 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116570         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116571         (re_node_set_insert_last, re_dfa_add_node):
116572         Rename local variables to avoid GCC shadowing warnings.
116574 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116576         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116577         [defined lint]: Suppress bogus uninitialized-variable warnings.
116579         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116580         and let the caller return REG_ESPACE if out of space.  This
116581         removes an uninitialied-variable warning with GCC 4.0.1, and also
116582         avoids taking the address of a local variable.  All callers
116583         changed.
116585 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116587         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
116588         $LIBCSRC/posix/regexec.c.
116589         Add glibc bug 1217 for regcomp.c.
116591 2005-08-19  Jim Meyering  <jim@meyering.net>
116593         * lib/regexec.c (proceed_next_node): Redo local variables to
116594         avoid GCC shadowing warnings.
116596 2005-08-18  Bruno Haible  <bruno@clisp.org>
116598         * lib/strstr.c (strstr): Fix return value in multibyte case.
116599         * lib/strcasestr.c (strcasestr): Likewise.
116601 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116603         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
116605 2005-08-17  Jim Meyering  <jim@meyering.net>
116607         Make the %s format (seconds since the epoch) work for a negative
116608         number and when used with a zero-padded field width, e.g. %015s.
116610         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
116611         label so that it precedes the code to set `digits'.  Otherwise,
116612         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
116613         print `00-22'.  Now, it prints `-0022', as it should.
116615 2005-08-17  Bruno Haible  <bruno@clisp.org>
116617         * modules/strstr (Files): Add m4/mbrtowc.m4.
116618         (Depends-on): Add mbuiter.
116620 2005-08-17  Bruno Haible  <bruno@clisp.org>
116622         * modules/strcasestr: New file.
116623         * MODULES.html.sh (String handling, based on ANSI C 89): Add
116624         strcasestr.
116626 2005-08-17  Bruno Haible  <bruno@clisp.org>
116628         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
116630 2005-08-17  Bruno Haible  <bruno@clisp.org>
116632         * modules/mbuiter: New file.
116633         * MODULES.html.sh (Extended multibyte and wide character utilities):
116634         Add mbuiter.
116636 2005-08-17  Bruno Haible  <bruno@clisp.org>
116638         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
116639         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
116641 2005-08-17  Bruno Haible  <bruno@clisp.org>
116643         * m4/strcasestr.m4: New file.
116645 2005-08-17  Bruno Haible  <bruno@clisp.org>
116647         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
116648         * lib/strstr.c: Completely rewritten, with multibyte locale support.
116650 2005-08-17  Bruno Haible  <bruno@clisp.org>
116652         * lib/strcasestr.h: New file.
116653         * lib/strcasestr.c: New file.
116655 2005-08-17  Bruno Haible  <bruno@clisp.org>
116657         * lib/strcasecmp.c: Use mbuiter.h.
116659 2005-08-17  Bruno Haible  <bruno@clisp.org>
116661         * lib/mbuiter.h: New file.
116663 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
116665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
116666         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
116667         and gl_GETOPT are both invoked via different paths (as happens
116668         with GNU tar CVS because it uses both argp and getopt), the former
116669         wins.
116671 2005-08-16  Bruno Haible  <bruno@clisp.org>
116673         * modules/tls: New file.
116674         * MODULES.html.sh (Multithreading): Add tls.
116676 2005-08-16  Bruno Haible  <bruno@clisp.org>
116678         * modules/strnlen1: New file.
116679         * MODULES.html.sh (String handling): Add strnlen1.
116681 2005-08-16  Bruno Haible  <bruno@clisp.org>
116683         * modules/strcase (Files): Add m4/mbrtowc.m4.
116684         (Depends-on): Add strnlen1, mbchar.
116686 2005-08-16  Bruno Haible  <bruno@clisp.org>
116688         * modules/mbiter: New file.
116689         * MODULES.html.sh (Extended multibyte and wide character utilities):
116690         Add mbiter.
116692 2005-08-16  Bruno Haible  <bruno@clisp.org>
116694         * modules/mbfile: New file.
116695         * MODULES.html.sh (Extended multibyte and wide character utilities):
116696         Add mbfile.
116698 2005-08-16  Bruno Haible  <bruno@clisp.org>
116700         * modules/mbchar: New file.
116701         * MODULES.html.sh (Extended multibyte and wide character utilities):
116702         New section.
116704 2005-08-16  Bruno Haible  <bruno@clisp.org>
116706         * m4/tls.m4: New file, from GNU gettext.
116708 2005-08-16  Bruno Haible  <bruno@clisp.org>
116710         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
116711         always.
116712         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
116714 2005-08-16  Bruno Haible  <bruno@clisp.org>
116716         * m4/mbiter.m4: New file.
116718 2005-08-16  Bruno Haible  <bruno@clisp.org>
116720         * m4/mbfile.m4: New file.
116722 2005-08-16  Bruno Haible  <bruno@clisp.org>
116724         * m4/mbchar.m4: New file.
116726 2005-08-16  Bruno Haible  <bruno@clisp.org>
116728         * lib/tls.h: New file, from GNU gettext.
116729         * lib/tls.c: New file, from GNU gettext.
116731 2005-08-16  Bruno Haible  <bruno@clisp.org>
116733         * lib/strnlen1.h: New file.
116734         * lib/strnlen1.c: New file.
116736 2005-08-16  Bruno Haible  <bruno@clisp.org>
116738         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
116739         (mbi_init): Update.
116740         (mbi_avail, mbi_advance): Let the iteration end before the terminating
116741         NUL byte, not after it.
116743 2005-08-16  Bruno Haible  <bruno@clisp.org>
116745         * lib/strcase.h (strcasecmp): Add note in comments.
116746         * lib/strncasecmp.c: Use code from strcasecmp.c.
116747         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
116748         (strcasecmp): Work correctly in multibyte locales.
116750 2005-08-16  Bruno Haible  <bruno@clisp.org>
116752         * lib/mbiter.h: New file.
116754 2005-08-16  Bruno Haible  <bruno@clisp.org>
116756         * lib/mbfile.h: New file.
116758 2005-08-16  Bruno Haible  <bruno@clisp.org>
116760         * lib/mbchar.h: New file.
116761         * lib/mbchar.c: New file.
116763 2005-08-16  Bruno Haible  <bruno@clisp.org>
116765         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
116766         the valid ones. Makes the comparison operations transitive:
116767         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
116768         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
116770 2005-08-15  Simon Josefsson  <jas@extundo.com>
116772         * modules/ssize_t (License): Change to 'unlimited'.
116774         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
116776 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
116778         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
116779         Add comments for each pending glibc patch.
116781 2005-08-15  Bruno Haible  <bruno@clisp.org>
116783         * lib/regex.h (__restrict_arr): Don't define to __restrict if
116784         __cplusplus is defined.
116786 2005-08-14  Jim Meyering  <jim@meyering.net>
116788         Sync from coreutils.
116790         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
116791         Use the hash-table-based cycle-detection code not just when
116792         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
116793         Reported by James Youngman in
116794         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
116795         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
116796         FTS_TIGHT_CYCLE_CHECK.
116797         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
116798         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
116799         once again.
116800         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
116801         * lib/fts.c (fd_safer): Remove decl.
116802         Include fcntl--.h rather than unistd-safer.h
116803         (fts_safe_changedir): Don't call fd_safer; no longer needed
116804         now that we include fcntl--.h.
116806 2005-08-12  Simon Josefsson  <jas@extundo.com>
116808         * modules/getndelim2: Use ssize_t module.
116809         * modules/getnline: Likewise.
116810         * modules/safe-read: Likewise.
116811         * modules/xreadlink: Likewise.
116813         * modules/ssize_t: New file.
116815 2005-08-12  Simon Josefsson  <jas@extundo.com>
116817         * m4/readline.m4: Look for termcap, curses or ncurses if required.
116819 2005-08-12  Simon Josefsson  <jas@extundo.com>
116821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116822         ssize_t.
116824 2005-08-12  Simon Josefsson  <jas@extundo.com>
116826         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
116827         readline, getdelim and check_version.
116828         (Support for systems lacking ISO C 99: Sizes of integer types):
116829         Add size_max.
116831 2005-08-12  Bruno Haible  <bruno@clisp.org>
116833         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
116835 2005-08-11  Simon Josefsson  <jas@extundo.com>
116837         * modules/readline: New file.
116839         * modules/strnlen (Files): Add strnlen.h.
116841 2005-08-11  Simon Josefsson  <jas@extundo.com>
116843         * m4/readline.m4: New file.
116845 2005-08-11  Simon Josefsson  <jas@extundo.com>
116847         * lib/readline.h, readline.c: New file.
116849 2005-08-11  Simon Josefsson  <jas@extundo.com>
116851         * doc/gnulib.texi (Initial import, Finishing touches): Mention
116852         gl_AVOID.
116854 2005-08-11  Bruno Haible  <bruno@clisp.org>
116856         * lib/strnlen.h (strnlen): Change parameter name to match comment.
116858 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
116860         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
116862 2005-08-10  Simon Josefsson  <jas@extundo.com>
116864         * tests/test-iconvme.c: New file.
116866 2005-08-10  Simon Josefsson  <jas@extundo.com>
116868         * m4/strnlen.m4: New file.
116870         * m4/strndup.m4: Don't check for strnlen declaration, done in
116871         strnlen.m4.
116873 2005-08-10  Simon Josefsson  <jas@extundo.com>
116875         * lib/strndup.c: Use strnlen.h.
116877         * lib/strnlen.h: New file.
116879 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116881         * README: Typos.
116883 2005-08-02  Simon Josefsson  <jas@extundo.com>
116885         * modules/readline: New file.
116887 2005-08-02  Simon Josefsson  <jas@extundo.com>
116889         * modules/getdelim: New file.
116891         * modules/getline: Rewrite, don't use getndelim2.
116893 2005-08-02  Simon Josefsson  <jas@extundo.com>
116895         * m4/getline.m4: Separate out getdelim stuff into separate module.
116897         * m4/getdelim.m4: New file.
116899 2005-08-02  Simon Josefsson  <jas@extundo.com>
116901         * lib/getline.h, getline.c: Rewrite.
116903         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
116905 2005-07-31  Bruno Haible  <bruno@clisp.org>
116907         * lib/lock.h (gl_lock_initializer): New macro.
116908         (gl_lock_define_initialized): Use it.
116909         (gl_rwlock_initializer): New macro.
116910         (gl_rwlock_define_initialized): Use it.
116911         (gl_recursive_lock_initializer): New macro.
116912         (gl_recursive_lock_define_initialized): Use it.
116914 2005-07-30  Karl Berry  <karl@gnu.org>
116916         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
116917         Report from Ben Pfaff, regarding getopt.
116919 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
116921         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
116922         normal way.
116923         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
116924         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
116925         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
116926         (gl_GETOPT): Use the new macros.  Most of the implementation
116927         is moved to the new macros.  This is for programs like Emacs
116928         that don't want all the functionality of gl_GETOPT.
116930 2005-07-26  Bruno Haible  <bruno@clisp.org>
116932         * m4/lock.m4: Update from GNU gettext.
116934 2005-07-26  Bruno Haible  <bruno@clisp.org>
116936         * lib/lock.h: Update from GNU gettext.
116937         * lib/lock.c: Update from GNU gettext.
116939 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
116941         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
116942         obsolescent AC_TRY_RUN.  Include the default includes files, for
116943         'exit'.
116945 2005-07-24  Bruno Haible  <bruno@clisp.org>
116947         * modules/visibility: New file.
116948         * MODULES.html.sh (Misc): Add visibility.
116950 2005-07-24  Bruno Haible  <bruno@clisp.org>
116952         * m4/visibility.m4: New file.
116954 2005-07-24  Bruno Haible  <bruno@clisp.org>
116956         * doc/visibility.texi: New file.
116958 2005-07-22  Bruno Haible  <bruno@clisp.org>
116960         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
116961         $(ALLOCA_H), redundant through BUILT_SOURCES.
116962         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
116963         redundant through BUILT_SOURCES.
116964         * modules/byteswap (Makefile.am): Remove explicit dependency on
116965         $(BYTESWAP_H), redundant through BUILT_SOURCES.
116966         * modules/fnmatch (Makefile.am): Remove explicit dependency on
116967         $(FNMATCH_H), redundant through BUILT_SOURCES.
116968         * modules/getopt (Makefile.am): Remove explicit dependency on
116969         $(GETOPT_H), redundant through BUILT_SOURCES.
116970         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
116971         redundant through BUILT_SOURCES.
116972         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
116973         redundant through BUILT_SOURCES.
116974         * modules/stdbool (Makefile.am): Remove explicit dependency on
116975         $(STDBOOL_H), redundant through BUILT_SOURCES.
116976         * modules/stdint (Makefile.am): Remove explicit dependency on
116977         $(STDINT_H), redundant through BUILT_SOURCES.
116978         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
116979         Remove explicit dependency on $(SYSEXITS_H).
116980         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
116982 2005-07-18  Simon Josefsson  <jas@extundo.com>
116984         * lib/check-version.c (check_version): Accept identical versions too.
116986 2005-07-18  Bruno Haible  <bruno@clisp.org>
116988         * modules/lock: New file.
116989         * MODULES.html.sh (Multithreading): New section.
116991 2005-07-18  Bruno Haible  <bruno@clisp.org>
116993         * m4/lock.m4: New file, from GNU gettext.
116995 2005-07-18  Bruno Haible  <bruno@clisp.org>
116997         * lib/lock.h: New file, from GNU gettext.
116998         * lib/lock.c: New file, from GNU gettext.
117000 2005-07-18  Bruno Haible  <bruno@clisp.org>
117002         * lib/lock.h (gl_once_t): New type.
117003         (gl_once_define, gl_once): New macros.
117004         * lib/lock.c (fresh_once): New variable.
117005         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117006         functions.
117008 2005-07-16  Simon Josefsson  <jas@extundo.com>
117010         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117011         workaround, suggested by Bruno.
117013 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117015         * modules/xalloc (Depends-on): Add xalloc-die.
117016         * modules/xvasprintf (Depends-on): Add xalloc-die.
117018 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117020         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117021         with a minor change.
117023 2005-07-15  Bruno Haible  <bruno@clisp.org>
117025         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117026         When using lib/poll.c, define poll as rpl_poll.
117028 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117030         * modules/argp (Depends-on): Remove unlocked-io.
117032 2005-07-14  Derek Price  <derek@ximbiot.com>
117034         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117035         for glob symlink bug.
117037 2005-07-14  Bruno Haible  <bruno@clisp.org>
117039         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117040         Instead, test for *_unlocked function declarations directly.
117042 2005-07-11  Simon Josefsson  <jas@extundo.com>
117044         * modules/size_max: New file.
117046         * modules/xsize: Depend on size_max module for size_max.m4.
117048 2005-07-11  Simon Josefsson  <jas@extundo.com>
117050         * lib/size_max.h: New file.
117052 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117054         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117055         copyright symbol and the year.
117056         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117057         (version_etc_va): Use parameterized copyright notice.
117058         Reword to conform to the current GNU coding standards.
117060 2005-07-11  Karl Berry  <karl@gnu.org>
117062         * doc/gnulib.texi (Quoting): new node.
117063         (Initial import): more info, from Patrice.
117065 2005-07-11  Bruno Haible  <bruno@clisp.org>
117067         * gnulib-tool (func_usage): Document option --avoid.
117068         (Command line options): Handle --avoid.
117069         (func_acceptable): New function.
117070         (func_modules_transitive_closure): Use it.
117072 2005-07-11  Bruno Haible  <bruno@clisp.org>
117074         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117075         Reported by Jim Meyering.
117077 2005-07-10  Bruno Haible  <bruno@clisp.org>
117079         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117080         Needed when size_t is smaller than 'unsigned int'.
117081         Reported by Paul Eggert.
117083 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117085         * modules/argp (Depends-on): Add unlocked-io
117087 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117089         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117090         block of defines.
117092 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117094         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117095         fix now.
117097 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117098         and Paul Eggert  <eggert@cs.ucla.edu>
117100         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117101         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117105         * modules/regex (Files): Add lib/regex_internal.c,
117106         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117107         (Depends-on): Add extensions.
117108         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117110 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117112         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117113         pathconf.
117114         * m4/same.m4 (gl_SAME): Likewise.
117115         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117117         * m4/regex.m4: Adjust to new libc regex implementation.
117118         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117119         all the .c and .h parts of (the new) regex.
117120         Quote the m4 stuff better.
117121         Check for RE_ICASE bug of old gnulib.
117122         Check for REG_STARTEND of recent libc.
117123         Rename local variables from jm_* to gl_*.
117124         Quote operand of "test -f".
117125         Say "recent enough" version of libc, not "version 2".
117126         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117127         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117128         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117129         Remove check for btowc, isascii.
117130         Require AM_LANGINFO_CODESET.
117132 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117134         * lib/regex.c, regex.h: Sync from libc.
117135         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117136         * lib/regexec.c:
117137         New files, synced from libc, except that regex_internal.h
117138         currently has a small porting fix.
117140 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117142         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117143         regex_internal.c, regexec.c.
117144         Add regex_internal.h too, but as a comment, since the libc version
117145         is currently broken in gnulib mode.
117147 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117149         Support programs like Emacs that use gnulib but not gettext.
117150         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117151         * modules/gettext-h: New file.
117152         * modules/gettext (Files): Remove lib/gettext.h.
117153         (Depends-on): Add gettext-h.
117154         (Makefile.am): Remove lib_SOURCES.
117155         * modules/argmatch, modules/c-stack, modules/closeout:
117156         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117157         * modules/execute, modules/file-type, modules/getaddrinfo:
117158         * modules/getopt, modules/human, modules/javacomp:
117159         * modules/javaexec, modules/mkdir-p, modules/obstack:
117160         * modules/openat, modules/pagealign_alloc, modules/pipe:
117161         * modules/quotearg, modules/regex, modules/rpmatch:
117162         * modules/unicodeio, modules/userspec, modules/version-etc:
117163         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117164         * modules/xsetenv:
117165         Depend on gettext-h, not gettext.
117167 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117169         * gnulib-tool (func_import): Add support for 'public domain' license.
117170         * modules/alloca, modules/atexit, modules/memmove:
117171         Now public domain, not GPL.
117172         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117173         * modules/realloc, modules/strerror, modules/strtod:
117174         Now LGPL, not GPL.
117176 2005-07-05  Bruno Haible  <bruno@clisp.org>
117178         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117179         autoconf CVS. Needed for mingw.
117181 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117183         Remove the dependency of the strftime module on the tzset module.
117184         * modules/strftime (Depends-on): Remove dependency on tzset.
117186 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117188         Remove the dependency of the strftime module on the tzset module.
117189         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117190         gl_FUNC_TZSET_CLOBBER.
117192 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117194         Remove the dependency of the strftime module on the tzset module.
117195         * lib/strftime.c (my_strftime)
117196         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117197         Copy the input structure, to work around some of the bug with
117198         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117199         Solaris releases, you should also use the tzset module, but we won't
117200         require it as a dependency any more since we don't want LGPLed code
117201         to depend on GPLed code.
117203 2005-07-02  Jim Meyering  <jim@meyering.net>
117205         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117206         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117207         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117208         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117210 2005-07-02  Jim Meyering  <jim@meyering.net>
117212         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117214 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117216         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117217         declares only 'struct timespec;' (!).
117219 2005-07-01  Jim Meyering  <jim@meyering.net>
117221         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117222         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117223         * lib/save-cwd.c, tempname.c:
117224         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117225         and don't include <sys/file.h>).
117227 2005-06-29  Jim Meyering  <jim@meyering.net>
117229         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117230         type name.  Use the variable name instead.
117231         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117232         Likewise.
117234 2005-06-28  Simon Josefsson  <jas@extundo.com>
117236         * modules/check-version (Files): Add check-version.m4.
117238 2005-06-28  Simon Josefsson  <jas@extundo.com>
117240         * m4/check-version.m4: New file, suggested by Jim Meyering
117241         <jim@meyering.net>.
117243 2005-06-28  Simon Josefsson  <jas@extundo.com>
117245         * lib/check-version.h, lib/check-version.c: New files.
117247 2005-06-28  Simon Josefsson  <jas@extundo.com>
117249         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117250         collision with global variable.  Better indentation.  Don't
117251         increment buffer pointer beyond buffer end.  Based on comments
117252         from Paul Eggert <eggert@cs.ucla.edu>.
117254         * lib/base64.h: Indent.
117256 2005-06-28  Simon Josefsson  <jas@extundo.com>
117258         * doc/gnulib.texi (Library version handling): New section.
117260 2005-06-28  Jim Meyering  <jim@meyering.net>
117262         * check-module (find_included_lib_files): Hard-code another
117263         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117264         but modules/fts-lgpl (correctly) does not list those files.
117266         * modules/canonicalize (Files): Add lib/pathmax.h.
117268 2005-06-25  Simon Josefsson  <jas@extundo.com>
117270         * modules/check-version: New file.
117272 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117274         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117275         initializer of struct addrinfo, as an indication that we don't
117276         care how many members the structure has.
117278 2005-06-24  Derek Price  <derek@ximbiot.com>
117279         and Bruno Haible  <bruno@clisp.org>
117281         Remove stat module & update lstat.
117282         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117283         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117284         * m4/stat.m4: Remove this file.
117286 2005-06-24  Derek Price  <derek@ximbiot.com>
117287         and Bruno Haible  <bruno@clisp.org>
117289         Remove stat module & update lstat.
117290         * lib/stat.c: Remove this file...
117291         (slash_aware_lstat): ...moving this content and its support...
117292         * lib/lstat.c (rpl_lstat): ...into here.
117293         * lib/lstat.h: New file.
117295 2005-06-24  Derek Price  <derek@ximbiot.com>
117296         and Bruno Haible  <bruno@clisp.org>
117298         Remove stat module & update lstat.
117299         * config/srclist.txt (libc sources): Remove stat.
117301 2005-06-24  Derek Price  <derek@ximbiot.com>
117302         and Bruno Haible  <bruno@clisp.org>
117304         Remove stat module & update lstat.
117305         * MODULES.html.sh (stat): Remove.
117306         * MODULES.html: Regenerated.
117307         * modules/lstat (Description): Correct function name.
117308         (Files): Add "lstat.h".
117309         (Depends-on): Remove stat, add xalloc, stat-macros.
117310         * modules/stat: Remove this file.
117311         (Include): Add "lstat.h", remove <sys/stat.h>.
117313 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117315         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117316         (ranged_convert): Don't save conversion in a temporary struct.
117317         This causes a warning with GCC 4.0.0, and anyway in the typical
117318         case it's not worth the extra 100 bytes or so of code.
117319         (ranged_convert, __mktime_internal): When calling a function via a
117320         pointer P, use P () rather than (*P) (), as we now assume C89 or
117321         better.
117323 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117325         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117326         "who -r" failed to give output.  Problem reported by Tim Waugh.
117328         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117329         (xcalloc): Use it to avoid needless tests.
117330         Problem reported by Jim Meyering.
117332 2005-06-20  Derek Price  <derek@ximbiot.com>
117334         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117335         unnecessary for Autoconfs > 2.59c.
117337 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117339         * lib/argp.h (__option_is_short): Check upper limit of
117340         __key. Isprint() requires its argument to have the value
117341         of an unsigned char or EOF.
117343 2005-06-16  Jim Meyering  <jim@meyering.net>
117345         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117346         when either N or S is zero.
117348 2005-06-16  Derek Price  <derek@ximbiot.com>
117350         * m4/bison.m4: Declare YACC & YFLAGS precious.
117352 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117354         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117355         multibyte string or pattern, fall back on unibyte matching.
117356         Problem reported by James Youngman.
117358 2005-06-08  Bruno Haible  <bruno@clisp.org>
117360         * modules/csharpcomp: New file.
117361         * MODULES.html.sh (C#): Add csharpcomp.
117363 2005-06-08  Bruno Haible  <bruno@clisp.org>
117365         * m4/csharpcomp.m4: New file, from GNU gettext.
117367 2005-06-08  Bruno Haible  <bruno@clisp.org>
117369         * lib/csharpcomp.h: New file, from GNU gettext.
117370         * lib/csharpcomp.c: New file, from GNU gettext.
117371         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117373 2005-06-08  Bruno Haible  <bruno@clisp.org>
117375         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117376         warning on mingw.
117378 2005-06-07  Derek Price  <derek@ximbiot.com>
117380         Sync from CVS.
117381         * lib/glob_.h: Indent nested #ifdef.
117383 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117385         Sync from coreutils.
117386         Use "file name" when talking about file names, instead of "filename"
117387         or "path", as per the GNU coding standards.
117388         * lib/mkdir-p.c: Renamed from makepath.c.
117389         (make_dir_parents): Renamed from make_path.  All callers changed.
117390         * lib/mkdir-p.h: Likewise.  All includers changed.
117391         * lib/filenamecat.c: Renamed from path-concat.c.
117392         (file_name_concat): Renamed from path_concat.  All callers changed.
117393         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117394         * lib/filenamecat.h: Likewise.  All includers changed.
117395         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117396         in comments or local variable names.
117397         * lib/basename.c: Likewise.
117398         * lib/canonicalize.c, canonicalize.h: Likewise.
117399         * lib/dirname.c, dirname.h: Likewise.
117400         * lib/euidaccess.c: Likewise.
117401         * lib/exclude.c: Likewise
117402         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117403         * lib/fsusage.c, fsuage.h: Likewise.
117404         * lib/fts.c, fts_.h: Likewise.
117405         * lib/getcwd.c: Likewise.
117406         * lib/getloadavg.c: Likewise.
117407         * lib/mkstemp.c: Likewise.
117408         * lib/mountlist.c, mountlist.h: Likewise.
117409         * lib/openat.c, openat.h: Likewise.
117410         * lib/readlink-stub.c: Likewise.
117411         * lib/readutmp.c, readutmp.h: Likewise.
117412         * lib/rename.c: Likewise.
117413         * lib/rmdir.c: Likewise.
117414         * lib/same.c: Likewise.
117415         * lib/savedir.c: Likewise.
117416         * lib/stripslash.c: Likewise.
117417         * lib/tempname.c: Likewise.
117418         * lib/xreadlink.c: Likewise.
117419         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117420         All uses changed.
117421         * lib/exclude.h: Likewise.
117423         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117424         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117425         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117426         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117427         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117428         files have been getting away with it for years (MORE/BSD 4.3
117429         is extinct now).
117430         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117431         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117433         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117434         Define to 256, not 255, as per modern POSIX.
117436 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117438         Sync from coreutils.
117439         Use "file name" when talking about file names, instead of "filename"
117440         or "path", as per the GNU coding standards.
117441         * MODULES.html.sh: mkdir-p renamed from makepath.
117442         filenamecat renamed from path-concat.
117443         * modules/filenamecat: Renamed from modules/path-concat.
117444         (Files): filenamecat.h and filenamecat.c renamed from
117445         path-concat.h and path-concat.c.
117446         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117447         (Include): filenamecat.h, not path-concat.h.
117448         * modules/mkdir-p: Renamed from modules/makepath.
117449         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117450         makepath.c.
117451         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117452         (Include): mkdir-p.h, not makepath.h.
117454 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117456         Sync from coreutils.
117457         * m4/mkdir-p.m4: Renamed from makepath.m4.
117458         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117459         Rename files from makepath.c to mkdir-p.c, and from
117460         makepath.h to mkdir-p.h.
117461         * m4/filenamecat.m4: Renamed from path-concat.m4.
117462         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117463         Rename files from path-concat.c to filenamecat.c,
117464         and from path-concat.h to filenamecat.h.
117465         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117466         "file name" in local variables or comments.
117467         * m4/rename.m4: Likewise.
117469 2005-06-01  Bruno Haible  <bruno@clisp.org>
117471         * modules/csharpexec: New file.
117472         * MODULES.html.sh (C#): New section.
117474 2005-06-01  Bruno Haible  <bruno@clisp.org>
117476         * m4/csharp.m4: New file, from GNU gettext.
117477         * m4/csharpexec.m4: New file, from GNU gettext.
117479 2005-06-01  Bruno Haible  <bruno@clisp.org>
117481         * lib/csharpexec.h: New file, from GNU gettext.
117482         * lib/csharpexec.c: New file, from GNU gettext.
117483         * lib/csharpexec.sh.in: New file, from GNU gettext.
117485 2005-05-31  Derek Price  <derek@ximbiot.com>
117486             Paul Eggert  <eggert@cs.ucla.edu>
117488         Sync from cvs.
117489         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117491 2005-05-31  Derek Price  <derek@ximbiot.com>
117492             Paul Eggert  <eggert@cs.ucla.edu>
117494         Sync from cvs.
117495         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117497 2005-05-29  Derek Price  <derek@ximbiot.com>
117499         * config/srclist.txt (glob_.h, glob.c): Add these files.
117501 2005-05-29  Derek Price  <derek@ximbiot.com>
117503         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117504         * modules/glob: New file.
117505         * modules/getlogin_r: Add link to POSIX spec in description.
117507 2005-05-29  Derek Price  <derek@ximbiot.com>
117508             Paul Eggert  <eggert@cs.ucla.edu>
117510         * m4/glob.m4: New file.
117512 2005-05-29  Derek Price  <derek@ximbiot.com>
117513             Paul Eggert  <eggert@cs.ucla.edu>
117515         * lib/glob_.h, lib/glob.c: New files.
117517 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117519         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117520         * modules/fts-lgpl (Depends-on): Remove gettext.
117522 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117524         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117525         and don't require gt_INTTYPES_PRI.
117527 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117529         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117531         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117532         the configuration hassle isn't worth it.
117533         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117534         (LONGEST_MODIFIER, PRIuMAX): Remove.
117536 2005-05-27  Bruno Haible  <bruno@clisp.org>
117538         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117540 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117543         _POSIX_PTHREAD_SEMANTICS for Solaris.
117545 2005-05-25  Derek Price  <derek@ximbiot.com>
117547         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117549 2005-05-25  Derek Price  <derek@ximbiot.com>
117550             Paul Eggert  <eggert@cs.ucla.edu>
117552         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117553         * lib/getlogin_r.c, getlogin_r.h: New files.
117555 2005-05-25  Bruno Haible  <bruno@clisp.org>
117556             Derek Price  <derek@ximbiot.com>
117558         * lib/getlogin_r.h: Simplify API documentation.
117560 2005-05-23  Derek Price  <derek@ximbiot.com>
117562         * modules/minmax (Files): Add m4/minmax.m4.
117563         (configure.ac): Add gl_MINMAX.
117565 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117567         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117568         so that unistd-safer.h (GPL'ed code) need not be included.
117570 2005-05-22  Bruno Haible  <bruno@clisp.org>
117572         * m4/minmax.m4: New file.
117573         Based on a patch by Derek Price <derek@ximbiot.com>.
117575 2005-05-22  Bruno Haible  <bruno@clisp.org>
117577         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117578         (INT64_MIN): Fix definition.
117579         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117581         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117582         NEED_SIGNED_INT_TYPES.
117584         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117585         HAVE_SYSTEM_INTTYPES.
117587 2005-05-22  Bruno Haible  <bruno@clisp.org>
117589         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
117590         Also include <sys/param.h> if it defines MIN, MAX.
117591         Based on a patch by Derek Price <derek@ximbiot.com>.
117593 2005-05-21  Jim Meyering  <jim@meyering.net>
117595         * modules/fts (Files): Add m4/inttypes-pri.m4.
117596         (Depends-on): Add lstat and remove gettext.  Alphabetize.
117598 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117600         New fts module.
117601         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
117602         (setup_dir, free_dir): New functions.
117603         (enter_dir, leave_dir): Define trivial
117604         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
117605         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
117606         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
117607         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
117608         Move to fts-cycle.c.
117609         (fts_open): Use setup_dir.
117610         (fts_close): Use free_dir.
117611         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
117612         This adds a label and some gotos, but the alternatives were messier.
117613         Check for memory allocation failure when entering a dir.
117614         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
117615         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
117616         (FTS): New member fts_cycle, that is a union that contains the
117617         old active_dir_ht and cycle_state.  All uses changed to mention
117618         fts_cycle.ht and fts_cycle.state.
117619         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
117620         fts.c, with the following changes:
117621         (setup_dir, free_dir): New functions.
117622         (enter_dir): Now returns bool.  Return true if successful, false
117623         if memory exhausted.  All callers changed.
117624         Do not bother partly cleaning up on
117625         memory allocation failure; that is free_dir's job.
117626         However, free ad if hash_insert fails, to avoid memory leak.
117627         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
117628         fts->fts_options to see which union member to use.
117630 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
117633         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
117635 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117637         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
117639 2005-05-20  Jim Meyering  <jim@meyering.net>
117641         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
117642         Now a macro, to pacify GCC.
117644 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117646         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
117647         of -1.
117649 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117651         * lib/chown.c (rpl_chown): Return -1 on failure.
117653 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117655         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
117656         Don't check for stddef.h.
117657         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
117658         don't use its results.
117659         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
117660         since we include them unconditionally.  Don't require
117661         AM_STDBOOL_H, since stdbool is a prerequisite.
117662         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
117663         since we assume C89 or better.
117664         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
117665         as we don't use their results.
117666         Don't check for fchdir, memmove, memset, strrchr, as we use
117667         them unconditionally.
117668         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
117669         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
117671 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117673         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
117674         Include <stddef.h> unconditionally, since we assume C89 now.
117675         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
117676         * lib/fts.c: Include fts_.h first, to check interface.
117677         Do not include intprops.h; no longer needed.
117678         Include cycle-check.h and hash.h, since fts_.h no longer does.
117679         Remove unnecessary casts of closedir to void.
117680         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
117681         decide whether to decrement nlinks.
117682         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
117683         (FTS): Use struct hash_table * instead of Hash_table, so that
117684         we no longer need to include hash.h here.
117686 2005-05-18  Jim Meyering  <jim@meyering.net>
117688         * modules/dirfd (License): Change to LGPL.  Most of the code
117689         is already in the public domain.
117691 2005-05-18  Jim Meyering  <jim@meyering.net>
117693         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
117694         Reported by Yoann Vandoorselaere.
117696 2005-05-17  Jim Meyering  <jim@meyering.net>
117698         * m4/fts.m4: New file, from coreutils.
117700 2005-05-17  Jim Meyering  <jim@meyering.net>
117702         * lib/fts.c, lib/fts_.h: New files, from coreutils.
117704 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117706         Sync from coreutils.
117707         * m4/unlinkdir.m4: New file.
117709 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117711         Sync from coreutils.
117712         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
117713         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
117714         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
117715         White space changes only.
117716         * lib/makepath.c (make_path): Port to hosts where leading "//" is
117717         special.
117718         * lib/yesno.c: Include getline.h, not ctype.h.
117719         (yesno): Don't remove leading white space; POSIX doesn't allow it.
117720         Use getline to remove arbitrary restriction on response length.
117722 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117724         * config/srclist-update: Spell out "Street" in FSF postal
117725         mail address; this is the style the FSF seems to prefer.
117727         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
117728         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
117729         this updates FSF postal mail address.
117731         Sync from coreutils.
117732         * modules/unlinkdir: New file.
117733         * modules/yesno (Depends-on): Add getline.
117734         * MODULES.html.sh (File system functions): Add unlinkdir.
117736 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117738         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
117739         lib/strsep.h:
117740         Change the initial comment to refer to GPL, not LGPL.
117741         gnulib-tool will change it to LGPL as needed.
117743         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
117744         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
117745         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
117746         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
117747         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
117748         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
117749         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
117750         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
117751         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
117752         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
117753         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
117754         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
117755         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
117756         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
117757         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
117758         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
117759         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
117760         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
117761         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
117762         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
117763         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
117764         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
117765         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
117766         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
117767         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
117768         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
117769         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
117770         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
117771         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
117772         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
117773         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
117774         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
117775         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
117776         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
117777         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
117778         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
117779         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
117780         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
117781         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
117782         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
117783         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
117784         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
117785         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
117786         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
117787         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
117788         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
117789         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
117790         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
117791         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
117792         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
117793         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
117794         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
117795         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
117796         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
117797         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
117798         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
117799         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
117800         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
117801         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
117802         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
117803         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
117804         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
117805         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
117806         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
117807         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
117808         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
117809         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
117810         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
117811         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
117812         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
117813         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
117814         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
117815         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
117816         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
117817         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
117818         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
117819         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
117820         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
117821         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
117822         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
117823         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
117824         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
117825         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
117826         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
117827         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
117828         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
117829         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
117830         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
117831         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
117832         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
117833         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
117834         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
117835         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
117836         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
117837         lib/yesno.c, lib/yesno.h:
117838         Update FSF postal mail address.
117840 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117842         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
117843         tests/test-memmem.c, tests/test-stpncpy.c:
117844         Update FSF postal mail address.
117846 2005-05-13  Bruno Haible  <bruno@clisp.org>
117848         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
117849         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
117850         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
117851         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
117852         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
117853         Add support for 64-bit integers in the MSVC compiler.
117855 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117857         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
117859 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
117861         * gnulib-tool (func_import): Sort and uniquify recommended includes.
117863 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
117865         * doc/getdate.texi (General date syntax): Don't say that date
117866         date --iso-8601=ns generates acceptable dates; it doesn't yet.
117867         Problem reported by Nic Ferrier.
117869 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117871         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
117872         specified in ai_socktype. Fix invalid ai_protocol
117873         check. ai_protocol is usually set to 0 or depending on
117874         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
117875         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
117876         ai_socktype / ai_protocol in the returned addrinfo structure.
117878 2005-05-10  Simon Josefsson  <jas@extundo.com>
117880         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
117881         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117883 2005-05-10  Karl Berry  <karl@gnu.org>
117885         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
117886         (from http://www.gnu.org/licenses).
117887         * doc/COPYING.LIB: also rename to COPYING.LESSER.
117888         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
117889         fdl.texi suffices.
117891 2005-05-10  Karl Berry  <karl@gnu.org>
117893         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
117894         (COPYING.DOC): remove.
117896         * config/srclist-update: new FSF address.
117898 2005-05-10  Derek Price  <derek@ximbiot.com>
117900         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
117901         possible.
117903 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117904             Bruno Haible  <bruno@clisp.org>
117906         * modules/inet_ntop: New file.
117907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117908         inet_ntop.
117910 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117911             Bruno Haible  <bruno@clisp.org>
117913         * m4/inet_ntop.m4: New file.
117915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117916             Bruno Haible  <bruno@clisp.org>
117918         * lib/inet_ntop.h: New file.
117919         * lib/inet_ntop.c: New file, from glibc with modifications.
117921 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
117923         * modules/time_r (License): Change to LGPL.
117924         * modules/extensions (License): Change to LGPL.  Actually,
117925         the license is more permissive than that, but currently gnulib-tool
117926         doesn't know how to handle more-permissive licenses.
117928         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
117929         Problem reported by Dave Love.
117931 2005-05-08  Jim Meyering  <jim@meyering.net>
117933         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
117934         blank.
117936 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
117938         * modules/argmatch (Depends-on): Add stdbool.
117939         * modules/backupfile (Depends-on): Likewise.
117940         * modules/chdir-long (Depends-on): Likewise.
117941         * modules/closeout (Depends-on): Likewise.
117942         * modules/cycle-check (Depends-on): Likewise.
117943         * modules/dirname (Depends-on): Likewise.
117944         * modules/fnmatch (Depends-on): Likewise.
117945         * modules/fsusage (Depends-on): Likewise.
117946         * modules/fwriteerror (Depends-on): Likewise.
117947         * modules/getcwd (Depends-on): Likewise.
117948         * modules/getloadavg (Depends-on): Likewise.
117949         * modules/hard-locale (Depends-on): Likewise.
117950         * modules/makepath (Depends-on): Likewise.
117951         * modules/mountlist (Depends-on): Likewise.
117952         * modules/nanosleep (Depends-on): Likewise.
117953         * modules/posixtm (Depends-on): Likewise.
117954         * modules/quotearg (Depends-on): Likewise.
117955         * modules/readtokens (Depends-on): Likewise.
117956         * modules/readtokens0 (Depends-on): Likewise.
117957         * modules/readutmp (Depends-on): Likewise.
117958         * modules/save-cwd (Depends-on): Likewise.
117959         * modules/strftime (Depends-on): Likewise.
117960         * modules/userspec (Depends-on): Likewise.
117961         * modules/utimecmp (Depends-on): Likewise.
117962         * modules/xgetcwd (Depends-on): Likewise.
117963         * modules/xnanosleep (Depends-on): Likewise.
117964         * modules/xstrtod (Depends-on): Likewise.
117965         * modules/yesno (Depends-on): Likewise.
117967 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
117969         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
117970         needless checks.
117972 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
117974         Merge from coreutils.  Among other things,
117975         add bulletproofing for cases where stdin, stdout, or stderr are closed.
117976         * lib/fd-safer.c: New file.
117977         * lib/fcntl-safer.h, open-safer.c: Remove.
117978         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
117979         * lib/dup-safer.c: Include unistd-safer.h first.
117980         Don't include errno.h.
117981         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
117982         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
117983         * lib/file-type.c: Rely on file-type.h change.
117984         * lib/getloadavg.c: Include unistd-safer.h.
117985         (getloadavg): Use safer open.
117986         * lib/getusershell.c: Include "stdio-safer.h".
117987         (getusershell): Use safer fopen.
117988         * lib/long-options.c (long_options): Use NULL rather than 0.
117989         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
117990         'free'.
117991         * lib/modechange.c: Likewise.
117992         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
117993         (MODE_DONE): New constant.
117994         (struct mode_change): Remove 'next' member.
117995         (make_node_op_equals): New function; like the old one of the
117996         same name, except it allocates an array.
117997         (mode_compile, mode_create_from_ref): Use it.
117998         (mode_compile): Allocate result as an array, not a linked list.
117999         Parse octal string ourself, so that we catch mistakes like "+0".
118000         (mode_adjust): Arg is an array, not a linked list.
118001         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118002         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118003         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118004         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118005         Remove.  This is now stat-macros.h's job.
118006         (talloc): Remove.  All callers replaced by xalloc, so that
118007         our invokers don't have to worry about reporting memory failures.
118008         (make_node_op_equals): Remove.
118009         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118010         New constants.
118011         (struct mode_change): Moved here from modechange.h.
118012         (mode_append_entry): Remove.
118013         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118014         apps to have incorrect behavior.  Use simpler algorithm for head
118015         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118016         Detect more invalid usages rather than having somewhat-random behavior.
118017         Don't insert an "a=" action, as that leads to incorrect behavior.
118018         (mode_compile, mode_create_from_ref): Return NULL on error instead
118019         of an enum, since now there's only one way to have an error.  All
118020         callers changed.
118021         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118022         at the correct time.  Simplify calculation of "+u" and its ilk.
118023         Don't mishandle "+X".
118024         (mode_free): Remove "register" and localize decls.
118025         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118026         (struct mode_change): Move to modechange.c; callers don't
118027         need to see this stuff.
118028         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118029         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118030         (mode_change, mode_adjust): Reflect the new signatures noted above.
118031         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118032         that might redefine system include files.
118033         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118034         (my_usleep): Use NULL rather than (void *) 0.
118035         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118036         Use siginterrupt to specify that system calls should be interrupted.
118037         (rpl_nanosleep): Move initialization of suspended closer to call of
118038         my_usleep.
118039         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118040         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118041         (desirable_utmp_entry): New function.
118042         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118043         using x2nrealloc, to simplify logic.
118044         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118045         size calculation.  Do not assume utmp file is a regular file.
118046         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118047         (READ_UTMP_CHECK_PIDS): New constant.
118048         * lib/save-cwd.c: Include unistd-safer.h.
118049         (save_cwd): Use fd_safer.
118050         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118051         [!_LIBC] Include "stat-macros.h" instead.
118052         * lib/unistd-safer.h (fd_safer): New decl.
118054 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118056         * modules/getloadavg (Depends-on): Add unistd-safer.
118057         * modules/getusershell (Depends-on): Add stdio-safer.
118058         * modules/lstat (Depends-on): Remove xalloc.
118059         * modules/mkstemp (Depends-on): Add stat-macros.
118060         * modules/modechange (Depends-on): Remove xstrtol.
118061         Add stat-macros, xalloc.
118062         * modules/save-cwd (Depends-on): Add unistd-safer.
118063         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118064         * modules/unistd-safer (Files): Add lib/fd-safer.c
118065         (Makefile.am): Remove lib_SOURCES.
118067         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118068         Remove fcntl-safer; unistd-safer supersedes it.
118070 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118072         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118073         AC_HEADER_STAT.
118074         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118075         (gl_PREREQ_CHOWN): Remove.
118076         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118077         it.  Don't require AC_HEADER_STAT.
118078         (gl_PREREQ_LSTAT): Remove.
118079         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118080         Don't require AC_HEADER_STAT.
118081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118082         (gl_PREREQ_RMDIR): Remove.
118083         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118084         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118085         the stat-macros module a prerequisite.
118086         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118087         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118088         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118089         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118090         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118091         variable names.
118092         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118093         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118094         variable prefixes.
118095         * m4/fcntl-safer.m4: Remove.
118096         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118097         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118098         Invoke gl_PREREQ_FD_SAFER.
118099         (gl_PREREQ_FD_SAFER): New macro.
118100         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118101         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118102         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118103         Remove duplicate call to AC_LIBOBJ(readutmp).
118104         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118107         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118109 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118111         * MODULES.html.sh (Misc): Add byteswap.
118113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118115         * modules/getcwd (Depends-on): Add extensions.
118116         * modules/openat (Depends-on): Likewise.
118118 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118120         * modules/byteswap: New file.
118122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118124         * m4/byteswap.m4: New file.
118126 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118128         * lib/byteswap_.h: New file.
118130 2005-04-25  Karl Berry  <karl@gnu.org>
118132         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118134 2005-04-25  Albert Chin  <china@thewrittenword.com>
118136         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118137         Toolkit C bug.
118139 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118141         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118142         (func_ln_if_changed): Remove forcibly for no error message
118143         in case file does not exist.
118145 2005-04-19  Simon Josefsson  <jas@extundo.com>
118147         * gnulib-tool (Options): Make --symlink mean --symbolic.
118149 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118151         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118153 2005-04-16  Simon Josefsson  <jas@extundo.com>
118155         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118157 2005-04-15  Simon Josefsson  <jas@extundo.com>
118159         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118161 2005-04-15  Simon Josefsson  <jas@extundo.com>
118163         * gnulib-tool: Rename --symlink to --symbolic.
118165 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118167         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118168         symbolic links to files instead of copying/moving.  Add --aux-dir,
118169         specifying directory relative --dir where auxiliary build tools
118170         are placed.
118172 2005-04-14  Bruno Haible  <bruno@clisp.org>
118174         * modules/allocsa (License): Change to LGPL.
118175         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118177 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118179         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118180         that "UTC +1 second" continues to work.  Problem reported
118181         by Dmitry V. Levin.
118182         (relunit_snumber): New rule.
118183         (relunit): Use it.
118185 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118187         * lib/getdate.y (universal_time_zone_table): New constant.
118188         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118189         universal_time_zone_table.
118190         (lookup_zone): Prefer universal_time_zone_table to
118191         local_time_zone_table, so that "GMT" time stamps are allowed in
118192         London during the summer.  Problem reported by Ian Abbott.
118194 2005-04-12  Jim Meyering  <jim@meyering.net>
118196         * lib/human.c (humblock): Set *options even when returning due to
118197         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118198         warning from gcc-4.
118200 2005-04-09  Jim Meyering  <jim@meyering.net>
118202         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118203         -Wuninitialized: initialize tm0.tm_year.
118205 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118207         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118208         count, since there's no maximum.  All uses changed.
118209         Add member dsts_seen.
118210         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118211         not being INT_MAX.
118212         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118213         Use pc_rels_seen to decide whether a date is absolute.
118215         * lib/getdate.y (number): Don't overwrite year.
118216         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118217         check.
118219 2005-04-02  Simon Josefsson  <jas@extundo.com>
118221         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118222         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118224 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118226         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118227         where no absolute path name can be longer than PATH_MAX.
118229 2005-03-27  Jim Meyering  <jim@meyering.net>
118231         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118233 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118235         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118236         "one's complement" -> "ones' complement" in comment, as per Knuth.
118237         "value of type" -> "type or expression" in comment.
118238         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118240 2005-03-26  Jim Meyering  <jim@meyering.net>
118242         Comment nits.
118243         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118244         Correct typos: s/or/of/.
118246 2005-03-26  Jim Meyering  <jim@meyering.net>
118248         * modules/check-include-files: Move to ../ and rename to...
118249         * check-module: ...this.
118251 2005-03-25  Jim Meyering  <jim@meyering.net>
118253         * modules/xvasprintf (Files): Add xalloc.h.
118255 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118257         * modules/gettext (Files): config/config.rpath ->
118258         build-aux/config.rpath
118259         * modules/iconv (Files): Likewise.
118260         Problem reported by Oskar Liljeblad.
118262 2005-03-23  Jim Meyering  <jim@meyering.net>
118264         * modules/check-include-files: New script to check for
118265         missing dependencies, multiple includes, etc.
118267         * modules/c-strtold (Depends-on): Add xalloc.
118268         * modules/c-strtod (Depends-on): Add xalloc.
118269         * modules/hash (Depends-on): Add xalloc.
118270         (Files): Remove lib/xalloc.h.
118272         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118273         * modules/userspec (Files): Add lib/inttostr.h.
118275 2005-03-23  Jim Meyering  <jim@meyering.net>
118277         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118279 2005-03-22  Jim Meyering  <jim@meyering.net>
118281         * modules/stat-macros: New module.
118282         * modules/canonicalize, modules/euidaccess, modules/file-type,
118283         * modules/filemode, modules/lchown, modules/makepath,
118284         * modules/rmdir, modules/stat: Depend on new stat-macros module
118285         rather than listing lib/stat-macros.h manually.
118286         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118288 2005-03-22  Jim Meyering  <jim@meyering.net>
118290         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118292 2005-03-22  Bruno Haible  <bruno@clisp.org>
118294         * config/srclist.txt: Replace target directory 'config' with
118295         'build-aux'.
118296         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118297         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118298         ../build-aux/.
118300 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118302         * modules/chdir-long (Depends-on): Add mempcpy.
118304         * modules/acl, modules/backupfile, modules/c-strtod,
118305         modules/c-strtold, modules/canon-host, modules/canonicalize,
118306         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118307         modules/exclude, modules/exitfail, modules/file-type,
118308         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118309         modules/getdate, modules/getline, modules/getpagesize,
118310         modules/getpass, modules/getugroups, modules/group-member,
118311         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118312         modules/inttostr, modules/long-options, modules/makepath,
118313         modules/md5, modules/memcasecmp, modules/memcoll,
118314         modules/modechange, modules/mountlist, modules/path-concat,
118315         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118316         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118317         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118318         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118319         modules/strftime, modules/strndup, modules/strverscmp,
118320         modules/timespec, modules/unlocked-io, modules/userspec,
118321         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118322         modules/yesno:
118323         Remove lib_SOURCES line from Makefile.am section, as this is now
118324         done automatically by the corresponding Autoconf macro.
118326 2005-03-21  Jim Meyering  <jim@meyering.net>
118328         Changes imported from coreutils.
118330         * lib/cycle-check.c: Don't include xalloc.h.
118332         * lib/path-concat.c: Don't include assert.h.
118333         (path_concat): Remove assertion that would have triggered
118334         for ABASE starting with more than one slash.
118335         Reported by Andreas Schwab.
118337         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118338         properly when ABASE is an absolute file name.
118339         Correct the description of this function.
118340         Include <assert.h>.
118341         Add an assertion and a test driver.
118342         This fixes a bug introduced on 2004-07-02.
118343         Andreas Schwab reported the resulting failure of cp --parents:
118344         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118346 2005-03-21  Jim Meyering  <jim@meyering.net>
118348         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118351 2005-03-21  Jim Meyering  <jim@meyering.net>
118352         and  Paul Eggert  <eggert@cs.ucla.edu>
118354         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118355         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118356         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118357         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118358         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118359         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118360         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118361         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118362         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118363         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118364         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118365         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118366         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118367         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118368         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118369         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118370         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118371         for these modules.
118373 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118375         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118376         (which shouldn't happen), generate nothing instead of returning 0
118377         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118379 2005-03-16  Bruno Haible  <bruno@clisp.org>
118381         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118382         HAVE_LONGLONG_64BIT.
118384 2005-03-16  Bruno Haible  <bruno@clisp.org>
118386         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118387         HAVE_LONGLONG_64BIT.
118389 2005-03-16  Bruno Haible  <bruno@clisp.org>
118391         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118392         HAVE_LONGLONG_64BIT.
118394 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118396         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118397         reliably distinguish strftime failure from empty output on POSIX
118398         hosts.
118400 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118402         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118403         (iconv_string): Don't guess a size-zero buffer, as that might cause
118404         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118405         result would be 'too large', where 'too large' is (heuristically)
118406         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118407         overflow concerns.  This will prevent some unwanted malloc failures
118408         when the inputs are very large.
118410 2005-03-15  Karl Berry  <karl@gnu.org>
118412         * config/srclist.txt (config.rpath): from gettext.
118413         * config/config.rpath: update.
118415 2005-03-15  Bruno Haible  <bruno@clisp.org>
118417         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118418         to 'negate'.
118420         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118421         variable.
118423         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118424         results.
118426 2005-03-14  Simon Josefsson  <jas@extundo.com>
118428         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118429         <fx@gnu.org>.
118431 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118433         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118434         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118435         intprops.h.
118436         * lib/strtol.c: Likewise.
118438 2005-03-14  Jim Meyering  <jim@meyering.net>
118440         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118441         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118442         to be nonzero so that we (and caller) can detect the difference
118443         between a valid zero-length expansion and an error return, even
118444         when the underlying strftime fails before writing anything into
118445         that location.
118447 2005-03-14  Bruno Haible  <bruno@clisp.org>
118449         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118450         Update from GNU gettext 0.14.3.
118452 2005-03-10  Jim Meyering  <jim@meyering.net>
118454         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118456 2005-03-10  Jim Meyering  <jim@meyering.net>
118458         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118459         so that this module works on systems without fchdir.
118461 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118463         Factor int-properties macros into a single file, except for
118464         glibc-related files.
118465         * lib/intprops.h: New file.
118466         * lib/getloadavg.c: Include it instead of limits.h.
118467         (INT_STRLEN_BOUND): Remove.
118468         * lib/human.c: Include intprops.h.
118469         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118470         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118471         302/1000.
118472         * lib/inttostr.h: Include intprops.h instead of limits.h.
118473         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118474         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118475         for consistency with intprops.h.
118476         (time_t_is_integer, twos_complement_arithmetic): Use them.
118477         * lib/sig2str.h: Include <signal.h>, intprops.h.
118478         (INT_STRLEN_BOUND): Remove.
118479         * lib/strftime.c (TYPE_SIGNED): Remove.
118480         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118481         * lib/strtol.c: Adjust comments to match intprops.h.
118482         * lib/userspec.c: Include intprops.h.
118483         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118484         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118485         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118486         instead of rolling our own expressions.
118487         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118489         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118490         instead of int.
118491         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118492         the right thing even if adding 1900 would overflow.  Similarly
118493         for tm_mon + 1 and tm_yday + 1.
118494         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118495         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118496         (DO_SIGNED_NUMBER): New macro.
118497         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118499 2005-03-07  Bruno Haible  <bruno@clisp.org>
118501         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118503 2005-03-07  Bruno Haible  <bruno@clisp.org>
118505         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118507 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118509         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118510         (func_import): Only replace files via --import when they have actually
118511         changed.
118513 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118515         * m4/mmap-anon.m4: New file.
118516         * m4/pagealign_alloc.m4: New file.
118518 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118519             Bruno Haible  <bruno@clisp.org>
118521         * modules/pagealign_alloc: New file.
118522         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118524 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118525             Bruno Haible  <bruno@clisp.org>
118527         * lib/pagealign_alloc.h: New file.
118528         * lib/pagealign_alloc.c: New file.
118530 2005-03-03  Bruno Haible  <bruno@clisp.org>
118532         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118533         Use an all-permissive copyright notice, recommended by RMS.
118535 2005-03-02  Bruno Haible  <bruno@clisp.org>
118537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118538         of AIX, the replacement has to be done only after <string.h> is
118539         included, therefore not in config.h. stpncpy.h does the replacement,
118540         and stpncpy.c uses it.
118542 2005-03-02  Bruno Haible  <bruno@clisp.org>
118544         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118545         stpncpy.c uses it.
118547 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118549         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118550         The workaround isn't strictly needed for POSIX conformance, and
118551         it's too much of a pain to configure and maintain.  We'll ask
118552         people to fix their kernels instead.
118553         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118554         (NANOSLEEP_BUG_WORKAROUND): Remove.
118555         (xnanosleep): Remove the workaround.
118557 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118559         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118560         Reported by Derek Price.
118561         (Include): Add "timespec.h".
118563         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118565 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118567         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118568         to detect nanosleep bug.
118570 2005-03-01  Bruno Haible  <bruno@clisp.org>
118572         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118574 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118576         * modules/gethrxtime: New file.
118577         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118578         (Depends-on): Add gethrxtime.
118579         (configure.ac): Add gl_XNANOSLEEP.
118580         (Makefile.am): Remove lib_SOURCES line.
118582 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118584         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118585         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
118587 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118589         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
118590         * lib/timespec.h (gettime): Return void, since it always
118591         succeeds now.  All uses changed.
118592         * lib/gettime.c (gettime): Likewise.
118593         [HAVE_NANOTIME]: Prefer nanotime.
118594         Assume gettimeofday succeeds, as POSIX requires.
118595         Assime time () succeeds, since other code already does.
118596         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
118597         (timespec_subtract): Remove.
118598         (NANOSLEEP_BUG_WORKAROUND): New constant.
118599         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
118600         things considerably.  Use it only on GNU/Linux hosts, since the
118601         workaround shouldn't be needed elsewhere.
118603 2005-02-24  Bruno Haible  <bruno@clisp.org>
118605         * modules/gettext (Files): Add m4/glibc2.m4.
118607 2005-02-24  Bruno Haible  <bruno@clisp.org>
118609         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
118610         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
118611         * m4/progtest.m4:
118612         Update from GNU gettext 0.14.2.
118613         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
118615 2005-02-24  Bruno Haible  <bruno@clisp.org>
118617         * lib/localcharset.c: Update from GNU gettext 0.14.2.
118618         * lib/config.charset: Update from GNU gettext 0.14.2.
118620 2005-02-24  Bruno Haible  <bruno@clisp.org>
118622         * lib/gettext.h: Update from GNU gettext 0.14.2.
118624 2005-02-23  Simon Josefsson  <jas@extundo.com>
118626         * m4/iconvme.m4: New file.
118628 2005-02-23  Jim Meyering  <jim@meyering.net>
118630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
118631         change.
118632         Thanks to Bruno Haible for catching it.
118634 2005-02-22  Simon Josefsson  <jas@extundo.com>
118636         * modules/iconvme: New file.
118638         * MODULES.html.sh: Add iconvme.
118640 2005-02-22  Simon Josefsson  <jas@extundo.com>
118642         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
118644 2005-02-22  Simon Josefsson  <jas@extundo.com>
118646         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
118648 2005-02-22  Jim Meyering  <jim@meyering.net>
118650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
118651         s/ifndef/ifdef/.
118653 2005-02-20  Neil Conway  <neilc@samurai.com>
118655         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
118656         returned by OSX/Darwin if the specified buffer is not large
118657         enough for the hostname.
118659 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118661         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
118662         pass it to _help, otherwise the latter coredumps trying to
118663         dereference state.root_argp.
118665 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118667         * modules/chdir-long (Depends-on): Add memrchr.
118668         * modules/memrchr (Files): Add lib/memrchr.h.
118669         (Include): "memrchr.h".
118671 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
118675 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118677         * lib/memrchr.h: New file.
118678         * lib/chdir-long.c: Include it.
118679         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
118680         Don't bother including stddef.h.
118682 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
118684         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
118685         inclusion.
118686         Include <sys/types.h>, for dev_t.
118687         (ME_DUMMY, ME_REMOTE): Move from here....
118688         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
118689         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
118690         Dmitry V. Levin.
118691         Include mountlist.h first, to test the interface.
118693 2005-01-29  Bruno Haible  <bruno@clisp.org>
118695         * lib/progname.c (program_name): Initialize.
118696         Needed when linking statically on MacOS X.
118698 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118700         Sync from coreutils.
118701         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
118702         (Depends-on): Add c-strtod.
118703         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
118705 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118707         Sync from coreutils.
118708         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
118710         Remove files that are specific to coreutils.
118711         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
118713 2005-01-28  Bruno Haible  <bruno@clisp.org>
118715         * modules/javacomp: New file.
118716         * MODULES.html.sh (Java): Add javacomp.
118718 2005-01-28  Bruno Haible  <bruno@clisp.org>
118720         * m4/javacomp.m4: New file, from GNU gettext.
118722 2005-01-28  Bruno Haible  <bruno@clisp.org>
118724         * lib/javacomp.sh.in: New file, from GNU gettext.
118725         * lib/javacomp.h: New file, from GNU gettext.
118726         * lib/javacomp.c: New file, from GNU gettext.
118728 2005-01-26  Simon Josefsson  <jas@extundo.com>
118730         * lib/gai_strerror.c: Use GPL in header.
118732 2005-01-26  Bruno Haible  <bruno@clisp.org>
118734         * modules/javaexec: New file.
118735         * MODULES.html.sh (Java): Add javaexec.
118737 2005-01-26  Bruno Haible  <bruno@clisp.org>
118739         * m4/javaexec.m4: New file, from GNU gettext.
118741 2005-01-26  Bruno Haible  <bruno@clisp.org>
118743         * lib/javaexec.sh.in: New file, from GNU gettext.
118744         * lib/javaexec.h: New file, from GNU gettext.
118745         * lib/javaexec.c: New file, from GNU gettext.
118747 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118749         * modules/lchown (Depends-on): Remove lchown.h
118751 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118753         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
118754         must be defined if the header file was not found, in order
118755         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
118757 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118759         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
118760         initializers for struct pentry_state.
118761         (__argp_error): Check return value of __asprintf
118762         (__argp_failure): Translate error message
118764         * lib/argp-parse.c: Removed braces around the expansion of N_()
118766 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118768         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
118769         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
118770         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
118771         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
118772         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
118773         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
118774         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
118775         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
118776         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
118777         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
118778         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
118779         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
118780         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
118781         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
118782         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
118783         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
118784         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
118785         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
118786         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
118787         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
118788         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
118789         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
118790         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
118791         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
118792         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
118793         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
118794         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
118795         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
118796         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
118797         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
118798         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
118799         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
118800         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
118801         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
118802         xstrtol.m4, xstrtoumax.m4, yesno.m4:
118803         Use an all-permissive copyright notice, recommended by RMS.
118805 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
118807         * modules/chdir-long (Depends-on): Remove mempcpy.
118809 2005-01-21  Jim Meyering  <jim@meyering.net>
118811         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
118812         same value as for Solaris 9.
118814         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
118815         component length.  This included changing the parameter to be
118816         of type `char *' rather than `char const *'.
118817         * lib/chdir-long.h (chdir_long): Update prototype.
118819         * lib/openat.c (fdopendir, fstatat): New functions.
118820         * lib/openat.h: Include headers required for use of DIR and struct
118821         stat.
118822         [AT_SYMLINK_NOFOLLOW]: Define.
118823         (fdopendir, fstatat): Add prototypes.
118825 2005-01-21  Bruno Haible  <bruno@clisp.org>
118827         * modules/classpath: New file.
118828         * MODULES.html.sh (Java): Add classpath.
118830 2005-01-21  Bruno Haible  <bruno@clisp.org>
118832         * lib/classpath.h: New file, from GNU gettext.
118833         * lib/classpath.c: New file, from GNU gettext.
118835 2005-01-20  Simon Josefsson  <jas@extundo.com>
118837         * modules/version-etc-fsf: New file.
118839 2005-01-20  Simon Josefsson  <jas@extundo.com>
118841         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
118842         * lib/version-etc.c: Remove version_etc_copyright.
118843         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
118844         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
118846 2005-01-20  Simon Josefsson  <jas@extundo.com>
118848         * lib/base64.h (isbase64): Add.
118850         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
118851         using a unsigned prototype, don't inline.
118852         (base64_decode): Use it.
118854 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118856         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
118857         it.
118859 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118861         * lib/save-cwd.c (save_cwd): Remove code to support the case
118862         where fchdir is missing or flaky.
118864 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118866         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
118868 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
118870         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
118871         AC_LIBSOURCES now does this.
118872         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
118873         with new ullong_max module.
118875 2005-01-19  Bruno Haible  <bruno@clisp.org>
118877         * modules/sh-quote: New file.
118878         * MODULES.html.sh (Executing programs): Add sh-quote.
118880 2005-01-19  Bruno Haible  <bruno@clisp.org>
118882         * lib/sh-quote.h: New file, from GNU gettext.
118883         * lib/sh-quote.c: New file, from GNU gettext.
118885 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118887         Merge from coreutils.
118888         * m4/ullong_max.m4: New file.
118889         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
118890         (gl_MACROS): Assume localeconv exists.
118892 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118894         Merge changes from coreutils, as described below in several
118895         changelogs dated today.
118897         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
118898         (O_DIRECTORY): Remove; not needed here, since "." must be
118899         a directory.  All uses removed.
118900         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
118901         universal on Suns, and we also need to test for IRIX.
118902         Revamp code to use 'if' rather than '#if'.
118903         Avoid unnecessary comparison of cwd->desc to 0.
118905         * lib/utimens.c (futimens): Robustify the previous patch, by checking
118906         for known valid error numbers rather than observed invalid ones.
118908 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
118910         * modules/ullong_max: New file.
118912         * modules/chdir-long, modules/openat: New files.
118913         * modules/save-cwd (Depends-on): Depend on chdir-long.
118914         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
118916 2005-01-18  Jim Meyering  <jim@meyering.net>
118918         Merge from coreutils.
118919         * m4/chdir-long.m4, m4/openat.m4: New files.
118920         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
118921         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
118922         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
118923         is sane and DOES follow symlinks.  Besides, testing 20 different
118924         systems found no broken chown implementations.
118925         Prompted by a change in rsync's copy of this macro.
118926         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
118928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
118930         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
118931         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
118932         NULL-means-set-to-current-time semantics.
118933         Remove temporary file immediately, rather than waiting
118934         for configure's at-exit trap code to do it.
118936 2005-01-18  Jim Meyering  <jim@meyering.net>
118938         * lib/version-etc.c (version_etc_copyright): Update copyright date.
118940         * lib/utimens.c (futimens): Account for the fact that futimes
118941         can also fail with errno == ENOSYS or errno == ENOENT.
118942         Patch from Dmitry V. Levin.
118944         Change the name of the robust chdir function from chdir to chdir_long.
118945         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
118946         (restore_cwd): Use chdir_long, not chdir.
118947         * lib/chdir-long.c: Renamed from chdir.c.
118948         * lib/chdir-long.h: Renamed from chdir.h.
118949         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
118950         Hurd.
118952 2005-01-18  Bruno Haible  <bruno@clisp.org>
118954         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
118955         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
118956         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
118957         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
118958         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
118959         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
118960         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
118961         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
118962         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
118963         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
118964         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
118965         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
118966         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
118967         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
118968         Use an all-permissive copyright notice, recommended by RMS.
118970 2005-01-18  Bob Proulx  <bob@proulx.com>
118972         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
118973         simplify offsetof() macro construct to avoid compile failure with
118974         native HP-UX 11.0 ANSI C compiler.
118976 2005-01-17  Bruno Haible  <bruno@clisp.org>
118978         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
118979         redundant because stpncpy.m4 takes care of it.
118981 2005-01-17  Bruno Haible  <bruno@clisp.org>
118983         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
118985 2005-01-17  Bruno Haible  <bruno@clisp.org>
118987         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
118988         used.
118990 2005-01-17  Bruno Haible  <bruno@clisp.org>
118992         * lib/fwriteerror.h (fwriteerror): Change specification to include
118993         fclose.
118994         * lib/fwriteerror.c: Include <stdbool.h>.
118995         (fwriteerror): At the end, close the file stream. Record whether
118996         stdout was already closed.
118998 2005-01-17  Bruno Haible  <bruno@clisp.org>
119000         * lib/execute.c (environ): Declare if needed.
119001         * lib/pipe.c (environ): Likewise.
119002         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119004 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119006         * modules/argp: Depend on vsnprintf
119008 2005-01-10  Jim Meyering  <jim@meyering.net>
119010         * modules/closeout (Depends-on): Add atexit.
119012 2005-01-06  Bruno Haible  <bruno@clisp.org>
119014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119016 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119018         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119019         definitions to be after all include files, to avoid collisions.
119020         Problem reported by Bob Proulx.
119022 2005-01-04  Jim Meyering  <jim@meyering.net>
119024         Changes imported from coreutils.
119025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119026         as the mkstemp template, use a temporary directory and an
119027         8.3-friendly template to avoid trouble on systems like DJGPP.
119028         Reported by Juan M. Guerrero via Stepan Kasal.
119029         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119030         close. Remove the temporary directory right away, rather than waiting
119031         for configure's at-exit trap code to do it.
119032         Suggestion from Stepan Kasal.
119034 2005-01-01  Simon Josefsson  <jas@extundo.com>
119036         * gnulib-tool: Print #include directives when --import'ing.
119038 2004-12-28  Simon Josefsson  <jas@extundo.com>
119040         * tests/test-base64.c: Include required header files.  Remove
119041         unused variables.
119043 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119045         * modules/error (Depends-on): Remove gettext.
119047 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119049         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119050         not needed.  This removes a dependency on the gettext module.
119051         [defined _LIBC]: Do not include <libintl.h>; not needed.
119053 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119055         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119056         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119058 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119060         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119061         HAVE_DECL_STRTOLD.
119063 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119065         * modules/getdate (Depends-on): Remove alloca-opt.
119067 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119069         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119071 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119073         * lib/argp-parse.c: Include <stddef.h>.
119074         (alignof, alignto): New macros.
119075         (parser_init): Don't assume that void * is aligned sufficiently
119076         for struct option.
119078         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119079         need to extend the stack.
119080         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119081         large.
119083 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119085         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119087 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119089         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119090         (2004-10-24) change.  Apparently this was a false alarm.
119092         * modules/getdate: Depend on alloca-opt, not alloca.
119094 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119096         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119097         Remove now-obsolete comment about AIX.
119098         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119099         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119100         (YYMAXDEPTH): New macro.
119102 2004-12-18  Simon Josefsson  <jas@extundo.com>
119104         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119106 2004-12-18  Bruno Haible  <bruno@clisp.org>
119108         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119110 2004-12-18  Bruno Haible  <bruno@clisp.org>
119112         * lib/fatal-signal.c (fatal_signals): Make non-const.
119113         (init_fatal_signals): New function.
119114         (uninstall_handlers, install_handlers): Ignore signals that were set to
119115         SIG_IGN.
119116         (at_fatal_signal): Call init_fatal_signals.
119117         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119118         SIG_IGN.
119119         Reported by Paul Eggert.
119121 2004-12-18  Bruno Haible  <bruno@clisp.org>
119123         * doc/alloca.texi: New file.
119124         * doc/alloca-opt.texi: New file.
119126 2004-12-17  Jim Meyering  <jim@meyering.net>
119128         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119129         Otherwise, install-sh could exit with improper exit status when
119130         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119132 2004-12-16  Simon Josefsson  <jas@extundo.com>
119134         * tests/test-base64.c: Add license.
119136 2004-12-15  Stepan Kasal  <address@hidden>
119138         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119140 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119142         * modules/getcwd (Files): Add m4/d-ino.m4.
119143         Suggested by Mark D. Baushke.
119145 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119147         * lib/getdate.y (textint): New member "negative".
119148         (time_zone_hhmm): New function.
119149         Expect 14 shift-reduce conflicts, not 13.
119150         (o_colon_minutes): New rule.
119151         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119152         (yylex): Set the "negative" member of signed numbers.
119154 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119156         * doc/getdate.texi (Time of day items, Time zone items):
119157         Describe new formats +00:00, UTC+00:00.
119159 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119161         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119162         spurious "-l"s.  Problem reported by Stepan Kasal.
119164 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119166         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119167         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119169 2004-12-04  Simon Josefsson  <jas@extundo.com>
119171         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119172         Vandoorselaere <yoann@prelude-ids.org>.
119174 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119176         Changes imported from coreutils.
119177         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119178         exist.
119179         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119181 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119183         Changes imported from coreutils.
119184         * lib/hard-locale.c: Assume <locale.h> exists.
119185         Include "strdup.h".
119186         (GLIBC_VERSION): New macro.
119187         (hard_locale): Assume setlocale exists.
119188         Rewrite to avoid #ifdef.
119189         Use strdup rather than malloc + strcpy.
119190         * lib/human.c: Assume <locale.h> exists.
119191         (human_readable): Assume localeconv exists.
119193 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119195         * modules/hard-locale (Depends-on): Add strdup.
119197 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119199         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119200         convert T2, not T.  (Imported from libc.)
119202 2004-11-30  Simon Josefsson  <jas@extundo.com>
119204         * modules/restrict (License): Change to LGPL.
119206 2004-11-30  Simon Josefsson  <jas@extundo.com>
119208         * m4/restrict.m4: Add copyright and copying conditions.
119210 2004-11-30  Simon Josefsson  <jas@extundo.com>
119212         * m4/base64.m4: New file.
119214 2004-11-30  Simon Josefsson  <jas@extundo.com>
119216         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119217         base64.
119219         * tests/test-base64.c: New file.
119221         * modules/base64: New file.
119223 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119226         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119228         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119230 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119232         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119233         (__getcwd.c): Don't restore errno; glibc doesn't.
119234         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119235         first, falling back to our code only if its results look suspicious.
119236         Ensure that the resulting buffer is only as large as necessary.
119238         * lib/readutmp.c: Include readutmp.h first.
119239         Include <errno.h>, since readutmp.h no longer does that.
119240         * lib/readutmp.h: Don't include <errno.h>,
119241         <sys/param.h>, <time.h>; not needed to establish interface.
119242         (errno): Remove decl.
119243         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119244         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119245         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119247 2004-11-28  Simon Josefsson  <jas@extundo.com>
119249         * lib/base64.h, base64.c: New file.
119251 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119253         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119255 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119257         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119258         (Depends-on): Remove pathmax, same.  Add mempcpy.
119259         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119260         (Makefile.am): Append getcwd.h to lib_SOURCES.
119261         (Include): Add getcwd.h.
119262         (Maintainer): Change from Jim Meyering to "all, glibc",
119263         since getdate now uses intended-for-glibc code.
119264         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119265         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119267 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119269         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119270         HP's ANSI C compiler.
119271         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119272         Declaring int functions causes warnings on some modern systems and
119273         shouldn't be needed to compile on ancient ones.
119274         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119275         defined.
119277         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119278         with the following changes.
119279         (__set_errno): Parenthesize properly.
119280         Include <stdbool.h>.
119281         (MIN, MAX, MATCHING_INO): New macros.
119282         (__getcwd): Define with prototype, not K&R form.
119283         Use heuristics to allocate default buffer on stack if possible.
119284         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119285         behavior, and to avoid the PATH_MAX limit when computing
119286         ../../../../...
119287         Use MATCHING_INO to compare inode number to file.
119288         Check for arithmetic overflow in size calculations.
119289         Fix bug in reallocation of dot array that caused getcwd to fail
119290         on directories nested deeper than 75.
119291         Be more careful about saving errno on error.
119292         Do not use realloc; use only free+malloc, as this is a bit
119293         more flexible and avoids a needless copy operation.
119294         Do not inspect st_dev and st_ino for symbolic links; POSIX
119295         doesn't specify the latter.
119296         Check for closedir errors.
119297         Avoid needless casts.
119298         Use "#ifdef weak_alias" around weak_alias, to be like other
119299         glibc code.
119300         The following changes to getcwd.c have effect only when used in
119301         gnulib; they have no effect inside glibc proper.
119302         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119303         as alloca isn't used.
119304         (alloca, __alloca): Likewise.
119305         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119306         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119307         unconditionally, as gnulib assumes C89 or better.
119308         Do not include <sys/param.h>.
119309         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119310         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119311         better.
119312         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119313         Include <dirent.h> in a way that is compatible with modern Autoconf.
119314         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119315         New macros, if not already defined.
119316         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119317         Use "_LIBC", not "defined _LIBC", for consistency.
119318         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119319         a mempcpy module.
119320         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119321         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119322         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119323         credit only to Jim Meyering and adjust the copyright dates.
119324         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119325         <stdlib.h>, <unistd.h>, "pathmax.h".
119326         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119327         (INITIAL_BUFFER_SIZE): Remove.
119328         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119330 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119333         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119334         Use the _ONCE methods, for efficiency.
119335         Check for fcntl.h.  In test program, include <errno.h>
119336         and <fcntl.h> if available.  Remove old K&R cruft from
119337         test program.  Check for common errors in GNU/Linux,
119338         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119339         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119341         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119342         name accordingly.
119343         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119344         accommodate new getcwd.c.
119345         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119346         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119347         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119348         that's all we need now.
119350 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119352         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119353         argp-parse.c depends on getopt internals, that means we should
119354         always use our getopt, to be on the safe side.
119355         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119356         order not to spoil the result of an eventual previous invocation
119357         of gl_GETOPT_SUBSTITUTE.
119359 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119361         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119362         redefinition warnings. To avoid them, include the defines
119363         in `#if !defined __need_getopt ... #endif'. The only place
119364         where __getopt_argv_const is used is in definitions
119365         of getopt_long and getopt_long_only below, which are as well
119366         protected by `#ifndef __need_getopt'.
119367         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119368         __need_getopt after including <stdio.h> and <unistd.h> These
119369         headers might have defined it.
119371 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119373         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119375 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119377         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119378         (futimens): New function, which uses futimes if available.
119379         (futimens, utimens): Support timespec==NULL, with same semantics
119380         as utime and utimens.
119381         * lib/utimens.h (futimens): New decl.
119383 2004-11-23  Jim Meyering  <jim@meyering.net>
119385         * lib/getopt_.h: Remove trailing blanks.
119387 2004-11-23  Jim Meyering  <jim@meyering.net>
119389         * lib/__fpending.c: Add comment.
119391 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119393         * modules/canonicalize (Depends-on): Add xreadlink.
119394         Problem reported by James Youngman.
119396 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119398         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119399         New macros.
119400         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119401         optopt): Use them instead of invoking ## directly; otherwise, the
119402         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119404 2004-11-19  Bruno Haible  <bruno@clisp.org>
119406         * lib/strtok_r.c: Move comments from here...
119407         * lib/strtok_r.h: ... to here.
119409 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119411         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119412         implementations that mishandle size_t overflow.
119414 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119416         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119417         might fail.  Problem reported by Yoann Vandoorselaere.
119418         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119419         implementations that mishandle size_t overflow.
119421 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119423         * modules/canon-host (Depends-on): Add strdup.
119425 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119427         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119429 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119431         * lib/canon-host.c: Include "strdup.h".
119432         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119433         Use strdup instead of malloc/strcpy to duplicate strings.
119435         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119436         (human_space_before_unit): New constant.
119437         * lib/human.c (human_readable): Support it.
119439         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119440         (xgetcwd): Set errno correctly when failing.
119441         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119442         the failure is actually due to a PATH_MAX problem.
119444         Further getopt changes to make it more likely that glibc will
119445         buy the changes back.
119446         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119447         (getopt): Use it, so to preserve glibc semantic
119448         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119449         when compiling for libc.
119450         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119451         (getopt_long, getopt_long_only): Use it.
119453         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119454         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119455         (getopt): Argv is now char * const *, as per standard.
119456         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119457         not char *__getopt_argv_const *.
119458         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119459         _getopt_long_only_r): Likewise.
119460         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119461         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119462         _getopt_long_r, _getopt_long_only_r): Likewise.
119463         * lib/getopt_.h (__getopt_argv_const): Remove.
119464         (getopt): Argv is now char * const *, as per standard.
119466         * lib/getdate.y (tORDINAL): New token.
119467         (day, relunit): Allow it for relative times.
119468         (relative_time_table): Use tORDINAL for ordinals.
119470 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119472         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119473         Document that "second" isn't allowed as an ordinal number.
119475 2004-11-16  Jim Meyering  <jim@meyering.net>
119477         * modules/closeout (Depends-on): Add fpending.
119479 2004-11-15  Jim Meyering  <jim@meyering.net>
119481         * lib/closeout.c: Include "__fpending.h" once again.
119482         Include <stdbool.h>.
119483         (close_stdout): Don't fail just because stdout was closed initially,
119484         since some programs don't write to stdout in the normal course of
119485         operation (other than --version and --help), and we don't want this
119486         function to make e.g. `touch file >&-' fail.
119487         But do fail if it was closed and someone has tried to write to it.
119488         E.g., `printf foo >&-' must fail.
119490 2004-11-13  Jim Meyering  <jim@meyering.net>
119492         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119494 2004-11-12  Simon Josefsson  <jas@extundo.com>
119496         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119497         small doc fix is still pending.
119499 2004-11-11  Simon Josefsson  <jas@extundo.com>
119501         * modules/strtok_r: New file.
119503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119504         strtok_r.
119506 2004-11-11  Simon Josefsson  <jas@extundo.com>
119508         * m4/strtok_r.m4: New file.
119510         * m4/getopt.m4: Replace opterr.
119512 2004-11-11  Simon Josefsson  <jas@extundo.com>
119514         * lib/strtok_r.h, strtok_r.c: New file.
119516 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119518         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119519         of replacing opterr, getopt, etc.  This should handle the
119520         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119522 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119524         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119525         we can stop lying to compilers about the constness of argv when we
119526         are compiled outside glibc.
119527         (getopt, getopt_long, getopt_long_only): Use it.
119528         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119529         _getopt_internal, getopt): Likewise.
119530         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119531         _getopt_long_only_r): Likewise.
119532         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119533         _getopt_long_r, _getopt_long_only_r): Likewise.
119535         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119536         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119537         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119538         the other external symbols.
119539         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119540         declaration, since the above renaming now works around collisions.
119542 2004-11-11  Jim Meyering  <jim@meyering.net>
119544         * lib/linebreak.c: Remove trailing blanks.
119545         * lib/alloca_.h: Likewise.
119546         * lib/acosl.c: Likewise.
119547         * lib/euidaccess.c: Likewise.
119548         * lib/allocsa.h: Likewise.
119550 2004-11-10  Simon Josefsson  <jas@extundo.com>
119552         * m4/getaddrinfo.m4: New file.
119554 2004-11-10  Simon Josefsson  <jas@extundo.com>
119556         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119558 2004-11-10  Simon Josefsson  <jas@extundo.com>
119560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119561         getaddrinfo.
119563         * modules/getaddrinfo: New file.
119565 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119567         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119569 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119571         * lib/mktime.c (SHR): New macro, which is a portable
119572         substitute for >> that should work even on Crays.
119573         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119574         Problem reported by Mark D. Baushke in
119575         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119576         * lib/getdate.y (SHR): Likewise.
119577         (tm_diff): Use it.
119578         * lib/strftime.c (SHR): Likewise.
119579         (tm_diff): Use it.
119580         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119581         quote_these_too, so that right shifts are well defined.  All uses
119582         changed.
119584 2004-11-10  Jim Meyering  <jim@meyering.net>
119586         Ensure that no close failure goes unreported.
119587         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
119588         return early when it seems there's nothing to flush.
119589         Don't include __fpending.h.
119591 2004-11-10  Jim Meyering  <jim@meyering.net>
119593         * modules/closeout (Depends-on): Remove fpending.
119595 2004-11-10  Jim Meyering  <jim@meyering.net>
119597         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
119599 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119601         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
119602         gl_FUNC_STRFTIME.
119603         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
119604         and AC_REQUIRE when possible, to avoid duplicate checks.
119605         Check for <wchar.h>.
119607 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119609         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
119611 2004-11-09  Bruno Haible  <bruno@clisp.org>
119613         * m4/sockpfaf.m4: New file.
119615 2004-11-05  Bruno Haible  <bruno@clisp.org>
119617         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
119618         Reported by Mark D. Baushke <mdb@cvshome.org>.
119620 2004-11-04  Bruno Haible  <bruno@clisp.org>
119622         2004-09-11  Bruno Haible  <bruno@clisp.org>
119623                 * allocsa.valgrind: New file.
119624         2004-02-06  Bruno Haible  <bruno@clisp.org>
119625                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
119626                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
119627                 Reported by Christopher Seip <chris.seip@hp.com>.
119629 2004-11-04  Bruno Haible  <bruno@clisp.org>
119631         * modules/allocsa (Files): Add lib/allocsa.valgrind.
119632         (Makefile.am): Distribute it.
119634 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
119636         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
119637         with errno == ERANGE if the buffer is too small.
119638         Problem reported by Mark D. Baushke.
119640 2004-11-03  Albert Chin  <china@thewrittenword.com>
119641             Paul Eggert  <eggert@cs.ucla.edu>
119643         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
119644         equivalent, substitute $ac_type for equivalent type rather than
119645         blindly using uint32_t *always* which won't work if uint32_t is not
119646         available.  Define _UINT32_T to work around typedef of uint32_t if
119647         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
119648         2.5.1.
119650 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119652         * m4/jm-macros.m4: Sync from coreutils.
119653         (gl_MACROS): Check for mbrlen, for pathchk.
119654         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
119656 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119658         * lib/xreadlink.c (MAXSIZE): New macro.
119659         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
119660         size does not exceed MAXSIZE.  Avoid cast.
119661         As suggested by Mark D. Baushke in
119662         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
119663         if readlink fails with buffer size just under MAXSIZE, try again
119664         with MAXSIZE.
119666 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119668         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
119670 2004-11-02  Derek R. Price  <derek@ximbiot.com>
119671         and  Paul Eggert  <eggert@cs.ucla.edu>
119673         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
119674         (get_date): Overparenthesize to avoid GCC warning.
119676 2004-11-02  Bruno Haible  <bruno@clisp.org>
119678         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
119679         returns void.
119681 2004-11-02  Bruno Haible  <bruno@clisp.org>
119683         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
119684         function returns void.
119686 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119688         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
119689         fflush_unlocked, flockfile, funlockfile, funlockfile,
119690         fputs_unlocked, putc_unlocked.
119692 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119694         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119695         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
119696         already declared.
119698 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119700         * modules/getdate (Files): Add doc/getdate.texi.
119701         (Depends-on): Add setenv, xalloc.
119703 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119705         * lib/getdate.y: Add support for TZ="foo" within a date string.
119706         Fix some bugs near time_t boundaries.  Reject dates with
119707         out-of-range components, e.g., "Sept 31".
119708         Include <stdlib.h>, "setenv.h", "xalloc.h".
119709         (ISDIGIT_LOCALE): Remove; unused.
119710         Note that the TZ and time functions used here are not reentrant.
119711         (mktime_ok, get_tz): New functions.
119712         (TZBUFSIZE): New constant.
119713         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
119714         This requires that we sometimes generate our own TZ="XXX..." setting.
119716 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119718         * doc/getdate.texi: New file, from coreutils with modifications for
119719         the new TZ parsing.
119721 2004-10-27  Derek R. Price  <derek@ximbiot.com>
119723         * lib/mktime.c (not_equal_tm): Remove redundant check.
119725 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119727         * modules/regex (lib_SOURCES): Add regex.c.
119728         Reported by James Youngman in
119729         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
119731 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119733         * lib/getdate.y: Use Bison 1.875 features, and some minor
119734         code cleanups.  This change does not affect semantics.
119735         Don't include <stdlib.h>; no longer needed.
119736         Don't include unlocked-io.h; only the "#if TEST" code uses
119737         stdio, and performance isn't crucial there.
119738         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
119739         Bison 1.875 features as described below.
119740         All uses of "PC." replaced by "pc->".
119741         (YYSTYPE): Add a forward declaration.
119742         (yylex, yyerror): Use full prototypes in forward decls.
119743         Use "%pure-parser" rather than obsolescent "%pure_parser".
119744         Use %parse-param and %lex-param instead of obsolescent
119745         YYPARSE_PARAM and YYLEX_PARAM.
119746         (meridian_table, month_and_day_table, time_units_table,
119747         relative_time_table, time_zone_table, military_table,
119748         lookup_zone, lookup_word, get_date):
119749         Use NULL instead of 0 where appropriate.
119750         (to_hour): Avoid abort (), to avoid a dependency on
119751         stdlib.h.
119752         (yyerror, yylex): Now accepts parser_control * arg.
119753         (main) [TEST]: Use '\0' rather than 0 for char.
119755 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119757         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
119759 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119761         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
119762         It's now the caller's responsibility to handle the case where
119763         !HAVE_GETPAGESIZE && !defined getpagesize.
119765         * lib/mktime.c (leapyear): Arg is long int, not int.
119767 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
119769         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
119771 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
119773         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
119774         missing.  Problem reported by James Youngman.
119776 2004-10-16  Simon Josefsson  <jas@extundo.com>
119778         * gnulib-tool: Fix comments.  Fix parse problem.
119779         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
119781 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
119783         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
119784         implementation of getopt_long.  Problem reported by Alexander Taler in:
119785         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
119787 2004-10-15  Bruno Haible  <bruno@clisp.org>
119789         * gnulib-tool: Untabify. Initialize supplied_libname.
119790         (func_usage): More homogenous output.
119791         (func_modules_transitive_closure, func_modules_to_filelist,
119792         func_emit_lib_Makefile_am): New functions.
119793         (func_import): New function, extracted from big case statement. Use
119794         func_get_license, func_modules_transitive_closure,
119795         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
119796         opt_lgpl. Don't use test -a, as it's not portable.
119797         (func_create_testdir): Use func_modules_transitive_closure,
119798         func_modules_to_filelist, func_emit_lib_Makefile_am.
119800 2004-10-15  Bruno Haible  <bruno@clisp.org>
119802         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
119804 2004-10-15  Bruno Haible  <bruno@clisp.org>
119806         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
119807         the portions belonging to each module.
119808         Suggested by Derek Robert Price <derek@ximbiot.com>.
119810 2004-10-12  Simon Josefsson  <jas@extundo.com>
119812         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119813         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
119814         to real functions.
119816 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119818         * modules/vsnprintf: New file.
119820 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119822         * m4/vsnprintf.m4: New file.
119824 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119826         * lib/vsnprintf.h: New file.
119827         * lib/vsnprintf.c: New file.
119829 2004-10-11  Bruno Haible  <bruno@clisp.org>
119831         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
119832         vsnprintf.
119834 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119836         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
119838 2004-10-07  Bruno Haible  <bruno@clisp.org>
119840         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
119841         fits into the provided buffer.
119843 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119845         * lib/diacrit.c, diacrit.h: Add GPL notice.
119847         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
119848         notice.
119849         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
119850         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
119851         This avoids a potential constant-folding bug.
119853 2004-10-05  Bruno Haible  <bruno@clisp.org>
119855         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
119856         for the declaration of strsep.
119858 2004-10-05  Bruno Haible  <bruno@clisp.org>
119860         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
119862 2004-10-04  Simon Josefsson  <jas@extundo.com>
119864         * modules/memmem: New file.
119865         * tests/test-memmem.c: New file.
119866         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
119868 2004-10-04  Simon Josefsson  <jas@extundo.com>
119870         * m4/memmem.m4: New file.
119872 2004-10-04  Simon Josefsson  <jas@extundo.com>
119874         * lib/memmem.h: New file.
119875         * lib/memmem.c: New file, taken from glibc.
119877 2004-10-04  Simon Josefsson  <jas@extundo.com>
119879         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
119880         '#ifdef USE_UNLOCKED_IO'.
119882 2004-10-04  Simon Josefsson  <jas@extundo.com>
119884         * config/srclist.txt: Add memmem from glibc.
119886 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119888         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
119890         * modules/argmatch, modules/argp, modules/closeout, modules/error,
119891         modules/exclude, modules/getdate, modules/getline,
119892         modules/getndelim2, modules/getpass, modules/getpass-gnu,
119893         modules/getusershell, modules/linebuffer, modules/md5,
119894         modules/mountlist, modules/posixtm, modules/readtokens,
119895         modules/readutmp, modules/regex, modules/sha1,
119896         modules/version-etc, modules/yesno:
119897         Remove dependency on unlocked-io.
119899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119901         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
119903         * m4/unlocked-io.m4: Add copyright notice.
119904         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
119906 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119908         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
119909         * lib/xmalloc.c (xmemdup): Likewise.
119910         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
119911         XFREE): Remove these long-obsolescent macros.
119912         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
119913         * lib/xstrdup.c: Remove.
119915         * lib/regex.c (re_comp): Cast gettext return value to char *,
119916         Problem reported by Martin Neitzel via Mark D. Baushke.
119918 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
119920         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
119921         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
119922         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
119923         regex.c, sha1.c, version-etc.c, yesno.c:
119924         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
119925         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
119926         the includer's responsibility.
119928         Sync from coreutils.
119930         * lib/modechange.c (mode_compile): Don't decrement a pointer that
119931         points to the start of a string, as the C Standard says the
119932         resulting behavior is undefined.
119934         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
119935         simple -> simple_backups, numbered_existing ->
119936         numbered_existing_backups, numbered -> numbered_backups
119937         to avoid shadowing problems.  All uses changed.
119938         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
119939         * lib/backupfile.c (check_extension, numbered_backup):
119940         Rename locals to avoid shadowing 'basename'.
119941         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
119942         once.
119944         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
119945         * lib/.cvsignore: Add getopt.h.
119947 2004-10-04  Bruno Haible  <bruno@clisp.org>
119949         * modules/README: New file.
119950         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
119951         not a module.
119953 2004-10-02  Jim Meyering  <jim@meyering.net>
119955         * lib/dirfd.h, getpagesize.h: Add copyright notice.
119957 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119959         * modules/strsep: New file.
119961 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119963         * m4/strsep.m4: New file.
119965 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119967         * lib/strsep.h: New file.
119968         * lib/strsep.c: New file.
119970 2004-10-01  Simon Josefsson  <jas@extundo.com>
119972         * lib/snprintf.c (snprintf): Handle size==0.
119974 2004-10-01  Simon Josefsson  <jas@extundo.com>
119975             Bruno Haible  <bruno@clisp.org>
119977         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
119978         (snprintf): Declare 'args'.
119980 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
119982         * lib/snprintf.c: Remove comments as to why each header is needed.
119984 2004-10-01  Bruno Haible  <bruno@clisp.org>
119986         * MODULES.html.sh: Add strsep.
119988 2004-09-30  Simon Josefsson  <jas@extundo.com>
119990         * modules/snprintf: New file.
119992 2004-09-30  Simon Josefsson  <jas@extundo.com>
119994         * m4/snprintf.m4: New file.
119996 2004-09-30  Simon Josefsson  <jas@extundo.com>
119998         * lib/snprintf.h, lib/snprintf.c: New files.
120000 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120002         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120003         (hol_entry_help): Never translate an empty string.
120004         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120005         * lib/argp.h (OPTION_NO_TRANS): New option.
120007 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120009         * modules/argp (Maintainer): Replace Simon Josefsson
120010         by Sergey Poznyakoff.
120012 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120014         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120015         changes merged back into glibc.
120017 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120019         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120021 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120023         * lib/xvasprintf.c: Include xalloc.h.
120024         (xvasprintf): Use xalloc_die, not xmalloc_die.
120026 2004-09-29  Bruno Haible  <bruno@clisp.org>
120028         * modules/alloca-opt: New file, derived from modules/alloca.
120029         * modules/allocsa: Depend on alloca-opt instead of alloca.
120030         * modules/setenv: Likewise.
120031         * modules/vasnprintf: Likewise.
120032         * MODULES.html.sh: Add alloca-opt.
120034 2004-09-28  Simon Josefsson  <jas@extundo.com>
120036         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120037         LGPL, and to replace license template from GPL to LGPL.
120039 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120041         * modules/dummy: Change license to LGPL.
120043 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120045         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120047 2004-09-24  Simon Josefsson  <jas@extundo.com>
120049         * modules/minmax (License): Change from GPL to LGPL.
120051 2004-09-23  Simon Josefsson  <jas@extundo.com>
120053         * gnulib-tool (--import): Typo.
120055 2004-09-23  Simon Josefsson  <jas@extundo.com>
120057         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120059 2004-09-22  Bruno Haible  <bruno@clisp.org>
120061         * modules/*: Add 'License' field.
120062         * gnulib-tool: Accept --extract-license option.
120063         (func_get_license): New function.
120065 2004-09-21  Bruno Haible  <bruno@clisp.org>
120067         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120068         Reported by Simon Josefsson.
120070 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120072         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120073         gl_AC_TYPE_LONG_LONG.
120075 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120077         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120079 2004-09-18  Simon Josefsson  <jas@extundo.com>
120080         and  Paul Eggert  <eggert@cs.ucla.edu>
120082         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120083         calls with autoreconf.  Define GL_LIB.
120085 2004-09-14  Karl Berry  <karl@gnu.org>
120087         * config/srclist.txt: unsync setenv.c, sigh.
120089 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120091         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120092         Problem reported by Bruno Haible in:
120093         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120095 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120097         * config/srclist.txt: Comment out argp-pvh.c.
120099 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120101         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120102         in case some system header has #define'd it.  Problem reported by
120103         Soeren D. Schulze in
120104         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120106 2004-09-09  Karl Berry  <karl@gnu.org>
120108         * regex.[ch]: delete from the root.  These were supposed to be
120109                 synced with emacs cvs, but this has not happened for about
120110                 a year, and anyway nothing else uses emacs regex.[ch].
120111                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120112                 lib/regex[.ch] is untouched.
120114 2004-09-09  Bruno Haible  <bruno@clisp.org>
120116         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120118 2004-09-09  Bruno Haible  <bruno@clisp.org>
120120         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120121         modifications.
120122         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120124 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120126         * modules/xvasprintf: New file.
120127         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120129 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120131         * lib/xvasprintf.h: New file.
120132         * lib/xvasprintf.c: New file.
120133         * lib/xasprintf.c: New file.
120135 2004-09-08  Bruno Haible  <bruno@clisp.org>
120137         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120139 2004-09-08  Bruno Haible  <bruno@clisp.org>
120141         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120142         length is > INT_MAX.
120143         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120144         more.
120146 2004-09-08  Bruno Haible  <bruno@clisp.org>
120148         * lib/stdint_.h: New file, taken from GNU clisp.
120150 2004-09-08  Bruno Haible  <bruno@clisp.org>
120151             Oskar Liljeblad  <oskar@osk.mine.nu>
120153         * modules/stdint: New file.
120154         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120156 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120158         Import from coreutils.
120159         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120160         strings on unbounded length.  alloca's performance benefits aren't
120161         that important here.
120162         (V_STRDUP): Remove.
120163         (parse_with_separator): New function, with most of the internals
120164         of the old parse_user_spec.  Allow user to omit both user and group,
120165         for compatibility with FreeBSD.
120166         Clone only the user name, not the entire spec.
120167         Do not set *uid, *gid unless entirely successful.
120168         Avoid memory leak in some failing cases.
120169         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120170         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120171         (parse_user_spec): Rewrite to use parse_with_separator.
120173 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120175         * modules/userspec: Don't depend on alloca.
120177 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120179         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120181 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120183         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120184         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120185         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120187 2004-08-16  Simon Josefsson  <jas@extundo.com>
120189         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120190         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120191         Add --dry-run for --import.
120192         Let user provided command line parameters override configure.ac
120193         settings.
120195 2004-08-12  Simon Josefsson  <jas@extundo.com>
120197         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120198         as discussed with Paul Eggert in threads rooted at
120199         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120200         and
120201         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120202         Before, the test was empty, and relied on ELIDE_CODE in source
120203         code.)
120204         (gl_PREREQ_GETOPT): New macro.
120205         (gl_GETOPT): Use them.
120207 2004-08-12  Simon Josefsson  <jas@extundo.com>
120209         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120210         * lib/getopt_.h: Renamed from getopt.h.
120212 2004-08-12  Simon Josefsson  <jas@extundo.com>
120214         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120215         Change default library name from libfoo to libgnu.
120216         Now, if you have a configure.ac that says:
120217                 gl_SOURCE_BASE(gl)
120218                 gl_M4_BASE(gl/m4)
120219                 gl_MODULES(error getopt etcetera)
120220                 gl_INIT
120221         you can import all you need by running:
120222                 ../gnulib/gnulib-tool --import
120224         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120225         (Makefile.am): Rewrite, use logic from argz.
120226         (Include): Use <getopt.h> instead of "getopt.h".
120228 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120230         * modules/argp (Files): Add m4/unlocked-io.m4.
120231         (Depends-on): Add extensions.
120233 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120235         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120236         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120237         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120238         Check for program_invocation_name, program_invocation_short_name,
120239         flockfile, funlockfile, features.h, _getopt_long_only_r.
120241 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120243         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120244         its complicated substitute.
120245         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120246         and program_invocation_name.
120247         (__argp_basename) [!_LIBC]: Remove; the only use was
120248         replaced by its body.
120249         (__argp_short_program_name): Change condition from
120250         !defined __argp_short_program_name to
120251         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120252         to match argp-namefrob.h.
120253         (__argp_failure): Don't assume strerror_r returns char *.
120254         * lib/argp-parse.c (N_): Define unconditionally.
120255         (argp_default_options): Fill out initializers with 0 to avoid
120256         gcc warnings.
120258 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120260         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120261         getopt1.c.
120263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120265         Merge from coreutils.
120267         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120269         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120270         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120274         Merge from coreutils.
120276         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120277         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120278         for Reliant Unix 5.43.
120280         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120281         (union fooround): Use uintmax_t, not long int.
120282         The rest is a merge from libc:
120283         [defined _LIBC]: Include <shlib-compat.h>.
120284         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120286         * lib/settime.c (settime): Recode to avoid warning with
120287         Sun Forte C 6U2.
120289         * lib/strverscmp.c: Convert to UTF-8.
120291 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120293         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120294         m4/uintmax_t.m4.
120296 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120298         * modules/xalloc-die: New file.
120299         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120301         * modules/md5 (Files): Add m4/uint32_t.m4.
120302         * modules/sha1: Renamed from modules/sha.
120303         (Files):
120304         Rename lib/sha.h to lib/sha1.h.
120305         Rename lib/sha.c to lib/sha1.c.
120306         Rename m4/sha.m4 to m4/sha1.m4.
120307         (lib_SOURCES): Likewise.
120308         (configure.ac): Rename gl_SHA to gl_SHA1.
120309         (Include): sha.h -> sha1.h.
120311 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120313         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120314         * m4/sha1.m4: Renamed from sha.m4.
120315         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120317 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120319         * lib/obstack.h (obstack_empty_p):
120320         Don't assume that chunk->contents is suitably aligned.
120321         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120322         Likewise. Problem reported by Benno in
120323         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120325         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120326         readable.  This could be improved further but it'd take some work.
120328 2004-08-08  Simon Josefsson  <jas@extundo.com>
120330         * modules/xgethostname (Depends-on): Remove exit and error (not
120331         used).
120333         * modules/getpass-gnu: Add getpass.h.
120334         (Depends-on): Add stdbool.
120335         * modules/getpass: Add getpass.h.
120337 2004-08-08  Simon Josefsson  <jas@extundo.com>
120339         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120340         Check getpass declaration.
120342 2004-08-08  Simon Josefsson  <jas@extundo.com>
120344         * lib/xgethostname.c: Don't include error.h (not used).
120346         * lib/getpass.h: Add.
120347         * lib/getpass.c: Include getpass.h first.
120349 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120351         * lib/xalloc-die.c: New file.
120352         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120353         All uses removed.
120354         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120355         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120356         xalloc-die.c.
120357         (_, N_, xalloc_die): Move to xalloc-die.c.
120358         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120359         so that we needn't mess with xalloc_msg_memory_exhausted.
120361         * lib/sha1.h: Renamed from sha.h.
120362         (SHA1_H): Renamed from _SHA_H.
120363         (sha1_ctx): Renamed from sha_ctx.
120364         (sha1_init_ctx): Renamed from sha_init_ctx.
120365         (sha1_process_block): Renamed from sha_process_block.
120366         (sha1_process_bytes): Renamed from sha_process_bytes.
120367         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120368         (sha1_read_ctx): Renamed from sha_read_ctx.
120369         (sha1_stream): Renamed from sha_stream.
120370         (sha1_buffer): Renamed from sha_buffer.
120371         * lib/sha1.c: Likewise; renamed from sha.c.
120372         Do not include <sys/types.h>.
120373         Include <stddef.h> rather than <stdlib.h>.
120375 2004-08-08  Bruno Haible  <bruno@clisp.org>
120377         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120378         FILESYSTEM_PREFIX_LEN.
120379         * lib/progreloc.c: Likewise.
120380         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120382 2004-08-06  Simon Josefsson  <jas@extundo.com>
120384         * modules/progname (Depends-on): Don't depend on stdbool.
120386 2004-08-06  Simon Josefsson  <jas@extundo.com>
120388         * modules/getsubopt: New file.
120389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120390         getsubopt.
120392 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120394         More merge from coreutils.
120396         * m4/utimens.m4, m4/utimecmp.m4: New files.
120397         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120398         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120399         prereq.m4, sha.m4: Import changes from coreutils.
120401 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120403         More merge from coreutils.
120404         * modules/raise, modules/readtokens0, modules/utimens:
120405         * modules/utimecmp, module/xnanosleep: New files.
120406         * modules/strftime: Add lib/strftime.h.
120407         Change include from <time.h> to "strftime.h".
120408         * modules/yesno: Add lib/yesno.h.
120409         * modules/backupfile: Remove lib/addext.c.
120410         * modules/euidaccess: Add stat-macros.h.
120411         * modules/canonicalize, modules/euidaccess,
120412         modules/filemode, modules/lchown, modules/makepath,
120413         modules/rmdir, modules/stat: Likewise.
120415 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120417         Merge from tar.
120418         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120419         SIZE_MAX is a valid preprocessor constant.
120420         (__argp_basename): Change from "#ifndef _LIBC"
120421         to "#ifndef __argp_short_program_name", so that
120422         we don't compile these functions for tar.
120424         More merges from coreutils.
120425         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120426         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120427         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120428         * lib/addext.c: Remove; no longer needed.
120429         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120430         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120431         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120432         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120433         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120434         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120435         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120436         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120437         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120438         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120439         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120440         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120441         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120442         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120443         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120444         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120445         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120446         Import changes from coreutils.
120448 2004-08-05  Simon Josefsson  <jas@extundo.com>
120450         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120452 2004-08-05  Simon Josefsson  <jas@extundo.com>
120454         * m4/getsubopt.m4: New file.
120456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120458         Merge from coreutils.
120460         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120461         * m4/getcwd-path-max.m4: New files.
120463         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120464         FILESYSTEM_PREFIX_LEN ->
120465         FILE_SYSTEM_PREFIX_LEN.
120466         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120467         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120468         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120469         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120471         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120472         prerequisite modules now handle the DOS stuff.
120473         Don't check for unistd.h.
120475 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120477         Merge from coreutils.
120479         * lib/.gdb-history: Remove; this doesn't belong here.
120481         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120482         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120483         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120484         * lib/getcwd.c: New files.
120486         * lib/dirname.h: Include <stdbool.h>.
120487         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120488         for consistency with POSIX terminology.  All uses changed.
120489         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120490         (strip_trailing_slashes): Use bool for booleans.
120491         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120493         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120494         sometimes returns a positive errno value even when it succeeds.
120495         (print_errno_message) [!LIBC]: Fall back on strerror if
120496         __strerror_r fails.
120498         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120499         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120500         (longest_relative_suffix): New function.
120501         (path_concat): Use it.  Assume first argument is not NULL.
120502         Port to DOS.  Omit redundant separators.
120503         Report an error instead of returning NULL.
120504         Use mempcpy instead of memcpy.
120505         (xpath_concat): Remove: not declared or used.
120507         * lib/same.h: Include <stdbool.h>
120508         (same_name): Return bool, not int.
120509         * lib/same.c (same_name): Likewise.
120510         (errno): Don't declare; we assume C89 or better now.
120512         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120513         if not already defined.
120515         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120516         * lib/dup-safer.c (errno): Likewise.
120518 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120520         Merge from coreutils.
120521         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120522         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120523         * modules/path-concat: Don't depend on strdup.
120525 2004-08-03  Simon Josefsson  <jas@extundo.com>
120527         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120528         * lib/progname.h: Don't include stdbool.h.
120530 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120532         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120533         * MODULES.html.sh (func_all_modules): Remove fatal.
120535 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120537         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120539 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120541         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120542         working.
120544 2004-08-02  Simon Josefsson  <jas@extundo.com>
120546         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120547         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120548         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120550 2004-08-01  Simon Josefsson  <jas@extundo.com>
120552         * lib/xgetdomainname.c: Include stdlib.h, for free().
120554 2004-07-19  Bruno Haible  <bruno@clisp.org>
120556         * MODULES.html.sh (func_all_modules): Add dummy.
120558 2004-07-16  Simon Josefsson  <jas@extundo.com>
120560         * modules/dummy: New file.
120562 2004-07-16  Simon Josefsson  <jas@extundo.com>
120564         * lib/dummy.c: New file.
120566 2004-07-16  Bruno Haible  <bruno@clisp.org>
120568         * lib/backupfile.h: Add extern "C" for C++.
120569         * lib/closeout.h: Likewise.
120570         * lib/copy-file.h: Likewise.
120571         * lib/findprog.h: Likewise.
120572         * lib/full-write.h: Likewise.
120573         * lib/pathname.h: Likewise.
120574         * lib/progname.h: Likewise.
120575         * lib/stpcpy.h: Likewise.
120576         * lib/stpncpy.h: Likewise.
120577         * lib/strcase.h: Likewise.
120578         * lib/strstr.h: Likewise.
120579         * lib/xalloc.h: Likewise.
120581         * lib/mbswidth.h: Add extern "C" for C++.
120582         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120584 2004-07-13  Robert Millan  <robertmh@gnu.org>
120586         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
120588 2004-07-09  Simon Josefsson  <jas@extundo.com>
120590         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
120591         failed without this.)
120593 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120595         * modules/chown (Files): Add lib/fchown-stub.c, since
120596         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
120598 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120600         * lib/fchown-stub.c: New file.
120602 2004-06-24  Jim Meyering  <jim@meyering.net>
120604         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
120606 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120608         * modules/argz: Omit "#include".
120610         * MODULES.html.sh (func_all_modules): Add calloc, to match
120611         2004-06-01 addition of calloc module.
120613 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120615         * m4/argz.m4: New file, which is autoupdated from libtool.
120617 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120619         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
120620         libtool.
120622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120624         * config/srclist-update: Don't insist on "USA." before the
120625         close-comment, as libtool omits the period and puts the */ on a
120626         separate line.
120627         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
120628         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
120630 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
120632         * modules/argz: New file.
120633         * MODULES.html.sh (func_all_modules): Add argz.
120635 2004-06-12  Jim Meyering  <jim@meyering.net>
120636         and  Paul Eggert  <eggert@cs.ucla.edu>
120638         * modules/hash (Files): Add lib/xalloc.h.
120639         * modules/pipe (Depends-on): Add wait-process.
120640         * modules/stat (Depends-on): Add xalloc.
120641         * modules/userspec (Files): Add lib/userspec.h.
120642         * modules/xstrto
120644         Upgrade from gettext-0.13.
120645         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
120646         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
120647         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
120649 2004-06-10  Jim Meyering  <jim@meyering.net>
120651         * lib/calloc.c: New file.
120653 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
120655         * lib/getdate.y (yylex): Allow space between sign and number.
120656         Problem reported by Dan Jacobson.
120658 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120660         Merge from coreutils CVS.
120662         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
120663         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
120664         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
120665         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
120666         xstrtol.m4: Fix copyright date and/or serial number.
120668         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
120669         See if we need an fchown replacement.
120670         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
120671         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
120672         and use the replacement function if we detect either defect.
120674         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
120675         gl_UTIMECMP.
120677 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120678         and  Jim Meyering  <jim@meyering.net>
120680         Merge from coreutils CVS.
120682         * lib/stat-macros.h: New file, with contents from file-type.h
120683         and coreutils' system.h.
120684         * lib/file-type.c: Include "stat-macros.h".
120685         * lib/file-type.h (file_type): Move all macro definitions to new file,
120686         stat-macros.h.
120688         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
120689         Wrap old code with this conditional.
120690         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
120691         function that does not dereference symlinks.
120692         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
120694         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
120695         dependency problems.
120696         (xreadlink): Accept new arg SIZE, for efficiency.
120697         All decls and uses changed.
120698         * lib/xreadlink.h: Include <stddef.h>, for size_t.
120700         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
120701         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
120703         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
120704         sysexits.h.
120706 2004-06-01  Jim Meyering  <jim@meyering.net>
120708         * m4/calloc.m4: New file.
120710 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
120712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
120713         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
120714         Also, fix a typo in a diagnostic.
120716 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120718         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
120719         or AC_FUNC_REALLOC.
120721 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120723         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
120724         macros to be defined.
120725         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
120726         the allocator returns NULL because the requested size is zero.
120728 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120730         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
120731         var.  Add comment explaining why libc still defines it.  This
120732         merges the following patch from glibc:
120733         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
120735 2004-05-20  Andreas Schwab  <schwab@suse.de>
120737         * m4/free.m4: Replace free if it not known to work, not the other
120738         way round.
120740 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
120742         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
120743         present in glibc since revision 1.1 of this file.
120744         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
120745         obstack_alignment_mask, obstack_alloc, obstack_base,
120746         obstack_blank, obstack_blank_fast, obstack_chunk_size,
120747         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
120748         obstack_grow0, obstack_init, obstack_int_grow,
120749         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
120750         obstack_next_free, obstack_object_size, obstack_ptr_grow,
120751         obstack_ptr_grow_fast, obstack_room): Remove declarations of
120752         nonexistent functions.
120754 2004-05-18  Karl Berry  <karl@gnu.org>
120756         * config/srclist.txt: break link for vasnprintf.c.
120758 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120760         Port obstack to the AS/400, where pointers are 16 bytes wide and
120761         you cannot cast an integer to a valid pointer.  This patch is
120762         currently waiting to be integrated into glibc; see
120763         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
120765         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
120766         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
120767         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
120768         (struct obstack): temp member is now a union of a pointer and
120769         an integer, instead of an integer.  All integer uses changed.
120770         This does not affect the physical layout of struct obstack,
120771         except on hosts (like the AS/400) where the size or alignment of
120772         void * is greater than that of ptrdiff_t.
120773         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
120774         __STDC__)]: Store temporary in pointer member of union, not
120775         integer member.
120776         * lib/obstack.c: Include <stddef.h>, for offsetof.
120777         (struct fooalign): Remove; it doesn't need a name.
120778         (union fooround): Change double to long double, and add void *.
120779         (DEFAULT_ALIGNMENT): Use offsetof to compute.
120780         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
120781         not a macro.  Hence the values are always int; so remove all
120782         casts-to-int in uses.
120784 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120786         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
120787         we can get this patch merged into glibc.
120789 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120790             Paul Eggert  <eggert@cs.ucla.edu>
120792         * m4/argp: Depend on alloca.
120794 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120795             Paul Eggert  <eggert@cs.ucla.edu>
120797         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
120798         freecoding.
120800 2004-05-17  Bruno Haible  <bruno@clisp.org>
120802         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
120803         precision that consists of a '.' followed by an empty digit string.
120804         Patch by Tor Lillqvist <tml@iki.fi>.
120806 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
120809         for backward compatibility with older code.  We need our own
120810         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
120811         it under some other name, and our alloca.h will define it.
120813 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120814             Derek Price  <derek@ximbiot.com>
120816         * lib/alloca.c: Include <alloca.h>, to get our interface.
120817         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
120818         include <alloca.h> first.  Use C89 prototype for alloca; this
120819         requires including <stddef.h> for size_t.  Use extern "C" if C++.
120820         Use #elif for simplicity, since we can assume C89 now.
120821         Don't try to source the system alloca.h since it will not be found
120822         and to prevent recursively including its replacement.
120823         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
120824         * lib/regex.c: Likewise.
120826 2004-05-16  Derek Price  <derek@ximbiot.com>
120827             Paul Eggert  <eggert@cs.ucla.edu>
120829         getline cleanup.  This changes the getndelim2 API: both order of
120830         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
120831         no delimiter).
120833         * lib/getline.c: Don't include stddef.h or stdio.h, since our
120834         interface does that.
120835         (getline): Always use getdelim, so that we don't have two
120836         copies of this code.
120837         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
120838         if available.
120839         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
120840         (GETNDELIM2_MAXIMUM): New macro.
120841         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
120842         instead of the old practice of delim2==0.  All callers changed.
120843         Return -1 on overflow, instead of returning junk.
120844         Do not set *linesize unless allocation succeeds.
120845         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
120846         that we include sys/types.h.
120847         * lib/getnline.h: Likewise.
120848         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
120849         (getndelim2): Reorder arguments.
120850         * lib/getnline.c (getnline, getndelim):
120851         Don't discard the NMAX argument.
120852         (getnline): Invoke getndelim, to avoid code duplication.
120853         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
120854         of (size_t) -1 by callers of the getnline family.
120856 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120858         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
120859         Check for gettimeofday.
120860         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
120861         Check for settimeofday, stime.
120863 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
120865         * lib/nanosleep.c (suspended): Change its type from int to
120866         sig_atomic_t volatile.
120867         (first_call): Make it private to rpl_nanosleep, and have it
120868         be zero initially as that's a bit faster.
120869         (my_usleep): Round up fractional times instead of truncating them,
120870         as this is the usual meaning for 'sleep'.
120872         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
120873         doesn't work.
120874         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
120875         (ENOSYS): Define if not defined.
120876         (settime): Fall back on stime if it exists and settimeofday fails.
120877         But don't bother with fallbacks if a method fails with errno == EPERM.
120879 2004-05-11  Jim Meyering  <jim@meyering.net>
120881         Prior to this change, the save_cwd caller required read access to the
120882         current directory on most systems (ones with the fchdir function).
120884         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
120885         fails, try write-only, and finally, resort to using xgetcwd.
120887 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
120889         * lib/obstack.c, obstack.h: Import changes from libc.
120891 2004-04-28  Bruno Haible  <bruno@clisp.org>
120893         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
120894         also implicitly appends .exe to executables.
120895         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
120896         accepts Windows pathnames.
120897         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
120898         Treat Cygwin like Windows, since it now accepts Windows pathnames.
120899         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
120900         Treat Cygwin like Windows, since it now accepts Windows pathnames.
120901         Reported by Derek Robert Price <derek@ximbiot.com>.
120903 2004-04-21  Karl Berry  <karl@gnu.org>
120905         * config/srclist.txt (localcharset.c): break sync.
120907 2004-04-20  Paul Eggert  <eggert@twinsun.com>
120909         * m4/host-os.m4: Add a copyright notice.
120911 2004-04-20  Jim Meyering  <jim@meyering.net>
120913         Change UTILS_ to gl_ in AC_DEFINE'd names.
120914         Change utils_- and jm_-prefixed variables, too.
120915         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
120916         UTILS_FUNC_MKDIR_TRAILING_SLASH.
120917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
120919         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
120920         Don't emit trailing blanks.
120921         Also rename jm_-prefixed variables to have gl_ prefix.
120923         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
120924         Also rename jm_-prefixed variables to have gl_ prefix.
120926         * m4/jm-macros.m4: Reflect the renamings.
120927         * m4/prereq.m4: Likewise.
120929 2004-04-20  Jim Meyering  <jim@meyering.net>
120931         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
120932         memory.
120934 2004-04-20  Jim Meyering  <jim@meyering.net>
120935             Bruno Haible  <bruno@clisp.org>
120937         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
120938         memory when realloc fails.
120940 2004-04-19  Jim Meyering  <jim@meyering.net>
120942         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
120943         now that readutmp.c may call `free (0)'.
120945 2004-04-19  Bruno Haible  <bruno@clisp.org>
120947         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
120948         * m4/inttypes_h.m4: Likewise.
120949         * m4/stdint_h.m4: Likewise.
120950         * m4/intmax_t.m4: Likewise.
120951         * m4/uintmax_t.m4: Likewise.
120953 2004-04-18  Jim Meyering  <jim@meyering.net>
120955         * m4/prereq.m4: Don't forbid jm_ prefix.
120957         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
120958         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
120959         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
120960         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
120961         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
120962         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
120963         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
120964         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
120965         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
120966         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
120967         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
120968         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
120969         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
120970         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
120971         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
120972         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
120973         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
120974         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
120975         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
120977 2004-04-18  Jim Meyering  <jim@meyering.net>
120979         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
120980         failure, don't leak memory and do call END_UTMP_ENT.
120982 2004-04-16  Jim Meyering  <jim@meyering.net>
120984         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
120985         coreutils' stat program.
120986         (gl_PREREQ): Don't require jm_PREREQ_STAT.
120988 2004-04-11  Paul Eggert  <eggert@twinsun.com>
120990         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
120991         C89.
120992         (CHAR_BIT): Remove, since we assume C89.
120993         Include <stdint.h> if available, as per current Autoconf CVS advice.
120995 2004-03-31  Jim Meyering  <jim@meyering.net>
120997         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
120998         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
120999         * m4/xalloc.m4: Likewise.
121001 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121003         Merge from coreutils.
121005         * m4/inttostr.m4: New file.
121006         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121007         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121008         Require gl_CLOCK_TIME.
121009         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121011 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121013         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121014         not bool, to be more consistent with Unix conventions.
121015         Suggested by Bruno Haible.
121017         Merge from coreutils.
121019         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121020         * lib/umaxtostr.c: New files.
121022         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121023         the usual <time.h> dance.
121024         (get_date): Change signature to support fractional time stamps.
121025         All callers changed.
121026         * lib/getdate.y: Include "getdate.h" first, as we can now
121027         assume C89 and don't need to worry about 'const'.
121028         Similarly, include "unlocked-io.h" near start, not in middle.
121029         Include <limits.h>.
121030         (textint.value): Use long int rather than int.
121031         (textint.digits): Use size_t rather than int.
121032         (BILLION, LOG10_BILLION): New constants.
121033         (parser_control): New member rel_ns.  Members day_ordinal,
121034         time_zone, month, day, hour, minutes, rel_year, rel_month,
121035         rel_day, rel_hour, rel_minutes, rel_seconds
121036         are now long int, not int.  Member seconds is now struct timespec,
121037         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121038         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121039         not int.
121040         (%union.intval): Now long int, not int.
121041         New member timespec.
121042         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121043         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121044         (spec): Now is a timespec or an item list.
121045         (timespec, items): New nonterminals.
121046         (time, rel, relunit, number, get_date):
121047         Add support for fractional seconds.
121048         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121049         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121050         (to_hour): First arg is now long int, not int.
121051         (to_year): Returns long int, not int.
121052         Don't treat year -70 like 70.
121053         (tm_diff): Returns long int, not int.
121054         (lookup_word): Use bool instead of int when appropriate.
121055         (yylex): Use size_t for count, not int.
121056         Detect overflow when parsing large integer constants.
121057         Add support for fractions.
121058         (get_date): Make pointers 'const' if possible.
121059         Use more-portable code to detect integer overflow.
121060         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121061         Don't use ctime; it's not reliable if the year has >4 digits.
121063         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121064         This is for compatibility with BSD.
121066         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121067         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121068         From coreutils' system.h.
121070         * lib/userspec.c: Don't include "posixver.h".
121071         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121072         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121073         compatible extension.  Simplify code by removing a boolean int
121074         that was always nonzero if a string was nonnull.
121076 2004-03-30  Jim Meyering  <jim@meyering.net>
121078         Merge from coreutils.
121080         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121081         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121082         on some systems one must include <grp.h> before it.
121083         Reported by Christian Krackowizer.
121085 2004-03-30  Jim Meyering  <jim@meyering.net>
121087         Merge from coreutils.
121089         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121091         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121092         an empty input stream.
121094         * lib/readtokens.c: Include <stdbool.h>.
121095         (readtoken): Use `size_t' rather than int/long.
121096         All callers adjusted.
121097         Use `bool' rather than `int' where appropriate.
121098         Use memset rather than an explicit loop.
121099         Use x2nrealloc rather than xrealloc.
121100         Allow the use of `\0' as a delimiter.
121101         (readtokens): Likewise.
121102         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121104 2004-03-30  Jim Meyering  <jim@meyering.net>
121106         * m4/realloc.m4: Remove file, since now it does no more than
121107         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121108         the `configure.ac' section of module/realloc.
121109         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121111 2004-03-30  Bruno Haible  <bruno@clisp.org>
121113         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121114         nonnull.
121116 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121118         Merge changes to getloadavg.c from coreutils and Emacs.
121120         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121121         Define to an expression, not to the empty string.
121122         Include cloexec.h and xalloc.h.
121123         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121124         Use set_cloexec_flag rather than rolling our own.
121125         * lib/cloexec.c, lib/cloexec.h: New files.
121127 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121129         * m4/cloexec.m4: New file.
121131 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121133         * lib/getopt.h: Sync with libc CVS.
121135 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121136             Bruno Haible  <bruno@clisp.org>
121138         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121139         mbswidth.
121141 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121142             Bruno Haible  <bruno@clisp.org>
121144         * lib/mbswidth.h: Include <wchar.h> only if
121145         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121146         <wchar.h>.
121147         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121149 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121151         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121152         Sync with libc CVS.
121153         * lib/getopt_int.h: New file, also synced from libc.
121155 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121157         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121158         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121159         Bring back getopt.c, getopt.h, getopt1.c.
121161 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121163         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121164         All uses changed.  Check for sa_sigaction member; this fixes
121165         a bug first reported by Jason Andrade in
121166         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121168 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121170         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121171         '#if' expressions.  Unlike the code it replaces, it does not
121172         depend on (defined _SC_PAGESIZE).  However, it does depend on
121173         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121174         first reported by Jason Andrade in
121175         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121177 2004-02-25  Simon Josefsson  <jas@extundo.com>
121179         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121181 2004-02-25  Simon Josefsson  <jas@extundo.com>
121183         * lib/strdup.h: New file.
121184         * lib/strdup.c: Include it.
121185         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121186         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121188 2004-02-23  Karl Berry  <karl@gnu.org>
121190         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121191         (from fencepost.gnu.org:/gd/gnuorg).
121193 2004-02-23  Karl Berry  <karl@gnu.org>
121195         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121196         * config/srclist.txt: add maintain/standards documents.
121198 2004-02-18  Bruno Haible  <bruno@clisp.org>
121200         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121201         Reported by Derek Robert Price <derek@ximbiot.com>.
121203 2004-02-16  Karl Berry  <karl@gnu.org>
121205         * config/mkinstalldirs, install-sh: update from automake.
121207 2004-02-06  Karl Berry  <karl@gnu.org>
121209         * m4/po.m4: update from gettext 0.14.1.
121211 2004-02-06  Karl Berry  <karl@gnu.org>
121213         * lib/config.charset: update from gettext 0.14.1.
121215 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121217         Add comments and code, prompted by suggestions from Bruno Haible
121218         for sh-quote.
121219         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121220         describing the enum quoting_style values.
121221         * lib/quotearg.c (quotearg_alloc): New function.
121222         (quotearg_buffer_restyled): Treat lone { and } as special.
121223         Treat = as special.  Work around bug with older shells
121224         that "see" a '\' that is really the 2nd byte of a multibyte char.
121225         Quote empty string with shell_quoting_style.
121227 2004-02-03  Bruno Haible  <bruno@clisp.org>
121229         * m4/pipe.m4: New file, from GNU gettext.
121231 2004-02-03  Bruno Haible  <bruno@clisp.org>
121233         * lib/pipe.h: New file, from GNU gettext.
121234         * lib/pipe.c: New file, from GNU gettext.
121236 2004-01-27  Bruno Haible  <bruno@clisp.org>
121238         * m4/execute.m4: New file, from GNU gettext.
121240 2004-01-27  Bruno Haible  <bruno@clisp.org>
121242         * lib/execute.h: New file, from GNU gettext.
121243         * lib/execute.c: New file, from GNU gettext.
121244         * lib/w32spawn.h: New file, from GNU gettext.
121246 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121248         Merge from diffutils.
121250         * lib/file-type.c (file_type): Add typed memory objects.
121251         * lib/file-type.h (S_TYPEISTMO): New macro.
121253         * lib/c-stack.h (c_stack_action): Remove argv argument.
121254         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121255         (die): Don't calculate message unless segv_action returns.
121256         (get_stack_location, min_address_from_argv, max_address_from_argv,
121257         volatile stack_base, volatile_stack_size): Remove.
121258         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121259         that every segmentation violation is a stack overflow.  (Ouch!)
121260         See Debian bug 136249 (still outstanding) for more info about why
121261         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121263 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121265         Exit-status fix from coreutils.
121267         Use exit_failure consistently in place of EXIT_FAILURE,
121268         so that program exit statuses are consistent on failure.
121270         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121271         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121272         * lib/argmatch.h: Comment fix to match the above.
121273         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121274         Now a macro referring to exit_failure, instead of a separate
121275         variable.  Include "exitfail.h" to get it.
121276         * lib/xstrtol.h: Include "exitfail.h".
121277         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121279         * lib/long-options.c (parse_long_options): Use prototype
121280         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121281         for clarity.
121283 2004-01-21  Jim Meyering  <jim@meyering.net>
121285         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121286         so as not to conflict with a different-sized __mktime_internal
121287         function in GNU libc.
121288         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121289         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121291 2004-01-20  Karl Berry  <karl@gnu.org>
121293         * config/config.guess: update from config.
121295         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121297 2004-01-20  Bruno Haible  <bruno@clisp.org>
121299         Safer stack allocation.
121300         * lib/setenv.c: Include allocsa.h.
121301         (alloca): Remove fallback definition.
121302         (freea): Remove macro.
121303         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121304         instead of freea.
121306 2004-01-20  Bruno Haible  <bruno@clisp.org>
121308         * m4/eealloc.m4: New file, from GNU gettext.
121310 2004-01-20  Bruno Haible  <bruno@clisp.org>
121312         * m4/allocsa.m4: New file, from GNU gettext.
121314 2004-01-20  Bruno Haible  <bruno@clisp.org>
121316         * lib/xallocsa.h: New file, from GNU gettext.
121317         * lib/xallocsa.c: New file, from GNU gettext.
121319 2004-01-20  Bruno Haible  <bruno@clisp.org>
121321         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121323 2004-01-20  Bruno Haible  <bruno@clisp.org>
121325         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121326         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121327         specially.
121329 2004-01-20  Bruno Haible  <bruno@clisp.org>
121331         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121332         patch.
121334 2004-01-20  Bruno Haible  <bruno@clisp.org>
121336         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121338 2004-01-20  Bruno Haible  <bruno@clisp.org>
121340         * lib/eealloc.h: New file.
121342 2004-01-20  Bruno Haible  <bruno@clisp.org>
121344         * lib/binary-io.h: Avoid warnings on Cygwin.
121346 2004-01-20  Bruno Haible  <bruno@clisp.org>
121348         * lib/allocsa.h: New file, from GNU gettext.
121349         * lib/allocsa.c: New file, from GNU gettext.
121351 2004-01-18  Karl Berry  <karl@gnu.org>
121353         * doc/gpl.texi, doc/lgpl.texi: new files.
121355 2004-01-18  Karl Berry  <karl@gnu.org>
121357         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121358         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121360 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121362         Merge from coreutils.
121364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121365         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121366         (gl_DEFAULT_POSIX2_VERSION): Move
121367         the documentation from 'configure' into 'config.hin',
121368         so that 'configure --help' isn't burdened by it and
121369         we don't have to worry about its formatting there.
121370         Reword the documentation so that it's more succinct
121371         and can be run together into a single paragraph.
121372         * m4/same.m4 (gl_SAME): Check for pathconf.
121374 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121376         Merge from coreutils.
121378         * lib/posixver.c: Include posixver.h.
121380         * lib/same.c: Include <stdbool.h>, <limits.h>.
121381         (_POSIX_NAME_MAX): Define if not defined.
121382         (MIN): New macro.
121383         (same_name): If file names are silently truncated, report
121384         that the file names are the same if they are the same after
121385         the silent truncation.
121387         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121388         conversion function.
121389         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121390         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121391         longer needed.
121393 2004-01-15  Jim Meyering  <jim@meyering.net>
121395         Merge from coreutils.
121397         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121398         if no library is required.
121399         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121400         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121401         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121402         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121403         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121404         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121405         value, $ac_cv_search_crypt, if it's "none required".
121406         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121407         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121408         not gl_FUNC_GETLOADAVG.
121409         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121410         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121412 2004-01-15  Jim Meyering  <jim@meyering.net>
121414         Merge from coreutils.
121416         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121417         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121418         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121420         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121421         optional configure-time default.
121423         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121425         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121427 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121429         Merge from coreutils.
121431         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121432         value, $ac_cv_search_nanosleep, if it's "none required".
121434 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121436         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121437         with like-named macro in fnmatch.c.
121438         (EXT): Use an internal constant instead.
121440         Merge fnmatch patches from glibc.
121441         * lib/fnmatch.c (mbsinit): Remove define.
121442         Add libc_hidden_ver (__fnmatch, fnmatch).
121443         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121444         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121446 2004-01-14  Karl Berry  <karl@gnu.org>
121448         * config/install-sh: update from automake.
121450 2004-01-13  Karl Berry  <karl@gnu.org>
121452         * config/install-sh: update from automake.
121454 2004-01-09  Karl Berry  <karl@gnu.org>
121456         * config/install-sh: update from automake.
121458 2004-01-05  Karl Berry  <karl@gnu.org>
121460         * config/config.{sub,guess}: update from config.
121462 2003-12-31  Karl Berry  <karl@gnu.org>
121464         * config/depcomp: update from automake.
121466 2003-12-14  Karl Berry  <karl@gnu.org>
121468         * lib/config.charset: update from gettext-runtime.
121470 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121472         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121473         Bug reported by Alfred M. Szmidt.
121475 2003-12-03  Bruno Haible  <bruno@clisp.org>
121477         * m4/gettext.m4: Upgrade from gettext-0.13.
121478         * m4/po.m4: Upgrade from gettext-0.13.
121479         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121480         * m4/intmax.m4: New file, from gettext-0.13.
121481         * m4/printf-posix.m4: New file, from gettext-0.13.
121483 2003-11-29  Karl Berry  <karl@gnu.org>
121485         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121487 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121488             Bruno Haible  <bruno@clisp.org>
121490         * lib/printf-parse.h: Don't include sys/types.h.
121491         (ARG_NONE): New macro.
121492         (char_directive): Change type of *arg_index fields to size_t.
121493         * lib/printf-parse.c: Don't include sys/types.h.
121494         (SSIZE_MAX): Remove macro.
121495         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121496         Remove unnecessary overflow check.
121497         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121498         fields.
121500 2003-11-25  Bruno Haible  <bruno@clisp.org>
121502         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121504 2003-11-25  Bruno Haible  <bruno@clisp.org>
121506         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121507         gt_TYPE_SSIZE_T.
121509 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121511         * modules/alloca: Remove dependency on xalloc.
121513 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121515         * lib/alloca.c: Remove dependency on xalloc module.
121516         (xalloc_die): Remove.
121517         (memory_full) [!defined emacs]: New macro.
121518         [!defined emacs]: Don't include xalloc.h.
121519         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121520         address arithmetic overflows.  Change datatypes a bit to avoid
121521         unnecessary casts.
121523 2003-11-22  Jim Meyering  <jim@meyering.net>
121525         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121526         s/size/size_t/.
121528 2003-11-21  Karl Berry  <karl@gnu.org>
121530         * config/config.{sub,guess}: update from config.
121532 2003-11-18  Karl Berry  <karl@gnu.org>
121534         * config/config.{sub,guess}: update from config.
121536         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121538 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121540         * README: Mention that S+T cannot overflow if S is the size of
121541         an existing object and T is sufficiently small.
121543 2003-11-17  Jim Meyering  <jim@meyering.net>
121545         On systems without utime and without a utimes function capable of
121546         dealing with a NULL struct utimbuf* argument, this utime replacement
121547         could -- in unusual circumstances -- leak a file descriptor.
121548         * lib/utime.c: Include <unistd.h> and <errno.h>.
121549         (utime_null): Be sure to close `fd' and to preserve errno.
121550         Reported by Geoff Collyer via Arnold Robbins.
121552 2003-11-17  Bruno Haible  <bruno@clisp.org>
121554         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121555         (Depends-on): Add xsize.
121557 2003-11-17  Bruno Haible  <bruno@clisp.org>
121559         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121561 2003-11-17  Bruno Haible  <bruno@clisp.org>
121563         * lib/vasnprintf.c (alloca): Remove fallback definition.
121564         (freea): Remove definition.
121565         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121566         Reported by Paul Eggert.
121568 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121569             Bruno Haible  <bruno@clisp.org>
121571         Protect against address arithmetic overflow.
121572         * lib/printf-args.h: Include stddef.h.
121573         (arguments): Change type of field 'count' to size_t.
121574         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121575         'unsigned int' where appropriate.
121576         * lib/printf-parse.h: Include sys/types.h.
121577         (char_directive): Change type of *arg_index fields to ssize_t.
121578         (char_directives): Change type of fields 'count', max_*_length to
121579         size_t.
121580         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121581         (SSIZE_MAX): Define fallback value.
121582         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121583         instead of 'int' where appropriate. Check a_allocated, d_allocated
121584         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121585         * lib/vasnprintf.c: Include xsize.h.
121586         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
121587         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
121588         overflow. Avoid wraparound when converting a width or precision from
121589         decimal to binary.
121591 2003-11-16  Bruno Haible  <bruno@clisp.org>
121593         Update from GNU gettext.
121594         * lib/printf-parse.c: Generalize to it can be compiled for wide
121595         strings.
121596         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
121597         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
121598         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
121599         SNPRINTF): New macros.
121600         Don't include <alloca.h> if the file is used inside libintl.
121601         (local_wcslen): New function, for Solaris 2.5.1.
121602         (VASNPRINTF): Use it instead of wcslen.
121604 2003-11-16  Bruno Haible  <bruno@clisp.org>
121606         * lib/xsize.h (xmax): New function.
121607         (xsum, xsum3, xsum4): Declare as "pure" functions.
121609 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121611         * modules/xalloc (Files): Undo latest change, since xalloc.h
121612         no longer needs SIZE_MAX or PTRDIFF_MAX.
121614 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121616         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
121617         gl_PTRDIFF_MAX.
121619 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121621         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
121622         "return", to pacify some unknown compiler.  Problem reported
121623         by Joerg Schilling.
121625 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121627         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
121628         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
121629         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
121630         heuristic is just as accurate as far as we know, and it removes a
121631         dependency on size_max.m4 and ptrdiff_max.m4.
121633 2003-11-11  Bruno Haible  <bruno@clisp.org>
121635         * modules/xsize (Files): Add m4/size_max.m4.
121636         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
121638 2003-11-11  Bruno Haible  <bruno@clisp.org>
121640         * m4/size_max.m4: New file.
121641         * m4/ptrdiff_max.m4: New file.
121642         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
121643         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
121644         (gl_XALLOC): Invoke it.
121646 2003-11-11  Bruno Haible  <bruno@clisp.org>
121648         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
121649         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
121650         defined.
121652 2003-11-10  Paul Eggert  <eggert@twinsun.com>
121654         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
121655         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
121656         rejected some allocations of exactly SIZE_MAX - 2 bytes.
121657         From Bruno Haible.
121658         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
121659         not (size_t) -1, since it's defined here.
121661 2003-11-09  Karl Berry  <karl@gnu.org>
121663         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
121665 2003-11-06  Paul Eggert  <eggert@twinsun.com>
121667         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
121668         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
121669         Reject sizes of exactly SIZE_MAX bytes.
121670         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
121671         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
121673 2003-11-05  Bruno Haible  <bruno@clisp.org>
121675         * lib/xsize.h: Include limits.h, to avoid a possible collision with
121676         SIZE_MAX defined in <limits.h> on Solaris.
121678 2003-11-04  Jim Meyering  <jim@meyering.net>
121680         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
121681         variable names, rather than @VAR@.
121682         * modules/poll: Likewise.
121684 2003-11-04  Bruno Haible  <bruno@clisp.org>
121686         * modules/xsize: New file.
121687         * modules/linebreak: Depend on xsize.
121688         * MODULES.html.sh (func_all_modules): Add xsize.
121690 2003-11-04  Bruno Haible  <bruno@clisp.org>
121692         * m4/xsize.m4: New file.
121694 2003-11-04  Bruno Haible  <bruno@clisp.org>
121696         * lib/xsize.h: New file.
121697         * lib/linebreak.c: Include xsize.h.
121698         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
121699         argument for overflow.
121700         Suggested by Paul Eggert.
121702 2003-11-03  Karl Berry  <karl@gnu.org>
121704         * config/config.{guess,sub}: update from config.
121706 2003-11-03  Jim Meyering  <jim@meyering.net>
121708         * modules/userspec (lib_SOURCES): Add userspec.h.
121709         (Include): Add "userspec.h".
121710         Improve description.
121712 2003-11-03  Jim Meyering  <jim@meyering.net>
121714         * lib/userspec.c: Include "userspec.h".
121715         * lib/userspec.h: New file.
121717 2003-11-03  Bruno Haible  <bruno@clisp.org>
121719         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
121721 2003-11-03  Bruno Haible  <bruno@clisp.org>
121723         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
121724         available, to avoid (extremely rare) race condition.
121725         Suggested by Paul Eggert.
121727 2003-11-02  Karl Berry  <karl@gnu.org>
121729         * config/srclist.txt (vasprintf.c): sync broken, sigh.
121731 2003-10-31  Paul Eggert  <eggert@twinsun.com>
121733         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
121734         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
121735         (read_filesystem_list): Set and use me_type_malloced.
121736         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
121737         whatever the type happens to be), for brevity and consistency.
121738         Check for size calculation overflow on Alphas running OSF/1.
121740 2003-10-31  Jim Meyering  <jim@meyering.net>
121742         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
121744         * lib/linebuffer.c: Include <string.h> for declaration of memset.
121746 2003-10-30  Paul Eggert  <eggert@twinsun.com>
121747             Bruno Haible  <bruno@clisp.org>
121749         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
121750         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
121752 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
121754         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
121755         netbsd*-gnu*.  Suggested by Robert Millan.
121757 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121759         * modules/group-member: Depend on stdbool.
121761 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121763         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
121765 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121767         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
121768         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
121769         after the 'gnu' in these cases.  This fixes some bugs in the
121770         previous change, and is based on suggestions by Robert Millan.
121772 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121774         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
121775         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
121776         no longer needed.
121777         * lib/quotearg.c (quotearg_n_options): Use it.
121778         * lib/group-member.c: Include <stdbool.h>.
121779         (free_group_info): Arg is now const *; don't free arg.
121780         (get_group_info): Now returns bool and accepts struct group_info *,
121781         rather than returning a malloc'ed struct group_info *.
121782         All uses changed.  Check for overflow in internal size calculation.
121784         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
121785         rather than xmalloc/xrealloc.
121786         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
121787         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
121788         conformance bug: the old code used a pointer after freeing the
121789         storage that it addressed.
121790         * lib/hash.c (hash_initialize): Simplify the code by using
121791         xalloc_oversized rather than doing it by hand.
121792         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
121793         the buffer preserved.  Use free and xmalloc instead.
121794         * lib/quotearg.c (quotearg_n_options): Likewise.
121795         Use a simpler test for size overflow.  Don't use xalloc_oversized
121796         because unsigned int might be wider than size_t (!); this suggests
121797         that we should switch from unsigned int to size_t for slot numbers.
121799 2003-10-28  Paul Eggert  <eggert@twinsun.com>
121801         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
121802         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
121803         NetBSD kernels.  Requested by Richard Stallman.
121805 2003-10-27  Paul Eggert  <eggert@twinsun.com>
121807         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
121808         to allocate the returned structure.  Do not allocate a subarray,
121809         as x2nrealloc will do that.
121810         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
121811         instead of xnrealloc.
121812         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
121814 2003-10-27  Bruno Haible  <bruno@clisp.org>
121816         * lib/stdbool_.h: Better support for BeOS.
121818 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121820         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
121821         now uses inline.
121823 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121825         * lib/xalloc.h (xalloc_oversized): New static inline function, for
121826         callers that want to do their own size-overflow checking.  Include
121827         <stdbool.h>, since xalloc_oversized returns bool.
121828         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
121829         to use xalloc_oversized.
121831         Add two functions x2realloc, x2nrealloc, for programs that grow
121832         arrays dynamically by doubling their sizes.
121833         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
121834         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
121835         New functions.
121837         Port to C99 semantics for 'inline' of external functions.
121838         Bug reported by Bruno Haible.
121839         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
121840         with the old contents of xnmalloc.
121841         (xnmalloc, xmalloc): Use it.
121842         (xnrealloc_inline): New static inline function,
121843         with the old contents of xnrealloc.
121844         (xnrealloc, xrealloc): Use it.
121846         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
121847         that.
121849 2003-10-26  Karl Berry  <karl@gnu.org>
121851         * config/srclist.txt (COPYING.DOC): no longer available from
121852         /gd/gnuorg; don't know where the ultimate source is.
121854 2003-10-25  Paul Eggert  <eggert@twinsun.com>
121856         Fix several address-calculation bugs in the hash modules,
121857         plus some minor code cleanup.
121859         * lib/hash.h: Include <stdbool.h>, for bool.
121860         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
121861         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
121862         hash_get_n_entries, hash_get_max_bucket_length,
121863         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
121864         hash_rehash): Use size_t rather than unsigned.
121865         * lib/hash.c (struct hash_table, hash_get_n_buckets,
121866         hash_get_n_buckets_used, hash_get_n_entries,
121867         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
121868         hash_get_entries, hash_do_for_each, hash_string, is_prime,
121869         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
121870         Likewise.
121871         (SIZE_MAX): Define if not defined.
121872         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
121873         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
121874         hash_print):
121875         Use const * when possible.
121876         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
121877         (check_tuning): Fix bug: if tuning parameters were very close to
121878         0 or 1, rounding errors could have caused subscript violations.
121879         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
121880         (hash_initialize): Add 'fail:' label
121881         to free table and return NULL, and use it to simplify code.
121882         Use calloc rather than clearing the storage ourself.
121883         (hash_initialize, hash_rehash): Check for arithmetic overflow in
121884         buffer size calculations.
121885         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
121886         Include <stddef.h>, for size_t.
121887         * lib/hash-pjw.c (hash_pjw): Likewise.
121888         Switch to method described by Bruno Haible.
121889         Include <limits.h>, for CHAR_BIT.
121890         (SIZE_BITS): New macro.
121892 2003-10-23  Paul Eggert  <eggert@twinsun.com>
121894         * m4/getline.m4 (AM_FUNC_GETLINE):
121895         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
121896         hosts.  Problem reported by Derek Robert Price in
121897         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
121898         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
121899         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
121901 2003-10-21  Paul Eggert  <eggert@twinsun.com>
121903         * lib/getndelim2.c (getndelim2): When size calculation overflows,
121904         ceiling the allocation at NMAX bytes rather than silently
121905         discarding input bytes before NMAX is reached.  This makes
121906         a difference only if NMAX exceeds SIZE_MAX / 2.
121908         * lib/obstack.c: Merge from glibc.
121909         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
121910         Add libc_hidden_def (_obstack_newchunk).
121911         (_obstack_free) [! defined _LIBC]: Remove.
121912         [defined _LIBC]: Make a strong alias from obstack_free, rather than
121913         a clone of the function body.
121914         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
121915         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
121917         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
121918         glibc.
121919         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
121920         arg to memcpy.
121922         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
121923         (obstack_ptr_grow_fast, obstack_int_grow_fast):
121924         Don't use lvalue casts, as GCC plans to remove support for them
121925         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
121926         was also present in the non-GCC version, indicating that this
121927         code had always been buggy and had never been widely used.
121928         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
121929         Use the fast variant of each macro, rather than copying the
121930         definiens of the fast variant; that way, we'll be more likely to
121931         catch future bugs in the fast variants.
121933 2003-10-20  Bruno Haible  <bruno@clisp.org>
121935         * modules/wait-process: New file.
121936         * MODULES.html.sh (func_all_modules): Add wait-process.
121938 2003-10-20  Bruno Haible  <bruno@clisp.org>
121940         * m4/wait-process.m4: New file.
121942 2003-10-20  Bruno Haible  <bruno@clisp.org>
121944         * lib/wait-process.h: New file, from GNU gettext.
121945         * lib/wait-process.c: New file, from GNU gettext.
121947 2003-10-19  Jim Meyering  <jim@meyering.net>
121949         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
121950         HPUX 10.20.
121952 2003-10-18  Karl Berry  <karl@gnu.org>
121954         * config/config.guess: update from config.
121956 2003-10-16  Paul Eggert  <eggert@twinsun.com>
121958         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
121959         (getgroups): First arg is int, not size_t.
121960         Don't let 'free' mangle errno.
121962 2003-10-16  Paul Eggert  <eggert@twinsun.com>
121964         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
121966 2003-10-16  Karl Berry  <karl@gnu.org>
121968         * config/config.{guess,sub}: update from config.
121970 2003-10-16  Jim Meyering  <jim@meyering.net>
121972         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
121973         memcpy.
121975 2003-10-15  Paul Eggert  <eggert@twinsun.com>
121977         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
121978         (SIZE_MAX): Remove.
121979         (new_exclude, add_exclude_file): Initial size no longer needs to
121980         be a power of 2.
121981         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
121982         our own address arithmetic overflow checking.
121984         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
121985         (fnmatch): Do not alloca more than 2000 wide characters;
121986         instead, use malloc for large buffers.
121987         Check for address arithmetic overflow, and return -1
121988         with errno set to ENOMEM in that case.
121989         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
121990         (NEW_PATTERN): Do not alloca more than 8000 bytes;
121991         instead, return -1.  Check for address arithmetic overflow.
121993 2003-10-14  Paul Eggert  <eggert@twinsun.com>
121995         Handle invalid suffixes and overflow independently, so that
121996         callers can treat them independently as needed.  Fix some bugs in
121997         suffix handling, e.g., "100k@" was not diagnosed as an invalid
121998         suffix for a human-readable blocksize.  The major caller-visible
121999         change is the addition of a new
122000         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122001         that both overflow and suffix chars were found.
122003         * lib/human.c (humblock): Don't check separately for invalid suffix
122004         char; that is xstrtoumax's job (now that its bug is fixed).
122005         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122006         INTMAX_MAX]: New macros.
122007         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122008         TYPE_MAXIMUM): New macros.
122009         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122010         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122011         if overflow occurs, as it's what __strtol does and it's more useful
122012         in practice.
122013         (__xstrtol): If __strtol reports some error other than ERANGE,
122014         reflect it to the caller as LONGINT_INVALID.  If it reports
122015         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122016         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122017         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122018         value.
122019         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122020         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122021         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122022         [defined UINTMAX_MAX]: New macros.
122024 2003-10-14  Bruno Haible  <bruno@clisp.org>
122026         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122028 2003-10-14  Bruno Haible  <bruno@clisp.org>
122030         * m4/sig_atomic_t: New file, from GNU gettext.
122031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122033 2003-10-14  Bruno Haible  <bruno@clisp.org>
122035         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122036         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122037         Also use volatile where needed.
122039 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122041         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122042         Change maintainer from Bruno Haible to 'all'.
122044 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122046         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122048 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122050         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122051         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122052         and define in terms of the other primitives.
122053         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122054         (SIZE_MAX): Define if not already defined.
122055         (array_size_overflow): New function.
122056         (xalloc_die): Abort instead of exiting if 'error' returns.
122057         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122058         (xmalloc, xrealloc): Use them.
122059         (xcalloc): Check for address arithmetic overflow.
122060         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122061         a bit faster than strcpy.
122063 2003-10-10  Simon Josefsson  <jas@extundo.com>
122065         * modules/argp (Depends-on): Add restrict and strcase.
122067 2003-10-10  Simon Josefsson  <jas@extundo.com>
122069         * m4/argp.m4: Add AC_C_INLINE.
122071 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122073         Merge getpass from libc, plus a few fixes.
122075         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122076         Include <stdbool.h>.
122077         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122078         __fsetlocking to empty.
122079         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122080         do include <bits/libc-lock.h>.
122081         Do not include <fcntl.h>; not needed.
122082         [_LIBC]: Include <wchar.h>.
122083         (NOTCANCEL_MODE): New macro.
122084         (flockfile, funlockfile) [_LIBC]: New macros.
122085         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122086         [!_LIBC]: New macros.
122087         (call_fclose): New function.
122088         (getpass): Use it.  Save tty stream separately; this simplifies the
122089         code and makes it more reliable if stdin happens to equal stdout.
122090         Invoke __fsetlocking on tty.
122091         Handle thread cancellation if needed.
122092         Namespace cleanup (use __tcgetattr, __getline).
122093         Use bool for Booleans.
122094         [USE_IN_LIBIO]: Handle wide streams.
122095         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122096         stream might go where.
122098         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122099         doesn't have to include <stdio.h> before us.
122100         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122101         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122102         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122103         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122104         if not declared, so that we can use getpass.c code from libc without
122105         rewriting it.
122106         (flockfile, ftrylockfile, funlockfile): New macros.
122108 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122110         * modules/getpass: Depend on stdbool.
122112 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122116 2003-10-07  Karl Berry  <karl@gnu.org>
122118         * config/config.{guess,sub}: update from config.
122120 2003-10-06  Jim Meyering  <jim@meyering.net>
122121             Bruno Haible  <bruno@clisp.org>
122123         This lets translators provide better translations for the
122124         "Written by ..." part of --version output.
122125         * lib/version-etc.h: Include stdarg.h.
122126         (version_etc_copyright): Declare as readonly.
122127         (version_etc): Make this function variadic with a NULL-terminated list
122128         of author name strings.
122129         (version_etc_va): New declaration.
122130         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122131         (version_etc_copyright): Declare as readonly.
122132         (version_etc_va): New function. Provide a different translatable string
122133         for each possible number of authors < 10. Abbreviate when there are 10
122134         authors or more.
122135         (version_etc): Make this function variadic. Call version_etc_va.
122136         Suggestion from Gary V. Vaughan.
122138         * lib/long-options.h (parse_long_options): Change prototype: the
122139         authors string is moved to the end and becomes variadic.
122140         * lib/long-options.c: Include stdarg.h.
122141         (parse_long_options): Make this function variadic, too.
122142         Call version_etc_va, not version_etc.
122144 2003-10-06  Bruno Haible  <bruno@clisp.org>
122146         * modules/version-etc-2: Remove file.
122147         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122149 2003-10-06  Bruno Haible  <bruno@clisp.org>
122151         * modules/fatal-signal: New file.
122152         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122154 2003-10-06  Bruno Haible  <bruno@clisp.org>
122156         * m4/fatal-signal.m4: New file.
122157         * m4/signalblocking.m4: New file, from GNU gettext.
122159 2003-10-06  Bruno Haible  <bruno@clisp.org>
122161         * lib/version-etc-2.h: Remove file.
122162         * lib/version-etc-2.c: Remove file.
122164 2003-10-06  Bruno Haible  <bruno@clisp.org>
122166         * lib/fatal-signal.h: New file, from GNU gettext.
122167         * lib/fatal-signal.c: New file, from GNU gettext.
122169 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122171         * README: Rework advice for preventing empty .o files.
122172         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122173         not <sys/types.h>.
122175 2003-10-04  Karl Berry  <karl@gnu.org>
122177         * lib/argp*: update from libc.
122179 2003-10-04  Karl Berry  <karl@gnu.org>
122181         * config/config.{guess,sub}: update from config.
122183 2003-10-02  Bruno Haible  <bruno@clisp.org>
122185         * modules/lchown (Include): Add lchown.h.
122186         * modules/time_r (Include): Use "..." syntax.
122187         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122189 2003-10-01  Simon Josefsson  <jas@extundo.com>
122191         * MODULES.html.sh (func_all_modules): Move gethostname from section
122192         'based on' to section 'lacking' POSIX:2001.
122194 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122196         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122197         to output mode on the same stream.
122199 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122201         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122202         Fix arg typo in previous patch.
122204 2003-09-28  Jim Meyering  <jim@meyering.net>
122206         * lib/error.c: Correct cpp indentation.
122208 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122210         * modules/free: New file.
122212 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122214         * m4/free.m4: New file.
122216 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122218         * lib/minmax.h (MIN, MAX)
122219         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122220         Omit the special code that used __typeof__, since we worry that
122221         it could be more trouble than it's worth.  See:
122222         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122223         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122225         * lib/free.c: New file.
122227 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122229         Trivial fixes to Makefile.am parts of module listings.
122230         * modules/strstr: Append strstr.h to lib_SOURCES.
122231         * modules/strcase: Likewise, for strcase.h.
122233 2003-09-27  Karl Berry  <karl@gnu.org>
122235         * config/mkinstalldirs: update from automake.
122237 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122239         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122240         (error_tail): Do not loop, reallocating temporary buffer, since
122241         the output cannot contain more wide characters than the input
122242         contains bytes, the size must be big enough already.  This avoids
122243         one potential size overflow calculation.  Check for size overflow
122244         when calculating temporary buffer size.  Free temporary buffer
122245         when done, if it was allocated with malloc; this plugs a memory
122246         leak.  Remove casts from void * to pointers, that are no longer
122247         needed now that we're assuming C89 or better.
122249         Merge error changes from glibc.
122251         * lib/error.c, error.h: Update copyright notice header to match glibc.
122252         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122253         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122254         Disable cancellation while printing error.
122255         * lib/error.h: Prepend __ to parameter names.
122257 2003-09-26  Jim Meyering  <jim@meyering.net>
122259         * lib/error.c (error_tail): Move some declarations
122260         into inner scope where the local variables are used.
122262 2003-09-26  Bruno Haible  <bruno@clisp.org>
122264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122265         stpncpy().
122266         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122268 2003-09-26  Bruno Haible  <bruno@clisp.org>
122270         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122271         (stpncpy): Define as alias for gnu_stpncpy.
122272         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122274 2003-09-25  Simon Josefsson  <jas@extundo.com>
122276         * lib/xgetdomainname.h: New file.
122277         * lib/xgetdomainname.c: New file.
122279 2003-09-25  Simon Josefsson  <jas@extundo.com>
122280             Bruno Haible  <bruno@clisp.org>
122282         * modules/getdomainname: New file.
122283         * modules/xgetdomainname: New file.
122284         * MODULES.html.sh (func_all_modules): Add getdomainname,
122285         xgetdomainname.
122287 2003-09-25  Simon Josefsson  <jas@extundo.com>
122288             Bruno Haible  <bruno@clisp.org>
122290         * m4/getdomainname.m4: New file.
122292 2003-09-25  Simon Josefsson  <jas@extundo.com>
122293             Bruno Haible  <bruno@clisp.org>
122295         * lib/getdomainname.h: New file.
122296         * lib/getdomainname.c: New file.
122298 2003-09-25  Karl Berry  <karl@gnu.org>
122300         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122302 2003-09-25  Karl Berry  <karl@gnu.org>
122304         * config/install-sh: update from automake.
122306 2003-09-25  Bruno Haible  <bruno@clisp.org>
122308         * modules/version-etc-2: New file, from modules/version-etc with
122309         modifications.
122310         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122312 2003-09-25  Bruno Haible  <bruno@clisp.org>
122314         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122315         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122317 2003-09-24  Simon Josefsson  <jas@extundo.com>
122319         * modules/xgethostname: Add xgethostname.h.
122321 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122323         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122324         the buffer associated with the argument.  Bug reported by
122325         Simon Josefsson.
122327 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122329         * README: Document assumptions that 'int' is at least 32 bits
122330         wide, that integer arithmetic is 2's complement without overflow,
122331         that there are no holes in integer values, that adding sizes of
122332         two nonoverlapping objects can't overflow, and that all-bits-zero
122333         yields scalar zero.  Fix spelling and capitalization typos.
122335 2003-09-19  Karl Berry  <karl@gnu.org>
122337         * lib/argp.h: update from libc.
122339 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122341         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122342         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122343         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122345 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122347         * gnulib-tool: Use "test -h", not "test -L", for portability
122348         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122349         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122350         (sed_extract_prog): Issue s commands one-by-one, rather than
122351         using \| in one s command.
122353 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122355         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122356         input error, instead of returning NULL the next time we are called
122357         (and therefore losing track of errno).
122359 2003-09-16  Bruno Haible  <bruno@clisp.org>
122361         * gnulib-tool (func_create_testdir): Warn about duplicated
122362         dependencies.
122364 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122366         * modules/argmatch, modules/fatal, modules/obstack,
122367         modules/xalloc, modules/xgethostname: Sort dependencies by
122368         importance, not alphabetically.
122370 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122372         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122373         fails, so that the caller gets the proper errno.
122375         * lib/readutmp.c (read_utmp): Likewise.
122376         Check for fstat error.  Close stream and free storage
122377         when failing.
122379 2003-09-14  Karl Berry  <karl@gnu.org>
122381         * config/srclist.txt (strdup.c): disable for c89 changes.
122383 2003-09-14  Jim Meyering  <jim@meyering.net>
122385         * lib/getloadavg.c: Correct cpp indentation.
122386         * lib/strdup.c: Likewise.
122387         * lib/vasnprintf.c: Likewise.
122389 2003-09-14  Bruno Haible  <bruno@clisp.org>
122391         * modules/fwriteerror: New file.
122392         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122394 2003-09-14  Bruno Haible  <bruno@clisp.org>
122396         * lib/fwriteerror.h: New file.
122397         * lib/fwriteerror.c: New file.
122399 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122401         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122402         modules/xgethostname, modules/xalloc: Depend on exit.
122404 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122406         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122409         and AC_MINIX, too, so that their extensions are available.
122411         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122412         This macro has been superseded by gl_BACKUPFILE.
122414         More patches to assume C89 or better.
122416         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122418         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122419         unconditionally.
122420         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122421         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122422         Include <string.h>, <stdlib.h> unconditionally.
122423         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122424         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122425         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122426         headers or for string.h.
122427         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122428         or strtoul.
122430         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122431         headers.
122432         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122433         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122434         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122435         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122437         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122438         memcpy, memset.
122439         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122440         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122441         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122442         strtol.
122443         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122444         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122446         strtoul.
122448 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122450         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122451         * lib/obstack.c [!defined _LIBC]: Likewise.
122452         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122453         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122454         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122456         More changes to assume C89 or better.
122458         * lib/error.c (error_tail): Assume vprintf.
122460         * lib/argmatch.c (getenv): Remove decl.
122461         * lib/progreloc.c (get_full_program_name): Define via prototype.
122462         * lib/setenv.c (clearenv): Likewise.
122463         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122464         needed.
122465         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122466         (malloc, memcpy): Remove decls.
122467         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122468         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122469         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122470         (memcpy): Remove macro.
122471         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122472         (__P): Remove.  All uses removed.
122473         (PTR): Remove.  All uses changed to void *.
122474         (CHAR_BIT, NULL): Remove.
122475         (spaces, zeros, memset_space, memset_zero)
122476         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122477         Remove.
122478         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122479         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122480         Define with prototype.
122481         Remove now-unnecessary prototype decl.
122482         (extra_args_spec): Assume ANSI C.  All uses changed.
122483         (extra_args_spec_iso): Remove.
122484         (my_strftime, emacs_strftimeu): Define via prototype.
122485         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122486         unconditionally.
122487         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122488         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122489         (strtoul, strtol): Remove decls.
122490         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122491         LONG_MAX): Remove.
122492         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122493         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122494         (LOCALE_PARAM_PROTO): New macro.
122495         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122496         (INTERNAL (strtol), strtol): Define with a prototype.
122497         (PARAMS): Remove.  All uses removed.
122498         * lib/tempname.c: Include <string.h> unconditionally.
122499         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122500         * lib/xgethostname.c (main): Define with a prototype.
122501         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122502         Include <stdlib.h> unconditionally.
122503         (calloc, malloc, realloc, free): Remove decls.
122504         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122505         Include <stdlib.h> unconditionally.  Sort include file names.
122506         (strtod): Remove.
122507         (xstrtod): Define with a prototype.
122508         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122509         (strtol, strtoul): Remove decls.
122511 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122513         More patches to assume C89 or better.
122514         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122515         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122516         string.h, memchr, STDC_HEADERS.
122518 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122520         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122521         Include <stdlib.h>, <string.h> unconditionally.
122522         Remove now-unnecessary cast to char *.
122523         * lib/strnlen.c: Include <string.h> unconditionally.
122524         * lib/yesno.c (yesno): Define with a prototype.
122526 2003-09-11  Bruno Haible  <bruno@clisp.org>
122528         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122530 2003-09-10  Jim Meyering  <jim@meyering.net>
122532         * lib/error.c: Correct indentation of cpp directives.
122534 2003-09-10  Bruno Haible  <bruno@clisp.org>
122536         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122537         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122538         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122539         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122540         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122541         <stdlib.h> and <string.h> checks.
122542         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122543         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122545 2003-09-10  Bruno Haible  <bruno@clisp.org>
122547         * lib/strcspn.c: Include <string.h> unconditionally.
122548         * lib/strpbrk.c: Include <string.h> unconditionally.
122549         * lib/strstr.c: Include <string.h> unconditionally.
122550         * lib/unicodeio.c: Include <string.h> unconditionally.
122551         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122552         * lib/unsetenv.c: Likewise.
122553         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122554         * lib/yesno.c: Include <stdlib.h> unconditionally.
122555         (rpmatch): Add prototype.
122557 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122559         More patches to assume C89 or better.
122560         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122561         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122562         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122563         or for string.h.
122564         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122565         stdlib.h.
122566         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122567         C headers.
122568         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122569         string.h.
122570         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122571         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122572         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122573         or for string.h.
122574         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122575         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122576         C headers.
122577         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122578         memcpy.
122579         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122580         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122581         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122582         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122583         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122584         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122585         string.h, free.
122586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
122587         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
122588         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
122589         C headers, or for string.h.
122590         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
122591         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
122592         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
122593         headers, memory.h, stdlib.h, string.h, strings.h.
122594         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
122595         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
122596         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
122597         strchr.
122598         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
122599         headers, memory.h, string.h.
122600         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
122601         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
122602         free.
122603         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
122604         headers.
122605         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
122606         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
122607         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
122608         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
122609         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
122611 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122613         More K&R removal.
122615         * lib/acosl.c (main): Use a prototype.
122616         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
122617         tanl.c: Likewise.
122619         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
122621         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
122622         (getopt, etopt_long, getopt_long_only, _getopt_internal)
122623         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
122624         with a prototype.
122625         * lib/getopt.c (const): Remove macro.
122626         Include <string.h> unconditionally.
122627         (my_index): Remove; all uses changed to strchr.
122628         (strlen): Remove decl.
122629         (exchange): Remove forward decl; no longer needed.
122630         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
122631         Define with prototype.
122632         * lib/getopt1.c (const): Remove macro.
122633         (getopt_long, getopt_long_only, main): Define with prototype.
122635         * lib/getugroups.c: Include <string.h> unconditionally.
122637         * lib/getusershell.c: Include <stdlib.h> unconditionally.
122638         (getusershell, setusershell, endusershell, readname, main):
122639         Define with prototypes.
122641         * lib/group-member.c: Include group-member.h first.
122642         Include <stdlib.h> unconditionally.
122644         * lib/hard-locale.c: Include hard-locale.h first.
122645         Include <stdlib.h>, <string.h> unconditionally.
122647         * lib/hash.c (free, malloc): Remove decls.
122648         Include <stdlib.h> unconditionally.
122650         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
122651         (getenv): Do not declare.
122653         * lib/idcache.c: Include <string.h> unconditionally.
122655         * lib/long-options.c: Include long-options.h first, to test interface.
122656         Include <stdlib.h> unconditionally.
122658         * lib/makepath.c: Include makepath.h first, to test interface.
122659         Include <stdlib.h> and <string.h> unconditionally.
122661         * lib/linebuffer.c: Include <stdlib.h>.
122662         (free): Remove decl.
122664         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
122665         stddef.h. rpl_malloc returns void *, not char *.
122666         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
122667         prototype.
122669         * lib/md5.h: Include <limits.h> unconditionally.
122670         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
122671         (__P): Remove; all uses removed.
122672         * lib/md5.c: Include "md5.h" first.
122673         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
122674         md5_buffer, md5_process_bytes, md5_process_block):
122675         Define with prototypes.
122676         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
122677         * lib/sha.c: Include "sha.h" first.
122678         Include <stdlib.h>, <string.h> unconditionally.
122680         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
122681         * lib/memcmp.c (__ptr_t): Likewise.
122682         * lib/memrchr.c (__ptr_t): Likewise.
122683         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
122684         Include <string.h> unconditionally.
122685         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
122686         * lib/memchr.c: Include <stdlib.h> unconditionally.
122687         * lib/memchr.c (LONG_MAX): Remove.
122688         * lib/memrchr.c (LONG_MAX): Likewise.
122689         * lib/memchr.c (__memchr): Define via a prototype.
122690         * lib/memrchr.c (__memrchr): Likewise.
122691         * lib/memcmp.c (__P): Remove, and remove all uses.
122692         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
122693         Remove forward decls; no longer needed.
122694         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
122695         Use types required by C89 in prototype.
122697         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
122698         * lib/savedir.c: Likewise.
122699         * lib/mkdir.c (free): Remove decl.
122700         * lib/rmdir.c (rmdir): Define with a prototype.
122701         * lib/savedir.c: Include savedir.h first, to test interface.
122703         * lib/mktime.c (STDC_HEADERS): Remove.
122704         Include <stdlib.h>, <string.h> unconditionally.
122706         * lib/modechange.c: Include <stdlib.h> unconditionally.
122707         (malloc): Remove decl.
122709         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
122710         (free): Remove decl.
122712         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
122713         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
122714         (This type really should be intptr_t, but that's a C99ism.)
122715         (_obstack_memcpy): Remove: all uses changed to memcpy.
122716         Include <string.h> unconditionally.
122717         (struct obstack): Assume __STDC__ for types of members
122718         chunkfun, freefun, extra_arg.
122719         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
122720         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
122721         obstack_begin, obstack_specify_allocation,
122722         obstack_specify_allocation_with_arg, obstack_chunkfun,
122723         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
122724         Remove unprototyped decls and the macros that use them.
122725         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
122726         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
122727         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
122728         (defined __STDC__ && __STDC__)]:
122729         Remove nonprototyped code.
122730         Include <stdlib.h> unconditionally.
122731         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
122732         _obstack_allocated_p, _obstack_free, obstack_free,
122733         _obstack_memory_used, print_and_abort):
122734         Define using prototypes.
122735         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
122736         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
122737         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
122738         obstack_next_free, obstack_object_size, obstack_room) [0]:
122739         Remove unused, unprototyped code.
122741         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
122743         * lib/physmem.c (physmem_total, physmem_available, main): Define
122744         with prototypes.
122746         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
122747         (main): Define with a prototype.
122749         * lib/posixver.c (getenv): Remove decl.
122751         * lib/putenv.c (malloc): Returns void *, not char *.
122752         Include <string.h> unconditionally.
122753         (strchr, memcpy, NULL): Do not define.
122755         * lib/readtokens.c: Include readtokens.h first, to test interface.
122756         Include <stdlib.h>, <string.h> unconditionally.
122757         (init_tokenbuffer): Define with a prototype.
122759         * lib/regex.c (PARAMS): Remove.  All uses removed.
122760         All uses of _RE_ARGS removed, too.
122761         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122762         unconditionally.
122763         (bzero): Assume memset exists.
122764         (memcmp, memcpy, NULL): Remove.
122765         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
122766         char, or assignments to local vars of type signed char.
122767         (init_syntax_once, PREFIX(extract_number_and_incr),
122768         PREFIX(print_partial_compiled_pattern),
122769         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
122770         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
122771         PREFIX(regex_grow_registers), PREFIX(regex_compile),
122772         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
122773         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
122774         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
122775         wcs_compile_range, byte_compile_range, truncate_wchar,
122776         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
122777         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
122778         count_mbs_length, wcs_re_match_2_internal,
122779         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
122780         PREFIX(alt_match_null_string_p),
122781         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
122782         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
122783         regfree, PREFIX(extract_number)): Define with prototype.  Remove
122784         now-unnecessary declaration, if any.
122785         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
122786         regcomp, regexec):
122787         Remove now-unnecessary casts among pointer types.
122788         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
122790         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
122791         (free): Remove decl.
122793         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
122795         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
122796         (free): Remove decl.
122798         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
122799         * lib/xgetcwd.c: Likewise.
122801         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
122802         (free): Remove decl.
122804         * lib/strchrnul.c (strchrnul): Define with a prototype.
122805         Fix bug: c_in was not converted to char before searching.
122807         The following changes are not K&R related:
122809         * lib/group-member.h: Include <sys/types.h>, so that this file is
122810         self-contained.
122811         * lib/makepath.h: Likewise.
122813         * lib/getusershell.c (readname, default_index, line_size, readname):
122814         Use size_t, not int, for sizes.
122815         (readname): If the size overflows, report an error instead of
122816         looping forever.
122818 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122820         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
122821         libc.
122823 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122825         * README: New section: portability guidelines.
122827 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122829         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
122830         C89 spec.
122832 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122834         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
122836 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122838         Assume C89 or better; remove K&R cruft.
122839         A few of these changes were first proposed by Derek Robert Price
122840         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
122842         * lib/addext.c: Include <string.h> unconditionally.
122843         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
122844         Don't declare getenv or malloc.
122846         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
122847         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
122848         (NULL): Remove.
122849         (find_stack_direction, alloca): Use prototypes.
122851         * lib/atexit.c (atexit): Define using a prototype.
122853         * lib/basename.c, dirname.c, stripslash.c:
122854         Include <string.h> unconditionally.
122856         * lib/bcopy.c: Include <stddef.h>.
122857         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
122859         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
122861         * lib/error.h (error, error_at_line, error_print_progname)
122862         [! (defined (__STDC__) && __STDC__)]: Remove decls.
122863         * lib/error.c: Include error.h first, to check interface.
122864         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
122865         (VA_START): Remove; all uses changeed to va_start.
122866         (exit, strerror): Remove decls.
122867         (error_print_progname): Prototype uncondionally.
122868         Don't include <errno.h>; no longer needed.
122869         (private_strerror): Remove.
122870         (error_tail): Always define.
122871         (error, error_at_line): Assume C89 or better; always use prototypes.
122872         * lib/fatal.c: Include "fatal.h" first, to test interface.
122873         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
122874         (VA_START): Remove; all uses changed to va_start.
122875         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
122876         this case.
122877         (exit): Remove decl.
122878         (fatal): Prototype unconditionally.  Assume va_start works.
122879         Abort at end, to pacify gcc.
122881         * lib/euidaccess.c (main): Define with a prototype.
122883         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
122885         * lib/exitfail.c: Include <stdlib.h> unconditionally.
122887         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
122888         prototypes.
122889         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
122890         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
122891         (getenv): Remove decl.
122892         (fnmatch): Define using a prototype.
122893         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
122894         (FCT): Define using a prototype.
122896         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
122898         * lib/gethostname.c: Include <stddef.h>.
122899         (gethostname): Define with prototype.  Length is size_t, not int.
122901 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122903         Assume C89 or better; remove K&R cruft.
122904         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
122905         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
122906         string.h, getenv, malloc.
122907         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
122908         headers.
122909         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
122910         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
122911         do not check for strerror.
122912         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
122913         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
122914         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
122915         do not check for doprnt or vprintf.
122916         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
122917         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
122919 2003-09-08  Paul Eggert  <eggert@twinsun.com>
122921         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
122922         getversion.c should have been removed then, but was accidentally
122923         preserved.
122925         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
122926         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
122928 2003-09-08  Karl Berry  <karl@gnu.org>
122930         * config/config.sub, config.guess, srclistvars.sh: update from savannah
122931                 config, forget about prep.
122933         * config/depcomp, missing: update from automake.
122935 2003-09-07  Paul Eggert  <eggert@twinsun.com>
122937         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
122938         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
122940 2003-09-07  Paul Eggert  <eggert@twinsun.com>
122942         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
122943         copy_tm_result.  Bug reported by Simon Josefsson in
122944         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
122946 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122948         * m4/time_r.m4: New file.
122949         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
122950         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
122951         is. Check for timegm declaration.
122952         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
122953         Do not check for gmtime_r.
122954         Replace mktime if __mktime_internal does not exist and if mktime
122955         hasn't been replaced already.
122957 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122959         * lib/time_r.c, lib/time_r.h: New files.
122961         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
122962         __localtime_r.
122963         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
122964         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
122966         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
122967         __gmtime_r.
122968         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
122969         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
122970         Include <time_r.h>.
122972         * lib/timegm.c: Switch to glibc implementation, with the following
122973         changes:
122974         [defined HAVE_CONFIG_H]: Include <config.h>.
122975         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
122976         (__mktime_internal) [!defined _LIBC]: New decl.
122977         (__gmtime_r) [!defined _LIBC]: New macro and function.
122978         (timegm): Use a prototype, since gnulib assumes C89.
122979         Do not bother declaring tmp to be const, as it's not really usefu.
122980         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
122981         (timegm): Declare only if HAVE_DECL_TIMEGM.
122983 2003-09-06  Paul Eggert  <eggert@twinsun.com>
122985         * MODULES.html.sh (func_all_modules): Add time_r.
122986         * modules/time_r: New file.
122987         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
122988         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
122990 2003-09-03  Paul Eggert  <eggert@twinsun.com>
122992         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
122993         Bug reported by Lute Kamstra in
122994         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
122996         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
122997         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
122998         course with correspondingly smaller numbers for tomorrow and
122999         yesterday.  From Tadayoshi Funaba.  Originally installed into
123000         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123001         coreutils merge?).
123003 2003-08-31  Simon Josefsson  <jas@extundo.com>
123005         * modules/timegm: New file.
123006         * MODULES.html.sh (func_all_modules): Add timegm.
123008 2003-08-31  Simon Josefsson  <jas@extundo.com>
123010         * m4/timegm.m4: New file.
123012 2003-08-31  Simon Josefsson  <jas@extundo.com>
123014         * lib/timegm.h: New file.
123015         * lib/timegm.c: New file.  Based on
123016         wget-1.8.2/src/http.c:mktime_from_utc.
123018 2003-08-31  Karl Berry  <karl@gnu.org>
123020         * lib/argp.h: update from libc.
123022 2003-08-28  Bruno Haible  <bruno@clisp.org>
123024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123025         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123026         followed by '#define fnmatch fnmatch_posix' gives an error.
123028 2003-08-28  Bruno Haible  <bruno@clisp.org>
123030         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123031         warning on QNX, which defines O_BINARY to 000000.
123033 2003-08-27  Jim Meyering  <jim@meyering.net>
123035         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123036         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123037         would fail after 32.  Reported by Danny Levinson.  Details here:
123038         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123040 2003-08-24  Bruno Haible  <bruno@clisp.org>
123042         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123043         MSVC7 <stdio.h> is included later.
123045 2003-08-22  Simon Josefsson  <jas@extundo.com>
123047         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123049 2003-08-20  Karl Berry  <karl@gnu.org>
123051         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123053 2003-08-20  Bruno Haible  <bruno@clisp.org>
123055         * modules/progname: New file.
123056         * MODULES.html.sh (func_all_modules): Add progname.
123058 2003-08-20  Bruno Haible  <bruno@clisp.org>
123060         * lib/progname.h: New file, from GNU gettext.
123061         * lib/progname.c: New file, from GNU gettext.
123062         * lib/progreloc.c: New file, from GNU gettext.
123064 2003-08-19  Jim Meyering  <jim@meyering.net>
123066         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123067         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123069 2003-08-19  Bruno Haible  <bruno@clisp.org>
123071         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123072         more.
123074 2003-08-19  Bruno Haible  <bruno@clisp.org>
123076         * lib/xstrdup.c: Assume <string.h> exists.
123078 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123080         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123081         in makefile rules.
123083 2003-08-18  Jim Meyering  <jim@meyering.net>
123085         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123086         * m4/lib-ld.m4: Likewise.
123088 2003-08-18  Jim Meyering  <jim@meyering.net>
123090         * lib/setenv.h: Indent nested cpp directive.
123091         * lib/vasnprintf.c: Remove trailing blanks.
123093 2003-08-17  Simon Josefsson  <jas@extundo.com>
123095         * modules/xstrndup: New file.
123096         * MODULES.html.sh (func_all_modules): Add xstrndup.
123098 2003-08-17  Simon Josefsson  <jas@extundo.com>
123100         * modules/argp: Fix autoconf macro name. Add more dependencies.
123102 2003-08-17  Simon Josefsson  <jas@extundo.com>
123104         * m4/xstrndup.m4: New file.
123106 2003-08-17  Simon Josefsson  <jas@extundo.com>
123108         * m4/argp.m4: New file.
123110 2003-08-17  Simon Josefsson  <jas@extundo.com>
123111             Bruno Haible  <bruno@clisp.org>
123113         * lib/xstrndup.h: New file.
123114         * lib/xstrndup.c: New file.
123116 2003-08-17  Bruno Haible  <bruno@clisp.org>
123118         * modules/strndup (Files, Include): Add lib/strndup.h.
123120 2003-08-17  Bruno Haible  <bruno@clisp.org>
123122         * modules/euidaccess (Files): Add lib/euidaccess.h.
123124 2003-08-17  Bruno Haible  <bruno@clisp.org>
123126         * lib/strndup.h: New file.
123128 2003-08-17  Bruno Haible  <bruno@clisp.org>
123130         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123131         like AC_GNU_SOURCE.
123132         * modules/extensions (configure.ac): Comment out the invocation of
123133         gl_USE_SYSTEM_EXTENSIONS.
123135 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123137         Merges from coreutils, etc.
123138         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123139         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123140         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123141         fixing a typo.
123142         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123143         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123145 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123147         Document merge from coreutils.
123148         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123149         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123150         * modules/utime: Add m4/utimes-null.m4.
123152 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123154         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123155         space, undoing this 2003-08-12 change:
123156         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123158 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123160         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123161         strtoul.c from libc, undoing this 2003-08-12 change:
123162         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123164 2003-08-16  Jim Meyering  <jim@meyering.net>
123166         Merges from coreutils.
123167         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123168         prefix.  Adjust cache variables similarly.  Create 500 rather than
123169         just 300 files, to exercise bug on Darwin6.5, too.
123170         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123171         $missing_dir.
123172         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123173         AM_SYS_POSIX_TERMIOS.
123174         Reported by mkc@mathdogs.com.
123175         Also change use of $am_cv_sys_posix_termios
123176         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123177         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123178         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123179         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123180         in /proc/mounts until it finds one with matching device number.  This
123181         is unnecessary when the FILE argument *is* a mount point.  No stat call
123182         is necessary in that case.  So, disable the statvfs-testing code on
123183         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123184         as RedHat bug# 84846.
123185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123186         to 1MB, so as not to render systems with no stack size limit (e.g.,
123187         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123188         Include <unistd.h>.  On some systems,
123189         it is required for the definition of _SC_PAGESIZE.
123191 2003-08-16  Jim Meyering  <jim@meyering.net>
123193         Merge from coreutils.
123194         * lib/xstrtoimax.c: #else #if -> #elif.
123195         * lib/xstrtoumax.c: Likewise.
123197 2003-08-16  Jim Meyering  <jim@meyering.net>
123199         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123200         * m4/utimes.m4: Removed.
123201         * m4/utimes-null.m4: Renamed from utimes.m4.
123203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123204         to 1MB, so as not to render systems with no stack size limit (e.g.,
123205         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123206         Include <unistd.h>.  On some systems,
123207         it is required for the definition of _SC_PAGESIZE.
123209 2003-08-16  Jim Meyering  <jim@meyering.net>
123210         and Paul Eggert  <eggert@cs.ucla.edu>
123212         Merges from coreutils, etc.
123214         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123215         using the latest version from cvs.  This avoids problems with #line
123216         directives using a vendor (Sun) compiler.
123217         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123218         Don't set GETGROUPS_LIB here; now it's
123219         done via getgroups.m4's wrapper function.
123220         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123221         rather than just in sh-util/configure.in, so that the
123222         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123223         same.
123224         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123225         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123226         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123227         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123228         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123229         Remove code that is now done by the newly-required macros.
123230         Append $(EXEEXT) to DF_PROG.
123231         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123232         Do not invoke or require the following here,
123233         since prereq.m4 or some gnulib .m4 now does this for us:
123234         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123235         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123236         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123237         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123238         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123239         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123240         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123241         AC_FUNC_OBSTACK.
123242         Do not replace the following functions, as this is now the job
123243         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123244         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123245         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123246         atexit getpass, strdup, getpagesize.
123247         Replace 'raise'.
123248         Do not check for the following functions, as this is now the job
123249         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123250         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123251         setregid.
123252         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123253         Check for sys/sysctl.h.
123254         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123255         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123256         of checking for ssize_t ourselves.
123258         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123259         Require every macro that gnulib/modules/* suggests for us.
123260         (jm_PREREQ_ADDEXT): New macro.
123261         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123262         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123264         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123265         (gl_PHYSMEM): Use it.
123266         Also check for `table' function.
123267         Check for new headers and functions.
123268         Add check for sys/sysmp.h.
123269         With suggestions from Kaveh Ghazi.
123270         Ignore headers that are present but cannot be compiled.  This
123271         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123272         C 5.4.
123274 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123276         Document merge from coreutils.
123277         * modules/userspec: Depend on posixver.
123278         * modules/strftime: Depend on tzset.
123280 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123282         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123283         rather than tab, after '#' in shell-script copyright notices.
123284         Suggested by Bruno Haible.
123286 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123288         * config/srclist-update: Use three spaces, rather than tab, after '#'
123289         in shell-script copyright notices.  Suggested by Bruno Haible.
123290         Remove unnecessary parenthesization in regular expression.
123292 2003-08-15  Jim Meyering  <jim@meyering.net>
123294         Merge from coreutils.
123295         * lib/xgethostname.c: Include <stdlib.h>.
123296         (xghostname): Don't exit for anything other than memory-related
123297         failure; just return NULL.
123298         * lib/userspec.c: Include "posixver.h".
123299         (parse_user_spec): Accept `.' as a separator only
123300         in pre-POSIX-200112 mode.
123301         * lib/strtoimax.c: Use #elif rather than #else #if.
123302         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123303         Remove function, now that we can rely on a working tzset function.
123304         [!_LIBC]: Ensure that the required autoconf test has been run.
123305         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123306         Use underlying_strftime for %r.
123307         * lib/sha.c: Merge in some clean-up and optimization changes from
123308         glibc.
123309         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123310         Ensure that it is a multiple of 64.
123311         Rearrange loop exit tests so as to avoid performing an
123312         additional fread after encountering an error or EOF.
123313         * lib/realloc.c: Update copyright date.
123315 2003-08-15  Jim Meyering  <jim@meyering.net>
123316         and Paul Eggert  <eggert@twinsun.com>
123318         Merge from coreutils.
123319         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123320         member but strut utmpx does not.  Needed for AIX 4.3.3.
123321         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123323 2003-08-15  Jim Meyering  <jim@meyering.net>
123324         and Paul Eggert  <eggert@cs.ucla.edu>
123326         Merges from coreutils, etc.
123327         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123328         Require gl_FUNC_TZSET_CLOBBER.
123329         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123330         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123331         members.
123333 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123335         Help the merge from coreutils.
123336         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123337         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123338         * m4/tzset.m4: Use it too.
123340 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123342         * modules/tzset: New file.
123344 2003-08-14  Jim Meyering  <jim@meyering.net>
123346         Merges from coreutils.
123347         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123348         variable names, rather than @FNMATCH_H@.
123349         * modules/alloca: Likewise for $(ALLOCA_H).
123351         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123352         the three copies of the literal target, `fnmatch.h'.
123353         * modules/alloca (alloca.h): Likewise.
123355 2003-08-14  Jim Meyering  <jim@meyering.net>
123357         Merge from coreutils.
123358         * m4/tzset.m4: New file.
123359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123360         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123361         otherwise, AIX 5.1 systems would end up using the latter.
123362         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123363         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123364         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123365         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123367 2003-08-14  Jim Meyering  <jim@meyering.net>
123369         Merge from coreutils.
123370         * lib/obstack.h: Whitespace changes.
123371         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123372         and xcalloc return values.
123373         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123374         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123375         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123376         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123377         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123378         error from mntctl.
123379         Use mntctl's return value to drive the entry-processing loop, since
123380         we can't rely on the value of the vmt_length member in the last
123381         entry.  On some systems doing so could result in exhausting
123382         virtual memory.  Based in part on a patch from Mike Jetzer.
123384 2003-08-14  Jim Meyering  <jim@meyering.net>
123385         and Paul Eggert  <eggert@twinsun.com>
123387         Merges from coreutils, plus other fixes.
123388         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123389         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123390         for credits and details.  Thanks to Kaveh Ghazi for helping
123391         to keep these files in sync.
123392         (ARRAY_SIZE): Define it.
123393         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123394         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123395         (memcasecmp): Don't assume size_t fits in unsigned int.
123396         Remove casts and duplicate code.
123397         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123398         (memcpy): Remove definition.
123399         Merge in some clean-up and optimization changes from glibc.
123400         [BLOCKSIZE]: Move definition to top of file.
123401         Ensure that it is a multiple of 64.
123402         Rearrange loop exit tests so as to avoid performing an
123403         additional fread after encountering an error or EOF.
123404         * lib/md5.h (md5_uintptr): Define.
123405         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123406         return to the initial working directory.  Preserve errno
123407         for caller.
123408         * lib/idcache.c: Include "xalloc.h".
123409         (xmalloc, xrealloc): Remove decls.
123410         (getuser): Remove casts no longer required in C89.
123411         * lib/human.c: Include stdio.h, for sprintf.
123412         * lib/group-member.c: Include "xalloc.h".
123413         (xmalloc, xrealloc): Remove decls.
123414         (get_group_info): Remove casts no longer required in C89.
123415         * lib/getusershell.c (readname): Remove casts no longer required in
123416         C89.
123417         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123418         * lib/getline.c: Whitespace fix, from coreutils.
123420 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123422         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123423         Check for isascii.
123425         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123426         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123427         Undo previous (whitespace-only) change.
123429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123431         * lib/exclude.c: Include <ctype.h>
123432         (IN_CTYPE_DOMAIN): New macro.
123433         (is_space): New fn.
123434         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123435         and empty lines.
123437         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123438         Undo previous (whitespace-only) change.
123440 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123442         * config/srclist-update: Change update back to the old behavior,
123443         leaving whitespace alone.  Use one 'sed' command rather than a
123444         pipeline.
123445         (fixlicense): Now a variable, not a function.
123446         (remove_trailing_blanks): Remove.
123447         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123448         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123449         Undo previous (whitespace-only) change.
123451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123453         Merge from coreutils.
123454         * modules/euidaccess: Add lib_SOURCES, include for new
123455         file euidaccess.h
123457 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123459         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123460         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123461         Normalize leading white space and remove trailing white space.
123463         Merge from coreutils
123464         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123466         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123467         0.12.1.  These files are now being upgraded automatically by
123468         ../config/srclist-update.
123470 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123472         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123473         Normalize leading white space and remove trailing white space.
123474         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123475         notice, as per ../config/srclist-update.
123477         Merge from coreutils.
123478         * lib/euidaccess.h: New file.
123479         * lib/euidaccess.c: Include it.
123480         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123481         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123482         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123484 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123486         * config/srclist-update: Add copyright notice.
123487         (remove_id_lines, remove_trailing_blanks): New constants.
123488         (fixfile): Use them to normalize spacing a bit in copied files.
123489         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123490         Normalize leading white space and remove trailing white space.
123492         * config/texinfo.tex: Sync with texinfo.
123494         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123495         strtoul.c from libc, to merge coreutils whitespace changes.
123497         * config/srclist.txt: Get the following m4 files from gettext:
123498         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123499         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123500         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123501         wint_t.m4.
123503 2003-08-12  Karl Berry  <karl@gnu.org>
123505         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123506         been made.
123508 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123510         * modules/gnu-source, m4/gnu-source.m4:
123511         Remove; we're assuming Autoconf 2.54 or later now.
123512         Suggested by Bruno Haible.
123513         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123515 2003-08-11  Bruno Haible  <bruno@clisp.org>
123517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123519 2003-08-11  Bruno Haible  <bruno@clisp.org>
123521         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123522         (vasnprintf): Use it instead of wcslen.
123524 2003-08-11  Bruno Haible  <bruno@clisp.org>
123526         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123527         value to ensure that _Bool promotes to int. Use #define for _Bool when
123528         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123530 2003-08-10  Karl Berry  <karl@gnu.org>
123532         * lib/regex.h: update from libc (whitespace fix).
123534 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123536         Merge some files from coreutils.  These changes were
123537         originally made by Jim Meyering.
123538         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123539         many older Unixes require this.
123540         * lib/alloca.c (alloca): Remove cast to argument of free;
123541         no longer needed in C89.
123542         * lib/alloca_.h, regex.h: Fix white space to match
123543         what GNU indent does.
123545 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123547         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123548         apparently Emacs's Unicode mode got confused before my 2003-08-05
123549         checkin.
123551 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123553         * m4/extensions.m4: New file.
123554         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123555         Require gl_USE_SYSTEM_EXTENSIONS.
123556         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123557         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123559 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123561         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123562         * modules/extensions, modules/gnu-source: New files.
123563         * modules/timespec, modules/unlocked-io: Depend on extensions.
123565 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123567         * modules/restrict: New file.
123568         * MODULES.html.sh (func_all_modules): Add restrict.
123569         * modules/regex: Depend on restrict.
123571 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123573         * m4/restrict.m4: New file.
123574         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123576 2003-08-07  Bruno Haible  <bruno@clisp.org>
123578         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123579         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123581 2003-08-07  Bruno Haible  <bruno@clisp.org>
123583         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123584         makes the module 'getndelim2' compatible with the module 'getline'.
123586 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123588         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
123589         byte with "\201" to avoid glitches when editing that source file
123590         with multi-gnome-terminal.
123592 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123594         * lib/bumpalloc.h: Remove.
123596 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123598         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
123599         * modules/bumpalloc: Remove.
123601 2003-08-04  Paul Eggert  <eggert@twinsun.com>
123603         * lib/getloadavg.c: Change copyright notice and spacing to conform to
123604         GNU coding style.
123606         Merge from coreutils.
123607         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
123608         1. From glibc.
123609         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
123610         from Karl Berry, implemented by Jim Meyering.
123611         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
123612         from Dmitry V. Levin.
123613         Remove anachronistic cast of xrealloc.
123614         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
123615         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
123616         type. Otherwise, it wouldn't compile with at least /bin/cc on
123617         ymp-cray-unicos9.0.2.X.
123618         Combine two mostly-identical uses of alloca into one.
123619         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
123621 2003-08-04  Dave Love  <d.love@dl.ac.uk>
123623         [From Emacs.]
123625         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
123626         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
123627         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
123628         obsolete NLIST_NAME_UNION.
123629         [__GNU__]: Undef BSD and FSCALE.
123630         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
123632 2003-08-03  Paul Eggert  <eggert@twinsun.com>
123634         * lib/stdbool_.h (_Bool): Make it signed char, instead of
123635         an enum type, so that it's guaranteed to promote to int.  See:
123636         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
123638 2003-08-03  Karl Berry  <karl@gnu.org>
123640         * config/depcomp: update from automake.
123642 2003-07-31  Paul Eggert  <eggert@twinsun.com>
123644         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
123645         (strerror): Don't assume that a printable int fits in 14 bytes.
123647 2003-07-31  Bruno Haible  <bruno@clisp.org>
123649         * modules/getpass-gnu: New file.
123650         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
123652 2003-07-31  Bruno Haible  <bruno@clisp.org>
123654         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
123656 2003-07-24  Karl Berry  <karl@gnu.org>
123658         * config/missing: update from automake.
123660 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
123661             Bruno Haible  <bruno@clisp.org>
123663         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
123664         * lib/getline.c (getline, getdelim): Likewise.
123665         Remove _GNU_SOURCE define; now it's defined in config.h through
123666         m4/getline.m4.
123668 2003-07-23  Karl Berry  <karl@gnu.org>
123670         * config/config.sub: update from prep.
123672 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123674         * modules/xalloc (Depends-on): Add exitfail.
123675         * modules/xmemcoll: Likewise.
123677 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123679         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
123680         over-parenthesization in macros.
123682         Sync with coreutils.
123684         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
123685         required by C99.
123687         Use `exit_failure' for xalloc and xmemcoll instead of their own
123688         private exit-failure variables.
123689         * lib/xalloc.h (xalloc_exit_failure): Remove.
123690         * lib/xmalloc.c: Likewise.  Include exitfail.h.
123691         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
123692         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
123693         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
123694         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
123696 2003-07-20  Jim Meyering  <jim@meyering.net>
123698         * modules/closeout (Depends-on): Add exitfail.
123699         Suggestion from Bruno Haible.
123701 2003-07-19  Karl Berry  <karl@gnu.org>
123703         * config/config.sub: update from prep.
123705 2003-07-18  Paul Eggert  <eggert@twinsun.com>
123707         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
123708         Remove.
123709         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
123710         to test that it can stand by itself.  Include "exitfail.h".
123711         Clients should set exit_failure instead.
123712         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
123714 2003-07-18  Bruno Haible  <bruno@clisp.org>
123716         * modules/getndelim2: New file.
123717         * modules/getline: Share files with module getndelim2.
123718         * modules/getnline: Depend on getndelim2 instead of sharing files with
123719         it. Add getnline.c to lib_SOURCES.
123720         * MODULES.html.sh (func_all_modules): Add getndelim2.
123722 2003-07-18  Bruno Haible  <bruno@clisp.org>
123724         * m4/getndelim2.m4: New file.
123725         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
123726         invoke gl_PREREQ_GETNDELIM2.
123727         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
123728         gl_PREREQ_GETNDELIM2.
123729         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
123730         gl_GETNDELIM2.
123732 2003-07-18  Bruno Haible  <bruno@clisp.org>
123734         * lib/getndelim2.h: New file.
123735         * lib/getndelim2.c: Make into a module of its own. Include config.h,
123736         getndelim2.h.
123737         (getndelim2): Make non-static. Change return type to ssize_t.
123738         * lib/getline.h: Change argument names.
123739         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
123740         * lib/getnline.c: Include getndelim2.h.
123742 2003-07-18  Andreas Schwab  <schwab@suse.de>
123744         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
123746 2003-07-17  Karl Berry  <karl@gnu.org>
123748         * config/config.sub: update from prep.
123750 2003-07-17  Bruno Haible  <bruno@clisp.org>
123752         * modules/getnline: New file.
123753         * modules/getline: Add lib/getndelim2.c to source file list.
123754         * MODULES.html.sh (func_all_modules): Add getnline.
123756 2003-07-17  Bruno Haible  <bruno@clisp.org>
123758         * m4/getnline.m4: New file.
123760 2003-07-17  Bruno Haible  <bruno@clisp.org>
123762         * m4/Makefile.am.in: Remove file.
123763         * m4/Makefile.am: Remove file.
123764         * m4/Makefile.in: Remove file.
123766 2003-07-17  Bruno Haible  <bruno@clisp.org>
123768         * lib/getnline.h: New file.
123769         * lib/getnline.c: New file.
123770         * lib/getndelim2.c: New file, extracted from getline.c.
123771         (getndelim2): Renamed from getdelim2, with added nmax argument.
123772         * lib/getline.c: Include getndelim2.c.
123773         (getdelim2): Moved out to getndelim2.c.
123774         (getline, getdelim): Update.
123776 2003-07-17  Bruno Haible  <bruno@clisp.org>
123778         * lib/Makefile.am: Remove file.
123779         * lib/Makefile.in: Remove file.
123781 2003-07-17  Bruno Haible  <bruno@clisp.org>
123783         * configure.in: Remove file.
123784         * Makefile.in: Remove file.
123786 2003-07-17  Bruno Haible  <bruno@clisp.org>
123788         * MODULES.html.sh: Put the </BODY> right before </HTML>.
123790 2003-07-16  Karl Berry  <karl@gnu.org>
123792         * config/srclist-update: was running fixlicense twice, which caused
123793                 texinfo.tex to be nullified for some reason.  Simplify,
123794                 $gplsrc is no longer needed as far as I can see?
123796 2003-07-16  Jim Meyering  <jim@meyering.net>
123798         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
123800 2003-07-15  Paul Eggert  <eggert@twinsun.com>
123802         * config/srclist.txt: Get the following files from gettext-runtime/intl
123803         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
123804         ref-del.sin.  From Bruno Haible.
123805         * config/srclist-update (fixfile): Change grep pattern again, since the
123806         previous fix didn't work (there was another trailing $).  Use
123807         '[$]' to escape the $s.
123809 2003-07-15  Karl Berry  <karl@gnu.org>
123811         * lib/vasnprintf.c: update from gettext.
123813 2003-07-15  Karl Berry  <karl@gnu.org>
123815         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
123816         gets expanded when surrounded by '$'.
123818 2003-07-15  Jim Meyering  <jim@meyering.net>
123820         * modules/save-cwd: Don't depend on error.  From Derek Price.
123822 2003-07-15  Jim Meyering  <jim@meyering.net>
123824         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
123826 2003-07-14  Simon Josefsson  <jas@extundo.com>
123828         * modules/mempcpy: New file.
123829         * MODULES.html.sh (func_all_modules): Add mempcpy.
123831 2003-07-14  Simon Josefsson  <jas@extundo.com>
123833         * m4/mempcpy.m4: New file.
123835 2003-07-14  Simon Josefsson  <jas@extundo.com>
123837         * lib/mempcpy.h: New file.
123838         * lib/mempcpy.c: New file.
123840 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123842         * modules/getdate, modules/posixtm: Depend on mktime.
123844 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123846         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
123847         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
123848         unicodeio.c, unicodeio.h, unlocked-io.h:
123849         Switch from LGPL to GPL.
123851 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123853         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
123854         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
123855         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
123856         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
123857         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
123858         updated automatically by ../config/srclist-update.  This changes
123859         their license from LPGL to GPL.
123861 2003-07-14  Paul Eggert  <eggert@twinsun.com>
123863         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
123864         assumed to refer to the root of the most recent stable gettext version.
123865         * config/srclistvars.sh: Add defaults for eggert.
123866         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
123867         Match "This program" as well as "The program".  This is needed
123868         for gettext.
123870 2003-07-14  Jim Meyering  <jim@meyering.net>
123872         Don't emit diagnostics.  Let callers do that.
123873         * lib/save-cwd.c: Don't include "error.h".
123874         (save_cwd): Don't call error.  Ensure that errno is valid
123875         when returning nonzero.
123877         * lib/save-cwd.h (restore_cwd): Update prototype.
123878         * lib/save-cwd.c (restore_cwd): Remove two parameters.
123879         Simplify.  Don't call error upon failure.  Let callers do that.
123880         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
123881         when auditing is enabled.  But don't bother updating the #if.
123883 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
123885         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
123886         it breaks C++ compilation.
123887         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
123889 2003-07-10  Simon Josefsson  <jas@extundo.com>
123891         * modules/strchrnul (Makefile.am): Add strchrnul.h.
123893 2003-07-10  Jim Meyering  <jim@meyering.net>
123895         * m4/clock_time.m4: Remove trailing blank.
123896         * m4/intmax_t.m4: Likewise.
123898 2003-07-10  Jim Meyering  <jim@meyering.net>
123900         * lib/vasnprintf.c: Remove trailing blanks.
123901         Make cpp indentation consistent.
123903 2003-07-09  Paul Eggert  <eggert@twinsun.com>
123905         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
123906         posixver.c, strftime.c, strnlen.c, strverscmp.c:
123907         Switch from LGPL to GPL.
123909 2003-07-09  Paul Eggert  <eggert@twinsun.com>
123911         * config/srclist.txt: Sort sublists.  Add
123912         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
123913         that differ from gnulib for one reason or another; we'd like this list
123914         to be smaller but for now let's document what we have.
123916 2003-07-08  Paul Eggert  <eggert@twinsun.com>
123918         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
123919         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
123920         and sweeter "eval x=$x".
123921         * config/srclist.txt: Get lib/argp* from glibc.
123923 2003-07-07  Paul Eggert  <eggert@twinsun.com>
123925         * lib/mktime.c: Fix some boundary cases and remove need for floating
123926         point.
123928         Issue a compile-time diagnostic if time_t is floating point, or if
123929         two's complement arithmetic is not in effect, or if arithmetic
123930         right shift does not propagate the sign.  These assumptions were
123931         all in the original code but they weren't checked.
123933         (TIME_T_MIDPOINT, verify): New macros.
123934         (__isleap): Remove; it has integer overflow problems.
123935         (leapyear): New function, without those problems.
123936         (ydhms_tm_diff): Remove; splitting into two parts.
123937         (ydhms_diff): New function, containing the arithmetic part of
123938         the old ydhms_tm_diff function.  Issue a compile-time
123939         diagnostic if we are not using C99 integer division.
123940         Avoid casts when possible.
123941         (guess_time_tm): New function, containing the checking part of
123942         the old ydhms_tm_diff function.  Return the new value, rather than
123943         the difference between it and the old.  Accept a new argument T
123944         so that *T specifies the old value.  Check for overflow in the result.
123946         (__mktime_internal): Use a time_t offset, not a long int offset.
123947         This undoes the 2003-06-04 change, which is no longer needed now
123948         that we have better overflow checking.
123949         (localtime_offset): Likewise.
123951         (__mktime_internal): Avoid harmful overflow on hosts where time_t
123952         and long are 64-bit but int is only 32-bit.
123953         (ydhms_diff): Use long int to store year1 and yday1.
123954         Issue a compile-time diagnostic if long int is not wide enough.
123956         (__mktime_internal): Use long int to store adjusted year and yday.
123957         Use plain C rather than preprocessor commands, if that doesn't
123958         affect efficiency.
123959         Check for overflow (and try to repair) after each probe
123960         rather than checking only at the very end.  This avoids some bugs
123961         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
123962         does not equal GMT offset at maximum time).
123963         Use integer to check for overflow rather than floating point; this
123964         is more portable to non-IEEE hosts, and is a tad faster.
123965         When we detect that we are oscillating between two values,
123966         don't check whether tm_isdst has the requested value, since
123967         we already know the answer.  When tm_isdst has the wrong value,
123968         use a different heuristic to find the right one, based on the
123969         extreme values actually observed in practice in tz2003a,
123970         rather than the (overly optimistic) "previous 3 calendar quarters".
123972         (not_equal_tm, print_tm, check_result): Use "const T" rather than
123973         "T const" to accommodate glibc style.
123974         (check_result): Use less-confusing report format.  "long" -> "long int.
123975         (main): Likewise.
123976         Don't loop if the iteration overflows time_t.
123977         Allow a negative step in the iteration.
123979 2003-07-06  Karl Berry  <karl@gnu.org>
123981         * config/depcomp: update from automake.
123982         * config/config.sub: update from prep.
123984 2003-07-03  Karl Berry  <karl@gnu.org>
123986         * config/config.guess: update from prep.
123988 2003-07-01  Paul Eggert  <eggert@twinsun.com>
123990         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
123991         xreadlink.c now includes it unconditionally.
123993 2003-07-01  Paul Eggert  <eggert@twinsun.com>
123995         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
123996         having it depend on HAVE_SYS_TYPES_H.
123998 2003-07-01  Bruno Haible  <bruno@clisp.org>
124000         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124001         <sys/types.h> should be sufficient.
124002         Reported by Paul Eggert.
124004 2003-06-26  Karl Berry  <karl@gnu.org>
124006         * config/depcomp: update from automake.
124008 2003-06-26  Bruno Haible  <bruno@clisp.org>
124010         * modules/human: Depend on module stdbool.
124012 2003-06-25  Bruno Haible  <bruno@clisp.org>
124014         * modules/readlink: New file.
124015         * modules/xreadlink: Depend on it.
124016         * MODULES.html.sh (func_all_modules): Add readlink.
124018 2003-06-25  Bruno Haible  <bruno@clisp.org>
124020         * m4/readlink.m4: New file.
124022 2003-06-25  Bruno Haible  <bruno@clisp.org>
124024         * lib/readlink.c: New file.
124026 2003-06-22  Karl Berry  <karl@gnu.org>
124028         * config/srclist.txt: update mkinstalldirs from automake.
124029         * config/mkinstalldirs: update.
124031 2003-06-22  Bruno Haible  <bruno@clisp.org>
124033         Portability to mingw32.
124034         * m4/ssize_t.m4: New file, from GNU gettext.
124035         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124036         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124038 2003-06-22  Bruno Haible  <bruno@clisp.org>
124040         * modules/safe-read: Add m4/ssize_t.m4.
124041         * modules/xreadlink: Add m4/ssize_t.m4.
124043 2003-06-20  Bruno Haible  <bruno@clisp.org>
124045         Assume C89, so PARAMS isn't needed.
124046         * lib/unicodeio.h (PARAMS): Remove.
124047         * lib/unicodeio.c: Don't use PARAMS.
124049 2003-06-18  Karl Berry  <karl@gnu.org>
124051         * config/config.{guess,sub}: update from prep.
124053 2003-06-18  Jim Meyering  <jim@meyering.net>
124055         Merge changes from coreutils.
124056         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124057         Remove explicit declarations of xmalloc and realloc.
124058         Include xalloc.h.
124059         (read_utmp): Remove anachronistic cast of xmalloc.
124061 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124063         Assume C89, so PARAMS isn't needed.
124064         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124065         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124066         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124067         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124068         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124069         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124070         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124071         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124072         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124073         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124074         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124075         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124076         no longer needed. Anyway, config.h should always be included before any
124077         other file.
124079 2003-06-11  Simon Josefsson  <jas@extundo.com>
124081         * modules/sysexits: New file.
124082         * MODULES.html.sh (func_all_modules): Add sysexits.
124084 2003-06-11  Simon Josefsson  <jas@extundo.com>
124086         * lib/sysexit_.h: New file.
124088 2003-06-11  Derek Price  <derek@ximbiot.com>
124090         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124091         necessary.
124093 2003-06-11  Bruno Haible  <bruno@clisp.org>
124095         * m4/sysexits.m4: New file.
124097 2003-06-10  Simon Josefsson  <jas@extundo.com>
124099         * lib/argp.h: New file, from glibc.
124100         * lib/argp-ba.c: New file, from glibc.
124101         * lib/argp-eexst.c: New file, from glibc.
124102         * lib/argp-fmtstream.c: New file, from glibc.
124103         * lib/argp-fmtstream.h: New file, from glibc.
124104         * lib/argp-fs-xinl.c: New file, from glibc.
124105         * lib/argp-help.c: New file, from glibc.
124106         * lib/argp-namefrob.h: New file, from glibc.
124107         * lib/argp-parse.c: New file, from glibc.
124108         * lib/argp-pv.c: New file, from glibc.
124109         * lib/argp-pvh.c: New file, from glibc.
124110         * lib/argp-xinl.c: New file, from glibc.
124112 2003-06-10  Simon Josefsson  <jas@extundo.com>
124114         * modules/strchrnul: New file.
124116 2003-06-10  Simon Josefsson  <jas@extundo.com>
124118         * modules/argp: New file.
124120 2003-06-10  Simon Josefsson  <jas@extundo.com>
124122         * m4/strchrnul.m4: New file.
124124 2003-06-10  Simon Josefsson  <jas@extundo.com>
124126         * lib/strchrnul.h: New file.
124127         * lib/strchrnul.c: New file.
124129 2003-06-10  Bruno Haible  <bruno@clisp.org>
124131         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124133 2003-06-07  Karl Berry  <karl@gnu.org>
124135         * config/config.{guess,sub}: update from prep.
124137 2003-06-07  Jim Meyering  <jim@meyering.net>
124139         * modules/strtod: Use $(...) notation, not @...@ for
124140         AC_REPLACE'd variables.
124141         * modules/localcharset: Likewise.
124143 2003-06-07  Jim Meyering  <jim@meyering.net>
124145         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124146         in place of my name in the copyright comment.
124147         Remove definition and uses of __P.
124149         From coreutils.
124150         * lib/stat.c: Don't declare xmalloc explicitly.
124151         Instead, include "xalloc.h".
124152         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124153         xrealloc, and xcalloc return values.
124154         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124155         Improve comment.
124156         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124158 2003-06-07  Bruno Haible  <bruno@clisp.org>
124160         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124161         avoid AC_CONFIG_LINKS.
124162         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124163         fnmatch.h, to avoid AC_CONFIG_LINKS.
124164         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124166 2003-06-07  Bruno Haible  <bruno@clisp.org>
124168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124169         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124170         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124171         directory.
124172         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124173         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124174         directory.
124176 2003-06-06  Jim Meyering  <jim@meyering.net>
124178         Merge from coreutils.
124179         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124180         Consolidate declarations and initializations of *_base* locals.
124182         Merge from coreutils.
124183         This avoids a core dump on systems without GNU putenv,
124184         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124185         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124186         (unsetenv): New static function, from GNU libc.
124187         (rpl_putenv): Use it.
124189         * lib/modechange.c: Remove trailing blanks.
124191         Merge from coreutils.
124192         * lib/fsusage.c: Remove declaration of statfs.
124193         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124195         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124197 2003-06-06  Jim Meyering  <jim@meyering.net>
124199         * lib/stdbool_.h: Renamed from stdbool.h.in.
124201 2003-06-06  Jim Meyering  <jim@meyering.net>
124202             Bruno Haible  <bruno@clisp.org>
124204         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124205         Adjust Makefile.am snippet not to redirect directly to target.
124206         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124208 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124210         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124211         mismatch, look in future quarters as well as past.  This fixes a
124212         bug when processing fall-backwards gaps immediately after a long
124213         period of daylight-saving time.
124215         * lib/mktime.c: Assume freestanding C89 or better.
124216         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124217         (__P): Remove; not used.
124218         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124219         (mktime, not_equal_tm, print_tm, check_result,
124220         main): Use prototypes.  Use const * where appropriate.
124221         (main): Fix typo in testing code that uncovered by above changes.
124222         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124224 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124226         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124227         locale.h, localeconv.  This merges changes from coreutils.
124229         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124230         It can be removed after the next Autoconf is released.
124231         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124232         needed.
124234 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124236         * lib/mktime.c: Fix Debian bug 177940
124237         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124238         (localtime_offset): Now long int, not time_t, because we want it
124239         to be guaranteed to be signed.  All uses changed.
124240         (__mktime_internal): If overflow would occur when adding offset,
124241         don't add it.
124243         Merge 'human' changes from coreutils.  Rewrite to support
124244         locale-specific notations like thousands separators.
124245         * lib/human.c: Simplify authorship notice.
124246         Include human.h immediately after config.h.
124247         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124248         <limits.h>: Do not include, since human.h does.
124249         (SIZE_MAX, UINTMAX_MAX): New macros.
124250         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124251         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124252         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124253         (power_letter): Renamed from suffixes.
124254         (generate_suffix_backwards): Remove.
124255         (adjust_value): Now takes int style (because of human.h changes)
124256         and long double value (for greater precision on some platforms).
124257         (group_number): New function.
124258         (human_readable): Use it.  Use integer options, not enum.
124259         Put the options before the sizes in the arg list.
124260         Support all the new options.
124261         The old human_readable function has been removed;
124262         use inttostr.h instead.
124263         (human_readable, default_block_size, humblock):
124264         Use uintmax_t, not int, for block sizes.
124265         (human_readable_inexact, block_size_types): Remove.
124266         (block_size_opts): New constant.
124267         (human_options): Renamed from human_block_size, with new signature
124268         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124269         * lib/human.h: Add copyright and authorship notice.
124270         Include <limits.h> and <stdbool.h> unconditionally.
124271         (PARAMS): Remove.  All uses removed.
124272         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124273         (enum human_inexact_style): Remove tag; now a nameless enum.
124274         (human_floor, human_ceiling, human_round_to_even): Now have
124275         values 2, 0, 1 rather than -1, 1, 0.
124276         (human_group_digits, human_suppress_point_zero, human_autoscale,
124277         human_base_1024, human_SI, human_B): New constants.
124278         (human_readable_inexact, human_block_size): Remove.
124279         (human_readable): Size args are now uintmax_t, not int.
124280         (human_options): New decl.
124282         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124283         unnecessary now that we assume C89 or better.  This change
124284         imported from coreutils.
124286         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124287         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124288         in the 2003-05-30 sync from glibc.
124290         .h files should stand alone, but we shouldn't include <sys/types.h>
124291         if we can get away with just <stddef.h>.
124293         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124294         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124295         rather than <sys/types.h>, as we merely need size_t.
124296         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124297         to get size_t.
124298         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124299         Include <stdio.h>, to get FILE.
124300         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124301         memcasecmp.h has included <stddef.h> and all we need is size_t.
124302         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124303         our interface, instead of including <sys/types.h>
124305 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124307         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124308         now, as glibc mktime is buggy on non-glibc systems.
124310 2003-06-03  Karl Berry  <karl@gnu.org>
124312         * config/config.sub: update from prep.
124314 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124316         [from coreutils]
124317         Fix some minor time-related bugs with POSIX time arguments.
124318         Some valid time stamps were being rejected (notably -1, and
124319         time stamps before 1900 on 64-bit hosts).  And some invalid
124320         time stamps were being accepted, e.g. September 31.
124322         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124323         that we can return (time_t) -1 successfully.
124324         * lib/posixtm.c: Likewise.
124325         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124326         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124327         (t): Remove static var.
124328         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124329         of static var.  All uses changed.
124330         (year): Do not reject years before 1900; they can occur with
124331         64-bit time_t.
124332         (posix_time_parse): Do not check for out-of-range components;
124333         that is now the caller's responsibility, since our checks were
124334         only approximations.
124335         (posixtime): Use mktime to check for out-of-range components,
124336         since it knows them exactly.
124337         If mktime returns (time_t) -1, check whether an error actually occurred
124338         by invoking localtime on -1.
124339         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124340         posixtime failures better.
124341         Improve the test data (in comments only).
124343 2003-06-02  Karl Berry  <karl@gnu.org>
124345         * config/mkinstalldirs (version): new variable.
124346         (--version): new option.
124347         (usage): improve message.
124349 2003-05-30  Karl Berry  <karl@gnu.org>
124351         * lib/mktime.c: update from libc.
124353 2003-05-30  Bruno Haible  <bruno@clisp.org>
124355         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124356         * config/config.rpath: Upgrade to gettext-0.12.1.
124358 2003-05-30  Bruno Haible  <bruno@clisp.org>
124360         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124361         * m4/nls.m4: New file, from gettext-0.12.1.
124362         * m4/po.m4: New file, from gettext-0.12.1.
124363         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124365 2003-05-30  Bruno Haible  <bruno@clisp.org>
124367         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124368         * lib/localcharset.h: Likewise.
124369         * lib/localcharset.c: Likewise.
124371 2003-05-29  Karl Berry  <karl@gnu.org>
124373         * config/config.rpath: update from gettext.
124375 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124377         Assume the headers required for C89 freestanding compilers.
124378         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124379         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124380         * m4/human.m4 (gl_HUMAN): Likewise.
124381         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124382         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124383         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124384         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124386         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124388 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124390         Assume the headers required for C89 freestanding compilers.
124391         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124392         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124393         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124394         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124395         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124396         define, since <limits.h> is guaranteed to do that.
124397         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124398         * lib/exclude.c: Include <stdbool.h> unconditionally.
124399         * lib/tempname.c: Include <stddef.h> unconditionally.
124400         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124401         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124402         <stddef.h> does that.
124403         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124404         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124405         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124406         needed.
124407         * lib/xstrtol.c: Likewise.
124408         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124409         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124411         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124412         warnings on some platforms.
124414         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124415         arbitrarily.
124417 2003-05-26  Jim Meyering  <jim@meyering.net>
124419         Merge in a change from coreutils:
124420         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124421         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124422         that condition, rather than `-1' which is slightly misleading.
124423         Change the name of the cache variable to have the gl_ prefix.
124424         Prompted by a patch from Richard Dawe for DJGPP.
124426 2003-05-24  Karl Berry  <karl@gnu.org>
124428         * config/config.guess: update from prep.
124430 2003-05-22  Karl Berry  <karl@gnu.org>
124432         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124434 2003-05-20  Karl Berry  <karl@gnu.org>
124436         * config/config.guess: update from prep.
124438 2003-05-18  Karl Berry  <karl@gnu.org>
124440         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124441         might actually be set by the user.
124443         * config/depcomp, install-sh, mdate-sh: update from automake.
124445 2003-05-17  Bruno Haible  <bruno@clisp.org>
124447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124448         invalid expansion for AC_EGREP_CPP.
124449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124450         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124451         Suggested by Akim Demaille <akim@epita.fr> in
124452         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124454 2003-05-12  Jim Meyering  <jim@meyering.net>
124456         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124457         the space-padded-by-default conversion specifiers, %e, %k, %l.
124459 2003-05-12  Bruno Haible  <bruno@clisp.org>
124461         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124462         the string is longer than 4 KB.
124464 2003-05-11  Karl Berry  <karl@gnu.org>
124466         * config/config.{guess,sub}: update from prep.
124468 2003-05-09  Bruno Haible  <bruno@clisp.org>
124470         * modules/error: Add m4/strerror_r.m4 to file list.
124472 2003-05-03  Bruno Haible  <bruno@clisp.org>
124474         Upgrade to Unicode-4.0.
124475         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124476         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124477         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124478         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124479         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124480         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124481         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124482         Change width of U+E0100..U+E01EF from 1 to 0.
124484 2003-04-25  Jim Meyering  <jim@meyering.net>
124486         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124487         of type size_t, not int.
124489 2003-04-25  Bruno Haible  <bruno@clisp.org>
124491         * lib/copy-file.c: Include <stddef.h>, for size_t.
124493 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124495         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124496         code which expansion is under static control.  Patch imported from
124497         Akim Demaille's patch to Bison; see
124498         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124500 2003-04-14  Bruno Haible  <bruno@clisp.org>
124502         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124504 2003-04-11  Jim Meyering  <jim@meyering.net>
124506         Merge changes from Coreutils.
124508         2003-03-22  Jim Meyering  <jim@meyering.net>
124510         * lib/strftime.c (widen): Cast alloca return value to proper type.
124512         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124514         From GNU libc.
124515         * lib/strftime.c (my_strftime): Handle very large width
124516         specifications for numeric values correctly.  Improve checks for
124517         overflow.
124519         2003-01-19  Jim Meyering  <jim@meyering.net>
124521         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124522         definitions.
124523         (nl_get_alt_digit) [! defined my_strftime]: Define.
124524         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124525         _nl_get_alt_digit and _nl_get_walt_digit.
124527         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124528         libc. These changes have no effect outside of _LIBC.
124530 2003-04-10  Bruno Haible  <bruno@clisp.org>
124532         * modules/findprog: New file.
124533         * MODULES.html.sh (func_all_modules): Add it.
124535 2003-04-10  Bruno Haible  <bruno@clisp.org>
124537         * m4/findprog.m4: New file.
124538         * m4/eaccess.m4: New file.
124540 2003-04-10  Bruno Haible  <bruno@clisp.org>
124542         * lib/findprog.h: New file, from GNU gettext.
124543         * lib/findprog.c: New file, from GNU gettext.
124545 2003-04-05  Jim Meyering  <jim@meyering.net>
124547         Merge changes from Coreutils.
124549         * lib/exclude.h (PARAMS): Remove definition and uses.
124550         * lib/exclude.c: Remove uses of `PARAMS'.
124552         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124553         Add test-cases for DOS filenames. Declare program_name.
124554         (main): Set up program_name.  Patch by Rich Dawe.
124556         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124557         error from mntctl.
124558         Use mntctl's return value to drive the entry-processing loop, since
124559         we can't rely on the value of the vmt_length member in the last
124560         entry.  On some systems doing so could result in exhausting
124561         virtual memory.  Based in part on a patch from Mike Jetzer.
124563 2003-04-04  Bruno Haible  <bruno@clisp.org>
124565         * modules/linebreak: New file.
124566         * MODULES.html.sh (func_all_modules): Add it.
124568 2003-04-04  Bruno Haible  <bruno@clisp.org>
124570         * m4/linebreak.m4: New file.
124572 2003-04-04  Bruno Haible  <bruno@clisp.org>
124574         * lib/linebreak.h: New file, from GNU gettext.
124575         * lib/linebreak.c: New file, from GNU gettext with slight
124576         modifications.
124577         * lib/lbrkprop.h: New file, from GNU gettext.
124579 2003-04-03  Bruno Haible  <bruno@clisp.org>
124581         * modules/utf8-ucs4: New file.
124582         * modules/utf16-ucs4: New file.
124583         * modules/ucs4-utf8: New file.
124584         * modules/ucs4-utf16: New file.
124585         * MODULES.html.sh (func_all_modules): Add them.
124587 2003-04-03  Bruno Haible  <bruno@clisp.org>
124589         * m4/utf-ucs4.m4: New file.
124590         * m4/ucs4-utf.m4: New file.
124592 2003-04-03  Bruno Haible  <bruno@clisp.org>
124594         * lib/utf8-ucs4.h: New file, from GNU gettext.
124595         * lib/utf16-ucs4.h: New file, from GNU gettext.
124596         * lib/ucs4-utf8.h: New file, from GNU gettext.
124597         * lib/ucs4-utf16.h: New file, from GNU gettext.
124599 2003-04-02  Bruno Haible  <bruno@clisp.org>
124601         * modules/binary-io: New file.
124602         * MODULES.html.sh (func_all_modules): Add it.
124604 2003-04-02  Bruno Haible  <bruno@clisp.org>
124606         * lib/binary-io.h: New file, from GNU gettext.
124608 2003-04-01  Bruno Haible  <bruno@clisp.org>
124610         * modules/pathname: New file.
124611         * MODULES.html.sh (func_all_modules): Add it.
124613 2003-04-01  Bruno Haible  <bruno@clisp.org>
124615         * lib/pathname.h: New file, from GNU gettext.
124616         * lib/concatpath.c: New file, from GNU gettext.
124618 2003-03-30  Bruno Haible  <bruno@clisp.org>
124620         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
124622 2003-03-30  Bruno Haible  <bruno@clisp.org>
124624         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
124625         function chown() doesn't exist.
124627 2003-03-28  Bruno Haible  <bruno@clisp.org>
124629         * modules/copy-file: New file.
124630         * MODULES.html.sh (func_all_modules): Add it.
124632 2003-03-28  Bruno Haible  <bruno@clisp.org>
124634         * m4/copy-file.m4: New file.
124636 2003-03-28  Bruno Haible  <bruno@clisp.org>
124638         * lib/copy-file.h: New file, from GNU gettext.
124639         * lib/copy-file.c: New file, from GNU gettext.
124641 2003-03-18  Jim Meyering  <jim@meyering.net>
124643         * lib/quote.c (quote_n): Fix typo in comment.
124645 2003-03-18  Bruno Haible  <bruno@clisp.org>
124647         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
124648         checking.
124649         * m4/onceonly_2_57.m4: Likewise.
124651 2003-03-17  Bruno Haible  <bruno@clisp.org>
124653         * m4/onceonly.m4: Require autoconf 2.54 or newer.
124654         (m4_quote): Remove macro.
124655         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
124657 2003-03-14  Jim Meyering  <jim@meyering.net>
124659         Merge changes from Coreutils.
124660         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
124661         to be const, in order to avoid warnings.
124662         (obstack_room): Likewise.
124663         (obstack_empty_p): Likewise.
124665 2003-03-14  Bruno Haible  <bruno@clisp.org>
124667         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
124668         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
124670 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124672         Merge changes from Bison.
124673         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
124674         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
124675         when compiling Bison 1.875's `bitset bset = obstack_alloc
124676         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
124677         * lib/hash.c: Include <stdbool.h> unconditionally.
124679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124681         * m4/onceonly.m4 (m4_quote): New macro.
124682         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
124683         Quote AC_FOREACH variable-expansions properly.
124685 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124687         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
124689 2003-03-09  Paul Eggert  <eggert@twinsun.com>
124691         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
124692         Reported by Bruce Becker; see:
124693         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
124695 2003-03-03  Paul Eggert  <eggert@twinsun.com>
124696             Bruno Haible  <bruno@clisp.org>
124698         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
124699         Reported by John Hughes, see
124700         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
124702 2003-02-20  Bruno Haible  <bruno@clisp.org>
124704         * MODULES.html.sh (func_all_modules): Add poll.
124706 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124708         * modules/poll: New file.
124710 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124712         * lib/poll_.h: New file.
124713         * lib/poll.c: New file.
124715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124717         * m4/poll.m4: New file.
124719 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124721         * modules/mathl: New file.
124723 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124725         * lib/mathl.h: New file.
124726         * lib/acosl.c: New file.
124727         * lib/asinl.c: New file.
124728         * lib/atanl.c: New file.
124729         * lib/ceill.c: New file.
124730         * lib/cosl.c: New file.
124731         * lib/expl.c: New file.
124732         * lib/floorl.c: New file.
124733         * lib/frexpl.c: New file.
124734         * lib/ldexpl.c: New file.
124735         * lib/logl.c: New file.
124736         * lib/sincosl.c: New file.
124737         * lib/sinl.c: New file.
124738         * lib/sqrtl.c: New file.
124739         * lib/tanl.c: New file.
124740         * lib/trigl.c: New file.
124741         * lib/trigl.h: New file.
124743 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124745         * m4/mathl.m4: New file.
124747 2003-02-18  Bruno Haible  <bruno@clisp.org>
124749         * MODULES.html.sh (func_all_modules): Add mathl.
124751 2003-02-17  Bruno Haible  <bruno@clisp.org>
124753         * modules/mkdtemp: New module.
124754         * MODULES.html.sh (func_all_modules): Add it.
124756 2003-02-17  Bruno Haible  <bruno@clisp.org>
124758         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
124760 2003-02-17  Bruno Haible  <bruno@clisp.org>
124762         * lib/mkdtemp.h: New file, from GNU gettext.
124763         * lib/mkdtemp.c: New file, from GNU gettext.
124765 2003-02-02  Jim Meyering  <jim@meyering.net>
124767         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
124768         e.g. glibc-2.2.93.
124770 2003-01-31  Bruno Haible  <bruno@clisp.org>
124772         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
124773         'rpl_rename'.
124774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
124775         'rpl_strnlen'.
124776         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
124777         'rpl_strtod'.
124778         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
124779         'rpl_utime'.
124781 2003-01-31  Bruno Haible  <bruno@clisp.org>
124783         * lib/rename.c: #undef rename before defining rpl_rename.
124784         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
124786 2003-01-30  Bruno Haible  <bruno@clisp.org>
124788         * modules/vasnprintf, modules/vasprintf: New modules.
124789         * MODULES.html.sh (func_all_modules): Add them.
124791 2003-01-30  Bruno Haible  <bruno@clisp.org>
124793         * m4/signed.m4: New file, from GNU gettext.
124794         * m4/longdouble.m4: New file, from GNU gettext.
124795         * m4/wchar_t.m4: New file, from GNU gettext.
124796         * m4/wint_t.m4: New file, from GNU gettext.
124797         * m4/vasnprintf.m4: New file.
124798         * m4/vasprintf.m4: New file.
124800 2003-01-30  Bruno Haible  <bruno@clisp.org>
124802         * lib/printf-args.h: New file, from GNU gettext.
124803         * lib/printf-args.c: New file, from GNU gettext.
124804         * lib/printf-parse.h: New file, from GNU gettext.
124805         * lib/printf-parse.c: New file, from GNU gettext.
124806         * lib/vasnprintf.h: New file, from GNU gettext.
124807         * lib/vasnprintf.c: New file, from GNU gettext.
124808         * lib/asnprintf.c: New file, from GNU gettext.
124809         * lib/vasprintf.h: New file, from GNU gettext with modifications.
124810         * lib/vasprintf.c: New file, from GNU gettext.
124811         * lib/asprintf.c: New file, from GNU gettext.
124813 2003-01-29  Bruno Haible  <bruno@clisp.org>
124815         * modules/stpncpy: New module.
124816         * MODULES.html.sh (func_all_modules): Add it.
124818 2003-01-29  Bruno Haible  <bruno@clisp.org>
124820         * m4/stpncpy.m4: New file.
124822 2003-01-29  Bruno Haible  <bruno@clisp.org>
124824         * lib/stpncpy.h: New file, from GNU gettext with modifications.
124825         * lib/stpncpy.c: New file, from GNU gettext with modifications.
124827 2003-01-28  Bruno Haible  <bruno@clisp.org>
124829         * modules/c-ctype: New module.
124830         * MODULES.html.sh (func_all_modules): Add it.
124832 2003-01-28  Bruno Haible  <bruno@clisp.org>
124834         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
124835         Paul Eggert.
124836         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
124837         Paul Eggert.
124839 2003-01-27  Bruno Haible  <bruno@clisp.org>
124841         * modules/xsetenv: New module.
124842         * MODULES.html.sh (func_all_modules): Add it.
124844 2003-01-27  Bruno Haible  <bruno@clisp.org>
124846         * lib/xsetenv.h: New file, from GNU gettext.
124847         * lib/xsetenv.c: New file, from GNU gettext.
124849 2003-01-23  Jim Meyering  <jim@meyering.net>
124851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
124852         from working on systems without dirfd (at least Irix and OSF1/Tru64).
124854 2003-01-23  Bruno Haible  <bruno@clisp.org>
124856         * modules/minmax: New module.
124857         * MODULES.html.sh (func_all_modules): Add it.
124859 2003-01-23  Bruno Haible  <bruno@clisp.org>
124861         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
124862         Eggert.
124864 2003-01-22  Bruno Haible  <bruno@clisp.org>
124866         * modules/exit: New module.
124867         * MODULES.html.sh (func_all_modules): Add it.
124869 2003-01-22  Bruno Haible  <bruno@clisp.org>
124871         * lib/exit.h: New file, from GNU gettext.
124873 2003-01-19  Bruno Haible  <bruno@clisp.org>
124875         * gnulib-tool: Recognize option --extract-maintainer.
124876         (func_get_maintainer): New function.
124877         * modules/*: Add Maintainer entry.
124879 2003-01-16  Jim Meyering  <jim@meyering.net>
124881         * m4/regex.m4: The `regex' struct is both input and output.
124882         Initialize it before each use.  Patch by Tim Waugh.
124884 2003-01-16  Bruno Haible  <bruno@clisp.org>
124886         * MODULES.html.sh: Add a table of contents. Add the module name as
124887         leftmost column. Add hyperlinks.
124889 2003-01-15  Bruno Haible  <bruno@clisp.org>
124891         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
124893 2003-01-15  Bruno Haible  <bruno@clisp.org>
124895         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
124896         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
124897         suffix.
124899 2003-01-15  Bruno Haible  <bruno@clisp.org>
124901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
124903 2003-01-15  Bruno Haible  <bruno@clisp.org>
124905         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
124906         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
124908 2003-01-14  Jim Meyering  <jim@meyering.net>
124910         * lib/same.c (same_name): Tweak a comment.
124912 2003-01-14  Bruno Haible  <bruno@clisp.org>
124914         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
124915         when a string comparison is sufficient.
124917 2003-01-14  Bruno Haible  <bruno@clisp.org>
124919         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
124920         'unsigned int'.
124922 2003-01-14  Bruno Haible  <bruno@clisp.org>
124924         * lib/hash-pjw.c: Add comment about low quality of this function.
124926 2003-01-13  Bruno Haible  <bruno@clisp.org>
124928         * modules/stpcpy: Distribute lib/stpcpy.h.
124929         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
124931 2003-01-13  Bruno Haible  <bruno@clisp.org>
124933         * modules/*: Add a description.
124934         * modules/strpbrk: Fix Makefile.am snippet.
124935         * modules/strtoimax: Fix dependencies.
124936         * modules/strtoumax: Likewise.
124938 2003-01-13  Bruno Haible  <bruno@clisp.org>
124940         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
124941         * modules/alloca (Makefile.am): All object files depend on alloca.h.
124942         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
124944 2003-01-13  Bruno Haible  <bruno@clisp.org>
124946         * gnulib-tool (func_create_testdir): Store config/* files in the main
124947         directory.
124948         * config.rpath: Move to ...
124949         * config/config.rpath: ... here.
124950         * modules/gettext: Contains config/config.rpath, not config.rpath.
124951         * modules/iconv: Likewise.
124953 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124955         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124956         to avoid collisions with libcurses and libreadline.
124958         * m4/getstr.m4: Remove.
124959         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
124961 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124963         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124964         to avoid collisions with libcurses and libreadline.
124966         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
124967         * lib/getstr.h, getstr.c: Remove.
124968         * lib/getline.c: Include "getline.h", to check interface.
124969         Move body of old getstr.c here: this defines MIN_CHUNK and
124970         declares getdelim2, which is renamed from getstr.
124971         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
124973         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
124974         All uses changed.
124975         * lib/linebuffer.h: Likewise.
124976         (readline): Remove backward-compatibility macro.
124978 2003-01-12  Paul Eggert  <eggert@twinsun.com>
124980         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
124981         to avoid collisions with libcurses and libreadline.
124982         * getstr: Remove.
124983         * MODULES.html.sh: Remove getstr.
124984         * modules/getline: Depend on unlocked-io, not getstr.
124986 2003-01-12  Jim Meyering  <jim@meyering.net>
124988         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
124990 2003-01-10  Bruno Haible  <bruno@clisp.org>
124992         * modules/alloca: Change Makefile.am requirements. Simplify Include
124993         requirements. Add lib/alloca_.h to file list.
124995 2003-01-10  Bruno Haible  <bruno@clisp.org>
124997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
124999 2003-01-10  Bruno Haible  <bruno@clisp.org>
125001         * lib/alloca_.h: New file.
125002         * lib/getdate.y: Unconditionally include alloca.h.
125003         * lib/makepath.c: Likewise.
125004         * lib/setenv.c: Likewise.
125005         * lib/userspec.c: Likewise.
125007 2003-01-09  Karl Berry  <karl@gnu.org>
125009         * MODULES.html.sh: include `dirname $0` in PATH, to find
125010         gnulib-tool.
125012 2003-01-09  Bruno Haible  <bruno@clisp.org>
125014         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125015         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125017 2003-01-09  Bruno Haible  <bruno@clisp.org>
125019         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125021 2003-01-09  Bruno Haible  <bruno@clisp.org>
125023         * lib/stdbool.h.in: New file.
125025 2003-01-09  Bruno Haible  <bruno@clisp.org>
125027         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125028         * MODULES.html.sh: Likewise.
125030 2003-01-08  Jim Meyering  <jim@meyering.net>
125032         * lib/full-write.c: Undefine and define-away `const' after inclusion
125033         of errno.h, not before.  Suggestion from Bruno Haible.
125035 2003-01-08  Bruno Haible  <bruno@clisp.org>
125037         * modules/full-read: Depend on full-write.
125039 2003-01-08  Bruno Haible  <bruno@clisp.org>
125041         * lib/safe-read.c: Include specification header first, to ensure its
125042         selfcontainedness.
125043         * lib/full-write.c: Likewise.
125045 2003-01-07  Jim Meyering  <jim@meyering.net>
125047         * lib/full-write.c: Rework so that it may serve to define full_read,
125048         too.
125049         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125051 2003-01-07  Bruno Haible  <bruno@clisp.org>
125053         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125054         <inttypes.h>.
125055         * lib/xstrtol.h: Likewise.
125056         * lib/xstrtoimax.c: Likewise.
125057         * lib/xstrtoumax.c: Likewise.
125058         * lib/human.h: Likewise.
125060         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125061         on systems that have <inttypes.h> but not <stdint.h>.
125063 2003-01-07  Bruno Haible  <bruno@clisp.org>
125065         * MODULES.html.sh: Add copyright notice.
125066         (missed_files): Omit CVS directory entries.
125067         (func_module): Make it work with sed-3.02.
125068         * MODULES.txt: Remove file.
125070 2003-01-06  Jim Meyering  <jim@meyering.net>
125072         * lib/version-etc.c: Update year in translatable copyright string.
125074 2003-01-03  Karl Berry  <karl@gnu.org>
125076         * config/config.{guess,sub}: update from prep.
125078 2003-01-02  Karl Berry  <karl@gnu.org>
125080         * doc/COPYING.DOC: belatedly updated to 1.2.
125082 2003-01-01  Karl Berry  <karl@gnu.org>
125084         * gnulib-tool (func_verify_module): report module name $module in
125085         error message, not $1.
125086         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125087         be created, only if it doesn't exist.
125088         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125090 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125092         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125094 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125096         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125097         memcmp if strcoll doesn't work.
125099 2002-12-31  Bruno Haible  <bruno@clisp.org>
125101         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125102         nonempty.
125104 2002-12-31  Bruno Haible  <bruno@clisp.org>
125106         * lib/memcoll.c (STRCOLL): New macro.
125107         (memcoll): Use it.
125109 2002-12-31  Bruno Haible  <bruno@clisp.org>
125111         * lib/localcharset.h: New file.
125112         * lib/localcharset.c: Include it.
125113         * lib/unicodeio.c: Likewise.
125115 2002-12-31  Bruno Haible  <bruno@clisp.org>
125117         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125118         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125120 2002-12-31  Bruno Haible  <bruno@clisp.org>
125122         * lib/getline.h: Include <stddef.h>, for size_t.
125124         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125125         * lib/unicodeio.c: Don't include <stddef.h>.
125127 2002-12-31  Bruno Haible  <bruno@clisp.org>
125129         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125130         HAVE_TM_ZONE.
125132 2002-12-24  Karl Berry  <karl@gnu.org>
125134         * config/config.guess: update from prep.
125136 2002-12-24  Bruno Haible  <bruno@clisp.org>
125138         General infrasructure.
125139         * m4/README: Rewritten.
125140         * m4/onceonly.m4: New file.
125141         * m4/onceonly_2_57.m4: New file.
125143         Module atexit.
125144         * m4/atexit.m4: New file.
125146         Module strtod.
125147         * m4/strtod.m4: New file.
125149         Module strtol.
125150         * m4/strtol.m4: New file.
125152         Module strtoul.
125153         * m4/strtoul.m4: New file.
125155         Module memchr.
125156         * m4/memchr.m4: New file.
125158         Module memcmp.
125159         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125160         (jm_FUNC_MEMCMP): Invoke it.
125162         Module memcpy.
125163         * m4/memcpy.m4: New file.
125165         Module memmove.
125166         * m4/memmove.m4: New file.
125168         Module memset.
125169         * m4/memset.m4: New file.
125171         Module strcspn.
125172         * m4/strcspn.m4: New file.
125174         Module strpbrk.
125175         * m4/strpbrk.m4: New file.
125177         Module strstr.
125178         * m4/strstr.m4: New file.
125180         Module strerror.
125181         * m4/strerror.m4: New file.
125183         Module mktime.
125184         * m4/mktime.m4: Renamed from jm-mktime.m4.
125185         (gl_PREREQ_MKTIME): New macro.
125186         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125188         Module malloc.
125189         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125190         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125191         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125193         Module realloc.
125194         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125195         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125196         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125198         Module strftime.
125199         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125200         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125201         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125202         gl_TM_GMTOFF.
125203         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125205         Module xalloc.
125206         * m4/xalloc.m4: New file.
125208         Module alloca.
125209         * m4/alloca.m4: New file.
125211         Module putenv.
125212         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125213         (jm_FUNC_PUTENV): Invoke it.
125215         Module setenv.
125216         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125217         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125218         when invoked twice.
125219         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125220         gt_FUNC_SETENV.
125222         Module memrchr.
125223         * m4/memrchr.m4: New file.
125225         Module stpcpy.
125226         * m4/stpcpy.m4: New file.
125228         Module strcase.
125229         * m4/strcase.m4: New file.
125231         Module strdup.
125232         * m4/strdup.m4: New file.
125234         Module strnlen.
125235         * m4/strnlen.m4: New file.
125237         Module strndup.
125238         * m4/strndup.m4: New file.
125240         Module xstrtod.
125241         * m4/xstrtod.m4: New file.
125243         Module xstrtol.
125244         * m4/xstrtol.m4: New file.
125246         Module getdate.
125247         * m4/getdate.m4: New file.
125249         Module unlocked-io.
125250         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125251         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125252         * m4/jm-glibc-io.m4n: Remove file.
125254         Module long-options.
125255         * m4/long-options.m4: New file.
125257         Module md5.
125258         * m4/md5.m4: New file.
125260         Module sha.
125261         * m4/sha.m4: New file.
125263         Module getstr.
125264         * m4/getstr.m4: New file.
125266         Module getline.
125267         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125268         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125269         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125270         simply getline. Infoke gl_PREREQ_GETLINE.
125272         Module obstack.
125273         * m4/obstack.m4: New file.
125275         Module hash.
125276         * m4/hash.m4: New file.
125278         Module readtokens.
125279         * m4/readtokens.m4: New file.
125281         Module strverscmp.
125282         * m4/strverscmp.m4: New file.
125284         Module stdbool.
125285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125286         OSF/1.
125288         Module strtoll.
125289         * m4/strtoll.m4: New file.
125291         Module strtoull.
125292         * m4/strtoull.m4: New file.
125294         Module strtoimax.
125295         * m4/strtoimax.m4: New file.
125297         Module strtoumax.
125298         * m4/strtoumax.m4: New file.
125300         Module xstrtoimax.
125301         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125302         jm_AC_PREREQ_XSTRTOIMAX.
125303         Moved the strtol prerequisites to strtol.m4.
125304         Moved the strtoll prerequisites to strtoll.m4.
125305         Moved the strtoimax prerequisites to strtoimax.m4.
125307         Module xstrtoumax.
125308         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125309         jm_AC_PREREQ_XSTRTOUMAX.
125310         Moved the strtoul prerequisites to strtoul.m4.
125311         Moved the strtoull prerequisites to strtoull.m4.
125312         Moved the strtoumax prerequisites to strtoumax.m4.
125314         Module chown.
125315         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125316         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125318         Module dup2.
125319         * m4/dup2.m4: New file.
125321         Module ftruncate.
125322         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125323         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125325         Module getgroups.
125326         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125327         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125329         Module gettimeofday.
125330         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125331         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125332         gl_PREREQ_GETTIMEOFDAY.
125334         Module mkdir.
125335         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125336         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125338         Module mkstemp.
125339         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125340         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125341         jm_AC_TYPE_UINTMAX_T.
125342         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125344         Module stat.
125345         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125346         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125348         Module lstat.
125349         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125350         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125352         Module timespec.
125353         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125354         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125355         * m4/st_mtim.m4: Indentation.
125357         Module nanosleep.
125358         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125359         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125360         gl_PREREQ_NANOSLEEP.
125362         Module regex.
125363         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125364         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125365         (gl_REGEX): New macro.
125367         Module rename.
125368         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125369         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125371         Module rmdir.
125372         * m4/rmdir.m4: New file.
125374         Module utime.
125375         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125376         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125377         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125379         Module dirname.
125380         * m4/dirname.m4: New file.
125382         Module getopt.
125383         * m4/getopt.m4: New file.
125385         Module unistd-safer.
125386         * m4/unistd-safer.m4: New file.
125388         Module fnmatch.
125389         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125390         declaration.
125391         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125392         (gl_FUNC_FNMATCH_POSIX): New macro.
125393         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125394         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125395         simply fnmatch.
125397         Module exclude.
125398         * m4/exclude.m4: New file.
125400         Module human.
125401         * m4/human.m4: New file.
125403         Module acl.
125404         * m4/acl.m4: Nop.
125406         Module backupfile.
125407         * m4/backupfile.m4: New file.
125408         * m4/d-ino.m4: Indentation.
125410         Module fsusage.
125411         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125412         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125413         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125415         Module dirfd.
125416         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125417         requirements.
125419         Module euidaccess.
125420         * m4/euidaccess.m4: New file.
125422         Module file-type.
125423         * m4/file-type.m4: New file.
125425         Module fileblocks.
125426         * m4/fileblocks.m4: New file.
125428         Module filemode.
125429         * m4/filemode.m4: New file.
125431         Module isdir.
125432         * m4/isdir.m4: New file.
125434         Module lchown.
125435         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125436         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125438         Module makepath.
125439         * m4/makepath.m4: New file.
125441         Module modechange.
125442         * m4/modechange.m4: New file.
125444         Module mountlist.
125445         * m4/mountlist.m4: New file.
125446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125447         Indentation.
125449         Module path-concat.
125450         * m4/path-concat.m4: New file.
125452         Module pathmax.
125453         * m4/pathmax.m4: New file.
125455         Module same.
125456         * m4/same.m4: New file.
125458         Module save-cwd.
125459         * m4/save-cwd.m4: New file.
125461         Module savedir.
125462         * m4/savedir.m4: New file.
125464         Module xgetcwd.
125465         * m4/xgetcwd.m4: New file.
125466         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125468         Module xreadlink.
125469         * m4/xreadlink.m4: New file.
125471         Module safe-read.
125472         * m4/safe-read.m4: New file.
125474         Module safe-write.
125475         * m4/safe-write.m4: New file.
125477         Module closeout.
125478         * m4/closeout.m4: New file.
125480         Module stdio-safer.
125481         * m4/stdio-safer.m4: New file.
125483         Module getpass.
125484         * m4/getpass.m4: New file.
125486         Module getugroups.
125487         * m4/getugroups.m4: New file.
125489         Module group-member.
125490         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125491         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125493         Module idcache.
125494         * m4/idcache.m4: New file.
125496         Module userspec.
125497         * m4/userspec.m4: New file.
125499         Module gettime.
125500         * m4/clock_time.m4: New file.
125501         * m4/gettime.m4: New file.
125503         Module settime.
125504         * m4/settime.m4: New file.
125506         Module posixtm.
125507         * m4/posixtm.m4: New file.
125509         Module gethostname.
125510         * m4/gethostname.m4: New file.
125512         Module canon-host.
125513         * m4/canon-host.m4: New file.
125515         Module gettext.
125516         * m4/codeset.m4: New file, from gettext-0.11.5.
125517         * m4/gettext.m4: New file, from gettext-0.11.5.
125518         * m4/glibc21.m4: New file, from gettext-0.11.5.
125519         * m4/iconv.m4: New file, from gettext-0.11.5.
125520         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125521         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125522         * m4/inttypes.m4: New file, from gettext-0.11.5.
125523         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125524         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125525         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125526         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125527         * m4/lib-link.m4: New file, from gettext-0.11.5.
125528         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125529         * m4/progtest.m4: New file, from gettext-0.11.5.
125530         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125531         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125532         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125534         Module localcharset.
125535         * m4/localcharset.m4: New file.
125537         Module hard-locale.
125538         * m4/hard-locale.m4: New file.
125540         Module mbswidth.
125541         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125542         onceonly macros.
125543         * m4/mbrtowc.m4: Add comment.
125545         Module memcasecmp.
125546         * m4/memcasecmp.m4: New file.
125548         Module memcoll.
125549         * m4/memcoll.m4: New file.
125551         Module unicodeio.
125552         * m4/unicodeio.m4: New file.
125554         Module rpmatch.
125555         * m4/rpmatch.m4: New file.
125557         Module yesno.
125558         * m4/yesno.m4: New file.
125560         Module exitfail.
125561         * m4/exitfail.m4: New file.
125563         Module c-stack.
125564         * m4/c-stack.m4 (gl_C_STACK): New macro.
125565         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125567         Module error.
125568         * m4/error.m4 (gl_ERROR): New macro.
125569         (jm_PREREQ_ERROR): Use onceonly macros.
125571         Module fatal.
125572         * m4/fatal.m4: New file.
125574         Module getloadavg.
125575         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125576         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125578         Module getpagesize.
125579         * m4/getpagesize.m4: New file.
125581         Module getusershell.
125582         * m4/getusershell.m4: New file.
125584         Module physmem.
125585         * m4/physmem.m4: New file.
125587         Module posixver.
125588         * m4/posixver.m4: New file.
125590         Module quotearg.
125591         * m4/quotearg.m4: New file.
125593         Module quote.
125594         * m4/quote.m4: New file.
125596         Module readutmp.
125597         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
125599         Module sig2str.
125600         * m4/sig2str.m4: New file.
125602         Other.
125603         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
125604         ulonglong.m4.
125605         * m4/intmax_t.m4: New file.
125606         * m4/d-type.m4: Indentation.
125607         * m4/jm-macros.m4: Update.
125608         * m4/prereq.m4 (jm_PREREQ): Update.
125609         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
125610         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
125611         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
125612         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
125613         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
125614         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
125615         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
125616         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
125617         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
125618         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
125619         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
125620         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
125621         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
125622         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
125623         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
125624         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
125625         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
125626         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
125627         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
125629 2002-12-24  Bruno Haible  <bruno@clisp.org>
125631         * MODULES.txt: Update according to m4/ changes.
125633         Module gettext.
125634         * config.rpath: New file, from gettext-0.11.5.
125636         * modules/*: New module descriptions.
125637         * gnulib-tool: New file.
125638         * MODULES.html.sh: New file.
125640 2002-12-21  Karl Berry  <karl@gnu.org>
125642         * doc/fdl.texi: update to version 1.2.
125644 2002-12-19  Karl Berry  <karl@gnu.org>
125646         * config/config.guess: update from prep.
125648 2002-12-18  Bruno Haible  <bruno@clisp.org>
125650         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
125651         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
125653 2002-12-17  Bruno Haible  <bruno@clisp.org>
125655         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
125656         stdlib.h, string.h.
125658 2002-12-17  Bruno Haible  <bruno@clisp.org>
125660         * lib/canon-host.c (strdup): Remove unused declaration.
125662         * lib/fsusage.c: Include full_read.h.
125663         (get_fs_usage): Use full_read instead of safe_read.
125665         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
125667 2002-12-12  Karl Berry  <karl@gnu.org>
125669         * config/config.guess: update from prep.
125671 2002-12-11  Bruno Haible  <bruno@clisp.org>
125673         * m4/setenv.m4: New file, from gettext-0.11.5.
125675 2002-12-11  Bruno Haible  <bruno@clisp.org>
125677         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
125678         not unsetenv().
125679         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
125680         modifications:
125682         2002-12-11  Bruno Haible  <bruno@clisp.org>
125684                 * setenv.c (alloca): Fall back to malloc.
125685                 (freea): New macro.
125686                 (setenv): Use freea() to free memory allocated with alloca().
125688         2002-11-13  Bruno Haible  <bruno@clisp.org>
125690                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
125691                 function declarations.
125692                 * unsetenv.c (unsetenv): Likewise.
125694         2002-03-04  Bruno Haible  <bruno@clisp.org>
125696                 Portability to AIX 4.3.3.
125697                 * unsetenv.c: New file, extracted from setenv.c.
125698                 * setenv.c: Move the unsetenv() function to unsetenv.c.
125700         2001-12-20  Bruno Haible  <bruno@clisp.org>
125702                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
125703                 use malloc instead. For SunOS 4.
125705         2001-12-11  Bruno Haible  <bruno@clisp.org>
125707                 * setenv.c: Declare alloca.
125708                 (compar_fn_t): New typedef.
125709                 (KNOWN_VALUE, STORE_VALUE): Use it.
125711         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
125712         setenv.h.
125714 2002-12-10  Paul Eggert  <eggert@twinsun.com>
125716         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
125717         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
125718         Choose values that are less likely to collide with system fnmatch
125719         options.
125720         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
125721         defined (e.g., a pure POSIX system).
125722         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
125723         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
125725 2002-12-06  Paul Eggert  <eggert@twinsun.com>
125727         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
125728         a pain in practice to deal with generated m4 files.  This change
125729         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
125731         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
125732         and jm-glibc-io.m4, as they are no longer a special case.
125733         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
125734         kludge and the auto-generation stuff.  Check only whether the
125735         functions are declared, not whether they exist, since older hosts
125736         that don't declare the functions can't use the optimization anyway.
125738 2002-12-06  Jim Meyering  <jim@meyering.net>
125740         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
125742         Merge in changes from libc's misc/error.c, in preparation
125743         for the merge of gnulib's changes back into libc.
125745         * lib/error.c (_): Define only if not already defined.
125746         Move definition to follow all #include directives.
125747         Include unlocked-io.h only if !_LIBC.
125748         [_LIBC]: Include <libio/libioP.h>.
125749         [USE_IN_LIBIO]: Include <libio/iolibio.h>
125750         (fflush): Tweak definition to use INTUSE.
125751         (putc): Define.
125753 2002-12-05  Paul Eggert  <eggert@twinsun.com>
125755         * lib/alloca.c [defined emacs]: Include "lisp.h".
125756         (xalloc_die) [defined emacs]: New macro.
125757         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
125758         [! defined emacs]: Include <xalloc.h>.
125759         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
125760         (pointer): Typedef to POINTER_TYPE *.
125761         (malloc): Remove decl; we now always use xmalloc.
125762         (alloca): Use old-style definition, since Emacs needs this.
125763         Check for arithmetic overflow when computing combined size.
125765 2002-12-04  Paul Eggert  <eggert@twinsun.com>
125767         Do not generate unlocked-io.h automatically, since it's easier to
125768         maintain it by hand.
125770         * lib/unlocked-io.h: New file, from GNU diffutils,
125771         but with proper copyright notice and attribution.
125772         * lib/gen-uio: Remove.
125773         * lib/Makefile.am: Add copyright notice.
125774         (libfetish_a_SOURCES): Add unlocked-io.h.
125775         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
125776         (DISTCLEANFILES, io_functions): Remove macros.
125777         (EXTRA_DIST): Remove gen_uio.
125778         (unlocked-io.h): Remove rule.
125780 2002-12-04  Jim Meyering  <jim@meyering.net>
125782         Reflect the fact that stat.c and lstat.c are no longer generated.
125783         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
125784         (DISTCLEANFILES): Likewise.
125785         (EXTRA_DIST): Likewise.
125786         (all_local): Don't depend on stat.c or lstat.c.
125787         (stat.c, lstat.c): Remove rules.
125788         (EXTRA_DIST): Remove xstat.in.
125790         * lib/xstat.in: Remove file.  Contents moved into stat.c.
125791         * lib/stat.c: New file.  Contents mostly from xstat.in.
125792         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
125793         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
125795         * lib/safe-read.c: Rework so that it may serve to define safe_write,
125796         too.
125797         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
125799 2002-12-03  Jim Meyering  <jim@meyering.net>
125801         * lib/safe-read.c, safe-write.c: Change variable names and comments,
125802         but not semantics, to minimize the differences between these two files.
125803         (safe_read): Change comment to mention SAFE_READ_ERROR.
125805         * lib/safe-read.c (IS_EINTR): Define.
125806         (safe_read): Use IS_EINTR in place of in-function cpp directives.
125808 2002-12-02  Jim Meyering  <jim@meyering.net>
125810         * lib/safe-read.c (EINTR): Define.
125811         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
125812         (INT_MAX): Provide fallback.
125813         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
125815         * lib/safe-read.h (SAFE_READ_ERROR): Define.
125817 2002-12-02  Bruno Haible  <bruno@clisp.org>
125819         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
125820         Define, taken from safe-read.c.
125821         (INT_MAX): Provide fallback.
125822         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
125823         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
125825         * lib/safe-read.c (EINTR): Remove definition.
125826         (safe_read): Don't use EINTR if it is absent.
125828 2002-12-01  Jim Meyering  <jim@meyering.net>
125830         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
125831         zero.
125832         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
125834 2002-11-27  Paul Eggert  <eggert@twinsun.com>
125836         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
125837         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
125838         with `if (! (value < limit)) abort ();', for readability.
125840 2002-11-26  Karl Berry  <karl@gnu.org>
125842         * lib/strdup.c: copy from libc again, with jim's ok.
125843         * lib/.cppi-disable: re-add strdup.c
125845 2002-11-25  Karl Berry  <karl@gnu.org>
125847         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
125848         instead of "strtol.c".
125850 2002-11-25  Karl Berry  <karl@gnu.org>
125852         * config/install-sh: update from automake for variable quoting, $0 in
125853         error msgs, etc.
125855         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
125856         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
125857         entry.
125859 2002-11-25  Jim Meyering  <jim@meyering.net>
125861         * lib/mktime.c: Sync from libc, now that it has the latest fix.
125863 2002-11-24  Karl Berry  <karl@gnu.org>
125865         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
125866         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
125868 2002-11-24  Jim Meyering  <jim@meyering.net>
125870         Update from coreutils:
125872         * lib/mktime.c: Merge in changes from libc.
125874         Avoid a link-time failure on some Linux systems.
125875         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
125876         (otherwise).
125877         (__mon_yday): Declare with the STATIC attribute.
125878         (__mktime_internal): Likewise.
125879         Based on a report from Greg Schafer.
125881 2002-11-23  Jim Meyering  <jim@meyering.net>
125883         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
125884         Use `unsigned', not `int', as type of index.
125886         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
125888         * lib/fsusage.c: Remove unneeded parentheses around operands of
125889         `defined'.
125891 2002-11-22  Paul Eggert  <eggert@twinsun.com>
125893         * lib/quotearg.h: Allow multiple inclusion by surrounding with
125894         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
125895         so that we can be included first.
125896         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
125897         * lib/quotearg.c: Include quotearg.h immediately after config.h.
125898         No need to include stddef.h or sys/types.h any more.
125899         Surround local include files with "", not "<>".
125900         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
125901         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
125902         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
125903         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
125904         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
125905         (ISPRINT): Remove; no longer needed now that we assume C89.
125907         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
125908         Preserve errno.
125910         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
125911         quotearg_char): Use SIZE_MAX rather than
125912         (size_t) -1 when we are talking about "infinity".
125914         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
125916 2002-11-22  Paul Eggert  <eggert@twinsun.com>
125918         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
125919         hint that one should use `if (! x) abort ();' rather than `assert
125920         (x);', and anyway it's one less thing to worry about configuring.
125921         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
125922         hash_rehash, hash_insert): Use abort rather than assert.
125924 2002-11-22  Bruno Haible  <bruno@clisp.org>
125926         * lib/safe-read.h: Assume C89. Add comments.
125927         (safe_read): Change return type to size_t.
125928         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
125929         byte counts > SSIZE_MAX correctly.
125930         * lib/safe-write.h: New file.
125931         * lib/safe-write.c: New file.
125932         * lib/full-read.h: New file.
125933         * lib/full-read.c: New file.
125934         * lib/full-write.h: Assume C89. Add comments.
125935         * lib/full-write.c: Include safe-write.h.
125936         (full_write): Rewritten to use safe_write.
125937         Suggested by Jim Meyering and Paul Eggert.
125939 2002-11-21  Jim Meyering  <jim@meyering.net>
125941         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
125943         Merge in changes from the coreutils.
125945         2002-09-25  Paul Eggert  <eggert@twinsun.com>
125946         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
125947         <stdint.h>.
125948         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
125949         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
125950         int.  Work more efficiently if X is the same width as uintmax_t.
125951         Do not compare X to -1, to avoid bogus compiler warning.
125952         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
125953         Don't assume that f_frsize and f_bsize are the same type.
125955         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
125956         warning on FreeBSD.
125958         * lib/makepath.c (make_path): Restore umask *before* creating the final
125959         component.
125960         (make_path): Minor reformatting.
125962         * lib/xmalloc.c: Adjust to work with new autoconf macros,
125963         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
125964         HAVE_MALLOC/HAVE_REALLOC.
125966         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
125967         dummy ones.  At least on GNU/Linux systems, `auto' means something
125968         else.
125969         From Michael Stone.
125971 2002-11-21  Bruno Haible  <bruno@clisp.org>
125973         Remove case insensitive option matching.
125974         * lib/argmatch.h (argcasematch): Remove declaration.
125975         (ARGCASEMATCH): Remove macro.
125976         (__xargmatch_internal): Remove case_sensitive argument.
125977         (XARGMATCH): Update.
125978         (XARGCASEMATCH): Remove macro.
125979         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
125980         case_sensitive argument.
125981         (argcasematch): Remove function.
125982         (__xargmatch_internal): Remove case_sensitive argument.
125983         (main): Use XARGMATCH instead of XARGCASEMATCH.
125985         * lib/xmalloc.c: Change compile-time error message. Add comment about
125986         required autoconf version.
125988 2002-11-20  Paul Eggert  <eggert@twinsun.com>
125990         Merge argmatch cleanups from Bison.  Assume C89.
125992         * lib/argmatch.c: Include config.h here, not in argmatch.h.
125993         Include stdlib.h, for EXIT_FAILURE.
125994         Always include <string.h>, since we assume C89.
125995         (EXIT_FAILURE): Remove pre-C89 bug workaround.
125996         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
125997         Include <stddef.h> instead, since it's all we need for size_t.
125998         (PARAMS): Remove.  All uses removed.
125999         (ARRAY_CARDINALITY): Do not bother to #undef.
126000         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126001         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126002         Remove unnecessary parentheses.
126003         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126004         Insert necessary parentheses.
126005         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126006         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126008 2002-11-19  Bruno Haible  <bruno@clisp.org>
126010         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126011         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126013         * lib/mbswidth.h (PARAMS): Remove macro.
126014         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126015         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126017         * lib/gcd.h (PARAMS): Remove macro.
126018         (gcd): Use ANSI C function declarations.
126019         * lib/gcd.c (gcd): Likewise.
126021 2002-11-15  Bruno Haible  <bruno@clisp.org>
126023         * lib/strcspn.c: Include <stddef.h>.
126024         (strcspn): Use ANSI C function declaration. Change return type to
126025         size_t. Use NULL.
126026         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126027         (strpbrk): Use NULL.
126028         * lib/strpbrk.h (PARAMS): Remove macro.
126029         (strpbrk): Use ANSI C function declaration.
126030         * lib/strstr.c: Don't include <sys/types.h>.
126031         * lib/strstr.h (PARAMS): Remove macro.
126032         (strstr): Use ANSI C function declarations.
126034 2002-11-14  Karl Berry  <karl@gnu.org>
126036         * config/mkinstalldirs: `do' on separate line, instead of
126037         `for var; do'.
126039 2002-11-06  Bruno Haible  <bruno@clisp.org>
126041         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126042         * lib/gcd.c (gcd): Likewise.
126044 2002-11-05  Bruno Haible  <bruno@clisp.org>
126046         * lib/gcd.h: New file, from gettext-0.11.5.
126047         * lib/gcd.c: New file, from gettext-0.11.5.
126049 2002-11-05  Bruno Haible  <bruno@clisp.org>
126051         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126052         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126053         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126054         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126056         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126057         <libintl.h>.
126058         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126059         <libintl.h>.
126061         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126062         * lib/human.c: Include gettext.h instead of <libintl.h>.
126063         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126064         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126065         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126066         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126067         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126068         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126069         (textdomain): Remove definition.
126070         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126072         * lib/long-options.c: Remove include of <libintl.h> and definition of
126073         _.
126074         * lib/same.c: Remove include of <libintl.h> and definition of _.
126076 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126078         * lib/config.charset: A few additions for Solaris.
126080 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126082         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126083         * lib/localcharset.c (locale_charset): Declare as extern "C".
126085 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126087         * lib/config.charset: msdos in uk_UA uses CP1125.
126089 2002-11-04  Bruno Haible  <bruno@clisp.org>
126091         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126092         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126093         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126094         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126095         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126097 2002-11-04  Bruno Haible  <bruno@clisp.org>
126099         * lib/localcharset.c (locale_charset): Don't return an empty string.
126101 2002-11-04  Bruno Haible  <bruno@clisp.org>
126103         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126104         aliases.
126106 2002-11-04  Bruno Haible  <bruno@clisp.org>
126108         * lib/config.charset: Update for newest glibc. Add canonical names
126109         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126111 2002-11-04  Bruno Haible  <bruno@clisp.org>
126113         * lib/config.charset: Add support for NetBSD.
126115 2002-11-04  Bruno Haible  <bruno@clisp.org>
126117         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126119 2002-11-01  Bruno Haible  <bruno@clisp.org>
126121         * configure.in: Add AC_CONFIG_AUX_DIR call.
126122         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126123         test/Makefile.
126124         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126126 2002-09-28  Karl Berry  <karl@gnu.org>
126128         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126129         installed automake until the next release, since changes have been
126130         made.
126132 2002-09-25  Karl Berry  <karl@gnu.org>
126134         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126135         * lib/getopt*: copy from libc/posix.
126136         * lib/gettext.h: copy from gettext.
126137         * lib/.cppi-disable: add strdup.c, gettext.h.
126139 2002-09-25  Karl Berry  <karl@gnu.org>
126141         * config/srclist.txt: enable gettext.h check.
126142         * config/config.{guess,sub}: update from prep.
126143         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126144                 from automake 1.6.3.
126145         See srclist*.
126147 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126149         * regex.c (PATFETCH): Remove the translating fetch.
126150         (PATFETCH_RAW): Rename to PATFETCH.
126151         (set_image_of_range): New fun.
126152         (SET_RANGE_TABLE_WORK_AREA): Use it.
126153         (regex_compile): Don't translate the pattern chars so eagerly.
126154         Only do it when inserting an `exactn' bytecode or when handling
126155         a char-range.
126156         (mutually_exclusive_p): Avoid empty statement.
126158 2002-07-06  Jim Meyering  <meyering@lucent.com>
126160         * m4/README: Don't mention Makefile.am.in.
126161         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126163 2002-07-01  Jim Meyering  <meyering@lucent.com>
126165         * lib/c-stack.c: Include sys/time.h.
126166         From Volker Borchert.
126168 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126170         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126172 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126174         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126175         New macro.  Use it uniformly instead of
126176         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126177         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126178         reported by Vin Shelton.
126180 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126182         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126183         Do not assume SA_SIGINFO behavior.
126184         Bug reported by Jim Meyering on NetBSD 1.5.2.
126186 2002-06-22  Jim Meyering  <meyering@lucent.com>
126188         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126192         now that configure.ac uses AC_GNU_SOURCE.
126193         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126194         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126196         Update to latest tools.  Suggestions from Paul Eggert.
126197         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126198         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126199         * m4/fnmatch.m4: Likewise.
126200         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126201         to AC_HEADER_STDBOOL
126203 2002-06-22  Jim Meyering  <meyering@lucent.com>
126205         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126206         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126208 2002-06-22  Jim Meyering  <meyering@lucent.com>
126210         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126212         * lib/exitfail.c, exitfail.h: Likewise.
126213         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126215         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126216         of fnmatch.h.
126217         (EXTRA_DIST): Add fnmatch_loop.c.
126218         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126220         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126221         * lib/fnmatch.c: Update from diffutils-2.8.2.
126222         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126223         * lib/fnmatch.h: Remove file.
126225 2002-06-21  Jim Meyering  <meyering@lucent.com>
126227         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126228         * m4/mbrtowc.m4: Likewise.
126230         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126231         * m4/mbswidth.m4: Reflect name change:
126232         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126233         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126235         * m4/lib-link.m4: Update from gettext-0.11.2.
126236         * m4/gettext.m4: Likewise.
126238         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126239         From Alfred M. Szmidt.
126241 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126243         * lib/file-type.h: Report an error if neither S_ISREG nor
126244         S_IFREG is defined, instead of using a test specific to glibc
126245         2.2.  This should be safe, since POSIX requires S_ISREG and
126246         Unix Version 7 had S_IFREG.  We don't need to check for
126247         <sys/types.h> since we don't use any symbols that it defines.
126249 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126251         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126252         $@-t, so that each temporary file name is unique and valid in the first
126253         8 characters, for operation under DOS.
126255 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126259 2002-06-15  Jim Meyering  <meyering@lucent.com>
126261         Work even with DJGPP 2.03, which lacks support for symlinks.
126262         From Richard Dawe.
126263         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126264         is defined.
126265         * lib/lchown.c (S_ISLNK): Likewise.
126267 2002-06-15  Jim Meyering  <meyering@lucent.com>
126269         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126270         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126271         have been included before this file.
126273 2002-06-14  Jim Meyering  <meyering@lucent.com>
126275         * lib/file-type.h: Use the version from diffutils-2.8.2.
126276         * lib/file-type.c: Likewise.
126278 2002-06-07  Jim Meyering  <meyering@lucent.com>
126280         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126281         They're needed at least for NetBSD 1.5.2.
126282         ($statxfs_includes): Include those same headers.
126283         ($statxfs_includes): Include sys/vfs.h if available.
126284         ($statxfs_includes): Likewise for sys/statvfs.h.
126285         Check for the following members in both structs statfs and statvfs:
126286         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126288 2002-06-01  Jim Meyering  <meyering@lucent.com>
126290         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126291         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126293 2002-05-28  Jim Meyering  <meyering@lucent.com>
126295         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126296         Reported by Volker Borchert.
126298 2002-05-27  Jim Meyering  <meyering@lucent.com>
126300         Fix a problem seen only on nonconforming systems whereby ls.c's
126301         use of localtime, and then of gettimeofday would cause trouble:
126302         the localtime call used to initialize rpl_gettimeofday's save
126303         mechanism would clobber ls's current local time information so
126304         that in any long listing the first file would always be listed
126305         with date 1970-01-01.  Analysis by Volker Borchert.
126307         * lib/gettimeofday.c (localtime): Undefine.
126308         (rpl_localtime): New function.
126310 2002-05-27  Jim Meyering  <meyering@lucent.com>
126312         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126313         localtime.
126315         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126316         use the replacement function; it wouldn't resolve at link time.
126317         Reported by Volker Borchert.
126319 2002-05-22  Jim Meyering  <meyering@lucent.com>
126321         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126322         file-type.h.
126323         * lib/file-type.h: New file.
126324         * lib/file-type.c (file_type): New file/function.  Extracted from
126325         diffutils.
126327 2002-04-30  Jim Meyering  <meyering@lucent.com>
126329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126331 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126333         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126335 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126337         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126338         Do not check for alloca.h (no longer used) or stdbool.h (was never
126339         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126341 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126343         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126345 2002-04-29  Jim Meyering  <meyering@lucent.com>
126347         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126348         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126349         Use AC_FUNC_STRNLEN here instead.
126351         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126352         With autoconf-2.53a, it's part of AC_PROG_CC.
126354 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126356         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126359 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126361         * lib/sig2str.h, lib/sig2str.c: New files.
126362         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126364 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126366         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126367         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126368         of 127, since 64 is the largest conceivable number for ancient
126369         nonstandard hosts.
126370         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126372 2002-04-28  Jim Meyering  <meyering@lucent.com>
126374         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126376 2002-04-24  Jim Meyering  <meyering@lucent.com>
126378         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126379         (jm_PREREQ): Use it.
126381         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126382         mach/mach.h fcntl.h.
126383         Check for this function: setlocale.
126385 2002-04-24  Jim Meyering  <meyering@lucent.com>
126387         * lib/gettext.h: New file, from Gettext.
126388         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126389         (libfetish_a_SOURCES): Add gettext.h.
126391 2002-04-16  Jim Meyering  <meyering@lucent.com>
126393         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126394         ut_pid, ut_id, ut_exit.
126396 2002-04-16  Jim Meyering  <meyering@lucent.com>
126398         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126399         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126400         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126402 2002-04-12  Jim Meyering  <meyering@lucent.com>
126404         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126405         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126406         existence of the getmntinfo function.  Needed for Darwin 5.3.
126408         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126409         This is necessary at least on Darwin 5.3.
126411         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126412         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126413         strnlen.o in the library, and that makes some versions of ranlib
126414         object.
126416 2002-04-12  Jim Meyering  <meyering@lucent.com>
126418         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126420 2002-04-09  Jim Meyering  <meyering@lucent.com>
126422         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126423         to be more precise.  Rather than saying we're checking whether the
126424         function `works', say what we're testing.
126425         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126426         Reported by Bruno Haible.
126428 2002-03-10  Jim Meyering  <meyering@lucent.com>
126430         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126431         Suggestion from Santiago Vila.
126433 2002-03-08  Jim Meyering  <meyering@lucent.com>
126435         * lib/rename.c: Mention that this wrapper is needed also on
126436         mips-dec-ultrix4.4 systems.
126438 2002-03-02  Jim Meyering  <meyering@lucent.com>
126440         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126441         not HAVE_CLOCK_SETTIME.
126443 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126445         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126446         Check for clock_settime.
126448 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126450         * lib/nanosleep.h: Rename to....
126451         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126453         * lib/gettime.c: New file.
126454         * lib/settime.c: New file.
126455         * lib/stime.c: Remove.
126457         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126458         timespec.h.  Remove nanosleep.h.
126460 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126462         * m4/acl.m4: New file.
126463         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126464         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126466 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126468         * lib/acl.c, lib/acl.h: New files.
126469         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126471 2002-02-24  Jim Meyering  <meyering@lucent.com>
126473         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126474         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126475         cause trouble.  Reported by Nelson Beebe.
126477 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126479         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126480         compilers that don't know that xalloc_die never returns.
126482 2002-02-20  Jim Meyering  <meyering@lucent.com>
126484         * lib/getdate.c: Regenerate using bison-1.33.
126486 2002-02-17  Jim Meyering  <meyering@lucent.com>
126488         * config/config.guess (main): Don't use `head -1'; it's no longer
126489         portable. Use `sed 1q' instead.
126491 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126493         * m4/codeset.m4: Upgrade to gettext-0.11.
126494         * m4/gettext.m4: Upgrade to gettext-0.11.
126495         * m4/glibc21.m4: Upgrade to gettext-0.11.
126496         * m4/iconv.m4: Upgrade to gettext-0.11.
126497         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126498         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126499         * m4/lib-ld.m4: New file, from gettext-0.11.
126500         * m4/lib-link.m4: New file, from gettext-0.11.
126501         * m4/lib-prefix.m4: New file, from gettext-0.11.
126502         * m4/progtest.m4: Upgrade to gettext-0.11.
126504 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126506         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126507         (jm_PREREQ): Use it.
126509 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126511         * lib/posixver.c, lib/posixver.h: New files.
126512         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126514 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126515             Bruno Haible  <bruno@clisp.org>
126517         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126518         (fwrite_success_callback): New declaration.
126519         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126520         print_unicode_char. Call failure callback instead of error.
126521         (fwrite_success_callback): New function.
126522         (exit_failure_callback): New function.
126523         (fallback_failure_callback): New function.
126524         (print_unicode_char): Call unicode_to_mb.
126526 2002-01-26  Jim Meyering  <meyering@lucent.com>
126528         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126529         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126531 2002-01-26  Jim Meyering  <meyering@lucent.com>
126533         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126535 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126537         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126539 2002-01-22  Jim Meyering  <meyering@lucent.com>
126541         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126542         Otherwise, some versions of automake would omit the rule that makes
126543         Makefile from Makefile.in.
126545 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126547         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126548         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126549         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126550         (memcoll): Set errno to zero if there is no error.
126552         * lib/quotearg.c (quotearg_buffer_restyled):
126553         Fix bug with quoting buffers containing NUL when backslashing escapes.
126554         This bug was exposed by the other changes in this patch.
126555         (quotearg_n_options): New arg ARGSIZE.
126556         All callers changed.
126557         (quoting_options_from_style): New function.
126558         (quotearg_n_style): Use it.
126559         (quotearg_n_style_mem): New function.
126561         * lib/quotearg.h (quotearg_n_style_mem): New function.
126563 2002-01-19  Jim Meyering  <meyering@lucent.com>
126565         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126566         Remove useless quotes: DF_PROG="df".
126567         * m4/strnlen.m4: New file.
126569 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126571         * lib/backupfile.c (ISDIGIT): Comment fix.
126572         * lib/getdate.y (ISDIGIT): Likewise.
126573         * lib/posixtm.c (ISDIGIT, year): Likewise.
126574         * lib/strverscmp.c (ISDIGIT): Likewise.
126575         * lib/userspec.c (ISDIGIT): Likewise.
126577 2002-01-16  Jim Meyering  <meyering@lucent.com>
126579         * lib/getdate.y: Add three semicolons, each just before a closing
126580         brace. Bison (as of version 1.31) no longer papers over that mistake.
126582 2002-01-05  Jim Meyering  <meyering@lucent.com>
126584         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126586 2001-12-19  Paul Eggert  <eggert@twinsun.com>
126588         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
126589         not silently exit merely because the output buffer happens to
126590         have nothing pending.
126592 2001-12-18  Paul Eggert  <eggert@twinsun.com>
126594         See the big note in ../ChangeLog.
126595         * lib/human.c (suffixes): Prefer K to k for 1024.
126596         (generate_suffix_backwards): New function.
126597         (human_readable_inexact): Use it.
126598         * lib/xstrtol.c (__xstrtol): If there is no number but there
126599         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
126600         Accept 'K' as well as 'k'.
126602 2001-12-15  Jim Meyering  <meyering@lucent.com>
126604         * lib/regex.h (__restrict_arr): Update from libc.
126606         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
126607         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
126608         (STREQ): Define.
126610 2001-12-14  Jim Meyering  <meyering@lucent.com>
126612         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
126613         Suggestion from Bruno Haible.
126615 2001-12-10  Jim Meyering  <meyering@lucent.com>
126617         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
126618         xrealloc, Instead, include "xalloc.h".
126619         (initbuffer): Don't cast xmalloc return value to char*.
126620         (readline): Reword comment.
126621         Don't cast xrealloc return value to char*
126622         Return NULL, not 0.
126624 2001-12-09  Jim Meyering  <meyering@lucent.com>
126626         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
126627         about `signed and unsigned type in conditional expression'.
126628         * lib/posixtm.c (posix_time_parse): Likewise.
126630         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
126632         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
126633         to avoid a pedantic warning.
126635         * lib/getstr.c: Don't include assert.h.
126636         (getstr): Remove warning-evoking assertions.
126637         Return -1 if offset parameter is out of bounds.
126638         Change the type of a local from int to size_t.
126640         * lib/strftime.c (my_strftime_localtime_r): Include this function
126641         definition in the `#if ! HAVE_TM_GMTOFF' block.
126643         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
126644         Include xalloc.h instead.
126646 2001-12-02  Jim Meyering  <meyering@lucent.com>
126648         * lib/tempname.c: Don't declare getenv, thus reverting the change of
126649         2001-11-18.  It's no longer necessary, now that stdlib.h is always
126650         included.
126652         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
126653         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
126655 2001-11-30  Akim Demaille  <akim@epita.fr>
126657         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
126658         before being defined.
126660 2001-11-27  Paul Eggert  <eggert@twinsun.com>
126662         * lib/quotearg.h (quotearg_n, quotearg_n_style):
126663         First arg is int, not unsigned.
126664         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
126665         (SIZE_MAX, UINT_MAX): New macros.
126666         (quotearg_n_options): Abort if N is negative.
126667         Avoid overflow check on hosts where size_t is 64 bits and int
126668         is 32 bits, as overflow is impossible there.
126669         Fix off-by-one typo that caused unnecessary reallocation.
126671 2001-11-27  Jim Meyering  <meyering@lucent.com>
126673         * lib/tempname.c: Merge with version from libc.
126674         * lib/regex.c: Likewise.
126676         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
126677         systems for which STDC_HEADERS is 0, it was not included, resulting in
126678         a warning about an integer-to-pointer conversion problem with getenv.
126679         Reported by Volker Borchert.
126681 2001-11-26  Jim Meyering  <meyering@lucent.com>
126683         * lib/gtod.h: Remove file.
126684         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
126685         * lib/gettimeofday.c: Don't include gtod.h.
126686         (GTOD_init): Remove function.
126687         (rpl_gettimeofday): Do its job here instead, rather than aborting.
126688         Suggestion from Volker Borchert.
126690 2001-11-23  Jim Meyering  <meyering@lucent.com>
126692         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
126693         it.
126694         * lib/hash.c (struct hash_table): Define it here instead.
126696 2001-11-22  Jim Meyering  <meyering@lucent.com>
126698         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
126700 2001-11-20  Jim Meyering  <meyering@lucent.com>
126702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
126703         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
126705 2001-11-19  Jim Meyering  <meyering@lucent.com>
126707         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
126708         directory.  Use "conftestXXXXXX" as the template.
126709         Suggestion from Paul Eggert.
126711         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
126712         immediately, so the test doesn't mistakenly hit the max-open-files
126713         limit.
126715 2001-11-18  Paul Eggert  <eggert@twinsun.com>
126717         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
126718         (TEMPORARIES): New macro.
126719         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
126720         removes an artificial limitation (e.g. HP-UX 10.20, where
126721         TMP_MAX is 17576).
126723 2001-11-18  Jim Meyering  <meyering@lucent.com>
126725         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
126727 2001-11-18  Jim Meyering  <meyering@lucent.com>
126729         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
126730         on SunOS 4.
126732         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
126733         files will be created before anything else.
126735 2001-11-17  Paul Eggert  <eggert@twinsun.com>
126737         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
126738         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
126740 2001-11-17  Jim Meyering  <meyering@lucent.com>
126742         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
126743         Prompted by a report from Bob Proulx.
126745         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
126746         Instead, require UTILS_FUNC_MKSTEMP.
126748 2001-11-17  Jim Meyering  <meyering@lucent.com>
126750         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
126751         Now, that's done as part of AC_FUNC_STRTOD.
126753 2001-11-17  Jim Meyering  <meyering@lucent.com>
126755         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
126756         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
126757         rather than group writable.  Patch by Juan F. Codagnone.
126759         * lib/readtokens.c: Remove explicit declarations of xmalloc and
126760         xrealloc, Instead, include "xalloc.h".
126762         * lib/mountlist.c: Include unlocked-io.h after all system headers.
126763         Remove explicit declarations of xmalloc, xrealloc,
126764         and xstrdup.  Instead, include "xalloc.h".
126766         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
126767         unlocked-io.h.
126768         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
126769         Likewise.
126770         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
126772         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
126773         Reported by Padraig Brady.
126775         * lib/mkstemp.c: #undef mkstemp.
126776         Include config.h.
126777         (rpl_mkstemp): Rename from mkstemp.
126778         Protoize.
126780 2001-11-16  Jim Meyering  <meyering@lucent.com>
126782         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
126783         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
126784         determine the amount of total physical memory, use pstat_getstatic.
126785         HPUX-11 doesn't define _SC_PHYS_PAGES.
126786         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
126787         If sysconf couldn't be used to determine the amount of available
126788         physical memory, use both pstat_getstatic and pstat_getdynamic.
126789         Based on a patch from Bob Proulx.
126791 2001-11-10  Jim Meyering  <meyering@lucent.com>
126793         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
126794         (jm_PREREQ): Use it.
126796 2001-11-09  Jim Meyering  <meyering@lucent.com>
126798         * m4/jm-macros.m4: Require autoconf-2.52f.
126799         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
126800         Use these AC_-prefixed names, not the AM_-prefixed ones.
126802         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
126804 2001-11-05  Jim Meyering  <meyering@lucent.com>
126806         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
126808 2001-11-04  Jim Meyering  <meyering@lucent.com>
126810         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
126811         $DEFS.
126813 2001-11-03  Jim Meyering  <meyering@lucent.com>
126815         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
126816         of AC_DEFUN.
126818         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
126819         know the name of the variable in the macro definition.
126821 2001-11-03  Jim Meyering  <meyering@lucent.com>
126823         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
126824         in argmatch_to_argument call.
126826         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
126827         argument.
126829         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
126830         e.g., a fault due to an attempt to free a NULL pointer.
126832 2001-11-01  Jim Meyering  <meyering@lucent.com>
126834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
126835         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
126837 2001-11-01  Jim Meyering  <meyering@lucent.com>
126839         * lib/dirfd.c, lib/dirfd.h: New files.
126840         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
126842         * lib/hash.c (hash_print) [TESTING]: Clean up.
126844 2001-10-22  Paul Eggert  <eggert@twinsun.com>
126846         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
126847         to avoid a warning if -Wall.
126849 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
126851         * README: New file
126852         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
126853         (per RMS's instructions, this is now the canonical source)
126854         * lgpl/, gpl/: New directories.
126856 2001-10-21  Paul Eggert  <eggert@twinsun.com>
126858         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
126860 2001-10-21  Jim Meyering  <meyering@lucent.com>
126862         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
126863         this code would end up calling gettext even in packages built
126864         with --disable-nls.
126865         * lib/getopt.c (_): Likewise.
126866         * lib/regex.c (_): Likewise.
126868 2001-10-20  Paul Eggert  <eggert@twinsun.com>
126870         * m4/error.m4 (jm_PREREQ_ERROR):
126871         Do not invoke AC_CHECK_FUNCS with strerror_r, as
126872         AC_FUNC_STRERROR_R does that.
126873         Check for strerror declaration.
126875         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
126876         are supposed to have them these days.
126877         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
126878         Merge changes from latest Autoconf CVS.
126879         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
126880         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
126881         POSIX decided to standardize on the int flavor of strerror_r.
126883 2001-10-20  Paul Eggert  <eggert@twinsun.com>
126885         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
126886         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
126887         Use strerror_r that is only a macro, even if it is not a function.
126888         (strerror): Check for HAVE_DECL_STRERROR before declaring.
126889         (private_strerror): Use prototypes, not old-style function definition.
126890         (print_errno_message): New function.
126891         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
126892         char*-flavored one.
126893         (error_tail, error, error_at_line): Use it.
126895 2001-10-11  Jim Meyering  <meyering@lucent.com>
126897         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
126898         and quote_n (1, ... to avoid clobbering a buffer.
126900 2001-10-05  Jim Meyering  <meyering@lucent.com>
126902         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
126903         hash-pjw.h.
126904         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
126905         * lib/hash-pjw.h: New file.
126907 2001-09-30  Jim Meyering  <meyering@lucent.com>
126909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
126910         `struct fsstat' has the `f_fstypename' member.
126911         Use that to define FS_TYPE, which is now used to make
126912         the getfsstat link test tighter.
126914 2001-09-30  Jim Meyering  <meyering@lucent.com>
126916         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
126917         Include <sys/ucred.h>, for Apple Darwin.
126918         Include sys/mount.h and sys/fs_types.h only if available.
126919         (FS_TYPE): Define.
126920         (read_filesystem_list): Use FS_TYPE.
126922 2001-09-29  Paul Eggert  <eggert@twinsun.com>
126924         * lib/exclude.c (excluded_filename): 0 -> false, since it's
126925         a boolean context.
126927 2001-09-29  Jim Meyering  <meyering@lucent.com>
126929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
126930         [one-argument getmntent function]): Include stdio.h before mntent.h.
126931         SunOS 4.1.x needs it for the declaration of `FILE'.
126932         Patch by Volker Borchert.
126934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
126935         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
126936         sys/fs_types.h, and make the link-test for getfsstat guard #include
126937         directives with appropriate #if HAVE_*_H tests so that we can
126938         detect getfsstat on Apple Darwin1.3.7 systems.
126939         Reported by Nelson Beebe.
126940         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
126942 2001-09-28  Paul Eggert  <eggert@twinsun.com>
126944         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
126945         #defines strtoimax.  Also treat the other strto* functions
126946         like strtoimax.
126948         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
126949         Check for strtoul and strtoumax,
126950         as those declarations are made even in the signed case.
126951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
126952         Likewise, for strtol and strtoimax.
126954 2001-09-28  Paul Eggert  <eggert@twinsun.com>
126956         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
126957         #defines strtoimax.  Also treat the other strto* functions
126958         like strtoimax.
126960         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
126961         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
126962         (strtoimax, strtoumax): Do not declare if already defined as a macro.
126964 2001-09-26  Jim Meyering  <meyering@lucent.com>
126966         Most macros in unlocked-io.h had the wrong number of arguments.
126967         * lib/gen-uio: New script.
126968         (USE_UNLOCKED_IO): Define to 1 if not already defined.
126969         * lib/unlocked-io.hin: Remove file.
126970         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
126971         rather than trying to embed it here.
126972         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
126973         Reported by Padraig Brady.
126975 2001-09-25  Volker Borchert  <bt@teknon.de>
126977         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
126978         `result'.
126980 2001-09-24  Jim Meyering  <meyering@lucent.com>
126982         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
126984 2001-09-23  Jim Meyering  <meyering@lucent.com>
126986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
126987         instead of the mere test for existence of mntent.h.  The latter
126988         would get a false-positive on AIX 3.4 systems.
126989         In the outer getmntent if-block, don't die if neither of the getmntent
126990         tests succeeds.  Instead, just fall through and continue with the
126991         remaining tests.
126993 2001-09-23  Jim Meyering  <meyering@lucent.com>
126995         * lib/mountlist.c: Remove useless parentheses in #if directives.
126996         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
126997         the deprecated MOUNTED symbol is no longer defined in mntent.h.
126999 2001-09-22  Jim Meyering  <meyering@lucent.com>
127001         * m4/gettext.m4: New file.  From gettext.
127002         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127003         * m4/progtest.m4: Likewise
127004         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127005         * m4/glibc21.m4: Likewise.
127007         * m4/libintl.m4: Remove.  No longer used.
127009 2001-09-22  Jim Meyering  <meyering@lucent.com>
127011         * lib/localcharset.c: Update from latest gettext.
127012         * lib/config.charset: Likewise.
127014 2001-09-20  Jim Meyering  <meyering@lucent.com>
127016         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127017         strtoimax.
127018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127019         strtoumax.
127021 2001-09-20  Jim Meyering  <meyering@lucent.com>
127023         * lib/xstrtol.c (strtoimax): Guard declaration with
127024         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127025         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127026         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127027         (strtoumax): Likewise, for completeness (it wasn't necessary).
127029 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127031         * lib/strtoimax.c (HAVE_LONG_LONG):
127032         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127033         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127034         to work around bug in IBM C compiler.
127036 2001-09-17  Jim Meyering  <meyering@lucent.com>
127038         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127039         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127040         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127041         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127042         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127043         whenever the right hand side need not be expanded by the shell.
127045 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127047         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127048         library.  It's not correct, as some older glibcs are buggy.
127049         fnmatch wasn't fixed until glibc 2.2.
127051         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127052         special shell magic here.
127054 2001-09-16  Jim Meyering  <meyering@lucent.com>
127056         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127057         * m4/jm-macros.m4: Require it.
127059 2001-09-16  Jim Meyering  <meyering@lucent.com>
127061         * lib/mkdir.c: New file.
127063 2001-09-15  Jim Meyering  <meyering@lucent.com>
127065         * m4/jm-macros.m4: Check for help2man.
127067 2001-09-11  Jim Meyering  <meyering@lucent.com>
127069         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127070         The body, by Paul Eggert, was moved here from configure.in.
127071         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127073 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127075         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127076         (jm_PREREQ): Use it.
127078 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127080         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127081         Use ssize_t, not int, to store result of readlink.
127082         Check for ssize_t overflow as well as size_t overflow,
127083         as POSIX says the result of readlink is implementation-defined
127084         when ssize_t overflows.
127085         Remove unnecessary cast to char*.
127086         Use free+malloc instead of realloc, as the storage doesn't need
127087         to be preserved and it's clearer and can be more efficient that way.
127088         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127089         * lib/xreadlink.h (xreadlink): Update prototype.
127091 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127093         * lib/xgetcwd.c: Revert some of the previous change; intead,
127094         fix the HAVE_GETCWD_NULL code to behave more like the
127095         !HAVE_GETCWD_NULL code used to.
127097         Include "xalloc.h".
127098         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127099         invoke xalloc_die.
127101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127103         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127104         sys/param.h, as pathmax.h includes them.
127106 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127109         (jm_PREREQ_XGETCWD): New macro.
127111         * m4/getcwd.m4: New file.
127113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127115         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127116         like the HAVE_GETCWD_NULL code.
127117         Include pathmax.h if not HAVE_GETCWD.
127118         Do not include xalloc.h.
127119         (INITIAL_BUFFER_SIZE): New symbol.
127120         Do not use xmalloc / xrealloc, since the caller is responsible for
127121         handling errors.  Preserve errno around `free' during failure.
127122         Do not overrun buffer when using getwd.
127124 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127126         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127127         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127128         getcwd (NULL, 0).
127130 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127132         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127133         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127134         spotted by Jim Meyering.
127136 2001-09-03  Jim Meyering  <meyering@lucent.com>
127138         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127139         failure.
127141 2001-09-02  Jim Meyering  <meyering@lucent.com>
127143         * lib/error.c: Update from GNU libc.
127145 2001-09-01  Jim Meyering  <meyering@lucent.com>
127147         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127148         Used by df.
127150 2001-09-01  Jim Meyering  <meyering@lucent.com>
127152         * lib/xreadlink.c: New file.
127153         * lib/xreadlink.h: New file.
127154         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127155         xreadlink.h.
127157         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127158         doesn't conflict with sparc Solaris 7's definition in
127159         /usr/include/sys/int_types.h.
127161         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127162         files.
127163         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127164         and strncasecmp as r-values.  Unixware didn't have declarations.
127166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127168         * lib/xstrtol.h: Add copyright notice.
127169         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127170         LONGINT_INVALID_SUFFIX_CHAR.
127172 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127174         * lib/xstrtol.c (strtoimax): New decl.
127176 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127178         * lib/xgetcwd.c: Don't include pathmax.h.
127179         Include stdlib.h and unistd.h if available.
127180         Include xalloc.h.
127181         (xmalloc, xstrdup, free): Remove decls.
127182         (xgetcwd): Don't assume sizes fit in unsigned.
127183         Check for overflow when computing sizes.
127184         Simplify reallocation code.
127186 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127188         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127189         a directory's st_size can have an arbitrary value, so the old
127190         usage could waste an arbitrary amount of memory.  All uses
127191         changed.
127192         * lib/savedir.h: Update prototype.
127194 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127196         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127198         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127199         old strtoimax.c.
127201         Also, make the following further changes to make this file's
127202         configuration more similar to that of strtol.c:
127203         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127204         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127205         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127206         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127207         changed to signed values.
127209         And make the following changes as well:
127210         Fix copyright notice, as 1999 was missing.
127211         (verify): New macro.
127212         (strtoimax): Check sizes at compile-time, not run-time.
127213         Prefer strtol to strtoll if both work.
127214         (main): Remove; it was not that useful and was a pain to maintain.
127216         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127218 2001-08-31  Jim Meyering  <meyering@lucent.com>
127220         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127221         Use an initial, malloc'd, buffer of length 128 rather than
127222         a statically allocated one of length 1024.
127224 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127226         Simplify code, partly by assuming autoconf 2.52 semantics.
127228         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127230         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127231         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127232         All uses removed.
127233         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127234         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127235         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127236         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127237         jm_AC_HEADER_INTTYPES_H.
127238         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127240         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127242         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127243         Quote first arg of AC_DEFUN.
127244         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127245         since they are needed to parse the include file even if we need
127246         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127248         but with opposite signedness.
127250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127252         Merge 'exclude' changes from tar 1.13.22.
127253         This fixes one or two unlikely storage allocation overflow bugs,
127254         but doesn't change user-visible behavior otherwise.
127256 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127259         (jm_PREREQ_EXCLUDE): New macro.
127261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127263         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127264         tm to be declared.
127266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127268         * lib/hash.c: Remove '2001' from copyright notice.
127270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127272         * lib/full-write.h: New file.
127273         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127274         * lib/full-write.c: Correct credits, as cccp.c no longer
127275         exists and anyway it was so heavily changed from the old cccp
127276         code as to be unrecognizable.  Include full-write.h.
127277         (full_write): Return size_t, with short writes meaning failure.
127278         All callers changed.  This fixes a bug with large buffers
127279         on 64-bit hosts.
127280         * lib/utime.c: Include full-write.h.
127282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127284         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127285         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127286         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127287         Include if available.
127288         (<xalloc.h>): Include
127289         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127290         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127291         collide with FNM macros.
127292         (struct patopts): New struct.
127293         (struct exclude): Use it, as exclude patterns now come with options.
127294         (new_exclude): Support above changes.
127295         (new_exclude, add_exclude_file):
127296         Initial size must now be a power of two to simplify overflow checking.
127297         (free_exclude, fnmatch_no_wildcards): New function.
127298         (excluded_filename): No longer requires options arg, as the options
127299         are determined by add_exclude.  Now returns bool, not int.
127300         (excluded_filename, add_exclude):
127301         Add support for the fancy new exclusion options.
127302         (add_exclude, add_exclude_file): Now takes int options arg.
127303         Check for arithmetic overflow when computing sizes.
127304         (add_exclude_file): xrealloc might modify errno, so don't
127305         realloc until after errno might be used.
127307         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127308         New macros.
127309         (free_exclude): New decl.
127310         (add_exclude, add_exclude_file): Now takes int options arg.
127311         (excluded_filename): No longer requires options arg, as the options
127312         are determined by add_exclude.  Now returns bool, not int.
127314 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127316         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127318 2001-08-27  Jim Meyering  <meyering@lucent.com>
127320         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127322         * lib/version-etc.c (N_): Remove definition.
127323         Revert most of last change.
127324         Instead, simply don't mark the `Copyright...' string for translation.
127325         Based on advice from Paul Eggert.
127327         * lib/strtoxmax.c: Tweak comment.
127329 2001-08-26  Jim Meyering  <meyering@lucent.com>
127331         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127333         * m4/xstrtoimax.m4: New file.
127334         * m4/xstrtoumax.m4: Add comments explaining why we
127335         AC_REPLACE_FUNCS(strtol).
127337 2001-08-26  Jim Meyering  <meyering@lucent.com>
127339         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127340         of copyright with `%s' so translators don't get an untranslated
127341         message in 2002.
127342         (COPYRIGHT_YEAR): Define.
127343         (version_etc): Use fprintf rather than fputs.
127344         Suggestion from Ulrich Drepper.
127346         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127348         * lib/strtoll.c: New file, from GNU libc.
127349         * lib/xstrtoimax.c: New file.
127351         * lib/xstrtol.h: Add xstrtoimax.
127352         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127353         * lib/strtoimax.c: New file.  Likewise, but first define
127354         STRTOUXMAX_SIGNED.
127356         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127357         ...
127358         * lib/strtoxmax.c: ... then renamed to this.
127360 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127362         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127363         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127364         (jm_AC_TYPE_INTMAX_T): New macro.
127365         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127367         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127369         * m4/longlong.m4: Renamed from ulonglong.m4.
127370         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127371         * m4/uintmax_t.m4: Removed.
127373 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127375         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127376         Port to Solaris 8, where 'sed' requires a space after the 'r'
127377         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127378         Redirect output to $tmp just once.
127380 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127382         * lib/addext.c (<errno.h>): Include.
127383         (errno): Declare if not defined.
127384         (addext): Work correctly when pathconf returns -1 and leaves
127385         errno alone because there is no limit.  Also, work even if
127386         pathconf returns a value greater than SIZE_MAX.
127388 2001-08-12  Jim Meyering  <meyering@lucent.com>
127390         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127391         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127392         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127393         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127394         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127395         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127396         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127397         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127398         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127399         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127400         utime.m4, utimes.m4, xstrtoumax.m4:
127401         Quote the first argument in each use of AC_DEFUN.
127403 2001-08-12  Jim Meyering  <meyering@lucent.com>
127405         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127406         Simply `return getcwd (NULL, 0);'.
127407         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127408         Use 1300 as initial value for length, not PATH_MAX.
127410         * lib/pathmax.h: Clean up cpp syntax.
127412 2001-08-12  Jim Meyering  <meyering@lucent.com>
127414         * lib/gettimeofday.c: New file.
127415         * lib/gtod.h: New file.
127416         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127418 2001-08-05  Jim Meyering  <meyering@lucent.com>
127420         * m4/jm-macros.m4: Require autoconf-2.52.
127422 2001-08-04  Jim Meyering  <meyering@lucent.com>
127424         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127425         stmt, to get in sync with glibc.
127427 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127429         The following changes are from gettext 0.10.39 as maintained by
127430         Bruno Haible.
127432         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127433         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127434         with inverted sense.  All uses changed.
127436         * lib/mbswidth.c: Don't include <limits.h>.
127437         Include <stdlib.h> and <string.h> unconditionally.
127438         (iswcntrl, mbsinit, ISCNTRL): New macros.
127439         (mbsnwidth): Use K&R style function declarations.
127440         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127441         can optimize it when MB_CUR_MAX == 1.
127442         The width of control characters is zero, not 1.
127444 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127446         The following changes are from gettext 0.10.39 as maintained by
127447         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127449         * m4/codeset.m4: Upgrade to serial AM1.
127450         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127451         all uses changed.  Quote first arg of AC_DEFUN.
127452         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127454         * m4/iconv.m4: Upgrade to serial AM2.
127455         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127456         Add --with-libconv-prefix.
127457         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127458         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127459         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127460         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127461         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127463         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127464         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127465         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127466         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127467         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127468         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127469         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127470         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127471         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127473         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127474         string.h any more.
127476         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127477         not the default value.
127479         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127481         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127482         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127483         Also check for iswcntrl, used for wcwidth fallback.
127484         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127485         to Autoconf 2.13.
127487 2001-08-03  Jim Meyering  <meyering@lucent.com>
127489         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127490         as it was in the original.  Reported by Paul Eggert.
127492 2001-07-16  Jim Meyering  <meyering@lucent.com>
127494         * m4/gettimeofday.m4: New file.
127495         Prompted by a report from Bernhard Baehr.
127497 2001-07-15  Jim Meyering  <meyering@lucent.com>
127499         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127500         stuff. Now it's in ../Makefile.cfg.
127502 2001-07-15  Jim Meyering  <meyering@lucent.com>
127504         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127505         (BUILT_SOURCES): Add unlocked-io.h.
127506         (io_functions): Define.
127507         (unlocked-io.h): New rule.
127508         (DISTCLEANFILES): Add unlocked-io.h.
127509         (all-local): Depend on unlocked-io.h, to ensure it is created.
127511         * lib/unlocked-io.hin: New file
127513         * lib/regex.c: Update from glibc.
127515 2001-07-05  Jim Meyering  <meyering@lucent.com>
127517         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127518         recommendation.
127519         (libfetish_a_SOURCES): Put all .h files here instead.
127520         Remove a thus-exposed (better checks in automake) duplicate and
127521         two unnecessary .h files.
127523 2001-07-04  Jim Meyering  <meyering@lucent.com>
127525         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127526         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127527         distcheck failure.
127529 2001-07-02  Jim Meyering  <meyering@lucent.com>
127531         The following changes were prompted by suggestions from Bruno Haible.
127533         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127534         is now generated.
127535         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127536         definition of EXTRA_DIST.
127537         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127538         ensure that the generated file is created/updated whenever the list
127539         of $(unlocked_functions) is changed.
127540         (jm-glibc-io.m4): New rule.
127541         (unlocked-io.h): New rule -- currently unused.
127543 2001-06-24  Jim Meyering  <meyering@lucent.com>
127545         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127546         unmatched right bracket, rather than kludging it with an extra,
127547         falsely-matching quote in a comment.  Patch by Akim Demaille.
127549 2001-06-11  Jim Meyering  <meyering@lucent.com>
127551         * lib/regex.c: Update from GNU libc.
127553 2001-05-27  Jim Meyering  <meyering@lucent.com>
127555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127556         Check for ut_type in struct utmp.
127558 2001-05-27  Jim Meyering  <meyering@lucent.com>
127560         * lib/readutmp.h (UT_TYPE): Define.
127562 2001-05-24  Jim Meyering  <meyering@lucent.com>
127564         * lib/argmatch.c: Include "quote.h".
127565         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127566         quote function.  Reported by Göran Uddeborg.
127568 2001-05-22  Jim Meyering  <meyering@lucent.com>
127570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127571         now that we use the package-supplied version unconditionally.
127572         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127574 2001-05-21  Jim Meyering  <meyering@lucent.com>
127576         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127577         shell syntax errors.
127579 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127581         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127583 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127585         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127586         Don't bother to check library strftime, since
127587         we'll be using our own my_strftime function anyway.
127588         Define my_strftime instead of strftime.
127590 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
127592         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
127593         which is not yet declared.
127595 2001-05-15  Jim Meyering  <meyering@lucent.com>
127597         * m4/regex.m4: Use proper quoting so brackets appear in the test
127598         program.
127599         Reported by, and with help from, Bruno Haible.
127601 2001-05-13  Jim Meyering  <meyering@lucent.com>
127603         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
127604         undefined.
127606 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127608         dirname code cleanup.  base_name now behaves more compatibly
127609         with POSIX basename when given file names that have trailing
127610         slashes, and similarly for dir_name.  Add new primitives
127611         base_len and dir_len.  Put the directory-name-related decls
127612         into dirname.h.
127614         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
127615         * lib/backupfile.c (base_name): Likewise.
127616         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
127617         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
127618         * lib/makepath.c (strip_trailing_slashes): Likewise.
127619         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
127620         ISSLASH): Likewise.
127621         * lib/rename.c (strip_trailing_slashes): Likewise.
127622         * lib/same.c (base_name): Likewise.
127623         * lib/stripslash.c (ISSLASH): Likewise.
127625         * lib/addext.c: Include <dirname.h> after size_t is defined.
127626         * lib/backupfile.c: Likewise.
127628         * lib/addext.c (addext): Use base_len to trim redundant
127629         trailing slashes instead of doing it ourselves.
127630         But do not trim the last slash if it is not redundant.
127632         * lib/backupfile.c (find_backup_file_name,
127633         max_backup_version): Use base_len instead of rolling it ourselves.
127634         Handle the case of "" and (on DOS) "C:" correctly.
127636         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
127637         needed. Include <string.h>, <dirname.h>.
127638         (base_name): Allow file names ending in slashes, other than names
127639         that are all slashes.  In this case, return the basename followed
127640         by the slashes.  This is more general, and can be used in places
127641         where the original base_name purposely had an assertion failure.
127642         (base_len): New function.
127644         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
127645         Do not include <assert.h>; no longer needed.
127646         Include xalloc.h.
127647         (memrchr): Remove decl.
127648         (dir_name_r): Remove.
127649         (dir_len): Renamed from dirlen.  All callers changed.
127650         Rewrite in terms of base_name, for simplicity and consistency.
127651         (dir_name): Never return NULL.  All callers changed.
127652         Do not include <stdlib.h> in test program; no longer needed.
127653         return 0; is fine for test program.
127655         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
127656         New macros.
127657         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
127659         * lib/path-concat.c (path_concat): Use base_len to compute
127660         base length, not strlen; this means we cannot rely on memcpy
127661         to null-terminate.
127663         * lib/same.c (STREQ): Remove.
127664         (same_name): Handle the case where the basename ends in trailing '/'.
127666         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
127667         a slash was stripped.  Do not strip the last slash after a
127668         file system prefix.
127670 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127672         * lib/Makefile.am (libfetish_a_SOURCES):
127673         Add strftime.c, since we now compile it on all hosts.
127675         * lib/strftime.c (my_strftime):
127676         Define to nstrftime if emacs, but only if my_strftime is not defined.
127677         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
127678         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
127679         Add one more extra argument: a nanoseconds value.
127680         All uses changed.
127681         (ns): New macro.
127682         (my_strftime function): Add %N format.
127683         (emacs_strftimeu): Renamed from emacs_strftime,
127684         with extra ut argument.
127686 2001-05-09  Paul Eggert  <eggert@twinsun.com>
127688         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
127690 2001-04-21  Jim Meyering  <meyering@lucent.com>
127692         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
127693         doesn't interfere.
127695 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127697         * m4/ftruncate.m4: Check for chsize.
127698         Link with ftruncate.o unconditionally if ftruncate is missing.
127699         This was required when cross-compiling to i586-mingw32msvc.
127701 2001-04-08  Jim Meyering  <meyering@lucent.com>
127703         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
127704         recomputed; that's necessary when the offset spans a DST transition.
127705         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
127707 2001-04-02  Jim Meyering  <meyering@lucent.com>
127709         * lib/regex.h, regex.c: Update from GNU libc.
127711 2001-03-24  Jim Meyering  <meyering@lucent.com>
127713         * m4/jm-macros.m4: Require autoconf-2.49d.
127715 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
127717         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
127719 2001-03-19  Paul Eggert  <eggert@twinsun.com>
127721         * lib/version-etc.c (version_etc_copyright): Update to 2001.
127723 2001-03-17  Jim Meyering  <meyering@lucent.com>
127725         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
127726         now that the version in autoconf is equivalent.
127727         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
127729         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
127730         Suggestion from Akim Demaille.
127732         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
127733         (jm_PREREQ_TEMPNAME): New function.
127735 2001-03-16  Paul Eggert  <eggert@twinsun.com>
127737         * lib/tempname.c (uint64_t): Define to uintmax_t if
127738         not defined, and if UINT64_MAX is not defined.
127739         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
127740         Reported by John David Anglin.
127742 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
127744         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
127745         resolve alias if codeset is empty.
127746         * lib/config.charset (BeOS): Use wildcard syntax.
127748 2001-03-13  Jim Meyering  <meyering@lucent.com>
127750         * lib/path-concat.c (path_concat)
127751         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
127752         concatenating e.g., `C:' and `foo'.
127753         From Bruno Haible.
127755 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127757         * lib/localcharset.c (locale_charset): Don't use
127758         setlocale(LC_CTYPE,NULL). Don't return NULL.
127759         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
127761 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127763         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
127764         support for DOS/DJGPP.
127766 2001-03-01  Paul Eggert  <eggert@twinsun.com>
127768         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
127769         lacks mkstemp.  Compile our own tempname.c if we compile our own
127770         mkstemp.c, as mkstemp relies on tempname.
127772 2001-03-01  Jim Meyering  <meyering@lucent.com>
127774         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
127775         AH_VERBATIM really does output its argument verbatim.
127777 2001-02-28  Paul Eggert  <eggert@twinsun.com>
127779         * lib/Makefile.am (libfetish_a_SOURCES):
127780         Add dup-safer.c, fopen-safer.c.
127781         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
127783         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
127784         * lib/unistd-safer.h: New files.
127786 2001-02-25  Paul Eggert  <eggert@twinsun.com>
127788         The mkstemp replacement is taken from glibc 2.2.2, with some
127789         portability fixes for use outside glibc, as follows:
127791         * lib/tempname.c (struct_stat64): New macro.
127792         (direxists, __gen_tempname): Use it.
127793         This avoids a portability problem with Solaris 8.
127795         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
127796         (<stddef.h>, <stdint.h>, <string.h>):
127797         Include only if STDC_HEADERS || _LIBC.
127798         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
127799         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
127800         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
127801         (__set_errno): Define this macro if <errno.h> doesn't.
127802         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
127803         Define these macros if <stdio.h> doesn't.
127804         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
127805         Define these macros if <sys/stat.h>
127806         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
127807         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
127808         __xstat64): Define if not _LIBC.
127809         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
127810         (__gen_tempname): Invoke gettimeofday only if
127811         HAVE_GETTIMEOFDAY || _LIBC;
127812         otherwise, fall back on plain "time".
127813         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
127815         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
127817         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
127819 2001-02-18  Paul Eggert  <eggert@twinsun.com>
127821         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
127823 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127825         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
127826         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
127827         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
127828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127830 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127832         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
127833         Remove workaround macros for hosts that have mbrtowc but not
127834         mbstate_t, as we now insist on proper declarations for both
127835         before using mbrtowc.
127837 2001-02-17  Jim Meyering  <meyering@lucent.com>
127839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
127840         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
127841         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
127842         UnixWare 7.1.1.
127844         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
127845         rather than AC_CACHE_VAL.
127847 2001-02-17  Jim Meyering  <meyering@lucent.com>
127849         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
127850         around included file name.
127852         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
127854         * lib/strftime.c: Update from GNU libc (the only changes were to
127855         comments).
127857 2001-02-17  Jim Meyering  <meyering@lucent.com>
127859         * lib/regex.c: Update from libc.
127861 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
127863         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
127864         clash.
127866 2001-02-16  Paul Eggert  <eggert@twinsun.com>
127868         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
127869         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
127870         Reported by Mark Hounschell via Paul Eggert.
127872 2001-02-07  Jim Meyering  <meyering@lucent.com>
127874         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
127876 2001-02-05  Jim Meyering  <meyering@lucent.com>
127878         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
127879         it includes the patch required for `large file' support with at least
127880         HP-UX's 10.20 /bin/cc.
127882 2001-02-03  Jim Meyering  <meyering@lucent.com>
127884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
127885         AS_IF, now that it works once again (mysteriously).
127886         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
127888 2001-01-30  Jim Meyering  <meyering@lucent.com>
127890         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
127891         * m4/chown.m4: Rename conftestchown to conftest.chown.
127892         * m4/rename.m4: s/conftestdir/conftest.d1/ and
127893         s/conftestdir2/conftest.d2/.
127894         * m4/utimes.m4: s/conftestdata/conftest.data/
127895         Inspired by Pavel Roskin's change in autoconf.
127897 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
127899         * lib/config.charset: Update for FreeBSD 4.2.
127901 2001-01-27  Jim Meyering  <meyering@lucent.com>
127903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
127904         a use of AS_IF.
127905         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
127907 2001-01-26  Jim Meyering  <meyering@lucent.com>
127909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
127910         quotearg.c includes it.
127912 2001-01-26  Jim Meyering  <meyering@lucent.com>
127914         * lib/quotearg.c: Include stddef.h.
127915         * lib/quote.c: Include stddef.h.
127916         Reported by Axel Kittenberger.
127918         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
127919         line in double quotes so that it evokes a better diagnostic.
127920         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
127921         Reported by Axel Kittenberger.
127923 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
127925         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
127926         as if it was a `charset'.
127928 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
127930         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
127931         has const.
127933 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
127935         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
127936         to avoid a warning.  Add back 'const' to inptr.
127938 2001-01-20  Jim Meyering  <meyering@lucent.com>
127940         Be sure that headers are checked before used in code compiled
127941         for the type checks.
127942         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
127943         In place of that, invoke jm_CHECK_ALL_TYPES.
127944         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
127945         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
127946         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
127947         The check for ssize_t was mistakenly run before the test for unistd.h.
127949         The configure-time check for stdbool.h was missing.
127950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
127951         (jm_PREREQ_HASH): New function.
127953 2001-01-17  Jim Meyering  <meyering@lucent.com>
127955         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
127956         for autoconf-2.49c.
127957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
127959 2001-01-16  Jim Meyering  <meyering@lucent.com>
127961         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
127962         From Bruno Haible.
127964 2001-01-14  Jim Meyering  <meyering@lucent.com>
127966         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
127967         foo and bar.  Create conftestdir/ in the script, not in the C code.
127968         Remove directories in the script, not in the C code.
127969         Remove conftestdir{,2} before trying to create the directory.
127970         Make the entire configure script fail if the mkdir fails.
127972 2001-01-14  Jim Meyering  <meyering@lucent.com>
127974         * lib/rename.c: New file.  From Volker Borchert.
127975         Include stdlib.h, string.h or strings.h, and xalloc.h.
127976         Use strip_trailing_slashes rather than open-coding it.
127978 2001-01-03  Paul Eggert  <eggert@twinsun.com>
127980         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
127982 2001-01-03  Jim Meyering  <meyering@lucent.com>
127984         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
127985         of local `inptr' to avoid warning with some system declarations of
127986         iconv.
127988 2001-01-02  Volker Borchert  <bt@teknon.de>
127990         * m4/rename.m4: New file.
127991         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
127993 2001-01-01  Jim Meyering  <meyering@lucent.com>
127995         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
127996         even on systems with utmpx.h.  It's necessary for the declaration of
127997         utmp's ut_user member.  Reported by Andreas Jaeger.
127999         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128000         available. They are required for the declarations of getgrgid and
128001         getpwuid resp.
128002         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128003         Reported by Andreas Jaeger.
128005 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128007         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128008         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128009         so `make install' also works in VPATH builds.
128011 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128013         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128014         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128015         can be used in subdirectories.
128017 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128019         * lib/modechange.c: Do not assume that mode_t uses the
128020         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128021         the other-execute bit of FOO even if S_IXOTH != 1.
128023         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128024         WOTH, XOTH, ALLM): New macros.
128025         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128026          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128027         Use them.
128028         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128029         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128030         (mode_compile):
128031         No need to use uintmax_t; unsigned long is long enough.
128032         Don't bother to get suffix since we don't use it.
128034 2000-12-26  Jim Meyering  <meyering@lucent.com>
128036         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128037         better with autoheader.
128039 2000-12-24  Jim Meyering  <meyering@lucent.com>
128041         * lib/hash.c (is_prime): Return explicit boolean values.
128042         (hash_get_first): Return NULL to appease Irix5.6's 89.
128043         Reported by Nelson Beebe.
128045 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128047         * lib/localcharset.c (locale_charset): Add support for Win32.
128049 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128051         * lib/physmem.h, lib/physmem.c: New files.
128053         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128054         (noinst_HEADERS): Add physmem.h.
128056         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128057         't' for compatibility with Solaris 8 sort.
128059 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128061         * lib/config.charset: Add support for BeOS.
128063 2000-12-17  Jim Meyering  <meyering@lucent.com>
128065         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128066         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128068 2000-12-16  Jim Meyering  <meyering@lucent.com>
128070         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128071         N and M) would have treated it like `chown N:N FILE'.
128073         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128075 2000-12-16  Jim Meyering  <meyering@lucent.com>
128077         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128078         SHELLS_FILE to a file name that's useful on djgpp systems.
128079         Include stdlib.h.
128080         (ADDITIONAL_DEFAULT_SHELLS): Define.
128081         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128082         Based mostly on a patch from Prashant TR.
128084 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128086         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128087         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128088         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128090 2000-12-08  Andreas Schwab  <schwab@suse.de>
128092         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128093         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128095 2000-12-07  Jim Meyering  <meyering@lucent.com>
128097         * lib/stripslash.c (ISSLASH): Define.
128098         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128099         `/'.
128100         From Prashant TR.
128102         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128103         (dir_name_r): Declare this function as static.
128104         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128105         manifest itself on a name containing a mix of slashes and
128106         backslashes.
128107         Make this function work with names starting with a DOS-style
128108         drive letter and colon prefix.
128109         (dir_name): Append `.' if necessary.
128110         Based mostly on patches from Prashant TR and Eli Zaretskii.
128112         * lib/dirname.h (dir_name_r): Remove prototype.
128114 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128116         * m4/off_t-format.m4: Remove this file.
128117         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128119 2000-12-06  Jim Meyering  <meyering@lucent.com>
128121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128122         replacement strtoull, we may well need the replacement strtoul, too.
128123         Check for declarations of strtoul and strtoull.
128124         Check for strtol.  Mainly as a cue to cause automake to include
128125         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128126         Check for limits.h -- strtol.c needs it.
128128 2000-12-05  Jim Meyering  <meyering@lucent.com>
128130         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128132 2000-12-04  Jim Meyering  <meyering@lucent.com>
128134         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128135         Also include memory.h, stdlib.h, unistd.h if appropriate.
128136         Reported by Andreas Jaeger (conflicting declaration of malloc).
128138 2000-12-02  Jim Meyering  <meyering@lucent.com>
128140         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128141         * m4/jm-macros.m4 (jm_MACROS): require it.
128143 2000-12-02  Jim Meyering  <meyering@lucent.com>
128145         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128147 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128149         * lib/memrchr.c: Include <config.h> before any system include file.
128151 2000-11-30  Jim Meyering  <meyering@lucent.com>
128153         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128155 2000-11-30  Jim Meyering  <meyering@lucent.com>
128157         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128159 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128161         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128163 2000-11-26  Jim Meyering  <meyering@lucent.com>
128165         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128167 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128169         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128170         size of (size_t) -1; it's not portable.
128172 2000-11-17  Jim Meyering  <meyering@lucent.com>
128174         * lib/strstr.c: Update from GNU libc.
128176 2000-11-17  Akim Demaille  <akim@epita.fr>
128178         * lib/obstack.h: Formatting changes.
128179         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128180         prevent type checking.
128181         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128182         cast the value to (void *): assigning a `foo *' to a `void *'
128183         variable is valid.
128184         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128186 2000-11-16  Jim Meyering  <meyering@lucent.com>
128188         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128190 2000-11-11  Jim Meyering  <meyering@lucent.com>
128192         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128194 2000-11-10  Jim Meyering  <meyering@lucent.com>
128196         * lib/obstack.h: Update from GNU libc.
128197         * lib/obstack.c: Likewise.
128199 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128201         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128203 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128205         * lib/getusershell.c (setusershell): Use rewind rather than
128206         fseek/fseeko, to avoid configuration hassles with fseeko.
128207         Don't bother opening SHELLS_FILE if shellstream is NULL;
128208         it's not necessary.
128210 2000-11-05  Jim Meyering  <meyering@lucent.com>
128212         * lib/makepath.h (make_dir): Declare.
128213         * lib/makepath.c (make_dir): Remove `static' attribute.
128214         Tweak a comment.
128216 2000-11-04  Jim Meyering  <meyering@lucent.com>
128218         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128220 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128222         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128223         last one in a bucket, advance to the next bucket.
128225 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128227         * lib/fnmatch.c: Do not comment out all the code if we are using
128228         the GNU C library, because in some cases we are replacing buggy
128229         code in the GNU C library itself.
128231 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128233         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128234         (regex_compile): Catch bogus \(\1\).
128236 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128238         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128239         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128240         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128242 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128244         * lib/error.h, getline.h, modechange.h:
128245         Remove "2000" from Copyright line, as the file hasn't been
128246         changed this year other than in the copyright notice.
128248         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128249         was changed this year.
128251 2000-10-29  Jim Meyering  <meyering@lucent.com>
128253         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128254         renaming.
128255         * m4/ls-mntd-fs.m4: Likewise
128257 2000-10-29  Jim Meyering  <meyering@lucent.com>
128259         * lib/xstat.in: Fix grammar in comment.
128261 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128263         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128264         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128265         doesn't define __restrict_arr.
128267 2000-10-28  Jim Meyering  <meyering@lucent.com>
128269         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128270         (jm_PREREQ_MEMCHR): New function.
128272 2000-10-28  Jim Meyering  <meyering@lucent.com>
128274         * lib/memchr.c: Update from libc.
128275         Adjust for portability:
128276         [HAVE_STDLIB_H]: Include stdlib.h.
128277         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128278         Undef __memchr, too.
128279         [!weak_alias]: Define __memchr to memchr.
128281         * lib/regex.c: Update from libc.
128282         * lib/regex.h: Likewise.
128283         * lib/getopt1.c: Likewise.
128284         * lib/memcmp.c: Likewise.
128286         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128287         Avoid using fseek, when possible -- it's broken by design.
128288         Patch by Ulrich Drepper.
128290 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128292         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128293         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128294         Giving in to popular pressure to shut up the compiler with casts.
128296 2000-10-26  Jim Meyering  <meyering@lucent.com>
128298         * lib/strftime.c: Update from libc.
128300 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128302         * regex.c: More `unsigned char' -> `re_char' changes.
128303         Also change several `int' into `re_wchar_t'.
128304         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128305         (PUSH_FAILURE_POINTER): Don't cast any more.
128306         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128307         We want GCC to complain, since this piece of code makes
128308         re_match non-reentrant, which *should* be fixed.
128309         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128310         (EXTEND_BUFFER): Use RETALLOC.
128311         (SET_LIST_BIT): Don't cast.
128312         (re_wchar_t): New type.
128313         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128314         that those two functions will always properly return.
128315         (IMMEDIATE_QUIT_CHECK): Cast to void.
128316         (analyse_first): Use recursion rather than an explicit stack.
128317         (re_compile_fastmap): Can't fail anymore.
128318         (re_search_2): Don't check re_compile_fastmap for failure.
128319         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128320         Now also sets the new value (passed in a new argument).
128321         (re_match_2_internal): Use it.
128322         Also, use a new var `reg' of type size_t when looping through regs
128323         rather than reuse the inappropriate `mcnt'.
128325 2000-10-25  Jim Meyering  <meyering@lucent.com>
128327         * lib/obstack.c: Update from libc.
128329 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128331         * regex.c (regex_compile): Change the way of handling a range from
128332         a char less than 256 to a char not less than 256.
128334 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128336         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128337         NT-Emacs only.
128338         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128339         so that re_search functions only quit when callers expect them to.
128341 2000-10-23  Jim Meyering  <meyering@lucent.com>
128343         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128344         wrong.  That set_locale call must not have any side effects.
128345         From Paul Eggert.
128347 2000-10-22  Jim Meyering  <meyering@lucent.com>
128349         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128350         [CYCLIC]: Remove now-unused definition.
128352         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128353         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128354         Suggestion from Ulrich Drepper.
128356 2000-10-21  Jim Meyering  <meyering@lucent.com>
128358         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128359         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128360         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128362 2000-10-21  Jim Meyering  <meyering@lucent.com>
128364         * lib/dirname.c (memrchr): Declare if necessary.
128365         (dir_name): Remove the restriction that there be no
128366         trailing slashes.  Now, this code skips past them, effectively
128367         ignoring them.
128368         [TEST_DIRNAME] (main): New unit tests.
128370         * lib/memrchr.c: New file from GNU libc.
128371         Undef __memrchr, too.
128372         [!weak_alias]: Define __memrchr to memrchr.
128373         Guard weak_alias use with `#ifdef weak_alias'.
128375 2000-10-21  Jim Meyering  <meyering@lucent.com>
128377         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128378         (dir_name): Use dir_name_r.
128379         * lib/dirname.h (dir_name_r): Declare it.
128381 2000-10-17  Jim Meyering  <meyering@lucent.com>
128383         * lib/quote.h (PARAMS): Define and use.
128384         Reported by Akim Demaille.
128386         * lib/getopt.c: Update from libc.
128388 2000-10-16  Jim Meyering  <meyering@lucent.com>
128390         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128391         setlocale.
128392         From Jan Fedak.
128394 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128396         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128398 2000-09-25  Jim Meyering  <meyering@lucent.com>
128400         * lib/md5.h (rol): Define (from GnuPG).
128402         * lib/sha.c: Give credit (GnuPG) where due.
128403         (M): Use rol rather than open-coding it.
128404         Add a FIXME comment.
128406 2000-09-21  Jim Meyering  <meyering@lucent.com>
128408         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128409         Reported by Michael Stone.
128411 2000-09-20  Jim Meyering  <meyering@lucent.com>
128413         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128414         (noinst_HEADERS): Add sha.h.
128415         Based on code from Scott G. Miller and from GnuPG.
128417 2000-09-18  Jim Meyering  <meyering@lucent.com>
128419         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128420         LIBS. Otherwise, everyone ends up linking with -lelf for some
128421         configurations.
128422         Reported by Mike Stone.
128424 2000-09-15  Jim Meyering  <meyering@lucent.com>
128426         * lib/regex.c: Update from libc.
128428 2000-09-10  Jim Meyering  <meyering@lucent.com>
128430         * lib/getopt.c (_getopt_internal): Update from glibc.
128432 2000-09-09  Jim Meyering  <meyering@lucent.com>
128434         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128435         think it should be used as a general replacement for isascii.
128436         * lib/fnmatch.c: Likewise.
128437         * lib/mbswidth.c: Likewise
128438         * lib/regex.c: Likewise.
128440         Don't use atoi.
128441         * lib/userspec.c: Include sys/param.h and limits.h.
128442         Include xstrtol.h.
128443         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128444         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128445         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128446         UID, GID.  Check range.
128448 2000-09-06  Jim Meyering  <meyering@lucent.com>
128450         * lib/getopt.c (_getopt_internal): Update from glibc.
128452 2000-08-30  Jim Meyering  <meyering@lucent.com>
128454         * lib/strftime.c: Merge in changes from GNU libc.
128456 2000-08-26  Jim Meyering  <meyering@lucent.com>
128458         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128459         * m4/fpending.m4: New file.
128461 2000-08-26  Jim Meyering  <meyering@lucent.com>
128463         * lib/closeout.c: Include "__fpending.h".
128464         (close_stdout_status): Return right away if there's nothing to flush.
128466         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128467         * lib/__fpending.c: New file.
128468         * lib/__fpending.h: New file.
128470 2000-08-20  Jim Meyering  <meyering@lucent.com>
128472         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128473         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128474         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128476 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128478         Improve fileutils installation on systems where running
128479         programs (like install) can't be unlinked.
128480         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128481         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128483 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128485         Standardize on "memory exhausted" instead of "Memory exhausted"
128486         or "virtual memory exhausted".
128487         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128488         "virtual memory exhausted".
128489         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128490         our own message.
128491         * lib/userspec.c (parse_user_spec): Likewise.
128492         * lib/bumpalloc.h: comment fix
128493         * lib/same.c, userspec.c: Include xalloc.h.
128495         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128496         not char *const and pointing to a constant array.
128497         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128498         (xrealloc): Comment fix.
128500         * lib/userspec.c (parse_user_spec):
128501         Don't translate a message until just before returning,
128502         to avoid unnecessary translation.
128504 2000-08-07  Jim Meyering  <meyering@lucent.com>
128506         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128507         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128508         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128509         getgroups.c, gethostname.c, getopt.h, group-member.c,
128510         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128511         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128512         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128513         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128514         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128515         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128516         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128517         yesno.c: Back out Copyright date changes for each file with no change
128518         this year.  This eases coordination with other programs using the same
128519         source code modules.  From Paul Eggert.
128521 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128523         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128524         not char, for compatibility with glibc 2.1.3 strftime.c.
128526 2000-08-03  Greg McGary  <greg@mcgary.org>
128528         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128529         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128530         (EXTEND_BUFFER): Use them.
128532 2000-08-01  Jim Meyering  <meyering@lucent.com>
128534         * lib/dirname.c (ISSLASH): Define.
128535         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128536         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128537         both `\' and `/' may be use as path separators.
128538         Based on a patch from Prashant TR.
128540 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128542         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128543         slot vector a constant, since it might get modified.
128545 2000-07-31  Jim Meyering  <meyering@lucent.com>
128547         * lib/xmalloc.c: Use `virtual memory exhausted', not
128548         `Memory exhausted'.
128549         * lib/obstack.c (print_and_abort): Likewise.
128551 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128553         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128554         buffer, so that the caller can always quote one small
128555         component of a "memory exhausted" message in slot 0.
128556         From a suggestion by Jim Meyering.
128558 2000-07-30  Jim Meyering  <meyering@lucent.com>
128560         * lib/makepath.c (make_path): Quote the other instance, too.
128562         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128563         (STATIC_BUF_SIZE): Define.
128564         (quotearg_n_options): Use only statically allocated storage when
128565         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128566         than STATIC_BUF_SIZE.
128568 2000-07-29  Jim Meyering  <meyering@lucent.com>
128570         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128571         * lib/dirname.c (dir_name): Likewise.
128573         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128574         `/'.
128576         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128577         (dir_name): Assert that there are no trailing slashes.
128579 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128581         * lib/mbswidth.h (mbswidth): Add a flags argument.
128582         (mbswidth): New declaration.
128583         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128584         * lib/mbswidth.c (mbswidth): Add a flags argument.
128585         (mbsnwidth): New function.
128587 2000-07-24  Jim Meyering  <meyering@lucent.com>
128589         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
128591 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128593         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
128595 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128597         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
128598         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
128599         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
128600         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
128601         invoke multibyte primitives.
128603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128605         * lib/quotearg.c:
128606         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
128607         so that mbstate_t is always defined.
128609         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
128610         be 1 in at least one GCC installation, and this configuration
128611         error is likely to be common.  Ignoring MB_LEN_MAX hurts
128612         performance on hosts that have mbrtowc but have only unibyte
128613         locales, but I assume these hosts are rare.
128615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128617         * lib/mbswidth.c (_XOPEN_SOURCE):
128618         Don't define; this causes problems on Solaris 7.
128619         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
128621 2000-07-23  Jim Meyering  <meyering@lucent.com>
128623         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
128624         too: getgrgid, getpwuid, getuid.
128626 2000-07-23  Jim Meyering  <meyering@lucent.com>
128628         * lib/basename.c (base_name): Add an assertion.
128630 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
128632         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
128633         shadow its mbsinit function.
128635 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128637         * lib/mbswidth.h: New file.
128638         * lib/mbswidth.c: New file.
128639         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
128640         (noinst_HEADERS): Add mbswidth.h.
128642 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128644         * lib/config.charset: Add support for FreeBSD. Improve support for
128645         HP-UX and IRIX 6.
128647 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
128649         * m4/mbswidth.m4: New file.
128650         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
128652 2000-07-15  Jim Meyering  <meyering@lucent.com>
128654         * lib/makepath.c: Include quote.h.
128655         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
128656         corresponding argument in a `quote (...)' call.
128657         Give better diagnostics.
128659         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
128660         (noinst_HEADERS): Add quote.h.
128662         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
128663         from tar's src/misc.c.
128664         * lib/quote.h: New file.  Prototypes for same.
128666 2000-07-14  Paul Eggert  <eggert@twinsun.com>
128668         From a suggestion by Bruno Haible.
128669         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
128670         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
128671         to decide whether to define the BeOS workaround macro;
128672         this adjusts to the change to AC_MBSTATE_T.
128674 2000-07-14  Jim Meyering  <meyering@lucent.com>
128676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
128677         jm_AC_TYPE_UINTMAX_T.
128679 2000-07-13  Paul Eggert  <eggert@twinsun.com>
128681         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
128683         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
128684         quotearg_buffer_restyled): Add support for
128685         clocale_quoting_style.  Undo previous change to
128686         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
128687         and "{RIGHT QUOTATION MARK}" msgids.
128689 2000-07-10  Paul Eggert  <eggert@twinsun.com>
128691         From a suggestion by Bruno Haible.
128692         * m4/mbstate_t.m4 (AC_MBSTATE_T):
128693         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
128694         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
128695         and mbstate_t, to a single-part test that simply defines mbstate_t.
128696         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
128697         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
128699 2000-07-10  Jim Meyering  <meyering@lucent.com>
128701         * m4/strerror_r.m4: Mirror the correction made in autoconf.
128703         * m4/gnu-source.m4: Output to confdefs.h directly.
128704         Suggestion from Akim Demaille.
128706 2000-07-09  Paul Eggert  <eggert@twinsun.com>
128708         The old behavior of quoting `like this' doesn't look good with
128709         newer, ISO-style fonts.  See:
128710         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
128712         Instead, quote "like this" by default.  Let the translator
128713         tailor the locale-specific quoting behavior by providing
128714         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
128716         * lib/quotearg.c (N_): New macro.
128717         (gettext_default): New function.
128718         (quotearg_buffer_restyled): Use
128719         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
128720         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
128722 2000-07-09  Jim Meyering  <meyering@lucent.com>
128724         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
128725         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
128727         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
128728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
128730 2000-07-09  Jim Meyering  <meyering@lucent.com>
128732         * lib/Most files: Update copyright dates to include 2000.
128734 2000-07-08  Jim Meyering  <meyering@lucent.com>
128736         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
128737         if not defined.
128738         (xgethostname): Remove now-unnecessary #ifdef.
128739         Move declaration of `err' into loop where it's used.
128741 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128742         and Bruno Haible  <haible@clisp.cons.org>
128744         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
128745         only if the test for an object-type mbstate_t fails.  This
128746         prevents us from mistakenly reporting that mbstate_t is a
128747         system object type after we "#define mbstate_t int" to work
128748         around its lack.
128750 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128751         and Bruno Haible  <haible@clisp.cons.org>
128753         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
128755 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128757         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
128758         to strerror_r.
128759         Include <ctype.h> for use of isalpha.
128761 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128763         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
128764         by allocating a larger buffer. Test the gethostname return value for
128765         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
128766         returns an error and ENAMETOOLONG isn't defined.
128768 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128770         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
128771         dimension.
128773 2000-07-04  Jim Meyering  <meyering@lucent.com>
128775         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
128776         of the deprecated AC_CHECKING.
128778 2000-07-04  Jim Meyering  <meyering@lucent.com>
128780         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
128781         Reported by Bruno Haible.
128783 2000-07-04  Jim Meyering  <meyering@lucent.com>
128785         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
128786         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
128787         lacks mbrtowc.
128789 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128791         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
128792         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
128794 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128795         and Bruno Haible  <haible@clisp.cons.org>
128797         * lib/quotearg.c (mbrtowc):
128798         Assign to *pwc, and return 1 only if result is nonzero.
128799         (iswprint): Use ISPRINT when substituting our own mbrtowc.
128801 2000-07-03  Jim Meyering  <meyering@lucent.com>
128803         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
128805 2000-07-03  Jim Meyering  <meyering@lucent.com>
128807         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
128808         This is necessary to get a definition of e.g., UTMP_FILE on
128809         HP-UX 10.20.
128810         From Bob Proulx.
128812 2000-07-02  Jim Meyering  <meyering@lucent.com>
128814         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
128816         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
128817         AC_LIBOBJ(function_name).
128818         * m4/chown.m4: Likewise.
128819         * m4/fnmatch.m4: Likewise.
128820         * m4/ftruncate.m4: Likewise.
128821         * m4/getgroups.m4: Likewise.
128822         * m4/getline.m4: Likewise.
128823         * m4/group-member.m4: Likewise.
128824         * m4/jm-macros.m4: Likewise.
128825         * m4/lstat.m4: Likewise.
128826         * m4/malloc.m4: Likewise.
128827         * m4/memcmp.m4: Likewise.
128828         * m4/nanosleep.m4: Likewise.
128829         * m4/putenv.m4: Likewise.
128830         * m4/realloc.m4: Likewise.
128831         * m4/regex.m4: Likewise.
128832         * m4/stat.m4: Likewise.
128833         * m4/strftime.m4: Likewise.
128835 2000-07-02  Jim Meyering  <meyering@lucent.com>
128837         * lib/quotearg.c (mbstate_t): Don't define here.
128839 2000-07-02  Jim Meyering  <meyering@lucent.com>
128841         * lib/nanosleep.c (SIGCONT): Define if not already defined.
128843 2000-07-01  Jim Meyering  <meyering@lucent.com>
128845         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
128847 2000-07-01  Jim Meyering  <meyering@lucent.com>
128849         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
128850         problem.
128852 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
128854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
128855         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
128857 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
128859         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
128860         per change in ../m4/ls-mntd-fs.m4.
128861         (read_filesystem_list): Ignore symbolic links.
128863 2000-06-29  Jim Meyering  <meyering@lucent.com>
128865         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
128866         for declaration of strcmp.
128868         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
128870         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
128871         Avoid warning by casting result to `char *' to remove `const'.
128873 2000-06-28  Jim Meyering  <meyering@lucent.com>
128875         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
128876         included by quotearg.c, for which we perform this test.  From
128877         Bruno Haible.
128879 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
128881         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
128882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
128883         <utmpx.h> exists, put readutmp.o into LIBOBJS.
128885 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
128887         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
128889 2000-06-26  Paul Eggert  <eggert@twinsun.com>
128891         savedir now sets errno on failure and invokes xmalloc to get memory.
128892         Fix a couple of other minor bugs while we're at it.
128894         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
128895         (NAMLEN): Remove macro.
128896         (malloc, realloc): Remove decls.
128897         (stpcpy): Likewise.
128898         ("xalloc.h"): Include.
128899         (NAME_SIZE_DEFAULT): New macro.
128900         (savedir): Use xmalloc / xrealloc to allocate memory.
128901         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
128902         Skip "" directory entries.
128903         Use strlen to calculate directory entry length, since the old method
128904         is rarely used these days and isn't worth supporting.
128905         Don't use a pointer after freeing it.
128906         Check for integer overflow when calculating allocation size.
128907         Use memcpy to copy entries, instead of stpcpy.
128908         Set errno properly when returning NULL.
128909         Check for readdir error.
128911 2000-06-26  Jim Meyering  <meyering@lucent.com>
128913         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
128915 2000-06-25  Jim Meyering  <meyering@lucent.com>
128917         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
128918         Linux header bug when _XOPEN_SOURCE is defined to 500.
128920 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
128922         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
128923         deficiency.
128925 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
128927         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
128928         Include xalloc.h.
128929         Don't include <stdlib.h>.  Don't declare malloc, realloc.
128931 2000-06-24  Jim Meyering  <meyering@lucent.com>
128933         * m4/strerror_r.m4: Revive this file -- to try out an experimental
128934         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
128935         for which strerror does return char*, but which lacks a conveniently
128936         accessible declaration of the function.  If the compile-test says
128937         strerror_r doesn't work, then resort to a `run'-test that works on
128938         BeOS and segfaults on DEC Unix.
128940 2000-06-24  Jim Meyering  <meyering@lucent.com>
128942         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
128944 2000-06-23  Paul Eggert  <eggert@twinsun.com>
128946         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
128947         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
128949 2000-06-23  Paul Eggert  <eggert@twinsun.com>
128951         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
128952         (mbrtowc, mbstate_t): Define substitutes if
128953         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
128954         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
128955         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
128957 2000-06-23  Jim Meyering  <meyering@lucent.com>
128959         * m4/afs.m4: Add missing AC_MSG_RESULT.
128960         Reported by Bruno Haible.
128962         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
128963         Suggestion from Bruno Haible.
128965 2000-06-23  Jim Meyering  <meyering@lucent.com>
128967         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
128969 2000-06-21  Jim Meyering  <meyering@lucent.com>
128971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
128973 2000-06-21  Jim Meyering  <meyering@lucent.com>
128975         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
128976         (noinst_HEADERS): Add getstr.h.
128978         * lib/getline.c (getstr): Move into a separate file.
128979         * lib/getstr.c (getstr): New file, extracted from getline.c, with
128980         the following changes: new parameter, delim2; both delim[12]
128981         parameters have type `int', not `char'.  The latter would lose
128982         with 8-bit delimiters.
128983         * lib/getstr.h: New file.
128985 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
128987         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
128988         than 1024, return a memory chunk of least possible size, instead
128989         of size PATH_MAX + 2. In the loop, increment the size proportionally.
128990         Use free/xmalloc instead of xrealloc to avoid copying for very long
128991         paths.
128993 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
128995         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
128996         the empty string.
128998 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129000         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129001         address, not strdup.  Include <stdlib.h> and don't declare free().
129003 2000-06-19  Jim Meyering  <meyering@lucent.com>
129005         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129007 2000-06-18  Jim Meyering  <meyering@lucent.com>
129009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129011         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129012         `checking whether...' message to be consistent with that of the
129013         lstat test.
129015 2000-06-18  Jim Meyering  <meyering@lucent.com>
129017         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129018         Besides, these days every porting target provides a mkdir function.
129020         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129021         needed. (this snippet comes from src/system.h).
129023 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129025         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129027 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129029         * lib/human.c (adjust_value): New function.
129030         (human_readable_inexact): Apply rounding style even when
129031         printing approximate values.
129033 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129035         * lib/human.c (human_readable_inexact): Allow an input block
129036         size that is not a multiple of the output block size, and vice versa.
129037         Reported by Piergiorgio Sartor.
129039 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129041         * lib/getdate.y (get_date): Apply relative times after time
129042         zone indicator, not before.  Reported by Todd A. Jacobs.
129044 2000-06-13  Jim Meyering  <meyering@lucent.com>
129046         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129048         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129050 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129052         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129054 2000-06-12  Jim Meyering  <meyering@lucent.com>
129056         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129057         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129058         optional argument.
129059         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129060         the optional argument, `lib'.
129062 2000-06-08  Jim Meyering  <meyering@lucent.com>
129064         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129066 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129068         Rewrite largefile configuration so that we don't need to run
129069         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129070         AC_CANONICAL_HOST in configure.in -- jmm]
129072         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129073         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129074         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129075         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129076         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129077         All uses changed.
129078         Instead of inspecting the output of getconf, try to compile the
129079         test program without and with the macro definition.
129080         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129081         for getconf.  Instead, check for the needed flags by compiling
129082         test programs.
129084 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129086         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129088 2000-06-04  Jim Meyering  <meyering@lucent.com>
129090         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129091         SunOS 4.1.4 for which gid_t is an unsigned type.
129093 2000-06-03  Jim Meyering  <meyering@lucent.com>
129095         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129096         now that autoconf requires that.
129098         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129099         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129100         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129102 2000-06-03  Jim Meyering  <meyering@lucent.com>
129104         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129106 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129108         * m4/glibc21.m4: New file.
129109         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129111 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129113         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129114         newer, don't install charset.alias.
129115         * lib/config.charset: Change the Linux/glibc rules so they become empty
129116         on glibc-2.1 or newer.
129118 2000-06-02  Jim Meyering  <meyering@lucent.com>
129120         * lib/mountlist.c: Back out last change.  Instead, do this...
129121         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129122         me_dummy member using the same `ignore'-testing code.
129123         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129124         fs_type strings.
129125         From Mark D. Roth.
129127 2000-05-29  Jim Meyering  <meyering@lucent.com>
129129         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129130         mounts with the `ignore' attribute.  Based on a patch from
129131         Mark D. Roth.
129133 2000-05-28  Jim Meyering  <meyering@lucent.com>
129135         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129136         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129137         * m4/stat.m4: Likewise.
129138         * m4/lstat.m4: Likewise.
129139         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129141         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129142         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129144 2000-05-26  Jim Meyering  <meyering@lucent.com>
129146         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129148 2000-05-24  Jim Meyering  <meyering@lucent.com>
129150         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129151         autoconf requires that.
129152         * m4/lib-check.m4: Likewise.
129153         * m4/jm-macros.m4: Likewise.
129154         * m4/strftime.m4: Likewise.
129156         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129157         AC_CHECK_DECLS, now that autoconf requires that.
129159 2000-05-22  Jim Meyering  <meyering@lucent.com>
129161         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129162         * m4/lstat.m4: Likewise.
129164 2000-05-22  Jim Meyering  <meyering@lucent.com>
129166         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129168 2000-05-20  Jim Meyering  <meyering@lucent.com>
129170         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129171         (jm_PREREQ): Use it.
129173 2000-05-18  Jim Meyering  <meyering@lucent.com>
129175         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129176         back, too, since it may have been modified by allocate_entry.
129177         (hash_delete): Rewrite to use neither the assignment operator
129178         nor the comma operator in an if-expression.
129180 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129182         * lib/closeout.c:
129183         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129184         Remove; no longer needed.
129185         "quotearg.h": Add include.
129186         (file_name): Do not bother to explicitly initialize to NULL; it's less
129187         efficient on some hosts.
129188         (close_stdout_status): Remove test as to whether stdout was already
129189         closed; it breaks for the case "echo x | sort >&-".
129190         Quote file name colons.
129191         Do not assume that _("write error") lacks format strings.
129193 2000-05-15  Jim Meyering  <meyering@lucent.com>
129195         * lib/version-etc.c (version_etc_copyright): Update the copyright
129196         string used in all --version output.
129198 2000-05-14  Jim Meyering  <meyering@lucent.com>
129200         * lib/closeout.c (close_stdout_set_file_name): New function.
129201         (close_stdout_status): Use new file-scoped global.
129202         Return right away if fstat says the stdout file descriptor is invalid.
129203         * lib/closeout.h (close_stdout_set_file_name): Declare.
129205 2000-05-10  Jim Meyering  <meyering@lucent.com>
129207         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129208         (close_stdout_set_status): New function.
129209         * lib/closeout.h (close_stdout_set_status): Declare.
129211 2000-05-09  Jim Meyering  <meyering@lucent.com>
129213         * m4/gettext.m4: Rename this...
129214         * m4/libintl.m4: ...to this.
129216 2000-05-08  Jim Meyering  <meyering@lucent.com>
129218         * lib/long-options.c: Don't include closeout.h.
129219         (parse_long_options): Don't call close_stdout for --version.
129221 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129223         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129224         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129225         2.1.3 bug.  This avoids a clash when files like regex.c define
129226         _GNU_SOURCE.
129228 2000-05-06  Jim Meyering  <meyering@lucent.com>
129230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129231         (AC_REPLACE_FUNCS): Add strnlen.
129233         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129234         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129237         AC_SEARCH_LIBS call for nanosleep.
129238         (LIB_NANOSLEEP): Set and AC_SUBST.
129240 2000-05-06  Jim Meyering  <meyering@lucent.com>
129242         * lib/strnlen.c: Undefine __strnlen and strnlen.
129243         [!weak_alias]: Define __strnlen to strnlen.
129245         * lib/atexit.c: New file, from libiberty.
129247 2000-05-06  Jim Meyering  <meyering@lucent.com>
129249         * lib/closeout.c (close_stdout_status): Also check for errors on the
129250         stderr stream.
129252 2000-05-05  Jim Meyering  <meyering@lucent.com>
129254         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129255         AC_SEARCH_LIBS call for clock_gettime.
129256         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129258         * m4/search-libs.m4: Update from autoconf.
129260         su doesn't work on Solaris 2.6.
129261         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129262         <shadow.h>.  Reported by Dragos Harabor.
129264 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129266         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129267         memcpy instead of xmalloc, xrealloc, path_concat.
129268         (locale_charset): Treat empty environment variables as absent.
129269         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129271 2000-05-04  Jim Meyering  <meyering@lucent.com>
129273         * lib/getopt.c: Update from glibc.
129274         * lib/obstack.c: Likewise.
129275         * lib/obstack.h: Likewise.
129276         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129277         file
129279         * lib/regex.h: Likewise.
129280         * lib/strndup.c: Likewise.
129281         * lib/strnlen.c: New file, from glibc.
129283 2000-05-03  Jim Meyering  <meyering@lucent.com>
129285         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129287 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129289         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129290         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129291         compile-time test, rather than inspecting host and OS, to
129292         decide whether to define _LARGEFILE_SOURCE.
129294 2000-05-01  Jim Meyering  <meyering@lucent.com>
129296         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129299         Based on a patch from Bruno Haible.
129301 2000-05-01  Jim Meyering  <meyering@lucent.com>
129303         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129305 2000-04-29  Jim Meyering  <meyering@lucent.com>
129307         * lib/path-concat.c: Declare strdup only if it's not defined.
129308         * lib/canon-host.c: Likewise.
129310 2000-04-28  Jim Meyering  <meyering@lucent.com>
129312         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129313         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129314         is included first, then limits.h is included by locale.h by libintl.h.
129315         From John David Anglin.
129317 2000-04-25  Jim Meyering  <meyering@lucent.com>
129319         * lib/makepath.c (S_IRWXUGO): Define.
129320         (make_path): Always perform explicit chmod if MODE specifies any
129321         of the `special' permission bits.  Prompted by a bug report against
129322         install from Mate Wierdl and Joost van Baal.
129324 2000-04-18  Jim Meyering  <meyering@lucent.com>
129326         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129327         (jm_PREREQ): Use it.
129329 2000-04-18  Jim Meyering  <meyering@lucent.com>
129331         * lib/README: New file.
129333         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129334         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129336 2000-04-17  Jim Meyering  <meyering@lucent.com>
129338         Get it right :-)
129339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129340         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129341         Suggestion from Akim Demaille.
129343 2000-04-17  Jim Meyering  <meyering@lucent.com>
129345         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129346         the definition of it to rpl_strftime also defined-away the system's
129347         declaration.
129349 2000-04-15  Jim Meyering  <meyering@lucent.com>
129351         Use `C' to denote so-called `contiguous' files, the same way
129352         that tar does.
129353         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129354         (ftypelet): Use S_ISCTG.
129355         From Michael Deutschmann.
129357 2000-04-14  Jim Meyering  <meyering@lucent.com>
129359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129360         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129361         clobbered.
129363 2000-04-14  Jim Meyering  <meyering@lucent.com>
129365         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129367 2000-04-13  Jim Meyering  <meyering@lucent.com>
129369         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129370         AH_VERBATIM to insert required #ifndef into config.h.in.
129371         Suggestion from Akim Demaille.
129373 2000-04-12  Jim Meyering  <meyering@lucent.com>
129375         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129376         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129377         Christian Krackowizer.
129379         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129380         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129381         (AC_SYS_LARGEFILE): Require.
129382         (AM_C_PROTOTYPES): Require.
129384 2000-04-08  Jim Meyering  <meyering@lucent.com>
129386         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129387         names don't conflict.  Reported by Eli Zaretskii.
129389 2000-04-07  Jim Meyering  <meyering@lucent.com>
129391         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129392         sys/types.h, to work around system header problems on AIX 3.2.5.
129393         From Bruno Haible.
129395 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129397         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129398         bug.  Deal with the different error behavior of Irix iconv.
129400 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129403         IRIX if the installer said otherwise.
129405 2000-04-05  Jim Meyering  <meyering@lucent.com>
129407         Portability tweaks required for ultrix4.3.
129408         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129409         (jm_CHECK_DECLS): Add getutent to the list of functions.
129410         (_jm_DECL_HEADERS): Add utmpx.h.
129411         From John David Anglin.
129413         * m4/strftime.m4: Back out the 2000-04-02 change.
129414         Instead of that change, simply undefine putenv in the test program.
129416 2000-04-05  Jim Meyering  <meyering@lucent.com>
129418         Portability tweaks required for ultrix4.3.
129419         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129420         getutent.
129421         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129422         * lib/canon-host.c: Declare strdup.
129423         * lib/path-concat.c: Likewise.
129424         From John David Anglin.
129426 2000-04-04  Jim Meyering  <meyering@lucent.com>
129428         Be more DOS 8.3-friendly.
129429         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129430         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129431         * lib/Makefile.am: Reflect renaming.
129432         Reported by Eli Zaretskii.
129434         Use a temporary file name that won't clash with `charset.alias'
129435         in the DOS 8.3 name space.
129436         * lib/Makefile.am (charset_tmp): Define.
129437         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129438         (uninstall-local): Likewise.
129439         Reported by Eli Zaretskii.
129441 2000-04-03  Jim Meyering  <meyering@lucent.com>
129443         * m4/gettext.m4: Fix typo in comment.
129445         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129446         textutils/configure.in).  Suggestion from Paul Eggert.
129447         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129449 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129451         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129452         variable in the shell rather than using putenv, which isn't
129453         portable.  This avoids the configure-time inter-test dependency
129454         on the potentially-renamed putenv function.
129456 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129459         before checking struct stat.st_blksize, so that
129460         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129462 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129465         since strftime.c uses HAVE_STRFTIME to decide whether to use
129466         the underlying strftime.
129468 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129470         * lib/time/strftime.c (my_strftime): Make sure we call the system
129471         strftime, not ourselves, when invoking the underlying strftime.
129473 2000-03-24  Jim Meyering  <meyering@lucent.com>
129475         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129476         (charset_alias): Define.
129477         (install-exec-local): Factor out common code.
129478         (uninstall-local): Split lines longer than 80.
129479         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129480         (SUFFIXES): Define.
129481         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129482         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129484 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129486         * lib/config.charset: Output a line containing "Packages using this
129487         file".
129488         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129489         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129490         ref-del.sed): New rules.
129492 2000-03-17  Jim Meyering  <meyering@lucent.com>
129494         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129495         Otherwise, include <strings.h>
129497 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129499         * lib/unicodeio.c (utf8_wctomb): New function.
129500         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129501         format instead of in UCS-4 with platform dependent endianness.
129503 2000-03-10  Jim Meyering  <meyering@lucent.com>
129505         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129506         From Marco Franzen.
129508 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129510         * lib/savedir.c (savedir): Work even if directory size is
129511         negative; this can happen with some screwy NFS configurations.
129513 2000-03-06  Jim Meyering  <meyering@lucent.com>
129515         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129516         if it's NULL (because we ran out of memory).  From Bruno Haible.
129518 2000-03-05  Jim Meyering  <meyering@lucent.com>
129520         * lib/localcharset.c ("path-concat.h"): Include.
129521         (get_charset_aliases): Use path_concat instead of ANSI string
129522         concatenation.
129524         * lib/unicodeio.h (PARAMS): Define.
129525         Use it to guard prototype.
129527 2000-03-04  Jim Meyering  <meyering@lucent.com>
129529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129530         for lib/localcharset.c.
129532 2000-03-04  Jim Meyering  <meyering@lucent.com>
129534         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129535         installing into it.
129536         (uninstall-local): Uncomment this rule so `make distcheck' works
129537         once again.
129539         * lib/unicodeio.c (<errno.h>): Include it.
129540         (errno): Declare if not defined.
129542         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129544         * lib/config.charset: New version, incorporating remarks from a linux
129545         i18n mailing list.  From Bruno Haible.
129547 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129549         * m4/codeset.m4: New file.
129550         * m4/iconv.m4: New file.
129551         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129553 2000-03-03  Jim Meyering  <meyering@lucent.com>
129555         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129557 2000-03-02  Jim Meyering  <meyering@lucent.com>
129559         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129560         the messages come out on separate lines.
129562         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129563         rather than jm_CHECK_DECLARATIONS.
129564         * m4/decl.m4: Remove now-unused file.
129566         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129567         geteuid.
129569 2000-03-02  Jim Meyering  <meyering@lucent.com>
129571         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129573 2000-03-01  Jim Meyering  <meyering@lucent.com>
129575         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129576         * lib/unicodeio.c: Likewise.
129578 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129580         * lib/config.charset: New file.
129581         * lib/localcharset.c: New file.
129582         * lib/unicodeio.h, lib/unicodeio.c: New files.
129583         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129584         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129585         (noinst_HEADERS): Add unicodeio.h.
129586         (all-local, install-exec-local, charset.alias): New targets.
129588 2000-02-28  Paul Eggert  <eggert@twinsun.com>
129590         * lib/quotearg.c (ALERT_CHAR): New macro.
129591         (quotearg_buffer_restyled): Use it.
129593 2000-02-27  Jim Meyering  <meyering@lucent.com>
129595         * m4/check-decl.m4: Add getenv to the list.
129597 2000-02-27  Jim Meyering  <meyering@lucent.com>
129599         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
129600         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
129602         * lib/backupfile.c: Guard inclusion of stdlib.h with
129603         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
129604         Declare malloc if needed.
129606         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
129607         `#ifndef HAVE_DECL..'
129608         now that autoconf always defines the HAVE_DECL_ symbols.
129609         * lib/human.c: Likewise.
129610         * lib/same.c: Likewise.
129611         * lib/strtoumax.c: Likewise.
129613         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
129614         declaration check was not run.
129615         * lib/hash.c: Likewise.
129616         * lib/human.c: Likewise.
129617         * lib/same.c: Likewise.
129618         * lib/strtoumax.c: Likewise.
129620         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
129621         `.', then first look up the entire `.'-containing string as a login
129622         name.
129624 2000-02-23  Jim Meyering  <meyering@lucent.com>
129626         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
129627         in place of my hack.
129629 2000-02-18  Paul Eggert  <eggert@twinsun.com>
129631         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
129632         (textint): New typedef.
129633         (parser_control): Member year changed from int to textint.
129634         All uses changed.
129635         (YYSTYPE): Removed; replaced by %union with int and textint members.
129636         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
129637         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
129638         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
129639         (tSNUMBER, tUNUMBER): Now of type <textintval>.
129640         (date, number, to_year): Use width of number in digits, not its value,
129641         to determine whether it's a 2-digit year, or a 2-digit time.
129642         (yylex): Store number of digits of numeric tokens.
129643         Reported by John Kendall.
129645         (parser_control): Changed from struct parser_control to typedef (for
129646         consistency).  All uses changed.
129648         (tID): Removed; not used.
129649         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
129651 2000-02-14  Paul Eggert  <eggert@twinsun.com>
129653         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
129654         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
129656 2000-02-12  Jim Meyering  <meyering@lucent.com>
129658         * lib/userspec.c (ISDIGIT): Define it.
129659         (isdigit): Remove definition.
129660         (is_number): Use ISDIGIT, not isdigit.
129661         <libintl.h>: Include.
129662         (_ and N_): Define.
129663         (parse_user_spec): Mark translatable strings.
129665 2000-02-10  Jim Meyering  <meyering@lucent.com>
129667         With these changes, nanosleep.[ch] are finally enough like the other
129668         lib/* replacement files to compile on a few more losing systems.
129670         * lib/nanosleep.h: Don't include config.h.
129671         Remove prototype from declaration of nanosleep.
129672         (PARAMS): Remove now-unneeded definition.
129673         * lib/nanosleep.c: #undef nanosleep.
129674         (rpl_nanosleep): Rename from nanosleep.
129676 2000-02-10  Jim Meyering  <meyering@lucent.com>
129678         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
129679         gnu_nanosleep to rpl_nanosleep.
129681 2000-02-09  Jim Meyering  <meyering@lucent.com>
129683         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
129684         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
129686 2000-02-08  Akim Demaille  <akim@epita.fr>
129688         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
129689         `[' and `]' and remove uses of `changequote'.
129690         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
129691         (AC_SYS_LARGEFILE): Likewise.
129692         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
129693         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
129694         of changequote.
129695         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
129696         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
129697         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
129698         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
129700 2000-02-05  Jim Meyering  <meyering@lucent.com>
129702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
129703         Remove explicit use of AC_HEADER_TIME.  It is required by
129704         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
129705         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
129706         in autoconf whereby the expansion of the latter ended up preceding
129707         the expansion of its prerequisite, AC_HEADER_TIME.
129708         Reported by Volker Borchert.
129710 2000-02-03  Jim Meyering  <meyering@lucent.com>
129712         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
129714 2000-02-03  Jim Meyering  <meyering@lucent.com>
129716         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
129717         rather than with `#if HAVE_UTMPNAME'.
129719 2000-02-02  Jim Meyering  <meyering@lucent.com>
129721         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
129722         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
129723         Reported by Eli Zaretskii.
129725 2000-02-01  Jim Meyering  <meyering@lucent.com>
129727         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
129729 2000-01-31  Jim Meyering  <meyering@lucent.com>
129731         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
129732         functions.  Add the time.h and sys/time.h headers along with the
129733         AC_REQUIRE'ment of AC_HEADER_TIME.
129735 2000-01-31  Jim Meyering  <meyering@lucent.com>
129737         * lib/nanosleep.h (nanosleep): Guard declaration with
129738         `#if ! HAVE_DECL_NANOSLEEP'.
129739         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
129740         the declaration in that vendor's sys/timers.h.
129741         Reported by Christian Krackowizer.
129743         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
129744         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
129745         (ISPRINT): Likewise.
129746         Reported by Tom Tromey.
129748 2000-01-30  Jim Meyering  <meyering@lucent.com>
129750         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
129752         * m4/prereq.m4 (utmp_includes): Define.
129753         Check for ut_user and ut_name members in both struct utmpx
129754         and struct utmp.
129756 2000-01-30  Jim Meyering  <meyering@lucent.com>
129758         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
129759         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
129760         header files where only utmpx.ut_user is declared.
129762         * lib/readutmp.h (UT_USER): Define.
129764 2000-01-29  Jim Meyering  <meyering@lucent.com>
129766         * m4/lib-check.m4: New file containing library-related checks from
129767         fileutils and sh-utils (textutils had none).
129769 2000-01-28  Jim Meyering  <meyering@lucent.com>
129771         * m4/perl.m4: Change format of warning message to look more like that
129772         from the missing script.  Suggestion from François Pinard.
129774 2000-01-25  Jim Meyering  <meyering@lucent.com>
129776         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
129777         well as time.h in the compile check.
129778         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
129779         Fix typo in cross-compiling case: s/yes/no/.
129781 2000-01-23  Jim Meyering  <meyering@lucent.com>
129783         * m4/jm-macros.m4: Move df-related tests here from
129784         fileutils/configure.in
129786         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
129787         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
129789         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
129790         s/space/ac_fsusage_space/.
129791         (jm_FILE_SYSTEM_USAGE): Take two parameters.
129793         * m4/ftruncate.m4: New file (derived from part of
129794         fileutils/configure.in).
129795         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
129796         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
129798         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
129799         AC_SUBST these here, rather than just in sh-util/configure.in, so
129800         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
129801         all the same.
129802         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
129803         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
129804         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
129805         (AC_SUBST(POW_LIBM)): Likewise.
129806         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
129808 2000-01-23  Jim Meyering  <meyering@lucent.com>
129810         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
129811         obstack.c.
129813 2000-01-22  Jim Meyering  <meyering@lucent.com>
129815         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
129817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
129819         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
129820         configure.in
129821         (AC_CHECK_HEADERS): Likewise for sh-utils.
129822         (AC_CHECK_HEADERS): Likewise for textutils.
129823         Merge the three lists of headers.
129825         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
129826         from fileutils' configure.in.
129828         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
129829         code. Moved tests into their own function (_jm_DECL_HEADERS) in
129830         check-decl.m4.
129832         * m4/check-decl.m4: Use #if rather than #ifdef.
129833         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
129834         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
129835         (_jm_DECL_HEADERS): Define new function.
129836         (jm_CHECK_DECLARATIONS): Require it.
129838 2000-01-22  Jim Meyering  <meyering@lucent.com>
129840         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
129841         [! HAVE_DECL_STRTOULL]: Declare strtoull.
129842         Required for some AIX systems.  Reported by Christian Krackowizer.
129843         [TESTING] (main): New function.
129845         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
129846         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
129847         letters.
129849         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
129850         iswprint.
129852         * lib/strverscmp.c (ISDIGIT): Define.
129853         (strverscmp): Use ISDIGIT, not isdigit.
129855 2000-01-19  Jim Meyering  <meyering@lucent.com>
129857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
129858         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
129859         defines `struct timespec' in <sys/time.h>
129861         * m4/c-bs-a.m4: Remove uses of changequote altogether.
129862         Thanks to Akim for explaining.
129864 2000-01-17  Paul Eggert  <eggert@twinsun.com>
129866         * lib/nanosleep.c (nanosleep):
129867         Don't use SA_INTERRUPT to decide whether to call sigaction, as
129868         POSIX.1 doesn't require SA_INTERRUPT and some systems
129869         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
129870         it's been part of POSIX.1 since day 1 (in 1988).
129872 2000-01-17  Jim Meyering  <meyering@lucent.com>
129874         * lib/interlock: Remove unused file.  Reported by François Pinard.
129876 2000-01-16  Paul Eggert  <eggert@twinsun.com>
129878         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
129879         alert, backslash, formfeed, and vertical tab unnecessarily in
129880         shell quoting style.
129882 2000-01-16  Jim Meyering  <meyering@lucent.com>
129884         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
129885         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
129886         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
129887         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
129889 2000-01-16  Jim Meyering  <meyering@lucent.com>
129891         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
129892         because the latter didn't work.
129894 2000-01-15  Jim Meyering  <meyering@lucent.com>
129896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
129897         (AC_REPLACE_FUNCS): Add memcpy and memset.
129898         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
129899         Add strpbrk.
129900         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
129902 2000-01-12  Jim Meyering  <meyering@lucent.com>
129904         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
129905         (jm_PREREQ): Use it.
129906         (jm_PREREQ_READUTMP): New macro.
129907         (jm_PREREQ): Use it.
129909 2000-01-11  Paul Eggert  <eggert@twinsun.com>
129911         Quote multibyte characters correctly.
129912         * m4/c-bs-a.m4: New file.
129913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
129914         (jm_PREREQ): Use it.
129916 2000-01-11  Paul Eggert  <eggert@twinsun.com>
129918         * m4/uintmax_t.m4: Port to autoconf 2.13.
129920 2000-01-08  Jim Meyering  <meyering@ascend.com>
129922         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
129923         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
129925 2000-01-04  Jim Meyering  <meyering@ascend.com>
129927         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
129928         jm_STRUCT_DIRENT_D_TYPE.
129929         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
129930         jm_STRUCT_DIRENT_D_INO.
129931         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
129932         jm_STRUCT_UTIMBUF.
129933         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
129934         renamings.
129935         * m4/utime.m4: Likewise.
129937         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
129938         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
129940 2000-01-03  Paul Eggert  <eggert@twinsun.com>
129942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
129943         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
129945 2000-01-02  Jim Meyering  <meyering@ascend.com>
129947         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
129948         remember if this is necessary.
129950 1999-12-26  Jim Meyering  <meyering@ascend.com>
129952         * m4/jm-macros.m4: Use it here.
129953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
129955 1999-12-23  Jim Meyering  <meyering@ascend.com>
129957         * m4/jm-macros.m4: Check for clock_gettime (moved from
129958         fileutils/configure.in)
129959         Check for gettimeofday.
129961 1999-12-20  Jim Meyering  <meyering@ascend.com>
129963         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
129964         autoconf-2.14a-1999-12-20.
129966 1999-12-19  Jim Meyering  <meyering@ascend.com>
129968         * m4/lstat-slash.m4: New file.
129969         * m4/jm-macros.m4: Use the new macro:
129970         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129972 1999-12-07  Jim Meyering  <meyering@ascend.com>
129974         * m4/perl.m4: Require that File::Compare be available, too.
129975         Too many systems seem to lack it.
129977         * m4/strftime.m4: Add checks for most of the cpp macros tested in
129978         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
129980 1999-11-18  Paul Eggert  <eggert@twinsun.com>
129982         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
129983         problem with the QNX 4.25 shell, which doesn't propagate exit
129984         status of failed commands inside shell assignments.
129986 1999-11-17  Jim Meyering  <meyering@ascend.com>
129988         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
129990 1999-11-07  Jim Meyering  <meyering@ascend.com>
129992         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
129994 1999-11-06  Jim Meyering  <meyering@ascend.com>
129996         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
129997         * m4/jm-macros.m4 (jm_MACROS): Use it here.
129999 1999-11-05  Jim Meyering  <meyering@ascend.com>
130001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130002         configure.in of textutils, fileutils, and sh-utils into this one
130003         (shared between those packages) file.
130004         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130005         AC_STRUCT_ST_BLKSIZE.
130007 1999-11-03  Jim Meyering  <meyering@ascend.com>
130009         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130010         of AC_CHECK_TYPE checks includes unistd.h.
130011         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130012         Suggestion from Akim Demaille.
130014 1999-10-30  Jim Meyering  <meyering@ascend.com>
130016         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130017         m4-quoted string.
130018         * m4/ls-mntd-fs.m4: Likewise.
130019         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130020         * m4/jm-winsz1.m4: Likewise.
130022         * m4/const.m4: Remove file, since the fix made it into the experimental
130023         version of autoconf.
130024         * m4/mktime.m4: Likewise.
130026         * m4/check-type.m4: Remove file, now that the latest version of
130027         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130029         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130030         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130031         AC_CHECK_TYPE.
130033 1999-10-04  Jim Meyering  <meyering@ascend.com>
130035         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130037 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130040         2.95.1 bug with HP-UX 10.20.
130042 1999-09-17  Jim Meyering  <meyering@ascend.com>
130044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130045         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130046         due to missing strdup (against sh-utils-2.0).
130048 1999-08-29  Jim Meyering  <meyering@ascend.com>
130050         * m4/jm-macros.m4: Require jm_BISON.
130051         * m4/bison.m4: New file.
130053 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130055         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130056         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130058 1999-08-05  Jim Meyering  <meyering@ascend.com>
130060         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130061         to avoid conflicts with `conftest' on 8+3 filesystems.
130062         Suggestion from Eli Zaretskii.
130064 1999-08-04  Jim Meyering  <meyering@ascend.com>
130066         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130067         fileutils and sh-utils (textutils's getline test was inadequate).
130068         (AM_FUNC_GETLINE): Run this test.
130069         (AC_CHECK_FUNCS): Check for getdelim.
130070         Reported by Bob Proulx.
130072 1999-08-02  Jim Meyering  <meyering@ascend.com>
130074         * m4/jm-macros.m4: Add a comment.
130076 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130078         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130079         <inttypes.h> defines strtoumax as a macro (and not as a
130080         function).
130082 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130085         that we can shift, multiply and divide unsigned long long
130086         values; Ultrix cc can't do it.
130088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130090         * m4/mktime.m4: New file, which is a preview of what should appear
130091         in the next public autoconf release.
130093 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130095         * m4/lfs.m4: Remove this file.
130096         * m4/largefile.m4: New file.  It contains the old contents of
130097         lfs.m4, except that all names with prefix AC_LFS have been
130098         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130099         compatible with future autoconf versions.  Also, some minor m4
130100         quoting problems have been fixed.
130102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130104         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130105         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130106         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130107         and simplify the shell code.
130109 1999-08-01  Jim Meyering  <meyering@ascend.com>
130111         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130112         m4.
130114 1999-07-20  Jim Meyering  <meyering@ascend.com>
130116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130118 1999-07-15  Jim Meyering  <meyering@ascend.com>
130120         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130122 1999-05-22  Jim Meyering  <meyering@ascend.com>
130124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130126 1999-05-20  Jim Meyering  <meyering@ascend.com>
130128         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130129         Add a colon after each `then' in case $4 is empty.
130131 1999-05-16  Jim Meyering  <meyering@ascend.com>
130133         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130135 1999-05-10  Jim Meyering  <meyering@ascend.com>
130137         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130139         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130140         AC_FUNC_MKTIME.
130142 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130144         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130146 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130148         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130149         not CPPFLAGS, so that linking works correctly in IRIX.
130151 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130153         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130155 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130157         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130158         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130160         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130161         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130163         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130165 1999-04-20  Jim Meyering  <meyering@ascend.com>
130167         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130168         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130169         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130171 1999-04-18  Jim Meyering  <meyering@ascend.com>
130173         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130174         * m4/jm-macros.m4: Use it.
130176 1999-04-06  Jim Meyering  <meyering@ascend.com>
130178         * m4/strftime.m4: Remove test for %f.
130180 1999-03-29  Jim Meyering  <meyering@ascend.com>
130182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130183         superset of the AC_TYPE_* checks in the textutils, fileutils,
130184         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130185         AC_TYPE_PID_T.
130187 1999-03-28  Jim Meyering  <meyering@ascend.com>
130189         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130190         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130191         replaced e.g., in the *.sh files of the sh-utils.
130193 1999-03-20  Jim Meyering  <meyering@ascend.com>
130195         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130196         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130197         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130199 1999-03-19  Jim Meyering  <meyering@ascend.com>
130201         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130203 1999-03-12  Jim Meyering  <meyering@ascend.com>
130205         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130207 1999-03-07  Jim Meyering  <meyering@ascend.com>
130209         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130210         declared.
130212 1999-02-17  Jim Meyering  <meyering@ascend.com>
130214         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130215         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130217 1999-02-07  Jim Meyering  <meyering@ascend.com>
130219         * m4/group-member.m4: New file -- extracted from sh-utils'
130220         configure.in.
130222         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130223         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130225 1999-02-06  Jim Meyering  <meyering@ascend.com>
130227         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130228         * m4/fnmatch.m4: Likewise.
130229         * m4/getgroups.m4: Likewise.
130230         * m4/lstat.m4: Likewise.
130231         * m4/malloc.m4: Likewise.
130232         * m4/putenv.m4: Likewise.
130233         * m4/realloc.m4: Likewise.
130234         * m4/regex.m4: Likewise.
130235         * m4/stat.m4: Likewise.
130236         * m4/strftime.m4: Likewise.
130237         Suggestion from Alain Magloire.
130239         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130240         * m4/fnmatch.m4: Likewise.
130241         * m4/getgroups.m4: Likewise.
130242         * m4/getline.m4: Likewise.
130243         * m4/lstat.m4: Likewise.
130244         * m4/malloc.m4: Likewise.
130245         * m4/memcmp.m4: Likewise.
130246         * m4/putenv.m4: Likewise.
130247         * m4/realloc.m4: Likewise.
130248         * m4/regex.m4: Likewise.
130249         * m4/stat.m4: Likewise.
130250         * m4/strftime.m4: Likewise.
130251         Suggestion from Alain Magloire.
130253         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130254         an argument.
130256         * m4/regex.m4: Add a run-time Test for proper operation of
130257         re_compile_pattern.
130259 1999-01-31  Jim Meyering  <meyering@ascend.com>
130261         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130263 1999-01-30  Jim Meyering  <meyering@ascend.com>
130265         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130267         * m4/jm-mktime.m4: Make this a wrapper around the official
130268         AM_FUNC_MKTIME rather than my private copy, now that the official one
130269         is up to date.
130270         * m4/mktime.m4: Remove file.
130272         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130273         * m4/uptime.m4: Likewise.
130274         * m4/uintmax_t.m4: Likewise.
130276 1999-01-28  Jim Meyering  <meyering@ascend.com>
130278         * m4/jm-macros.m4: Use jm_AFS.
130279         * m4/afs.m4: New file (from fileutils' configure.in).
130281         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130282         * m4/chown.m4: Likewise.
130283         * m4/d-ino.m4: Likewise.
130284         * m4/d-type.m4: Likewise.
130285         * m4/fnmatch.m4: Likewise.
130286         * m4/getgroups.m4: Likewise.
130287         * m4/gettext.m4: Likewise.
130288         * m4/jm-mktime.m4: Likewise.
130289         * m4/jm-winsz2.m4: Likewise.
130290         * m4/lcmessage.m4: Likewise.
130291         * m4/ls-mntd-fs.m4: Likewise.
130292         * m4/malloc.m4: Likewise.
130293         * m4/memcmp.m4: Likewise.
130294         * m4/putenv.m4: Likewise.
130295         * m4/realloc.m4: Likewise.
130296         * m4/st_mtim.m4: Likewise.
130297         * m4/strftime.m4: Likewise.
130299 1999-01-16  Jim Meyering  <meyering@ascend.com>
130301         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130302         (ARGMATCH_DIE_DECL): Define.
130304 1999-01-12  Jim Meyering  <meyering@ascend.com>
130306         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130307         Reported by Lars Hecking.
130309 1999-01-10  Jim Meyering  <meyering@ascend.com>
130311         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130312         gross kludge.
130313         * m4/inttypes_h.m4: Likewise.
130314         * m4/lstat.m4: Likewise.
130315         * m4/malloc.m4: Likewise.
130316         * m4/readdir.m4: Likewise.
130317         * m4/realloc.m4: Likewise.
130318         * m4/st_dm_mode.m4: Likewise.
130319         * m4/stat.m4: Likewise.
130320         * m4/utimbuf.m4: Likewise.
130321         * m4/utimes.m4: Likewise.
130323         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130324         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130325         comments in config.h.in are meaningful.
130327         * m4/jm-macros.m4: Require autoconf-2.13 here.
130329         * m4/regex.m4: By default, don't use the included regex.c on systems
130330         with glibc 2.  Suggestion from Uli Drepper.
130332 1999-01-02  Jim Meyering  <meyering@ascend.com>
130334         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130336 1998-12-18  Jim Meyering  <meyering@ascend.com>
130338         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130339         Based on a suggestion from Lars Hecking.
130341 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130343         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130345 1998-11-16  Jim Meyering  <meyering@ascend.com>
130347         * m4/lfs.m4: Double-quote the `uname...` expression.
130349 1998-11-14  Jim Meyering  <meyering@ascend.com>
130351         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130352         * m4/stat.m4: Likewise.
130354 1998-11-03  Jim Meyering  <meyering@ascend.com>
130356         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130357         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130359 1998-10-18  Jim Meyering  <meyering@ascend.com>
130361         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130363 1998-10-17  Jim Meyering  <meyering@ascend.com>
130365         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130366         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130367         calls for those previously hard-coded headers.  Instead, take a new
130368         parameter.
130369         (jm_CHECK_DECLARATIONS): Reflect interface change.
130370         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130371         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130373         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130375 1998-10-14  Jim Meyering  <meyering@ascend.com>
130377         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130378         instead of "TZ=America/Vancouver".  From Paul Eggert.
130380 1998-10-11  Jim Meyering  <meyering@ascend.com>
130382         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130383         This adds a test for a recently added compatibility fix for mktime.c.
130384         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130386 1998-09-27  Jim Meyering  <meyering@ascend.com>
130388         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130390         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130391         ../configure.in, including a change from Gordon Matzigkeit to allow
130392         cross-compiling for the Hurd.
130394         * m4/glibc.m4: New file/macro to test for the GNU C Library
130395         versions 1 and 2.  From Gordon Matzigkeit.
130396         Indent.
130398 1998-09-21  Jim Meyering  <meyering@ascend.com>
130400         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130402 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130404         Port nanosecond-resolution times to UnixWare 2.1.2 and
130405         pedantic Solaris 2.6.
130407         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130408         AC_STRUCT_ST_MTIM.
130409         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130410         Generate name of ns member, instead of just 1 or undef.
130411         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130413 1998-08-15  Jim Meyering  <meyering@ascend.com>
130415         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130416         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130417         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130418         instead of jm_TYPE_SSIZE_T.
130420 1998-08-12  Jim Meyering  <meyering@ascend.com>
130422         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130424 1998-08-02  Jim Meyering  <meyering@ascend.com>
130426         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130427         in acconfig.h manually.
130429 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130431         * m4/st_mtim.m4: New file.
130433 1998-07-28  Jim Meyering  <meyering@ascend.com>
130435         * m4/utimes.m4: Undef stat.
130437 1998-07-25  Jim Meyering  <meyering@ascend.com>
130439         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130440         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130442 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130444         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130445         uid and gid actually remain unchanged.
130447 1998-07-07  Jim Meyering  <meyering@ascend.com>
130449         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130451 1998-07-04  Jim Meyering  <meyering@ascend.com>
130453         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130454         to prove that this macro can be used in packages without regex.c.
130456 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130458         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130459         is to be used.
130461 1998-07-03  Jim Meyering  <meyering@ascend.com>
130463         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130465         * m4/gettext.m4: New file -- from gettext-0.10.35.
130466         * m4/lcmessage.m4: Likewise.
130467         * m4/progtest.m4: Likewise.
130469         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130470         * m4/jm-macros.m4: Require the new macro.
130472 1998-06-29  Jim Meyering  <meyering@ascend.com>
130474         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130475         for the definition of NGROUPS (used in a system header included
130476         by sys/mount.h).
130478 1998-06-28  Jim Meyering  <meyering@ascend.com>
130480         * m4/ls-mntd-fs.m4: New file.
130481         * m4/fstypename.m4: New file.
130483         * m4/jm-macros.m4: Require the new macro.
130484         * m4/jm-glibc-io.m4: New file.
130486 1998-05-19  Jim Meyering  <meyering@ascend.com>
130488         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130489         * m4/lchown.m4: New file.
130491         * m4/Makefile.am.in: New file.
130492         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130494 1998-05-14  Jim Meyering  <meyering@ascend.com>
130496         * m4/Makefile.am (EXTRA_DIST): Add them.
130497         * m4/jm-macros.m4: New file.
130498         * m4/utimbuf.m4: New file.
130500 1998-05-12  Jim Meyering  <meyering@ascend.com>
130502         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130504 1998-05-11  Jim Meyering  <meyering@ascend.com>
130506         * m4/isc-posix.m4: New file.
130508 1998-05-10  Jim Meyering  <meyering@ascend.com>
130510         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130512 1998-05-09  Jim Meyering  <meyering@ascend.com>
130514         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130515         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130516         with automake.
130518         * m4/ssize_t.m4: New file.
130519         * m4/mktime.m4: Remove file -- the new automake has this now.
130521 1998-04-26  Jim Meyering  <meyering@ascend.com>
130523         * m4/assert.m4: New file.
130524         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130526 1998-04-05  Jim Meyering  <meyering@ascend.com>
130528         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130529         (jm_PREREQ): Use it here.
130531 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130533         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130534         in acconfig.h.
130536 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130538         * m4/prereq.m4: New file.
130539         * m4/error.m4: New file.
130540         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130542 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130544         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130545         cache-check for the same variable -- that defeated the purpose of
130546         the test; the test program was never run.  This was a problem only
130547         on systems with losing getline functions -- HP-UX 10.20 is one.
130548         Reported by Bjorn Helgaas.
130550 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130552         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130554 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130556         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130558         * m4/const.m4: New file.  Use an initializer in this declaration
130559         typedef int charset[2]; const charset x;
130560         Reported by Bob Glickstein.
130562 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130564         * m4/chown.m4: Fix reversed types on -1 args to chown.
130565         From Kaveh Ghazi.
130567 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130569         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130570         Add lseek and memchr.
130572         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130573         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130574         have a 20-character limit on names.
130576 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130578         * m4/inttypes_h.m4: New file.
130579         * m4/uintmax_t.m4: New file.
130580         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130583         -----
130585         Local Variables:
130586         coding: utf-8
130587         End:
130589         Copyright (C) 1997-2020 Free Software Foundation, Inc.
130591         Copying and distribution of this file, with or without
130592         modification, are permitted provided the copyright notice
130593         and this notice are preserved.